html {
    scroll-behavior: smooth;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background-color: #f0f3f7; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
.hidden { display: none !important; }

.pantalla-acceso-inicial { display: flex; justify-content: center; align-items: center; width: 100vw; height: 100vh; position: fixed; z-index: 100; background-color: #082447; }
.tarjeta-ingreso-directa { background: #fff; padding: 40px; border-radius: 15px; text-align: center; max-width: 400px; width: 90%; border: 1px solid #e6e2d8; }
.titulo-boda { font-family: 'Alex Brush', cursive; font-size: 3rem; margin-bottom: 10px; color: #b88b5c;}
.formulario-acceso { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
input { padding: 12px; border: 1px solid #ccc; border-radius: 8px; text-align: center; }
button { padding: 12px; background-color: #976118; color: #fff; border: none; border-radius: 8px; cursor: pointer; }

/* Pantalla del sobre con pointer-events en none cuando está oculta para que no estorbe */
.pantalla-sobre { display: flex; justify-content: center; align-items: center; width: 100vw; height: 100vh; position: fixed; top: 0; z-index: 90; cursor: pointer; }
.pantalla-sobre.hidden { pointer-events: none; }

.contenedor-principal-sobre { width: 90%; max-width: 600px; text-align: center; position: relative; }
.nombres-solapa { position: absolute; top: 15%; width: 100%; z-index: 10; }
.sub-invitado { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.7rem; letter-spacing: 2px; color: #6e5b38; margin-bottom: 2px; }
.nombre-arriba, .nombre-abajo { font-family: 'Alex Brush', cursive; font-size: 2.1rem; color: #ab8763; margin: 0; line-height: 1.1; }
.nombre-separador { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: #ab8763; margin: 0; }
.pases-invitado { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; color: #555; font-style: italic; margin-top: 5px; }

.img-sobre { width: 100%; display: block; }
.footer-sobre { margin-top: 15px; }
.instruccion-abrir { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.65rem; color: #6e5b38; letter-spacing: 2px; text-transform: uppercase; animation: parpadeo 1.5s infinite; }

@keyframes parpadeo { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }

/* ==========================================
   MENÚ FLOTANTE Y HAMBURGUESA (MÓVIL / PC)
   ========================================== */
.menu-flotante {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: rgba(247, 245, 240, 0.98);
    padding: 15px 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #dcd6c8;
}

/* Botón de hamburguesa visible en celulares */
.boton-hamburguesa {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.boton-hamburguesa span {
    width: 100%;
    height: 3px;
    background-color: #6e5b38;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Contenedor de enlaces (oculto por defecto en móvil, se despliega con la clase .activo) */
.enlaces-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: rgba(255, 253, 250, 0.98);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    flex-direction: column;
    gap: 15px;
    text-align: right;
    min-width: 180px;
    border: 1px solid #dcd6c8;
}

.enlaces-menu.activo {
    display: flex;
}

.enlaces-menu a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #6e5b38;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s;
    cursor: pointer;
}

.enlaces-menu a:hover {
    color: #b08d57;
}

/* Quitamos position relative para que no oculte el menú */
.invitacion-contenido { 
    width: 100% !important; 
    max-width: 100% !important; 
    padding-top: 50px; 
}
.seccion-png { 
    width: 100% !important; 
    position: relative; 
}

.img-pagina { 
    width: 100% !important; 
    height: auto;
    display: block; 
    object-fit: cover;
}

.portada-invitacion { 
    position: relative !important; 
    width: 100% !important; 
    display: block;
}

/* ==========================================
   PORTADA Y TEXTOS ADAPTADOS PARA MÓVIL
   ========================================== */
.nombres-principales-animados {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    width: 82% !important;
    z-index: 10 !important;
    animation: aparecerConZoom 1.5s ease-out forwards !important;
}

.sub-boda { 
    font-family: 'EB Garamond', serif; 
    font-size: clamp(0.9rem, 3.5vw, 1.4rem); /* Se adapta fluido para celular */
    letter-spacing: 2px; 
    color: #7c5734; 
    display: block; 
    margin-bottom: 8px; 
}

.nombres-pareja { 
    font-family: 'Alex Brush', 'Great Vibes', cursive; 
    font-size: clamp(1.6rem, 5vw, 2.4rem); 
    color: #7c5734; 
    margin: 0; 
    line-height: 1.15; 
    word-break: keep-all;
}

.fecha-boda { 
    font-family: 'EB Garamond', serif; 
    font-size: clamp(0.9rem, 3.5vw, 1.4rem); /* Se adapta fluido para celular */
    letter-spacing: 2px; 
    color: #7c5734; 
    display: block; 
    margin-top: 8px; 
}

@keyframes aparecerConZoom {
    0% {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.reloj-cuenta-regresiva { position: absolute; top: 65%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 10px; z-index: 10; }
.numero-tiempo { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: #2c2c2c; }
.segundos-cafe { color: #8c7344; }
.etiqueta-tiempo { font-size: 0.5rem; display: block; }

/* ==========================================
   MEDIA QUERY PARA COMPUTADORAS (PANTALLAS GRANDES)
   ========================================== */
@media (min-width: 768px) {
    .boton-hamburguesa {
        display: none !important;
    }
    
    .enlaces-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: transparent;
        box-shadow: none;
        border: none;
        gap: 30px;
        padding: 0;
        min-width: auto;
    }

    .sub-boda {
        font-size: 29px;
        margin-bottom: 25px;
    }

    .fecha-boda {
        font-size: 29px;
        margin-top: 25px;
    }
}