/* --- VARIABLES Y RESETEO --- */
:root {
    --azul-marino: #002147;
    --plomo-claro: #f5f5f5;
    --plomo-medio: #b0b0b0;
    --blanco: #ffffff;
    --font-header: 'Inter', sans-serif; /* Elegancia clásica para títulos */
    --font-main: 'Inter', sans-serif; /* Alternativa a Navigo */
    --transicion: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--blanco);
    color: var(--azul-marino);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicion);
}

/* --- HEADER / NAV --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: var(--transicion);
    background: rgba(255, 255, 255, 0.85);
}

header.scrolled {
    background: var(--blanco);
    padding: 10px 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 4px;
}

.nav-links ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links ul li a {
    margin-left: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links ul li a:not(.btn-cta):hover {
    color: var(--plomo-medio);
}

.btn-cta {
    background: var(--azul-marino);
    color: var(--blanco) !important;
    padding: 10px 25px;
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- HERO SECTION (Optimizado) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--blanco);
    overflow: hidden; /* Importante para el difuminado */
}

/* NUEVO: Superposición de la imagen de fondo */
.hero-image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Asegúrate de tener la imagen 'R13.2.jpg' en la misma carpeta */
    background: url('IMAGEN1.jpg') no-repeat center center/cover;
    filter: blur(5px); /* Grado de difuminado de la imagen */
    transform: scale(1.1); /* Escalar un poco para evitar bordes blancos al difuminar */
    z-index: 1;
}

/* NUEVO: Superposición de color negro difuminado */
.hero-color-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Color negro semi-transparente (ajusta el 0.5 a tu gusto) */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Asegurar que el texto esté sobre el fondo */
    padding: 0 5%;
}

.hero-content h1 {
    font-family: var(--font-header);
    font-size: clamp(2.2rem, 8vw, 5.5rem); 
    margin: 15px 0;
    line-height: 1.1;
}

.hero-content p {
    font-family: var(--font-main); /* Navigo Alternative */
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.5);
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 20px;
    background: var(--blanco);
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- ESTILOS DE TEXTO SECUNDARIO (Estilo Navigo) --- */
.subtitle,
.subtitle-badge {
    font-family: var(--font-main); /* Navigo Alternative */
}

/* Estilo para el recuadro gris sutil (ahora vacío) */
/*.subtitle-badge {
    position: absolute;
    top: -50px; /* Ajusta la posición vertical 
    left: 50%;
    transform: translateX(-50%);
    width: 200px; /* Ajusta el ancho
    height: 40px; /* Ajusta el alto 
    background-color: rgba(255, 255, 255, 0.1); /* Fondo blanco sutil 
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde fino 
}*/

.subtitle {
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    letter-spacing: clamp(4px, 1.5vw, 8px);
    text-transform: uppercase;
    font-weight: 300;
}

/* --- GALERÍA (sección de ejemplo) --- */
.gallery {
    padding: clamp(60px, 10vw, 100px) 5%;
    background-color: var(--plomo-claro);
}

.section-title {
    text-align: center;
    font-family: var(--font-header);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.info {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 33, 71, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transicion);
}

.grid-item:hover .info {
    opacity: 1;
}

.info span {
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- FOOTER --- */
footer {
    padding: 40px 5%;
    text-align: center;
    background: var(--azul-marino);
    color: var(--plomo-medio);
    font-size: 0.8rem;
}

/* ===========================================
   MEDIA QUERIES (MÓVIL Y TABLET)
   =========================================== */

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        width: 30px;
        height: 20px;
        z-index: 1100;
    }
    
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--azul-marino);
        transition: var(--transicion);
    }
    
    .menu-toggle span:last-child { margin-top: 6px; }

    .menu-toggle.active span:first-child { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:last-child { transform: rotate(-45deg) translate(2px, -3px); }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--blanco);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: var(--transicion);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-links.active { right: 0; }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links ul li { margin: 15px 0; }

    .nav-links ul li a {
        margin-left: 0;
        font-size: 1.1rem;
        font-weight: 500;
    }
}

/* --- ESTILO DEL LOGO --- */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px; /* Ajusta la altura según tu logo */
    width: auto;  /* Mantiene la proporción */
    transition: var(--transicion);
}

/* Reducir el logo ligeramente cuando el header se encoge al hacer scroll */
header.scrolled .logo-img {
    height: 40px;
}

/* Ajuste para móviles */
@media (max-width: 991px) {
    .logo-img {
        height: 40px;
    }
}