
/* =========================================
   RESET GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Esto evita que el padding empuje la barra hacia afuera */
}

html, body {
    overflow-x: hidden; /* Evita que la página se mueva hacia los lados */
    width: 100%;
}
/* =========================================
   NAVEGACIÓN (Escritorio)
   ========================================= */
.navbar {
    display: grid; /* Cambiado de flex a grid para control total */
    grid-template-columns: 1fr auto 1fr; /* Col 1: Logo, Col 2: Menú, Col 3: Espacio vacío */
    align-items: center;
    padding: 15px 5%; /* Ajustado para dar más espacio a los lados */
    background-color: #ffffff;
    position: fixed; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-logo {
    grid-column: 1; /* Se mantiene en la primera columna */
    justify-self: start; /* Alineado a la izquierda */
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2e4722; 
    text-transform: uppercase;
}

.nav-links {
    grid-column: 2; /* Se coloca en la columna central */
    justify-self: center; /* Centrado absoluto */
    display: flex;
    list-style: none;
    gap: 30px;
}

/* Espaciador invisible para equilibrar la Grid */
.navbar::after {
    content: "";
    grid-column: 3;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d4af37; 
}

/* --- BOTÓN HAMBURGUESA (Oculto en PC) --- */
.menu-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    grid-column: 3; /* En móvil lo moveremos */
    justify-self: end;
}

.menu-hamburger span {
    width: 28px;
    height: 3px;
    background-color: #2e4722;
    transition: 0.3s;
}

/* =========================================
   HEADER (HERO SECTION)
   ========================================= */
header#inicio {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    background-image: url('../img/bg1.png'), url('../img/nvf1.png'), url('../img/f1.jpg');
    background-position: center bottom, right bottom, center center;
    background-size: cover, auto 95vh, cover;
    background-repeat: no-repeat;
    background-attachment: scroll, scroll, fixed;
    padding-top: 70px; 
}

header#inicio::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35); 
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem; 
    text-shadow: 4px 4px 10px rgba(0,0,0,0.9);
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.hero-text p {
    font-size: 1.3rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    color: white;
}

.hero-text .date {
    font-size: 1.5rem;
    margin-top: 15px;
    font-family: 'Cinzel', serif;
}

/* --- CUENTA REGRESIVA --- */
#cuenta-regresiva {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.caja-tiempo {
    background: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 75px;
    text-align: center;
    backdrop-filter: blur(5px); 
}

.caja-tiempo span { display: block; color: white; }

#dias, #horas, #minutos, #segundos {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: bold;
}

.etiqueta { font-size: 0.7rem; text-transform: uppercase; }

.btn-header {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 20px;
}

.btn-header:hover {
    background: #cdaa6c; 
    border-color: #cdaa6c;
}
/* =========================================
   ADAPTACIÓN MÓVIL (Menos de 768px)
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        display: flex !important; /* Cambiamos a Flexbox para móviles */
        justify-content: space-between !important; /* Logo a la izq, Menú a la der */
        align-items: center !important;
        padding: 10px 5% !important; /* Espacio lateral interno */
        height: 70px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-logo {
        /* Usamos la misma fuente Playfair Display que el título principal */
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 1.6rem;
        margin: 0;
        z-index: 2001;
    }

    .menu-hamburger {
        display: flex !important; /* Aparece el botón de tres líneas */
        flex-direction: column;
        gap: 5px;
        z-index: 2001;
        cursor: pointer;
    }

    /* Estilos de las líneas del menú */
    .menu-hamburger span {
        width: 28px;
        height: 3px;
        background-color: #2e4722; /* Tu verde temático */
        transition: 0.3s ease;
    }

    /* --- Animación de la X cuando el menú está abierto --- */
    .menu-hamburger.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .menu-hamburger.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- Desplegable del Menú --- */
    .nav-links {
        display: none; /* Oculto inicialmente */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Coincide con la altura de la navbar */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 40px 0;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        z-index: 2000;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.4s ease forwards;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 1. RESET GLOBAL (Añade esto al principio de tu CSS si no lo tienes) */
* {
    box-sizing: border-box; /* Evita que el padding rompa el ancho del 100% */
    margin: 0;
    padding: 0;
}

/* 2. CONFIGURACIÓN NAVBAR */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 5%;
    background-color: #ffffff;
    position: fixed;
    width: 100%; /* Asegura que cubra todo el ancho */
    top: 0;
    left: 0;
    right: 0; /* Refuerzo para evitar la esquina blanca */
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Espaciador para PC (Centra el menú) */
.navbar::after {
    content: "";
    grid-column: 3;
}

/* 3. ADAPTACIÓN MÓVIL (Aquí está la reparación) */
@media (max-width: 768px) {
    .navbar {
        display: flex !important; /* Forzamos Flexbox para eliminar las columnas de PC */
        justify-content: space-between !important; /* Logo a la izq, Menú a la der */
        padding: 10px 5% !important;
        height: 70px;
    }

    /* ELIMINAR EL ESPACIO FANTASMA QUE LO CENTRA */
    .navbar::after {
        display: none !important; /* Esto quita el error de centrado */
    }

    .nav-logo {
        font-family: 'Playfair Display', serif; /* Tu tipografía h1 */
        font-size: 1.6rem;
        margin: 0;
    }

    .menu-hamburger {
        display: flex !important;
        margin: 0; /* Quita márgenes que lo muevan del borde */
    }
}