/* CSS Variables - Adaptados al logo de AGV */
        :root {
            --primary-blue: #02083b; /* Azul marino profundo del fondo del logo */
            --primary-blue-dark: #01041f;
            --accent-blue: #0078ff; /* Azul eléctrico brillante de la G, V y ventanas */
            --accent-hover: #005ce6;
            --silver: #d3d9e2; /* Plateado de la letra A y el techo */
            --silver-dark: #a1aab5;
            --bg-light: #F8F9FB;
            --text-dark: #2A2A2A;
            --text-light: #6b7280;
            --white: #FFFFFF;
            --glass-bg: rgba(2, 8, 59, 0.95); /* Adaptado al color corporativo para el header */
            --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 10px 30px -3px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.12);
        }

        /* Reset & Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--text-dark);
            background-color: var(--bg-light);
            line-height: 1.7;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
        }

        ul {
            list-style: none;
        }

        .container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* Animations */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
        }
        
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }
        
        .delay-100 { transition-delay: 100ms; }
        .delay-200 { transition-delay: 200ms; }
        .delay-300 { transition-delay: 300ms; }

        /* Reusable Components */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 32px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255,255,255,0.15);
            transform: translateY(100%);
            transition: var(--transition);
            z-index: -1;
        }

        .btn:hover::after {
            transform: translateY(0);
        }

        .btn-accent {
            background-color: var(--accent-blue);
            color: var(--white);
            box-shadow: 0 8px 20px rgba(0, 120, 255, 0.3);
        }

        .btn-accent:hover {
            background-color: var(--accent-hover);
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(0, 120, 255, 0.5);
        }
        
        .btn-outline {
            background-color: transparent;
            color: var(--white);
            border: 2px solid var(--white);
        }
        
        .btn-outline:hover {
            background-color: var(--white);
            color: var(--primary-blue);
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title {
            font-size: 2.75rem;
            color: var(--primary-blue);
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background-color: var(--accent-blue);
            border-radius: 2px;
        }

        .section-subtitle {
            color: var(--text-light);
            font-size: 1.15rem;
            max-width: 600px;
            margin: 25px auto 0;
        }

        section {
            padding: 100px 0;
        }

        /* --- 1. Header / Nav --- */
        header {
            background: transparent;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            transition: var(--transition);
        }

        header.scrolled {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: var(--shadow-sm);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 120px;
            transition: var(--transition);
        }

        header.scrolled .nav-container {
            height: 95px;
        }

        .logo {
            display: flex;
            align-items: center;
            height: 100%;
        }

        .logo img {
            height: 105px; /* Tamaño aumentado del logo en el header */
            width: auto;
            transition: var(--transition);
        }

        header.scrolled .logo img {
            height: 80px; /* Logo al hacer scroll */
        }

        /* --- 2. Hero Section --- */
        .hero {
            position: relative;
            height: 100vh;
            min-height: 700px;
            display: flex;
            align-items: center;
            color: var(--white);
            background: url('../images/hero-bg.jpg') center/cover no-repeat;
            background-attachment: fixed;
        }

        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            /* Overlay adaptado al azul oscuro corporativo */
            background: linear-gradient(90deg, rgba(2, 8, 59, 0.95) 0%, rgba(2, 8, 59, 0.7) 50%, rgba(2, 8, 59, 0.3) 100%);
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 750px;
            animation: fadeIn 1.2s ease-out forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateX(-30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .hero-badge {
            display: inline-block;
            background: rgba(0, 120, 255, 0.2);
            border: 1px solid rgba(0, 120, 255, 0.5);
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
            color: #80bfff; /* Azul claro para contraste */
            margin-bottom: 25px;
            backdrop-filter: blur(4px);
        }

        .hero h1 {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 25px;
            line-height: 1.15;
            letter-spacing: -1px;
        }

        .nav-links li a:hover {
            color: var(--accent-color);
        }

        .lang-switch {
            font-weight: 600;
            margin-left: 15px;
            color: var(--silver-color);
        }

        .lang-switch a {
            color: var(--text-color);
            transition: var(--transition);
        }

        .lang-switch a.active {
            color: var(--accent-color);
            text-decoration: underline;
        }

        .lang-switch a:hover {
            color: var(--accent-color);
        }

        .hero h1 span {
            color: var(--accent-blue);
        }

        .hero p {
            font-size: 1.25rem;
            margin-bottom: 40px;
            font-weight: 300;
            color: var(--silver);
            max-width: 600px;
        }

        .hero-actions {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        /* --- 3. Features Banner --- */
        .features-banner {
            background-color: var(--white);
            padding: 40px 0;
            box-shadow: var(--shadow-sm);
            position: relative;
            z-index: 10;
            margin-top: -50px;
            border-radius: 12px;
            max-width: 1100px;
            margin-left: auto;
            margin-right: auto;
            width: calc(100% - 40px);
            border-bottom: 4px solid var(--silver);
        }
        
        .features-grid {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 20px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .feature-item i {
            font-size: 2.2rem;
            color: var(--accent-blue);
        }
        
        .feature-item div h4 {
            color: var(--primary-blue);
            font-weight: 700;
            font-size: 1.1rem;
        }
        
        .feature-item div p {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        /* --- 4. Services Section --- */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 40px;
        }

        .service-card {
            background-color: var(--white);
            padding: 50px 40px;
            border-radius: 20px;
            text-align: center;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
            border-top: 5px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 120, 255, 0.03) 0%, rgba(255,255,255,0) 100%);
            z-index: 0;
        }

        .service-card > * {
            position: relative;
            z-index: 1;
        }

        .service-card:hover {
            transform: translateY(-15px);
            border-top: 5px solid var(--accent-blue);
            box-shadow: var(--shadow-lg);
        }

        .service-icon {
            width: 90px;
            height: 90px;
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
            color: var(--silver);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            margin: 0 auto 30px;
            transition: var(--transition);
            transform: rotate(-5deg);
        }

        .service-card:hover .service-icon {
            transform: rotate(0) scale(1.1);
            background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-hover) 100%);
            color: var(--white);
            box-shadow: 0 10px 20px rgba(0, 120, 255, 0.3);
        }

        .service-card h3 {
            font-size: 1.5rem;
            color: var(--primary-blue);
            margin-bottom: 15px;
            font-weight: 700;
        }

        .service-card p {
            color: var(--text-light);
            font-size: 1rem;
        }

        /* --- 5. Gallery Section --- */
        .gallery-section {
            background-color: var(--primary-blue);
            color: var(--white);
        }
        
        .gallery-section .section-title {
            color: var(--white);
        }
        
        .gallery-section .section-subtitle {
            color: var(--silver);
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
        }

        .gallery-item {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            height: 320px;
            cursor: pointer;
            box-shadow: var(--shadow-md);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1);
        }

        .gallery-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(2, 8, 59, 0.95) 0%, rgba(2, 8, 59, 0.2) 100%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 30px;
            opacity: 0;
            transition: var(--transition);
        }

        .gallery-item:hover img {
            transform: scale(1.08);
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }
        
        .gallery-overlay h4 {
            color: var(--white);
            font-size: 1.4rem;
            font-weight: 700;
            transform: translateY(20px);
            transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
            transition-delay: 0.1s;
        }
        
        .gallery-overlay p {
            color: var(--accent-blue);
            font-size: 0.95rem;
            font-weight: 500;
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
            transition-delay: 0.2s;
            margin-top: 5px;
        }

        .gallery-item:hover .gallery-overlay h4,
        .gallery-item:hover .gallery-overlay p {
            transform: translateY(0);
            opacity: 1;
        }

        /* --- 6. Footer --- */
        footer {
            background-color: var(--primary-blue-dark);
            color: var(--white);
            padding: 80px 0 30px;
            border-top: 4px solid var(--accent-blue);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 50px;
            margin-bottom: 60px;
        }

        .footer-logo {
            margin-bottom: 20px;
            display: inline-block;
        }
        
        .footer-logo img {
            height: 140px; /* Tamaño aumentado del logo en el footer */
            width: auto;
        }

        .footer-slogan {
            color: var(--silver-dark);
            margin-bottom: 30px;
            max-width: 350px;
        }

        .footer-title {
            font-size: 1.2rem;
            margin-bottom: 25px;
            font-weight: 700;
            color: var(--white);
        }

        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: var(--silver-dark);
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: var(--accent-blue);
            padding-left: 5px;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            background-color: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: var(--transition);
        }

        .social-icon:hover {
            background-color: var(--accent-blue);
            border-color: var(--accent-blue);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 120, 255, 0.4);
        }

        .copyright {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 30px;
            color: var(--silver-dark);
            font-size: 0.95rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .hero h1 { font-size: 3.5rem; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
        }

        @media (max-width: 768px) {
            .hero h1 { font-size: 2.8rem; }
            .hero p { font-size: 1.1rem; }
            .section-title { font-size: 2.2rem; }
            .features-grid { flex-direction: column; align-items: flex-start; padding: 20px; }
            .footer-grid { grid-template-columns: 1fr; gap: 40px; }
            .copyright { flex-direction: column; text-align: center; gap: 15px; }
            .hero { background-attachment: scroll; } 
        }

        @media (max-width: 480px) {
            .nav-container { flex-direction: column; justify-content: center; gap: 15px; height: auto; padding: 20px; }
            header.scrolled .nav-container { height: auto; padding: 15px; }
            .logo img { height: 90px; }
            header.scrolled .logo img { height: 75px; }
            .hero h1 { font-size: 2.2rem; }
            .hero-actions { flex-direction: column; width: 100%; }
            .hero-actions .btn { width: 100%; }
            .footer-logo img { height: 110px; }
        }
/* --- Floating Chat --- */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-blue);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-glow 2s infinite;
}

.floating-chat:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--primary-color);
    color: white;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(32, 178, 170, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(32, 178, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(32, 178, 170, 0); }
}

@media (max-width: 768px) {
    .floating-chat {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}
