@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ==========================================================================
   ÍNDICE DE SECCIONES:
   1. RESET & GLOBALES
   3. HEADER & NAVEGACIÓN
   4. SECCIÓN: HERO (Inicio)
   5. SECCIÓN: SERVICIOS & CARDS
   6. SECCIÓN: RESEÑAS (Reviews)
   7. SECCIÓN: SOBRE NOSOTROS
   8. SECCIÓN: CONTACTO & PAGOS
   9. FOOTER
   10. PÁGINA ESPECÍFICA: FLOTA
   11. PÁGINA DE COTIZACIÓN
   12. ESTILOS DE INPUTS NUMÉRICOS
   13. MODAL FLOTANTE (ALERTA)
   14. ESTILOS DE LA ALERTA GIGANTE (WARNING)
   15. ESTILOS CHECKBOX Y LINK LEGAL
   16. PÁGINAS LEGALES (Términos / Privacidad)
   ========================================================================== */

/* =========================================
   1. RESET & GLOBALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #2c2c2c;
    background-color: #fff;
    line-height: 1.6;
}

h1, h2 {
    line-height: 1.2;
    margin-top: 0;
    color: #03152c;
}

/* =========================================
   3. HEADER & NAVEGACIÓN
   ========================================= */
.header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#header-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    background: url('../img/poster.png') no-repeat center center;
    background-size: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(77, 55, 37, 0.45);
    z-index: 3;
}

/* --- Barra Fija (Top Header) --- */
.top-header {
    position: fixed; 
    top: 0; left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    color: #fff;
    z-index: 9999;
    transition: background 0.4s ease;
}

/* Logo y Texto Header */
.container-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.logo {
    height: 65px;
    width: 65px;
    border-radius: 50%;
    object-fit: cover;
}

#header-logo, #header-text {
    opacity: 1; 
    transition: opacity 0.5s ease;
}

.logo-button {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    height: 100%;
}

.logo-text {  
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 1.4rem;
    font-weight: bold;
    white-space: nowrap;
    display: block;
    color: #fff;
    position: relative; 
    top: -4px; /* Ajuste visual */
}

/* Navegación y Botones */
.nav-links {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover {
    background: rgba(231, 231, 231, 0.349);
    box-shadow: 0 10px 26px rgba(94, 91, 91, 0.35);
}

/* Botón de Idioma (Bandera) */
.nav-links li:last-child a {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
}
.nav-links li:last-child img.idioma {
    width: 55px;
    height: 50px;
    display: block;
    transition: transform 0.3s ease;
    margin-top: 8px;
}
.nav-links li:last-child img.idioma:hover {
    transform: translateY(-3px);
}

/* Fondo Cortina (Scroll Effect) */
.top-header::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: #272b1e;
    backdrop-filter: blur(10px);
    z-index: -1;
    transform: scaleX(0); 
    transform-origin: right; 
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.top-header.header-scrolled::before {
    transform: scaleX(1);
}

/* =========================================
   4. SECCIÓN: HERO (Inicio)
   ========================================= */
.hero {
    width: 100%; 
    max-width: 100%; 
    background-color: #7C8463;
    padding: 6rem max(5%, (100% - 1400px) / 2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    box-sizing: border-box;
    overflow: hidden; 
}   

.hero-content {
    flex: 1; 
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #03152c;
}

.hero p {
    font-size: 1.15rem;
    color: #051c3b; 
    margin-bottom: 3rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* Botón Cotizar Hero */
.hero a, .hero button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d8f7d1 0%, #7cb86d 100%);
    color: #03152c;
    padding: 18px 45px !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero a:hover, .hero button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 1px 18px rgba(212, 180, 131, 0.5);
    background: linear-gradient(135deg, #eafae6 0%, #d0f5c7 100%);
}

/* Imagen Hero */
.hero-image, .hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero img, .hero-image img {
    width: 100%;
    max-width: 600px;
    height: 650px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
    border: 2px solid #3f4431; 
}

/* Hero Responsive */
@media (max-width: 960px) {
    .hero {
        flex-direction: column;
        padding: 6rem 20px;
        text-align: center;
    }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 2.5rem; }
    .hero img, .hero-image img {
        height: 400px;
        max-width: 100%;
    }
}

/* =========================================
   5. SECCIÓN: SERVICIOS & CARDS
   ========================================= */
.services {
    padding: 5rem 2rem;
    background: #ffffff;
}

.services h2 {
    text-align: center;
    margin-bottom: 3.5rem;  
    font-size: 2.5rem;
    position: relative;
    color: #03152c;
}

.services h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #6f9166;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    gap: 2rem; 
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
}

/* Servicios Responsive */
@media (max-width: 700px) {
    .services-grid { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1101px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Service Card Styles */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 320px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: #000;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.service-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(31, 17, 10, 0.95) 0%, 
        rgba(31, 17, 10, 0.4) 50%, 
        rgba(31, 17, 10, 0.1) 100% 
    );
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-card h3 {
    position: absolute;
    bottom: 2rem;
    left: 1.5rem;
    right: 1.5rem;
    color: white;
    z-index: 2;
    font-size: 1.4rem;
    margin: 0;
    transition: transform 0.4s ease;
}

.service-card p {
    display: block; 
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

/* Hover Effects */
.service-card:hover img { transform: scale(1.1); }
.service-card:hover h3 { transform: translateY(-60px); }
.service-card:hover p {
    opacity: 1;
    transform: translateY(0);
}
.service-card:hover .overlay { opacity: 0.9; }

.hidden-service { 
    display: none !important; 
}

.service-card.reveal { 
    animation: fadeIn 0.6s ease forwards; 
}

/* AQUÍ ESTÁ EL ARREGLO: Apuntamos tanto a ID como a Clase */
#services-grid.scroll-mode, 
.services-grid.scroll-mode {
    display: grid; /* Mantiene la forma de grilla */
    max-height: 80vh; /* Altura máxima antes de activar scroll */
    overflow-y: auto !important; /* Fuerza la barra de desplazamiento */
    border-bottom: 2px solid #21331b;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

/* Estilos de la barra de desplazamiento (Scrollbar) */
#services-grid.scroll-mode::-webkit-scrollbar,
.services-grid.scroll-mode::-webkit-scrollbar { 
    width: 10px; 
}

#services-grid.scroll-mode::-webkit-scrollbar-track,
.services-grid.scroll-mode::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

#services-grid.scroll-mode::-webkit-scrollbar-thumb,
.services-grid.scroll-mode::-webkit-scrollbar-thumb {
    background: #393d2e;
    border-radius: 4px;
    border: 2px solid #7C8463; /* Borde blanco para que se vea elegante */
}

#services-grid.scroll-mode::-webkit-scrollbar-thumb:hover,
.services-grid.scroll-mode::-webkit-scrollbar-thumb:hover { 
    background: #393d2e; 
}
.view-more-container {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    grid-column: 1 / -1;
}

#view-more-btn {
    background: transparent;
    border: none;
    color: #21331b;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 5px;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

#view-more-btn:hover {
    opacity: 1;
    letter-spacing: 1px;
    color: #000000;
}

/* Scroll Mode para Servicios */
.services-grid.scroll-mode {
    max-height: 80vh; 
    overflow-y: auto;
    border-bottom: 2px solid #21331b;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

/* Scrollbar Personalizado */
.services-grid.scroll-mode::-webkit-scrollbar { width: 8px; }
.services-grid.scroll-mode::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.services-grid.scroll-mode::-webkit-scrollbar-thumb {
    background: #21331b;
    border-radius: 4px;
}
.services-grid.scroll-mode::-webkit-scrollbar-thumb:hover { background: #d4c5a6; }

/* =========================================
   6. SECCIÓN: RESEÑAS (Reviews)
   ========================================= */
.reviews {
    padding: 2rem 2rem;
    text-align: center;
    font-size: 2.5rem;
    background: #7C8463;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(214px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin: 2rem auto;
}

@media (min-width: 1024px) {
    .reviews-grid { grid-template-columns: repeat(4, 1fr); }
}

.review-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.review-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8rem;
}

.review-card strong {
    display: block;
    font-size: 1rem;
}

.review-card .stars {
    color: #fbbc04;
    margin: 0.4rem 0;
}

.review-card p {
    font-size: 0.9rem;
    color: #555;
}

/* Link Google Reviews */
.google-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 3px 26px;
    margin: 20px auto 0;
    background: #fffaf8;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    color: #578eb6;
    font-weight: 600; 
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
}
.google-link img {
    width: 40px;
    height: 40px;
}
.google-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(39, 189, 248, 0.13);
}

/* =========================================
   7. COMPONENTES DINÁMICOS (IDIOMAS,REDES Y BOTON FLOTANTE)
   ========================================= */
/* Botón Flotante con Resalte */
.btn-float-quote {
    position: fixed;
    bottom: 40px;
    right: 30px;
    background: #00B3B3; /* Dorado base */
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    border: 2px solid #002929; /* Borde blanco para que resalte más */
}

/* Animación de Pulso */
.pulse-btn {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 191, 191, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(0, 191, 191, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 191, 191, 0);
  }
}
.btn-float-quote:hover {
    background: #a8fafa;
    transform: scale(1.1) translateY(-5px);
}

.btn-float-quote:hover {
    color: #000000;
}

/* Cartel de Invitación estilo Mendoza Ride */
.quote-invite-card {
    position: fixed;
    bottom: 110px; /* Aparece sobre el botón */
    right: 30px;
    background: #002424;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9998;
    max-width: 250px;
    display: none; /* Se activa por JS */
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.invite-content p {
    margin: 0;
    color: #00B3B3;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.close-invite {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
}

/* Triangulito de la burbuja */
.invite-arrow {
    position: absolute;
    bottom: -10px;
    right: 40px;
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #002424;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .btn-float-quote .quote-text { display: none; }
    .btn-float-quote { padding: 15px; bottom: 20px; right: 20px; }
    .quote-invite-card { right: 20px; bottom: 85px; }
}

.lang-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 15px;
}

.lang-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(242, 227, 198, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    overflow: hidden;
    padding: 0;
}

.lang-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-button:hover, .lang-button.active {
    background: rgba(242, 227, 198, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.social-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.external-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #ddd;
}

.google-btn { color: #4285F4; }
.youtube-btn { color: #FF0000; }

.external-btn img { width: 80px; height: 50px; }

.external-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-lang-item {
    margin-left: 4px; /* Un pequeño respiro entre banderas */
}

/* Primera bandera se separa más del último link de texto (CONTACTAR) */
.nav-lang-item:first-of-type {
    margin-left: 25px; 
}

/* El botón: Igualamos la "presencia" de los otros botones */
.lang-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 53px;  /* Altura y ancho generosos */
    height: 53px;
    border-radius: 50%; /* O 12px si prefieres cuadrados redondeados */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

/* La imagen dentro: Ahora sí tiene tamaño para verse bien */
.lang-link img {
    width: 38px !important; 
    height: 38px !important;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Efectos de interacción */
.lang-link:hover {
    background: rgba(242, 227, 198, 0.2);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.lang-link.active {
    background: #ffffff; /* Resalta el idioma actual */
    border-color: #F2E3C6;
}


.tooltip {
    position: absolute;
    bottom: -40px; /* Aparece debajo del botón (cámbialo a top: -45px si prefieres arriba) */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(3, 21, 44, 0.9); /* Azul oscuro de tu marca */
    color: #ffffff; /* Dorado de tu marca */
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none; /* Evita que el tooltip interfiera con el mouse */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

/* La flechita del tooltip */
.tooltip::before {
    content: '';
    position: absolute;
    top: -5px; /* Si el tooltip está abajo, la flecha va arriba */
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(3, 21, 44, 0.9);
}

/* Mostrar al pasar el mouse */
.lang-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* Ajuste para que no se desborde el header en pantallas medianas */
@media (max-width: 1200px) {
    .nav-links {
        gap: 10px;
    }
    .lang-link {
        width: 38px;
        height: 38px;
    }
    .lang-link img {
        width: 24px !important;
        height: 24px !important;
    }
}
/* =========================================
   8. SECCIÓN: SOBRE NOSOTROS
   ========================================= */
.about {
    padding: 6rem 2rem;
    background: url('../img/paisaje.jpg') no-repeat center center;
    color: #f3f3f3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;  
    font-size: 2.8rem;
    color: #03152c;
    position: relative;
}

.about h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #062855;
    margin: 15px auto 0;
}

.about p {
    max-width: 1400px;
    margin: 0 auto; 
    text-align: justify;
    line-height: 1.9;
    font-size: 1.15rem;
    color: #ffffff; 
    background: rgba(0, 0, 0, 0.637);
    padding: 40px;
    border-radius: 20px;
    border-left: 4px solid #052146;
}

.about p b {
    color: #fff;
    font-weight: 600;
}

/* =========================================
   9. SECCIÓN: CONTACTO & PAGOS
   ========================================= */
.contact {
    padding: 5rem 2rem;
    background:#ffffff;
}
.contact a { color: inherit; }

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem; 
    max-width: 1100px;
    margin: auto;
    align-items: stretch;
}

/* Cards Base */
.contactcard, .paidcard {
    background: #7C8463;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 110px 35px 40px 35px; 
    min-height: 520px; 
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); 
    border: 1px solid #3f4431;
    color: #ffffff;
    gap: 0;
}

.contactcard h2, .paidcard h2 {
    position: absolute;
    top: 40px;
    left: 0; right: 0;
    text-align: center;
    margin: 0;
    color: #03152c;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    z-index: 10;
}

/* Botones Contacto */
.contactcard { gap: 25px; }

.phone, .btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    height: 100px;
    font-size: 1.3rem;        
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0; 
}

.phone {
    background: rgba(255,255,255,0.12); 
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: #fff;
    border: none;
}

.phone img, .btn-whatsapp img {
    width: 45px; 
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.phone:hover, .btn-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    filter: brightness(1.1);
}

/* Grilla Pagos */
.payment {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0; 
    padding: 0;
    list-style: none;
    width: 100%;
}

.payment li {
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 105px; 
    width: 100%;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.payment li:hover { box-shadow: 0 6px 15px rgba(0,0,0,0.1); }

.payment li img {
    height: 48px; 
    width: auto;
    max-width: 90%; 
    object-fit: contain;
    margin-bottom: 8px; 
    display: block;
}

.payment li span {
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px; 
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payment li span img.banderita {
    height: 12px;
    width: auto;
    display: inline-block;
    margin: 0 0 2px 4px;
    vertical-align: middle;
    box-shadow: none;
}

/* Contacto Responsive */
@media (max-width: 500px) {
    .contact { padding: 3rem 1rem; }
    .contactcard, .paidcard { padding: 90px 20px 30px 20px; min-height: auto; }
    .contactcard h2, .paidcard h2 { top: 30px; }
    .phone, .btn-whatsapp { height: 90px; font-size: 1.1rem; }
    .payment { grid-template-columns: repeat(3, 1fr); }
    .container { gap: 2rem; }
}
@media (max-width: 380px) {
    .payment { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background: #272b1e;
    color: #ffffff;
    text-align: center;
    padding: 4rem 1.5rem;
    font-size: 0.95rem;
    border-top: 1px solid #3a2e25;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    align-items: center;
}

footer a {
    color: #ffffff; 
    text-decoration: none; 
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: #ade0ac;
    text-shadow: 0 0 10px rgba(8, 0, 0, 0.507);
}

.separator {
    margin: 0 10px;
    opacity: 0.5;
}

.developer {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
}

.dev-name {
    color: #ffffff;
    font-weight: 700;
}

/* =========================================
   11. PÁGINA ESPECÍFICA: FLOTA (FLEXBOX CENTRADO)
   ========================================= */
.fleet-main {
    background-color: #7C8463;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 5rem;
    color: #03152c;
}

.fleet-hero {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.fleet-hero h1 { font-size: 2.8rem; margin-bottom: 1rem; color: #03152c; }
.fleet-hero p { font-size: 1.1rem; opacity: 0.8; }

.fleet-category {
    margin-bottom: 5rem;
    padding: 0 2rem;
}

.category-header {
    margin-bottom: 2.5rem;
    text-align: center; /* Títulos centrados se ven mejor en este diseño */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid rgba(242, 227, 198, 0.2);
    padding-bottom: 1rem;
}
.category-header h2 { font-size: 2rem; margin-bottom: 0.5rem; color: #fff; }
.category-header p { font-size: 1rem; opacity: 0.8; font-style: italic; }

/* --- CONTENEDOR FLEX (LA SOLUCIÓN) --- */
.fleet-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que bajen si no caben */
    justify-content: center; /* Centra las tarjetas (clave para cuando hay 1 sola) */
    gap: 2.5rem; /* Espacio entre tarjetas */
    max-width: 1400px;
    margin: 0 auto;
}

/* --- TARJETA --- */
.vehicle-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 1px solid #6d4c3d;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    
    /* TAMAÑO FIJO Y CONTROLADO */
    width: 100%;
    max-width: 400px; /* Ancho máximo para que no se vean gigantes */
    flex-basis: 350px; /* Ancho ideal inicial */
}

.vehicle-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* --- FOTOS --- */
.card-image {
    width: 100%;
    height: 240px; /* Altura controlada */
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center;
}

/* --- BADGE --- */
.badge {
    position: absolute;
    top: 15px; right: 15px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 2;
}
.badge.deluxe { background: linear-gradient(135deg, #d4af37, #aa8c2c); }
.badge.ejecutivo { background: linear-gradient(135deg, #4a4a4a, #2c2c2c); }
.badge.economico { background: linear-gradient(135deg, #25D366, #1da851); }

/* --- CONTENIDO --- */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: #03152c; }

.specs {
    display: flex; gap: 15px; margin-bottom: 1.2rem; padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.specs span { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: #03152c; }
.specs i { color: #03152c; font-size: 1.2rem; }

.features { padding-left: 15px; margin: 0; list-style: none; }
.features li { 
    font-size: 0.9rem; 
    margin-bottom: 6px; 
    opacity: 0.9; 
    position: relative;
    padding-left: 15px;
}
.features li::before {
    content: "•";
    color: #03152c;
    position: absolute;
    left: 0;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    .fleet-grid { gap: 2rem; }
    .vehicle-card { max-width: 100%; /* En celular sí dejamos que ocupe el ancho */ }
    .card-image { height: 220px; }
}
/* Fondo general de la página */
.cotizacion-page {
    background-color: #7C8463; /* Mismo marrón que el inicio */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    position: relative; /* Para que los idiomas se posicionen respecto a la pantalla */
}

/* Contenedor Centrado */
.cotizacion-container {
    width: 100%;
    max-width: 600px;
}

.form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border: 1px solid #424730;
}

/* Header del Formulario */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}
.form-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 30px; 
}
.form-header h1 {
    color: #03152c;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.form-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Caja de Alertas (ACTUALIZADA) */
.alertas {
    background: #c6ceb0c9;
    border-left: 4px solid #424730;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

/* NUEVO: Quita los puntos de la lista */
.alertas ul {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.alertas li {
    color: #041935;
    font-size: 0.85rem;
    margin: 6px 0;
    font-weight: 500;
}

/* Estilos de Inputs y Labels */
.grupo {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}
.grupo label {
    font-weight: 600;
    color: #03152c;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input[type="text"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fafafa;
}

input:focus, select:focus, textarea:focus {
    border-color: #F2E3C6;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(242, 227, 198, 0.3);
}

/* Textarea específico */
textarea {
    resize: vertical;
    min-height: 100px;
}

.nota-ayuda {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* Filas de 2 columnas */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Radio Buttons Bonitos */
.radios-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-card {
    flex: 1;
    position: relative;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-card:has(input:checked) {
    background: #96a16c;
    border-color: #212419;
    color: #03152c;
    font-weight: 900;
}

/* Botón Final */
.btn-cotizar-full {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Poppins', sans-serif;
    margin-top: 1rem;
}

.btn-cotizar-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Botón Volver */
.back-home-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #03152c;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #000203;
    border-radius: 50px;
    transition: all 0.3s;
    background: #fff; /* Asegura que se vea sobre el fondo verde */
    z-index: 10;
}
.back-home-btn:hover {
    background: rgba(242, 227, 198, 0.1);
    color: #03152c;
}

/* =========================================
   NUEVO: POSICIONAMIENTO DE IDIOMAS (DERECHA)
   ========================================= */

.nav-lang-container-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    list-style: none;
    z-index: 10;
}

/* Reutilizamos las clases que ya funcionan en tu Home */
.nav-lang-container-quote .lang-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 53px; 
    height: 53px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-lang-container-quote .lang-link img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50%;
    object-fit: cover;
}

.nav-lang-container-quote .lang-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Clase oculta */
.hidden {
    display: none !important;
}

/* =========================================
   13. ESTILOS DE INPUTS NUMÉRICOS
   ========================================= */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {  
   opacity: 1;
   height: 30px;
   cursor: pointer;
}
.input-numero {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =========================================
   14. MODAL FLOTANTE (ALERTA)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #96a16c83;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    
    /* Estado inicial: Oculto */
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 2px solid #F2E3C6;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-box h3 {
    color: #03152c;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-box p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-box button {
    background: #03152c;
    color: #F2E3C6;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-box button:hover {
    background: #083064;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-wrapper { padding: 1.5rem; }
    .radios-container { flex-direction: column; }
    .cotizacion-page { padding: 4rem 1rem 1rem 1rem; }
}

/* =========================================
   15. ESTILOS DE LA ALERTA GIGANTE (WARNING)
   ========================================= */

.warning-box {
    border: 3px solid #d32f2f; /* Borde Rojo */
    background: #fffafa; 
}

.warning-text {
    font-size: 1.1rem !important;
    color: #333 !important;
    text-align: center;
}

.warning-text b {
    color: #d32f2f;
    font-weight: 800;
    text-decoration: underline;
}

.btn-confirmar {
    background: #d32f2f !important; /* Botón Rojo */
    color: white !important;
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
    margin-top: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
}

.btn-confirmar:hover {
    background: #b71c1c !important;
    transform: scale(1.05);
}

/* =========================================
   16. ESTILOS CHECKBOX Y LINK LEGAL
   ========================================= */

/* Estilo del Link en Alertas */
.link-terminos {
    color: #020e1d;
    font-weight: 800;
    text-decoration: underline;
    transition: color 0.2s;
}
.link-terminos:hover {
    color: #d32f2f; /* Rojo al pasar el mouse */
}

/* Contenedor del Checkbox */
.grupo-checkbox {
    margin: 20px 0;
    padding: 10px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #eee;
}

.label-checkbox {
    display: flex; /* Para poner el cuadradito al lado del texto */
    align-items: flex-start; /* Alinear arriba */
    gap: 12px;
    cursor: pointer;
}

/* IMPORTANTE: Forzamos al checkbox a tener tamaño normal 
   (porque los otros inputs tienen width: 100%) */
input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin-top: 3px; /* Pequeño ajuste visual */
    cursor: pointer;
    accent-color: #311e17; /* Color marrón al marcarlo */
}

.texto-legal {
    font-size: 0.8rem; /* Letra pequeña para legales */
    color: #555;
    line-height: 1.4;
    text-align: justify;
}

/* =========================================
   17. PÁGINAS LEGALES (Privacidad / Términos)
   ========================================= */

.legal-main {
    background-color: #ffffff;
    min-height: 100vh;
    padding-top: 120px; /* Espacio para el header fijo */
    padding-bottom: 5rem;
    color: #7C8463;
    font-family: 'Poppins', sans-serif;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Encabezado de la página */
.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: 2.8rem;
    color: #7C8463;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-header .line {
    width: 80px;
    height: 4px;
    background: #7C8463;
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #7C8463;
}

/* Contenido del texto */
.legal-content h2 {
    color: #7C8463;
    font-size: 1.6rem;
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(242, 227, 198, 0.2);
    padding-bottom: 10px;
}

.legal-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-align: justify;
}

.legal-content b {
    color: #aec472;
    font-weight: 600;
}

/* Listas en legales */
.legal-content ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Caja de Consentimiento Destacada */
.consent-box {
    background: rgba(0, 0, 0, 0.027);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #585e45;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.301);
}

.consent-box p {
    margin-bottom: 1rem;
}

.legal-highlight {
    margin-bottom: 0 !important;
    font-weight: 600;
    color: #7C8463;
    font-style: italic;
}

/* Botón Volver Abajo */
.action-area {
    text-align: center;
    margin-top: 5rem;
}

.btn-volver {
    display: inline-block;
    text-decoration: none;
    color: #2d3d26;
    background: #93b983;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-volver:hover {
    background: #c4f1b0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-header h1 { font-size: 2rem; }
    .legal-container { padding: 0 1.5rem; }
}

/* =================================================================
   RESET TOTAL: VERSIÓN MÓVIL (Escrito desde cero)
   ================================================================= */

/* 1. SEGURIDAD PARA ESCRITORIO (Para que no se rompa la PC) */
.menu-toggle {
    display: none !important;
}

/* 2. INICIO DE LA VERSIÓN MÓVIL (Solo aplica a pantallas < 768px) */
@media screen and (max-width: 768px) {

/* --- VIDEO FULL SCREEN EN MÓVIL --- */
    
    /* 1. Aseguramos que nada en la página genere scroll lateral */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* 2. El Header se obliga a medir exactamente lo que mide la pantalla */
    .header {
        position: relative !important;
        /* CLAVE: 'dvh' calcula la altura real descontando la barra del navegador */
        height: 100dvh !important; 
        width: 100vw !important;      
        overflow: hidden !important;  
        padding: 0 !important;
        margin: 0 !important;
        background: #000 !important; /* Fondo negro de seguridad */
    }

    #header-video {
        position: absolute !important;
        top: 0 !important;
        /* Centrado horizontal */
        left: 50% !important;
        transform: translateX(-50%) !important;
        
        /* Ocupa toda la altura disponible sin cortarse */
        height: 100% !important;
        
        /* ANCHO CONTROLADO: 
           Lo bajé a 140%. Esto lo hace más "angosto" que antes,
           pero suficiente para cubrir los bordes. */
        width: 140% !important; 
        
        /* Estira el video para encajar en ese 140% x 100% */
        object-fit: fill !important; 
        
        z-index: 0 !important;
    }
    /* --- 3. OVERLAY MARRÓN (Recuperado) --- */
    .video-overlay {
        display: block !important;
        position: absolute !important;
        inset: 0 !important; /* Cubre todo el espacio */
        
        /* El color exacto de tu versión escritorio */
        background: rgba(77, 55, 37, 0.45) !important; 
        
        z-index: 1 !important; /* Encima del video */
    }

    /* --- B. BARRA DE NAVEGACIÓN SUPERIOR (TOP HEADER) --- */
    .top-header {
        display: flex !important;
        width: 100%;
        height: 80px;
        position: fixed; /* Se queda fija al bajar */
        top: 0;
        left: 0;
        padding: 0 20px;
        z-index: 1000;
        
        /* ALINEACIÓN: Usamos esto para el logo centrado */
        justify-content: center;
        align-items: center;
        
        /* FONDO: Transparente para ver video, sin !important para que JS pueda oscurecerlo */
        background: transparent;
        transition: background 0.3s ease;
    }

/* --- C. LOGO Y TEXTO (CORRECCIÓN DE ASIMETRÍA Y FORMA) --- */
    
    /* 1. POSICIONAMIENTO DEL BLOQUE ENTERO */
    .logo-button {
        position: absolute !important;
        left: 20px !important;  /* <--- CAMBIO: Se ancla a la izquierda (margen) */
        top: 50% !important;
        transform: translateY(-50%) !important; /* <--- CAMBIO: Solo centra verticalmente */
        
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* <--- CAMBIO: Alineación interna izquierda */
        
        width: max-content !important; 
        max-width: 65% !important; /* Evita chocar con el menú */
        
        z-index: 1001 !important;
        text-decoration: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 2. CONTENEDOR INTERNO */
    .container-logo {
        display: flex !important;
        align-items: center !important; /* Alineación vertical estricta */
        gap: 12px !important;           /* Espacio limpio entre logo y texto */
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. EL LOGO (SOLUCIÓN AL ÓVALO Y CORTE) */
    img.logo, #header-logo {
        width: 52px !important;
        height: 52px !important;
        /* ESTAS DOS LÍNEAS IMPIDEN QUE SE HAGA OVALADO: */
        min-width: 52px !important; 
        flex-shrink: 0 !important; 
        
        border-radius: 50% !important;
        
        /* ESTO IMPIDE QUE SE CORTE LA IMAGEN: */
        object-fit: cover !important; /* Rellena el círculo perfectamente */
        padding: 0 !important;        /* Eliminamos padding que deformaba */
        background-color: transparent !important;
        
        margin: 0 !important;
        display: block !important;
    }

    /* 4. EL TEXTO (SOLUCIÓN DE ALTURA VS HAMBURGUESA) */
    .logo-text {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: white !important;
        text-transform: uppercase !important;
        
        /* Reset total de alturas para que se centre por flexbox */
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        
        /* Eliminamos el 'top' anterior que lo subía artificialmente */
        position: static !important; 
        transform: none !important;
    }
    /* --- D. BOTÓN HAMBURGUESA (DERECHA) --- */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px; /* Ancho del botón */
        height: 22px; /* Alto del botón */
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2000; /* Encima de todo */
        
        /* Posición absoluta a la derecha */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* --- E. ANIMACIÓN DE LA "X" --- */
    /* Línea superior gira 45 grados */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    /* Línea del medio desaparece */
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    /* Línea inferior gira -45 grados */
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* --- F. MENÚ DESPLEGABLE (PANTALLA COMPLETA) --- */
    .nav-links {
        display: none; /* Oculto por defecto */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95); /* Fondo negro casi opaco */
        flex-direction: column;
        justify-content: center; /* Centra verticalmente los items */
        align-items: center;     /* Centra horizontalmente los items */
        z-index: 1500;
        padding: 0;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .nav-links a {
        font-size: 22px;
        color: white;
        text-decoration: none;
        font-weight: 500;
    }

    /* --- G. BANDERAS DE IDIOMA (Centradas y Grandes) --- */
    .nav-lang-item {
        /* Usamos flex para obligar a que el contenido se centre sí o sí */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important; /* Ocupa todo el ancho disponible */
        margin: 8px 0 !important; /* Separación vertical entre banderas */
    }

    .lang-link {
        width: 60px !important;
        height: 60px !important;
        padding: 4px !important;
        background: transparent !important;
        border: 2px solid rgba(255,255,255,0.3) !important;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.2s ease;
        /* EL SECRETO DEL CENTRADO: Márgenes automáticos a los lados */
        margin: 0 auto !important; 
    }

    /* EFECTO AL TOCAR: Fondo blanco */
    .lang-link:active, .lang-link:focus {
        background-color: #ffffff !important;
        border-color: #ffffff !important;
        transform: scale(0.95);
    }

    .nav-lang-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }

    .tooltip { display: none !important; }

    /* --- H. BOTÓN FLOTANTE (COTIZAR) --- */
    .btn-float-quote {
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        right: 20px;
        bottom: 25px;
    }

    .quote-text { display: none !important; }
    .quote-icon { margin: 0 !important; font-size: 26px !important; }

    /* 1. BANDERAS (DERECHA): Las achicamos para que sean estéticas */
    .cotizacion-page .nav-lang-container-quote {
        position: absolute !important;
        
        /* CAMBIO: De 25px pasamos a 15px para subirlas */
        top: 16px !important;    
        
        right: 20px !important;
        display: flex !important;
        gap: 8px !important;
        z-index: 50 !important;
    }

    .cotizacion-page .nav-lang-container-quote .lang-link {
        /* Reducimos de 55px a 42px (Tamaño ideal móvil) */
        width: 42px !important;  
        height: 42px !important;
        border: 1px solid rgba(255,255,255,0.6) !important;
        margin: 0 !important;
    }
    
    .cotizacion-page .nav-lang-container-quote .lang-link img {
        width: 28px !important; 
        height: 28px !important;
    }

    /* 2. BOTÓN VOLVER (IZQUIERDA): Lo agrandamos y alineamos */
    .cotizacion-page .back-home-btn {
        position: absolute !important;
        
        /* ALINEACIÓN PERFECTA: Mismo 'top' que las banderas (25px) */
        top: 25px !important;  
        left: 20px !important;

        /* SIMETRÍA: Misma altura que las banderas (42px) */
        height: 42px !important; 
        
        /* Centrado del texto dentro del botón */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        
        /* Estética mejorada */
        padding: 0 20px !important;
        font-size: 0.9rem !important; /* Texto un poco más grande */
        font-weight: 600 !important;
        background: #fff !important;
        border: 1px solid #000 !important;
        border-radius: 50px !important;
        z-index: 50 !important;
    }

    /* 3. ESPACIO SUPERIOR (Para que no se encime el formulario) */
    .cotizacion-page {
        padding-top: 110px !important; 
        background-color: #7C8463 !important;
    }

    /* 4. ESPACIO PARA EL FORMULARIO */
    .cotizacion-page {
        padding-top: 100px !important; 
        background-color: #7C8463 !important;
    }
    
    .cotizacion-page .cotizacion-container {
        width: 100% !important;
        padding: 0 15px !important;
    }
}

    /* 5. AJUSTE DEL FORMULARIO (Para que no quede tapado por los botones) */
    .cotizacion-page {
        /* Damos espacio arriba para los botones */
        padding-top: 90px !important; 
        background-color: #7C8463 !important; /* Aseguramos el fondo verde */
    }
    
    .cotizacion-page .cotizacion-container {
        width: 100% !important;
        padding: 0 15px !important;
    } 
    
    .legal-page .logo-button {
        /* Anulamos la izquierda y forzamos el centro absoluto */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        
        /* Alineación interna */
        justify-content: center !important;
        text-align: center !important;
        
        /* Ajuste de ancho para que entre cómodo */
        width: max-content !important;
        max-width: 90% !important;
    }
    
    
    /* FIN DEL MEDIA QUERY */