/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ArgenCodeFlow — Prompt Web (brand) */
    --primary-color: #2196F3;
    --primary-dark: #0D47A1;
    --primary-light: #4FC3F7;
    --secondary-color: #0D47A1;
    --accent-color: #4FC3F7;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-dark: #1A2B3C; /* New dark text color for light cards */
    --text-light: #95a5a6;
    --bg-primary: #021027; /* Dark theme background */
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --bg-dark: #010814;
    --border-color: rgba(255, 255, 255, 0.1);
    /* Gradiente oficial: #4FC3F7 → #0D47A1 (esquina superior izq. a inferior der.) */
    --gradient-1: linear-gradient(135deg, #4FC3F7 0%, #0D47A1 100%);
    --gradient-2: linear-gradient(135deg, #4FC3F7 0%, #2196F3 100%);
    --shadow-sm: 0 1px 2px 0 rgba(13, 71, 161, 0.06);
    --shadow-md: 0 4px 12px -2px rgba(13, 71, 161, 0.12);
    --shadow-lg: 0 10px 24px -4px rgba(13, 71, 161, 0.14);
    --shadow-xl: 0 20px 40px -8px rgba(13, 71, 161, 0.16);
    
    /* Animation Tokens */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --glow-color: rgba(79, 195, 247, 0.4);
}

/* ===== Animation System ===== */
.reveal {
    opacity: 0;
    transition: all var(--transition-smooth);
    will-change: transform, opacity;
}

.reveal-up { transform: translateY(40px); }
.reveal-down { transform: translateY(-40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.9); }

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

@keyframes float-hero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--glow-color); }
    50% { box-shadow: 0 0 20px 5px var(--glow-color); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Capa 2: Burbujas flotantes (Squares/Circles) */
.circles {
    position: fixed; /* Fixed to cover whole page during scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -5; /* Behind everything */
    pointer-events: none;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(79, 195, 247, 0.15); /* Brand Cyan Translucent */
    animation: animate-bubbles 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.circles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.circles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.circles li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.circles li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.circles li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes animate-bubbles {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* Capa 1: Glowing Particles System */
.particle-container {
    position: fixed; /* Fixed to cover whole page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -10; /* Furthest background layer */
    mask-image: radial-gradient(white 0%, white 30%, transparent 80%, transparent);
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    mix-blend-mode: screen;
    background-image: radial-gradient(
        hsl(198, 100%, 80%),
        hsl(198, 100%, 80%) 10%,
        hsla(198, 100%, 80%, 0) 56%
    );
    animation: fade-frames 2s infinite, scale-frames 2s infinite;
}

@keyframes fade-frames {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scale-frames {
    0%, 100% { transform: scale3d(0.4, 0.4, 1); }
    50% { transform: scale3d(2.2, 2.2, 1); }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(2, 16, 39, 0.8); /* Dark navbar */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-contact {
    background: var(--gradient-1);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    padding: 120px 0 80px;
    background: #021027; /* Dark Theme from your snippet */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10; /* Ensures content is above animations */
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white; /* Light on dark */
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8); /* Light on dark */
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    height: 500px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Background content container */
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    background: var(--gradient-1);
    animation: float-hero 10s infinite ease-in-out;
}

.shape-1 { width: 300px; height: 300px; top: -10%; left: -10%; }
.shape-2 { width: 200px; height: 200px; bottom: 10%; right: -5%; animation-delay: -2s; }

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    color: var(--text-dark); /* Ensure icons or text are dark */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.floating-card p {
    font-weight: 600;
    color: var(--text-dark); /* Dark text on white card */
    margin: 0;
}

/* ===== Sections ===== */
section {
    padding: 80px 0;
    background: transparent !important; /* Make segments transparent to show global background */
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Services Section ===== */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.95); /* Light, opaque background */
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: var(--text-dark); /* Dark text on light background */
}

.service-card h3 {
    color: var(--text-dark);
}

.service-card p {
    color: #4B5563; /* Darker secondary text */
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(33, 150, 243, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Styles consolidated above */

/* ===== Applications Section ===== */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2.5rem;
}

.app-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    color: var(--text-dark); /* Ensure dark text */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-card h3 {
    color: var(--text-dark);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.app-card > p, .app-card .app-features li {
    color: #4B5563;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.app-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    filter: drop-shadow(0 8px 16px rgba(13, 71, 161, 0.12));
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Styles consolidated above */

.app-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.app-features li {
    padding: 0.5rem 0 0.5rem 2rem; /* Substantial padding for the checkmark */
    color: var(--text-dark) !important;
    position: relative;
    line-height: 1.4;
}

.app-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== Applications — product detail (2 apps) ===== */
#quickstock-enterprise {
    scroll-margin-top: 100px;
}

/* Selector Grid */
.apps-selector {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    opacity: 1;
}

.apps-selector.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.app-selector-card {
    background: rgba(255, 255, 255, 0.05); /* Dark theme style selector */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: float 6s ease-in-out infinite;
}

.app-selector-card:nth-child(2) { animation-delay: -2s; }
.app-selector-card:nth-child(3) { animation-delay: -4s; }

.app-selector-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-selector-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-selector-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.app-selector-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.app-detail {
    display: none; /* Hidden by default */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: left;
    position: relative;
    z-index: 1;
    color: var(--text-dark) !important;
    transform-origin: top;
    overflow: hidden;
}

.app-detail.active {
    display: block;
    animation: reveal-down 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reveal-down {
    from { 
        transform: scaleY(0); 
        opacity: 0; 
    }
    to { 
        transform: scaleY(1); 
        opacity: 1; 
    }
}

.app-detail .app-icon {
    animation: icon-appear 1s ease 0.4s both;
}

@keyframes icon-appear {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Visibility Utilities */
.fade-out {
    opacity: 0 !important;
    transform: scale(0.95);
    pointer-events: none;
}

/* Visibility Utilities for Animation */
.hidden-original {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.close-detail {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-detail:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Force dark color on all detail sub-elements */
.app-detail h3, 
.app-detail h4, 
.app-detail p, 
.app-detail li, 
.app-detail dt, 
.app-detail dd, 
.app-detail code {
    color: var(--text-dark) !important;
}

.app-detail-tagline, .app-lead, .app-footnote {
    color: #4B5563 !important;
}

.app-tech {
    background: #F3F4F6 !important;
    color: var(--primary-dark) !important;
}

.app-detail:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.app-detail:last-of-type {
    margin-bottom: 0;
}

.app-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .app-detail-header {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}

.app-icon-wrapper--detail {
    margin: 0;
    flex-shrink: 0;
}

/* Details titles handled in app-detail consolidation */

.app-detail-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.app-lead {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.app-tech {
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0.875rem 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-detail-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 900px) {
    .app-detail-columns {
        grid-template-columns: 1fr 1.1fr;
        gap: 2rem;
    }
}

/* Detailed headings handled in app-detail consolidation */

.app-features--compact li {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.35rem 0 0.35rem 1.4rem;
}

.app-module-list {
    margin: 0;
}

.app-module-list dt {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-top: 0.85rem;
}

.app-module-list dt:first-child {
    margin-top: 0;
}

.app-module-list dd {
    margin: 0.35rem 0 0 0;
    padding-left: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
}

.app-footnote {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.app-footnote code {
    font-size: 0.85em;
    background: var(--bg-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--primary-dark);
}

/* ===== About Section ===== */
.about {
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.company-logo-large {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== Contact Section ===== */
.contact-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--primary-light);
}

.info-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-item p {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
}

/* ===== Footer ===== */
.footer {
    background: #010814;
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.footer .logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #b3e5fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enlaces de contacto */
.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        height: 300px;
        margin-top: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: #021027; /* Dark mobile menu */
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        color: white !important; /* Ensure visibility on dark mobile background */
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .services-grid,
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
