/* Reset */
body {
    margin: 0;
    overflow-x: hidden;
    font-family: sans-serif;
    font-size: 10px;
}

/* NUEVA CLASE PARA BLOQUEAR SCROLL DURANTE TRANSICIÓN HORIZONTAL */
body.horizontal-mode {
    overflow-y: hidden;
}

/* ===================================================== */
/* HEADER */
/* ===================================================== */
#mainHeader {
    position: fixed;
    top: -90px;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;
    z-index: 999;
    /* Centrado del menú */
    display: flex;
    justify-content: center;
    /* Transición completa, incluyendo el borde */
    transition: top .4s ease, background .3s ease, color .3s ease, border-bottom .3s ease;
    border-bottom: none; /* Sin borde por defecto */
}

#mainHeader.visible {
    top: 0;
    /* REQUISITO 1: Borde fijo en todas las secciones que no son HOME */
    border-bottom: 1px solid rgba(0,0,0,0.1); 
}

#mainHeader nav {
    display: flex;
    /* REQUISITO 2: Mayor espaciado */
    gap: 16rem; 
    /* REQUISITO 3: Limita la anchura de la navegación para corregir el click fantasma */
    width: max-content; 
}

#mainHeader nav a {
    text-decoration: none;
    color: #000;
}
.menu {
 font-family: 'Domaine Display Condensed';
 font-size: 1.2rem;
 letter-spacing: .12rem;
}


/* ===================================================== */
/* SCROLL VERTICAL (Contenedor de Home y Nosotros) */
/* ===================================================== */
#vertical-scroll {
    position: relative;
    width: 100%;
    /* Transición suave para el desplazamiento lateral */
    transition: transform 0.7s cubic-bezier(.45,.05,.1,1);
}

.panel-v {
    height: 100vh;
    padding: 8rem 4rem;
    box-sizing: border-box;
}

/* HOME = fondo oscuro */
.section-home {
    background: black;
    color: white;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;    
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.section-home img {
    width: 30rem;
    height: auto;
}

/* ABOUT = fondo blanco */
.section-about {
    background: white;
    color: #222;
}

/* ===================================================== */
/* NAVEGACIÓN HORIZONTAL */
/* ===================================================== */
#h-wrapper {
    position: fixed;
    top: 0;
    left: 100vw;
    width: 200%;
    height: 100vh;
    display: flex;
    /* CLAVE FINAL: Desactivar scroll en el contenedor padre.
       Las secciones deben manejar su propio scroll. */
    overflow-y: hidden; 
    overflow-x: hidden;
    transition: left .7s cubic-bezier(.45,.05,.1,1);
    background: white;
    z-index: 100;
}

/* Secciones horizontales */
.panel-h {
    width: 100vw;
    box-sizing: border-box;
    /* Contacto (el panel corto) se ajusta perfectamente a la altura de la ventana */
    height: 100vh; 
    padding: 8rem 4rem; 
    /* Por defecto, sin scroll para que Contacto no lo active */
    overflow-y: hidden; 
    border-left: 1px solid #ddd;
}

/* Regla específica para CARTA (el panel largo) */
#carta {
    /* CLAVE FINAL: Forzar el scroll solo en la sección CARTA */
    overflow-y: auto;
}

/* CONTACTO = verde */
.section-contacto {
    background: #A1A569;
}


/* Logo dentro de secciones */
.section-logo {
    margin-bottom: 2rem;
    cursor: pointer;
    display: block;
    color: inherit;
}

/* small helpers for body-lock */
body.locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===================================================== */
/* CONTROL DE COLORES Y LÍNEA FIJA */
/* ===================================================== */

/* 1. Header en ABOUT (Vertical) */
#mainHeader[style*="background: white"] {
    color: black;
    /* La clase .visible ya le aplica el rgba(0,0,0,0.1) */
}

/* 2. Header en CARTA (horizontal-active) */
#mainHeader.horizontal-active:not(.header-contacto) {
    background: white !important;
    color: black !important;
    /* La clase .visible ya le aplica el rgba(0,0,0,0.1) */
}

/* 3. Header en CONTACTO (header-contacto) */
#mainHeader.header-contacto {
    background: #A1A569 !important;
/*    color: white !important;*/
    /* REQUISITO 1: Asegurar que también tenga la línea, aunque sea verde */
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

/* Enlaces blancos solo cuando el header está en modo CONTACTO 
#mainHeader.header-contacto nav a {
    color: white;
}*/

/* Asegurar que el texto sea blanco en la sección HOME (transparent) y sin borde */
#mainHeader[style*="background: transparent"] {
    color: white;
    border-bottom: none !important;
}


.menu-section {
display: inline-block; 
vertical-align: top; 
width: calc(33.3333% - 4.5rem); 
padding: 0 2rem; 
letter-spacing: 0;
}

/* 1. Domaine Display Condensed - Regular */
@font-face {
    font-family: 'Domaine Display Condensed';
    src: url('fonts/domaine-display-condensed-regular.woff2') format('woff2');
    font-weight: 400; /* Regular */
    font-style: normal;
    font-display: swap; /* Muestra texto temporal mientras carga la fuente */
}

/* 2. Domaine Text - Light */
@font-face {
    font-family: 'Domaine Text';
    src: url('fonts/domaine-text-light.woff2') format('woff2');
    font-weight: 300; /* Light */
    font-style: normal;
    font-display: swap;
}

/* 3. Domaine Text - Light Italic */
@font-face {
    font-family: 'Domaine Text';
    src: url('fonts/domaine-text-light-italic.woff2') format('woff2');
    font-weight: 300; /* Light */
    font-style: italic; /* Esencial para ligar el archivo a la propiedad italic */
    font-display: swap;
}

.t1 {
font-family: 'Domaine Text';
font-size: 1.4rem;
 letter-spacing: .14rem;
}
.t2 {
font-family: 'Domaine Text';
font-size: 1rem;
 letter-spacing: .1rem;
}
.t3 {
font-family: 'Domaine Display Condensed';
font-size: 1.6rem;
 letter-spacing: .1rem;
}

.patch-e {
margin: 0 4rem
}
.about-img {
width: 22rem; 
margin: auto;
}
 .bt-more {
 background-image: url("images/down-arrow.svg");
 background-position: center center;
 background-repeat: no-repeat;
 background-size: 50% auto;
 width: 3rem;
 height: 3rem;
 color: transparent;
 background-color: transparent;
 border: none;
 outline: none;
 appearance: none;
 }
 
/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */
@media (max-width: 768px) {
    #mainHeader {
        padding: 1rem;
    }

    .panel-v,
    .panel-h {
        padding: 8rem 2rem;
    }
    .section-home img {
    width: 20rem;
}
#mainHeader nav {
    gap: 4rem; 
}
.menu {
 font-size: 1rem;
}
.t1 {
font-size: 1.2rem;
 letter-spacing: .12rem;
}
.t3 {
font-size: 1.4rem;
}
.section-logo .t1 {
font-size: 1rem;
 letter-spacing: .1rem;
}
.patch-e {
margin: 0 1rem
}
.about-img {
width: 100%; 
}
.menu-section {
display: block; 
width: 100%; 
padding: 0;
margin-bottom: 2rem;
}

}