* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,html {
    font-family: 'Inter', sans-serif;
    background: #02091d;
    color: #1e293b;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.nav-container,
.container,
.hero .container,
.services .container,
.products .container,
.exitos .container,
.testimonials .container,
.about .container,
.contact .container,
footer .container {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary: #0066cc;
    --primary-dark: #004999;
    --primary-light: #3b82f6;
    --secondary: #00a3ff;
    --accent: #00d4ff;
    --gray-light: #f8fafc;
    --gray: #e2e8f0;
    --gray-dark: #64748b;
    --dark: #0f172a;
    --white: #ffffff;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-menu a {
    color: #1e293b;
}

.navbar.scrolled .nav-menu a:hover,
.navbar.scrolled .nav-menu a.active {
    color: var(--primary);
}

.navbar.scrolled .logo img {
    filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(2000%) hue-rotate(200deg);
}

.navbar.scrolled .menu-toggle {
    color: #1e293b !important;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    z-index: 1002;
}

.logo img {
    width: 140px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}


.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    z-index: 1002;
    transition: all 0.3s ease;
    background: none;
    border: none;
    position: relative;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}


.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}


section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: #e6e6e6;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}


.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

.waves-container.waves-bottom {
    bottom: -5px;
}

.waves {
    position: relative;
    width: 100%;
    height: 120px;
    min-height: 100px;
    max-height: 150px;
}

.parallax > use {
    animation: moveWaves 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 12s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 15s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 18s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 21s; }

@keyframes moveWaves {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* Inicio */
.hero {
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 5rem;
    background: #04264b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #04264b;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 40%, rgba(0,102,204,0.03) 1%, transparent 1%);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem; 
    position: relative;
    z-index: 10;
    width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
}
@media (min-width: 1400px) {
    .hero-grid {
        grid-template-columns: 0.85fr 1.15fr; 
        gap: 5rem;
    }
    
    .hero-image img {
        max-height: 600px;
    }
}


@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr; 
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image img {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h1 span {
        font-size: 2.2rem;
    }
    
    .hero-image img {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        max-width: 280px;
    }
}

.hero-grid {
    display: grid;
      grid-template-columns: 0.9fr 1.1fr; 
    gap: 4rem;
    align-items: center;
    
}

.hero-content {
     padding-right: 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--gray-light);
}

.hero-content h1 span {
    background: -webkit-linear-gradient(#fff, #8cb5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: gentleRise 0.2s ease-out forwards;
}

.hero-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    filter: drop-shadow(0 12px 25px rgba(0, 102, 204, 0.25));
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    animation: softFloat 4s ease-in-out infinite 0.5s;
}

.hero-image img:hover {
    filter: drop-shadow(0 20px 35px rgba(0, 102, 204, 0.5));
    transform: scale(1.02);
}

@keyframes gentleRise {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}
.stats {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.stats span {
    font-size: 14px;
    color: #81abff;
    position: relative;
}

.stats span:not(:last-child)::after {
    content: "|";
    margin-left: 20px;
    color: #9ca3af;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.services .container {
    animation: fadeIn 3s ease-out forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.section-badge {
    display: inline-block;
    background: #e6f4fff6;
    color: #0066CC;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#1E88E5 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
     /* Modal */
        .contact-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .contact-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-container {
            background: linear-gradient(135deg, #ffffff, #f8fafc);
            border-radius: 28px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            text-align: center;
            transform: scale(0.9);
            transition: transform 0.3s ease;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .contact-modal.active .modal-container {
            transform: scale(1);
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                transform: translateY(-50px) scale(0.9);
                opacity: 0;
            }
            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        .modal-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #0066cc, #3b82f6);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4); }
            50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 102, 204, 0); }
        }

        .modal-icon i {
            font-size: 2.5rem;
            color: white;
        }

        .modal-container h3 {
            font-size: 1.8rem;
            color: #0f172a;
            margin-bottom: 1rem;
        }

        .modal-container p {
            color: #64748b;
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .modal-service-preview {
            background: linear-gradient(135deg, #f0f9ff, #e6f4ff);
            padding: 1rem;
            border-radius: 12px;
            margin: 1rem 0;
            text-align: left;
            border-left: 4px solid #0066cc;
        }

        .modal-service-preview p {
            margin: 0;
            color: #1e293b;
            font-size: 0.9rem;
        }

        .modal-service-preview i {
            color: #0066cc;
            margin-right: 0.5rem;
        }

        .modal-service-preview strong {
            color: #0066cc;
        }

        .modal-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 1.5rem;
        }

        .modal-btn {
            padding: 0.7rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-family: inherit;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .modal-btn-primary {
            background: linear-gradient(135deg, #0066cc, #3b82f6);
            color: white;
        }

        .modal-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
        }

        .modal-btn-secondary {
            background: #e2e8f0;
            color: #1e293b;
        }

        .modal-btn-secondary:hover {
            background: #cbd5e1;
            transform: translateY(-2px);
        }

        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #94a3b8;
            transition: color 0.3s;
        }

        .modal-close:hover {
            color: #1e293b;
        }

        /* Footer */
        footer {
            background: #125191;
            color: white;
            padding: 3rem 0 1rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-links a {
            width: 35px;
            height: 35px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: all 0.3s;
        }

        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .hero-grid, .about-grid, .contact-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .hero-image img {
                max-width: 400px;
            }
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: flex !important;
            }
            .nav-menu {
                position: fixed;
                top: 0;
                right: -100%;
                width: 280px;
                height: 100vh;
                background: linear-gradient(135deg, #0a2b4e 0%, #04264b 100%);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 6rem 2rem;
                gap: 1.5rem;
                transition: right 0.3s;
                z-index: 1001;
            }
            .nav-menu.active {
                right: 0;
            }
            .nav-menu a {
                color: white !important;
            }
            .hero-content h1 {
                font-size: 2rem;
            }
            .section-title {
                font-size: 1.8rem;
            }
            .hero-image img {
                max-width: 280px;
            }
            .testimonials .container {
                padding: 30px 20px;
                margin: 0 10px;
            }
        }

              .form-group {
            margin-bottom: 1rem;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid var(--gray);
            border-radius: 8px;
            font-family: inherit;
            transition: border-color 0.3s;
        }

        .form-group select {
            cursor: pointer;
            background: white;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

/* Servicios */
.services {
    background: rgba(29, 122, 216, 0.671);
    border-bottom: 1px solid #4c76e7;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.473);
    transition: all 0.3s;
    border: 1px solid var(--gray);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(40, 157, 253, 0.438);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Productos */
.products {
    background-image: linear-gradient(rgba(29, 122, 216, 0.671), #04264b);
    border-bottom: 1px solid #133b92;
    position: relative;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(0, 102, 204, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

.particle:nth-child(1) { width: 40px; height: 40px; left: 10%; top: 20%; animation-duration: 20s; opacity: 0.3; }
.particle:nth-child(2) { width: 60px; height: 60px; left: 85%; top: 60%; animation-duration: 25s; opacity: 0.2; }
.particle:nth-child(3) { width: 25px; height: 25px; left: 20%; top: 80%; animation-duration: 15s; opacity: 0.4; }
.particle:nth-child(4) { width: 80px; height: 80px; left: 70%; top: 15%; animation-duration: 30s; opacity: 0.15; }
.particle:nth-child(5) { width: 35px; height: 35px; left: 45%; top: 40%; animation-duration: 18s; opacity: 0.35; }
.particle:nth-child(6) { width: 50px; height: 50px; left: 90%; top: 85%; animation-duration: 22s; opacity: 0.25; }
.particle:nth-child(7) { width: 45px; height: 45px; left: 5%; top: 50%; animation-duration: 28s; opacity: 0.3; }
.particle:nth-child(8) { width: 70px; height: 70px; left: 60%; top: 75%; animation-duration: 24s; opacity: 0.2; }
.particle:nth-child(9) { width: 30px; height: 30px; left: 30%; top: 10%; animation-duration: 16s; opacity: 0.4; }
.particle:nth-child(10) { width: 55px; height: 55px; left: 50%; top: 95%; animation-duration: 26s; opacity: 0.28; }

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) translateX(50px) rotate(360deg); opacity: 0; }
}

.animated-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, rgba(0,102,204,0.05) 0%, rgba(0,163,255,0.08) 25%, rgba(0,102,204,0.05) 50%, rgba(0,163,255,0.08) 75%, rgba(0,102,204,0.05) 100%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--white);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow:20px 20px 30px rgba(97, 142, 238, 0.356);
}

.product-img {
    background:rgba(126, 126, 126, 0.192);
    padding: 2rem;
    text-align: center;
}

.product-img img{
 width: 70%;
}

.product-img i {
    font-size: 3rem;
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-info p {
    color: var(--gray-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Proyectos */
.exitos {
      background-image: linear-gradient(#04264b, #021c38);
     border-bottom: 1px solid #133b92;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--gray);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.project-img {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.project-info p {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--gray-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

/* Opiniones */
 .testimonials {
           background-image: linear-gradient(#021c38, #01060c);
            position: relative;
        }
        .testimonials .section-title {
            color: #ffffff;
            text-shadow: none;
        }
        .testimonials .section-subtitle {
            color: #78818d;
        }
        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
        }
        .testimonial-card {
            background: white;
            padding: 2rem;
            border-radius: 24px;
            box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 102, 204, 0.1);
            position: relative;
        }
        .testimonial-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 30px 40px -12px rgba(0, 102, 204, 0.2);
            border-color: rgba(0, 102, 204, 0.2);
        }
        .testimonial-card i.fa-quote-left {
            font-size: 2rem;
            color: var(--primary-light);
            opacity: 0.3;
            margin-bottom: 1rem;
            display: inline-block;
        }
        .testimonial-card i.fa-quote-right {
            font-size: 1.8rem;
            color: var(--primary-light);
            opacity: 0.4;
            position: absolute;
            bottom: 1.5rem;
            right: 1.5rem;
        }
        .testimonial-card p {
            font-style: italic;
            color: #1e293b;
            line-height: 1.6;
            margin-bottom: 1.8rem;
            font-size: 1rem;
            font-weight: 500;
        }
        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 1rem;
            border-top: 1px solid #e2e8f0;
            padding-top: 1.2rem;
        }
        .author-img {
            width: 55px;
            height: 55px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
            box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
        }
        .author-info h4 {
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
            color: #0f172a;
        }
        .author-info p {
            font-size: 0.8rem;
            margin: 0;
            font-style: normal;
            color: #64748b;
            font-weight: 400;
        }

.testimonials .container {
    padding: 50px;
    border-radius: 38px;
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
    margin: 0px 20px 0px 20px;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.author-img {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.8rem;
    margin: 0;
    font-style: normal;
    color: var(--gray-dark);
}

/* Nosotros */
.about {
    background: #01050e;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 0px 0px 0px 100px;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.about-content p {
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.about-image img {
    width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-image{
 justify-content: center;
 align-items: center;
 margin: 0 auto;
}

/* Contacto */
.contact {
    background-image: linear-gradient(#01060c, #04264b );
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00aeff;
}

.contact-details {
    margin: 2rem 0;
    color: #d3d3d3;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e7e6e6;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info p {
    color: #ccccccbe;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
footer {
    background: #125191;
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    color: var(--gray);
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: var(--gray);
}

/* Animaciones */
[data-aos="rotate-up"] {
    transform: rotateX(15deg);
    transition-property: transform, opacity;
}

[data-aos="rotate-up"].aos-animate {
    transform: rotateX(0);
}

[data-aos="slide-up"] {
    transform: translateY(50px);
    transition-property: transform, opacity;
}

[data-aos="slide-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="flip-left"] {
    transform: perspective(2500px) rotateY(-100deg);
    transition-property: transform, opacity;
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(2500px) rotateY(0);
}

[data-aos="flip-right"] {
    transform: perspective(2500px) rotateY(100deg);
    transition-property: transform, opacity;
}

[data-aos="flip-right"].aos-animate {
    transform: perspective(2500px) rotateY(0);
}

[data-aos="flip-up"] {
    transform: perspective(2500px) rotateX(-100deg);
    transition-property: transform, opacity;
}

[data-aos="flip-up"].aos-animate {
    transform: perspective(2500px) rotateX(0);
}

[data-aos="flip-down"] {
    transform: perspective(2500px) rotateX(100deg);
    transition-property: transform, opacity;
}

[data-aos="flip-down"].aos-animate {
    transform: perspective(2500px) rotateX(0);
}

.aos-animate {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fab{
    text-decoration: none;
    color: white;
}
/* ========== RESPONSIVE MEJORADO ========== */

/* Tablets y pantallas medianas (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Ajustes para la sección de servicios */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Ajustes para productos */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }
    
    /* Ajustes para testimonios */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .testimonials .container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Móviles grandes y tablets pequeñas (max-width: 768px) */
@media (max-width: 768px) {
    /* Menú hamburguesa */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(0, 102, 204, 0.2);
        border-radius: 8px;
        backdrop-filter: blur(5px);
    }
    
    .navbar.scrolled .menu-toggle {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .menu-toggle i {
        font-size: 1.8rem;
        color: white;
    }
    
    .menu-toggle.active i {
        color: white;
    }
    
    .logo {
        z-index: 999;
    }
    
    .logo img {
        max-width: 120px;
    }
    
    /* Menú desplegable */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #0a2b4e 0%, #04264b 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6rem 2rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease-in-out;
        z-index: 1001;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        margin: 0;
        list-style: none;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        list-style: none;
    }
    
    .nav-menu a {
        color: white !important;
        font-size: 1.2rem;
        font-weight: 500;
        display: block;
        padding: 0.8rem 1rem;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary-light) !important;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transform: translateX(5px);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    /* Ajustes generales */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h1 span {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .waves {
        height: 60px;
        min-height: 60px;
    }
    
    .hero-image img {
        max-width: 280px;
    }
    
    /* SECCIÓN DE SERVICIOS - MEJORADA */
    .services {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    /* Sección de productos */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 1rem;
    }
    
    .product-card {
        width: 100%;
    }
    
    .product-img img {
        width: 80px;
    }
    
    /* Proyectos */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Testimonios */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .testimonials .container {
        padding: 30px 15px;
        margin: 0 10px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card p {
        font-size: 0.9rem;
    }
    
    /* Nosotros */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin: 0;
    }
    
    .about-image img {
        width: 100%;
        max-width: 350px;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    /* Contacto */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Móviles pequeños (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 span {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .stats span {
        font-size: 11px;
    }
    
    .stats span:not(:last-child)::after {
        margin-left: 8px;
    }
    
    .nav-menu {
        width: 85%;
    }
    
    /* Servicios en móviles pequeños */
    .services {
        padding: 2.5rem 0;
    }
    
    .services-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.3rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        margin-bottom: 20px;
        padding: 0.25rem 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    /* Productos en móviles pequeños */
    .product-img {
        padding: 1.5rem;
    }
    
    .product-img img {
        width: 70px;
    }
    
    .product-info p {
        font-size: 0.85rem;
    }
    
    /* Testimonios en móviles pequeños */
    .testimonial-card {
        padding: 1.2rem;
    }
    
    .testimonial-card i.fa-quote-left {
        font-size: 1.5rem;
    }
    
    .testimonial-card p {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .author-img {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .author-info h4 {
        font-size: 0.9rem;
    }
    
    .author-info p {
        font-size: 0.7rem;
    }
    
    /* Contacto en móviles pequeños */
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-item span {
        font-size: 0.85rem;
    }
    
    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
}

/* Móviles muy pequeños (max-width: 360px) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 span {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .stats span {
        font-size: 10px;
    }
}