:root {
    --gold: #c5a059;
    --black: #0a0a0a;
    --white: #ffffff;
    /* Accesibilidad: Grises con mejor contraste para textos secundarios */
    --text-muted: #888; 
    --text-dark-gray: #444; 
    --transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SEO Técnico: Utilidad para el H1 oculto */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth; /* Mejora de UX */
}

body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    background: var(--black); 
    color: var(--white); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: rgba(10, 10, 10, 0.95); z-index: 1000;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    display: flex; align-items: center;
}
.header-container { width: 90%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; align-items: center; gap: 15px; }
.nav-logo { height: 45px; width: auto; } /* width auto para CLS */
.brand-name { color: var(--gold); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }

/* Accesibilidad: Botones de idioma con mejor tamaño de toque y contraste */
.lang-selector { display: flex; gap: 8px; margin-left: 15px; align-items: center; }
.lang-selector button { 
    background: none; border: none; color: #aaa; /* Gris más claro para contraste */
    cursor: pointer; font-weight: bold; font-size: 12px; transition: 0.3s; 
    min-width: 30px; min-height: 30px; /* Mejora área de toque */
}
.lang-selector button.active { color: var(--gold); }
.lang-selector .divider { color: #444; font-size: 10px; }

/* --- NAVEGACIÓN DESKTOP --- */
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { 
    color: var(--white); text-decoration: none; text-transform: uppercase; 
    font-size: 11px; letter-spacing: 2px; transition: 0.3s;
    padding: 10px 0; /* Área de clic mejorada */
}
.nav-links a:hover, .nav-links a:focus { color: var(--gold); outline: none; }
.btn-reserva { 
    background: var(--gold); color: var(--black) !important; 
    padding: 12px 25px; font-weight: bold; border-radius: 2px; 
}

/* --- MENÚ MÓVIL VERTICAL --- */
.menu-toggle { 
    display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1100;
    background: none; border: none; padding: 10px; /* Accesibilidad */
}
.menu-toggle span { width: 28px; height: 2px; background: var(--gold); transition: 0.4s; }

@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    #nav-menu {
        position: fixed; top: 80px; right: -100%; width: 280px; height: auto;
        background: rgba(15, 15, 15, 0.98); backdrop-filter: blur(10px);
        padding: 40px 30px; border-left: 1px solid rgba(197, 160, 89, 0.3);
        border-bottom: 1px solid rgba(197, 160, 89, 0.3);
        transition: var(--transition); border-radius: 0 0 0 20px;
        box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
    }
    #nav-menu.active { right: 0; }
    .nav-links { flex-direction: column; align-items: flex-start; gap: 20px; }
    .nav-links a { 
        font-size: 14px; width: 100%; padding: 12px 0; /* Tap target Lighthouse */
        border-bottom: 1px solid #222; 
    }
    .btn-reserva { border-bottom: none !important; margin-top: 10px; width: 100%; text-align: center; }
}

.hero {
    position: relative;
    background-color: #000;
    overflow: hidden;
    height: 100vh; /* Altura de pantalla completa */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-video.playing {
    opacity: 1;
}

.hero-poster-fallback {
    position: absolute;
    inset: 0;
    background-image: url('img/hero-poster-hq.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.video-overlay { 
    position: absolute; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.6); 
    z-index: 2; 
}

.hero-content {
    position: relative;
    z-index: 10; /* Asegura que esté sobre el overlay */
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-overlay-logo {
    width: 60%; 
    max-width: 300px;
    opacity: 0; 
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
}

.hero-overlay-logo.visible { 
    opacity: 1; 
    transform: scale(1); 
}

/* --- FLOTA --- */
.fleet-section { padding: 100px 0; background: #000; }
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.5rem; text-transform: uppercase; }
.section-title span { color: var(--gold); display: block; font-size: 0.9rem; letter-spacing: 4px; margin-bottom: 10px; }

.fleet-carousel { position: relative; width: 100%; height: 650px; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.8s ease; }
.slide.active { opacity: 1; visibility: visible; }

/* Animación Texto desde Arriba */
.slide-text { text-align: center; margin-top: 30px; transform: translateY(-100px); opacity: 0; transition: var(--transition); }
.slide.active .slide-text { transform: translateY(0); opacity: 1; }
.slide-text h2 { color: var(--gold); font-size: 4rem; text-transform: uppercase; }

/* Animación Imagen desde Abajo */
.slide-image { 
    width: 90%; max-width: 1100px; flex-grow: 1; display: flex; align-items: center; justify-content: center; 
    transform: translateY(100px); opacity: 0; transition: var(--transition); transition-delay: 0.2s; 
}
.slide.active .slide-image { transform: translateY(0); opacity: 1; }
.slide-image img { width: 100%; height: auto; max-height: 450px; object-fit: contain; }

/* --- SERVICIOS --- */
.services-section { padding: 80px 10%; background: #0a0a0a; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: #111; padding: 40px; border-bottom: 3px solid transparent; transition: 0.4s; }
.service-card:hover, .service-card:focus-within { border-bottom: 3px solid var(--gold); transform: translateY(-10px); background: #1a1a1a; }
.service-card h3 { color: var(--gold); margin-bottom: 15px; text-transform: uppercase; }

/* --- PARALLAX --- */
.parallax-section { height: 400px; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/parallax-bg.webp') fixed center/cover; display: flex; align-items: center; justify-content: center; text-align: center; }
.parallax-content h2 { font-size: 3rem; text-transform: uppercase; letter-spacing: 5px; color: var(--white); }

/* --- TRUST --- */
.trust-section { background: var(--white); color: var(--black); padding: 100px 10%; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.trust-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; display: block; }
.trust-item h3 { margin-bottom: 10px; text-transform: uppercase; font-size: 1.2rem; }
/* Accesibilidad: Color de texto más oscuro para legibilidad sobre blanco */
.trust-item p { font-size: 0.95rem; color: var(--text-dark-gray); }


/* Contenedor del enlace */
.privacy-trigger-container p {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

#openPrivacy {
    color: #c5a059;
    text-decoration: underline;
    cursor: pointer;
}

/* El Overlay (Fondo oscuro) */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px); /* Efecto de lujo */
    align-items: center;
    justify-content: center;
}

/* Caja del Modal */
.modal-content {
    background-color: #111;
    color: #fff;
    padding: 0;
    border: 1px solid #c5a059;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    position: relative;
    overflow-y: auto;
    animation: modalFadeIn 0.4s ease;
}

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

/* Encabezado del Modal */
.modal-header {
    padding: 30px;
    border-bottom: 1px solid #222;
    text-align: center;
}

.modal-header h2 { color: #c5a059; letter-spacing: 3px; font-size: 1.5rem; margin: 0; }
.modal-header p { font-size: 0.8rem; color: #666; margin: 5px 0 0; }

/* Cuerpo del Texto */
.modal-body {
    padding: 30px;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #ccc;
}

.modal-body h3 { color: #fff; font-size: 1rem; margin-top: 20px; }

/* Botón de Cierre */
.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #c5a059;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.btn-close-modal {
    width: 100%;
    padding: 15px;
    background: #c5a059;
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close-modal:hover { background: #fff; }

/* Scrollbar personalizado para el modal */
.modal-content::-webkit-scrollbar { width: 5px; }
.modal-content::-webkit-scrollbar-track { background: #000; }
.modal-content::-webkit-scrollbar-thumb { background: #c5a059; }

/* --- FOOTER --- */
footer { background: #050505; padding: 80px 10% 40px; border-top: 1px solid #222; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; }
.footer-content h4 { color: var(--gold); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-content p { color: #ccc; font-size: 0.9rem; }
.footer-link { 
    color: var(--gold); text-decoration: none; display: inline-block; margin-top: 10px; 
    transition: 0.3s; padding: 5px 0;
}
.footer-link:hover { text-decoration: underline; }

/* Accesibilidad: Color más claro para el copyright sobre fondo negro */
.footer-bottom { 
    margin-top: 50px; padding-top: 30px; border-top: 1px solid #222; 
    text-align: center; font-size: 0.85rem; color: #888; 
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .slide-text h2 { font-size: 2.2rem; }
    .fleet-carousel { height: 500px; }
    .parallax-content h2 { font-size: 1.8rem; letter-spacing: 2px; }
    .trust-section { padding: 60px 5%; }
}