/* --- 1. VARIABLES Y CONFIGURACIÓN --- */
:root {
    --dorado: #b0935a;
    --texto: #2c2c2c;
    --texto-light: #ffffff;
    --texto-suave: #666666;
    --fondo: #ffffff;
    --beige-claro: #fcfaf7;
}

* { 
    max-width: 100vw;
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita cualquier desplazamiento lateral accidental */
}

/* --- 2. SECCIONES Y TÍTULOS --- */
section {
    padding: 60px 20px;
    max-width: 1000px; /* Aumentado ligeramente para mejor aire en desktop */
    margin: auto;
    text-align: center;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--dorado);
    margin-bottom: 30px;
}

.section-title-story {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--dorado);
    margin-bottom: 20px;
}

.section-title-mini {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--texto-suave);
    margin-bottom: 25px;
    font-weight: 400;
}

/* --- 3. HERO (PORTADA) --- */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh; /* Altura optimizada para navegadores móviles */
    width: 100%;    /* Asegura el 100% del ancho */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('https://images.pexels.com/photos/33815179/pexels-photo-33815179.jpeg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .reveal {
    width: 100%;
    padding: 0 20px; /* Margen interno para que el texto no toque los bordes en móvil */
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.5rem, 12vw, 6rem);
    color: var(--dorado);
    margin: 10px 0;
    font-weight: 400;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2); 
}

.subtitle {
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 1.2rem;
    color: #ffffff; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* --- LÍNEAS ASIMÉTRICAS EN LA FECHA --- */
.date-header {
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 1.2rem;
    color: #ffffff; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    
    position: relative;
    display: inline-block;
    padding: 15px 0;
    margin-top: 10px;
}

/* Línea Superior (Izquierda al Centro) */
.date-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 1.5px;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Línea Inferior (Centro a la Derecha) */
.date-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 1.5px;
    background-color: rgba(255, 255, 255, 0.9);
}

/* --- 4. NUESTRA HISTORIA --- */
.nuestra-historia {
    background-color: #ffffff;
    padding: 60px 20px 30px 20px;
    overflow: hidden;
}

.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.foto-columna img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 15px 15px 0px var(--beige-claro);
}

.corazon-animado {
    display: inline-block;
    font-size: 2rem;
    color: var(--dorado);
    animation: pulsoCorazon 2s infinite ease-in-out;
}

@keyframes pulsoCorazon {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.mensaje-texto {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--texto-suave);
    margin-bottom: 30px;
}

.firma {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--dorado);
}

/* --- 5. PASES / CUPOS --- */
.pases-invitacion {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    overflow: hidden; /* IMPORTANTE: Corta cualquier desbordamiento de la animación */
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.pases-container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto; /* Centrado mecánico */
    background-color: var(--beige-claro);
    border: 1px solid rgba(176, 147, 90, 0.15);
    padding: 50px 40px;
    box-sizing: border-box; /* Evita que el padding sume ancho al 100% */
}

.nombre-invitado-final {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--texto);
    margin-bottom: 5px;
}

.mensaje-invitado {
    max-width: 390px;
    margin: 14px auto 24px;
    color: var(--texto-suave);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.55;
}

.numero-cupos {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    color: var(--dorado);
    line-height: 0.8;
    font-style: italic;
}

/* --- ESTILOS ELEGANTES PARA PASES --- */

.nombre-invitado-label {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.65rem;
    color: var(--dorado);
}

.texto-cupos {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.75rem;
    color: var(--dorado);
    font-weight: bold;
}

.nota-pases {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--texto-suave);
    border-top: 1px solid rgba(176, 147, 90, 0.2);
    padding-top: 20px;
}

.btn-confirmar {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 35px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background-color: var(--dorado);
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(176, 147, 90, 0.2);
}

.btn-confirmar:hover {
    background: #967d4a; /* Cambia a un tono más oscuro */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* --- 6. DÓNDE Y CUÁNDO --- */
.info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra horizontalmente en desktop */
    align-items: center;     /* Centra verticalmente si es necesario */
    gap: 30px;
    width: 100%;             /* Ocupa todo el ancho */
    max-width: 100%;
    margin: 0 auto;          /* Centra el contenedor padre */
    padding: 20px 0;         /* Quitamos padding lateral que pueda empujar */
    box-sizing: border-box;
}

.btn-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dorado);
    text-decoration: none;
    border: 1px solid var(--dorado);
    
    /* Usamos padding flexible */
    padding: 12px 20px; 
    display: inline-block;
    
    /* Seguridad para móviles */
    max-width: 100%;       /* No deja que sea más ancho que su caja */
    box-sizing: border-box; /* Incluye el padding en el ancho total */
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    line-height: 1.4;
}

.demo-action:hover {
    background-color: var(--dorado);
    color: #fff;
}

.card {
    background-color: var(--beige-claro);
    padding: 40px 30px;
    border: 1px solid rgba(176, 147, 90, 0.15);
    width: 100%;
    max-width: 350px;
    /* IMPORTANTE: Reset de márgenes para evitar el desplazamiento lateral */
    margin: 0 auto; 
    box-sizing: border-box;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px); /* Pequeña elevación al pasar el mouse */
}

/* Títulos de las tarjetas (Ceremonia / Recepción) */
.card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--texto);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 400;
}

/* Párrafos (Horarios y Lugares) */
.card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--texto-suave);
    line-height: 1.8;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.btn-link:hover {
    background-color: var(--dorado);
    color: white;
}

.btn-link:hover { opacity: 0.6; letter-spacing: 3px; }

/* --- 7. PADRES --- */
.nuestros-padres {
    padding: 60px 20px;
    text-align: center;
}

.padres-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.padres-columna {
    flex: 1;
    max-width: 300px;
}

.corazon-animado-mini {
    color: var(--dorado);
    font-size: 1.2rem;
    animation: pulsoCorazon 2s infinite ease-in-out;
}

/* Etiqueta: Padres de la Novia / Novio */
.familia-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px; /* Reducimos ligeramente de 4px a 3px para evitar que se amontone */
    color: var(--dorado);
    margin-bottom: 20px;
    font-weight: 500;
    display: block; /* Asegura que ocupe su propia línea */
    width: 100%;    /* Evita que el contenedor colapse */
}

/* Nombres de los padres */
.nombre-padre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--texto);
    margin: 8px 0;
    
}

/* Divisor central */
.padres-divisor {
    color: var(--dorado);
    font-size: 1.2rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
}

/* --- 8. BANNER Y CONTADOR --- */
.banner-separador {
    position: relative;
    width: 100%; /* Cambiado de 100vw a 100% para evitar desbordamiento */
    max-width: 100%;
    height: 60vh;
    margin: 60px 0; /* Espaciado arriba y abajo, pero 0 a los lados */
    
    background-image: url('https://images.pexels.com/photos/33815179/pexels-photo-33815179.jpeg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Efecto Parallax: se desactiva en móvil automáticamente más abajo */
    background-attachment: fixed; 
    
    overflow: hidden;
    z-index: 1;
}

.banner-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-grid {
    display: flex;
    gap: 40px;
}

.countdown-item span {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    color: #ffffff;
    display: block;
    line-height: 1;
}

.countdown-item small {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--dorado);
}

.contador-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 5px;
    text-transform: lowercase;
    
    /* SOLUCIÓN AL COLOR */
    color: #ffffff; /* O puedes usar var(--texto-light) */
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5); /* Sombra para legibilidad extra */
}

/* --- 9. PADRINOS (CAROUSEL) --- */
.padrinos {
    text-align: center;
    padding: 60px 20px;
}

/* Título secundario: "Personas especiales..." */
.padrinos-intro {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--texto-suave);
    margin-bottom: 40px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: hidden; /* Cambiamos auto por hidden para controlar el salto por JS */
    scroll-behavior: smooth;
    padding: 20px 0;
    white-space: nowrap; /* Evita que las tarjetas se bajen a otra línea */
}

.carousel-track::-webkit-scrollbar { display: none; }

.padrino-card {
    background-color: var(--beige-claro);
    padding: 40px 20px;
    border: 1px solid rgba(176, 147, 90, 0.1);
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Tipo de Padrino: Velación, Anillos, etc. */
.padrino-tipo {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--dorado);
    margin: 15px 0;
    font-weight: 500;
}

.padrino-nombre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--texto);
    line-height: 1.3;
    margin-bottom: 20px;
}

.padrino-card:hover { transform: translateY(-5px); }

.rama-padrino {
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

.padrino-linea {
    width: 100px;
    height: 1px;
    /* Gradiente que se desvanece a los lados */
    background: linear-gradient(to right, transparent, var(--dorado), transparent);
    margin: 10px auto; /* El "auto" la centra horizontalmente */
    opacity: 0.8;
}

/* --- ESTILO DE NAVEGACIÓN DEL CARRUSEL --- */

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-nav button {
    background: transparent;
    border: 1px solid var(--dorado);
    color: var(--dorado);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

/* Efecto al pasar el mouse */
.carousel-nav button:hover {
    background-color: var(--dorado);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(176, 147, 90, 0.3);
}

/* Efecto al hacer clic */
.carousel-nav button:active {
    transform: scale(0.95);
}

/* --- 10. REGALOS --- */
.regalos {
    padding: 60px 20px;
    text-align: center;
}

.regalos-mensaje {
    max-width: 700px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra la línea y el texto internamente */
}

.regalos-mensaje p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--texto-suave);
    line-height: 1.6;
    margin-bottom: 25px;
}

.regalos-mensaje p::before {
    content: "“";
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--dorado);
    opacity: 0.2;
    position: absolute;
    left: -20px;
    top: -30px;
}

.regalos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.regalo-card {
    background-color: var(--beige-claro);
    padding: 40px 30px;
    border: 1px solid rgba(176, 147, 90, 0.15);
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.regalo-card:hover { transform: translateY(-5px); }

.regalo-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--texto);
    margin-bottom: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.regalo-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--texto-suave);
    line-height: 1.6;
    margin-bottom: 15px;
}

.evento-id, .datos-bancarios {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem !important;
    color: var(--dorado) !important;
    letter-spacing: 1px;
}

.evento-id strong, .datos-bancarios strong {
    font-size: 1.1rem;
    display: block;
    margin-top: 5px;
    color: var(--texto);
}

/* --- 11. VESTIMENTA --- */
.codigo-vestimenta {
    padding: 60px 20px;
    text-align: center;
}

.vestimenta-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--beige-claro);
    padding: 40px 30px;
    border: 1px solid rgba(176, 147, 90, 0.15);
}

/* Título de la Etiqueta (Ej. Etiqueta Formal) */
.vestimenta-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--texto);
    margin-bottom: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Detalles Damas/Caballeros */
.vestimenta-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--texto-suave);
    margin: 10px 0;
    letter-spacing: 1px;
}

.paleta-colores {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.vestimenta-info p strong {
    color: var(--dorado);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* Sección de Colores */
.vestimenta-colores {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nota-colores {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--dorado);
    margin: 20px 0;
}

.paleta-colores {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.color-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.excluyendo-blanco {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--texto-suave);
    margin-top: 10px;
}

/* --- SOLO ADULTOS --- */

.no-ninos {
    padding: 70px 20px;
    text-align: center;
}

.no-ninos-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--beige-claro);
    padding: 50px 35px;
    border: 1px solid rgba(176, 147, 90, 0.15);
}

.icono-no-ninos {
    font-size: 3rem;
    margin-bottom: 20px;
}

.mensaje-no-ninos {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--texto-suave);
    margin-bottom: 15px;
    font-style: italic;
}

.nota-no-ninos {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--dorado);
    margin-top: 20px;
    font-weight: 600;
}

/* --- 12. ITINERARIO --- */
.itinerario {
    padding: 80px 20px;
    text-align: center;
}

/* Frase introductoria */
.itinerario-intro {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--texto-suave);
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px; /* Ajustado para móviles */
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--dorado), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 60px; /* Espacio para la línea y el punto */
    text-align: left;
    
    /* Estado inicial para la animación */
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px; /* Centrado sobre la línea de 20px */
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border: 2px solid var(--dorado);
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.3s;
}

/* Animación cuando la sección está activa */
.itinerario.active .timeline-item {
    opacity: 1;
    transform: translateX(0);
}

/* Efecto escalonado (Staggered Animation) */
.itinerario.active .timeline-item:nth-child(1) { transition-delay: 0.2s; }
.itinerario.active .timeline-item:nth-child(2) { transition-delay: 0.4s; }
.itinerario.active .timeline-item:nth-child(3) { transition-delay: 0.6s; }
.itinerario.active .timeline-item:nth-child(4) { transition-delay: 0.8s; }
.itinerario.active .timeline-item:nth-child(5) { transition-delay: 1.0s; }
.itinerario.active .timeline-item:nth-child(6) { transition-delay: 1.2s; }

/* Hover en los items */
.timeline-item:hover::before {
    background-color: var(--dorado);
    box-shadow: 0 0 10px var(--dorado);
}

.timeline-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--texto);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.timeline-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dorado);
    letter-spacing: 3px;
    margin: 0;
}

/*----------GALERIA---------------*/

.galeria-intro {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--texto-suave);
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.galeria-stack {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--beige-claro);
}

.stack-container {
    position: relative;
    max-width: 900px;
    height: 600px; /* Altura fija para que las fotos floten */
    margin: 40px auto;
}

.foto-stack {
    position: absolute;
    background: white;
    padding: 12px 12px 40px 12px; /* Espacio abajo tipo Polaroid */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    width: 250px;
}

/* Posiciones y rotaciones aleatorias para el look "desordenado elegante" */
.f1 { top: 0; left: 10%; transform: rotate(-5deg); z-index: 1; }
.f2 { top: 50px; right: 15%; transform: rotate(3deg); z-index: 2; }
.f3 { bottom: 80px; left: 20%; transform: rotate(2deg); z-index: 3; }
.f4 { bottom: 20px; right: 25%; transform: rotate(-3deg); z-index: 4; }
.f5 { top: 190px; left: 39%; transform: rotate(-1deg); z-index: 5; }

.foto-stack img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.foto-stack:hover {
    z-index: 10;
    transform: scale(1.1) rotate(0deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* --- HOSPEDAJE --- */

.hospedaje {
    padding: 80px 20px;
    text-align: center;
}

.hospedaje-intro {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--texto-suave);
    margin-bottom: 40px;
}

.hospedaje-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.hotel-card {
    background-color: var(--beige-claro);
    border: 1px solid rgba(176,147,90,0.15);
    padding: 35px 25px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.hotel-card:hover {
    transform: translateY(-5px);
}

.hotel-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--texto);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 400;
}

.hotel-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--texto-suave);
    line-height: 1.8;
    margin-bottom: 25px;
    letter-spacing: 1px;
}


/* --- 14. RSVP / FOOTER --- */
/* --- SECCIÓN RSVP --- */
#rsvp {
    padding: 100px 20px;
    background-color: var(--beige-oscuro); /* Un tono ligeramente distinto para separar */
    text-align: center;
}

.rsvp-box {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
    border: 1px solid rgba(176, 147, 90, 0.2);
}

#rsvp p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--texto-suave);
    margin-bottom: 30px;
}

/* Formulario de demostración */
.demo-mode-note {
    padding: 12px 14px;
    border-left: 3px solid var(--dorado);
    background: #f8f5ed;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.78rem !important;
    font-style: normal !important;
    line-height: 1.6;
    text-align: left;
}

.form-group label {
    color: var(--texto);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-align: left;
}

.demo-feedback {
    margin: 0 !important;
    padding: 12px 14px;
    border: 1px solid rgba(176, 147, 90, 0.35);
    background: #f8f5ed;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.8rem !important;
    font-style: normal !important;
    line-height: 1.6;
    text-align: left;
}

/* Inputs y Selects */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 0; /* Estilo minimalista cuadrado */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background-color: #fcfcfc;
    color: var(--texto);
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.field-hint {
    margin-top: -12px;
    color: var(--texto-suave);
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    line-height: 1.6;
    text-align: left;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dorado);
}

/* Botón Dorado */
.btn-gold {
    background-color: var(--dorado);
    color: white;
    border: none;
    padding: 18px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-gold:hover {
    background: #967d4a; /* Cambia a un tono más oscuro */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.separador-iniciales {
    display: flex; align-items: center; justify-content: center; gap: 20px; margin: 60px auto;
}

.linea { height: 1px; flex-grow: 1; background-color: var(--dorado); opacity: 0.3; }

.iniciales { font-family: 'Great Vibes', cursive; font-size: 2rem; color: var(--dorado); }

/* --- 15. ANIMACIONES (CORREGIDAS) --- */
.reveal, .reveal-left, .reveal-right { 
    opacity: 0; 
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
    /* Evita parpadeos en algunos navegadores móviles */
    will-change: transform, opacity; 
}

.reveal { 
    transform: translateY(30px); 
}

.reveal-left { 
    transform: translateX(-30px); /* Reducido de -60px a -30px */
}

.reveal-right { 
    transform: translateX(30px);  /* Reducido de 60px a 30px */
}

.reveal.active, 
.reveal-left.active, 
.reveal-right.active { 
    opacity: 1; 
    transform: translate(0); 
}

/* --- ESTILOS FOOTER INTEGRADO --- */
.main-footer {
    /* Degradado sutil de beige oscuro a crema */
    background: linear-gradient(to bottom, #f4eee0, #faf9f6); 
    color: var(--texto);
    padding: 80px 20px 40px;
    text-align: center;
    border-top: 1px solid rgba(176, 147, 90, 0.2); /* Línea dorada tenue al inicio */
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--dorado);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--texto-suave);
    margin-bottom: 35px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 16px;
}

.footer-socials span {
    color: var(--dorado);
    font-size: 1.4rem;
}

.footer-pending-note {
    margin: 0 0 50px;
    color: var(--texto-suave);
    font-family: 'Montserrat', sans-serif;
    font-size: .7rem;
    line-height: 1.6;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--dorado), transparent);
    margin: 0 auto 35px;
}

.footer-bottom {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: var(--texto-suave);
    line-height: 1.8;
}

.footer-dev {
    margin-top: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--dorado);
}

.footer-socials span {
    border: 1px solid rgba(176, 147, 90, 0.3);
    padding: 12px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Avisos que explican las acciones de esta previsualización */
.demo-toast {
    position: fixed;
    z-index: 10000;
    right: 20px;
    bottom: 20px;
    width: min(420px, calc(100% - 40px));
    padding: 16px 18px;
    color: #fff;
    background: #3f382f;
    border-left: 4px solid var(--dorado);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem;
    line-height: 1.55;
}

.demo-toast[hidden], .demo-feedback[hidden] { display: none; }


/* -------------------------------------------------
   16. AJUSTES MÓVILES (SOLUCIÓN AL PROBLEMA)
   -------------------------------------------------
*/
@media (max-width: 768px) {

    .hero {
        width: 100%;
        background-attachment: scroll; /* Mejora el rendimiento en móviles */
    }

    .date-header {
        font-size: 1rem;
        letter-spacing: 3px; /* Menor espaciado para que quepa en pantallas pequeñas */
    }

    section { padding: 40px 20px; }
    h1 { font-size: 3.2rem; }
    
    .historia-grid { grid-template-columns: 1fr; gap: 30px; }
    .foto-columna { order: 2; width: 100%; }
    .foto-columna img { box-shadow: 10px 10px 0px var(--beige-claro); }

    /* Importante: Desactivar fixed en móvil para evitar saltos de imagen */
    .banner-separador {
        height: 50vh;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        /* Desactivamos fixed en móvil porque causa huecos blancos al hacer scroll rápido */
        background-attachment: scroll; 
    }
    .countdown-grid { gap: 15px; }
    .countdown-item span { font-size: 2.2rem; }

    .nombre-invitado-label {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }

    .pases-invitacion {
        padding: 40px 15px;
    }
    
    .texto-cupos {
        font-size: 0.7rem;
        letter-spacing: 4px;
    }
    
    .nota-pases {
        width: 100%;
        max-width: 100%;
    }

    .padres-grid { flex-direction: column; gap: 30px; }
    
    .carousel-nav button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Forzamos a que el track no corte las tarjetas de forma extraña */
    .carousel-track {
        display: flex;
        gap: 20px;
        padding: 20px 0; /* Quitamos el padding lateral para que el snap funcione mejor */
        overflow-x: auto; /* Permitimos scroll táctil */
        scroll-snap-type: x mandatory; /* Fuerza el centrado */
        -webkit-overflow-scrolling: touch;
    }

    .padrino-card {
        min-width: 85%; /* Dejamos un 15% para que se asomen ligeramente las de los lados (opcional) */
        /* Si quieres que se vea TOTALMENTE sola, usa: min-width: 100%; */
        flex-shrink: 0;
        scroll-snap-align: center; /* Cada tarjeta se imanta al centro */
        margin: 0 10px; /* Espaciado uniforme */
    }

    .padrino-nombre {
        font-size: 1.3rem;
    }
    
    .padrino-tipo {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }

    .padrinos-intro {
        font-size: 1.1rem;
    }
    
    .carousel-container {
        overflow: hidden; /* Evita que se vea la siguiente tarjeta a los lados */
    }

    .pases-container {
        padding: 40px 20px;
        /* En móviles pequeños, aseguramos que no haya traslación residual */
        transform: none !important; 
        opacity: 1 !important;
        /* Si prefieres mantener la animación en móvil, comenta las 2 líneas de arriba 
           y el translateX(30px) de la sección 1 será suficiente */
    }
    .nombre-invitado-final { font-size: 2.5rem; }

    .timeline { padding-left: 20px; }
    .timeline::before { left: 15px; }
    .timeline-item { padding-left: 45px; }
    .timeline-item::before { left: 9px; }

    .info-grid {
        flex-direction: column; /* Apila las tarjetas */
        padding: 10px 15px;      /* Espacio mínimo a los lados */
        gap: 25px;
    }

    .card {
        /* Forzamos que la tarjeta sea simétrica */
        width: 100%; 
        max-width: 100%; 
        margin-left: 0;
        margin-right: 0;
        padding: 30px 20px;
    }

    .card h3 {
        font-size: 1.5rem;
    }

    .btn-link {
        /* Aseguramos que el botón no empuje la caja */
        display: inline-block;
        width: auto;
        max-width: 100%;
    }

    .padres-grid {
        flex-direction: column;
        gap: 30px;
    }

    .padres-divisor {
        transform: none; 
        margin: 15px 0;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .padres-divisor::before,
    .padres-divisor::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(176, 147, 90, 0.3), transparent);
        margin: 0 15px;
        align-self: center;
    }

    .nombre-padre {
        font-size: 1.3rem;
    }
    
    .padres-columna {
        max-width: 100%; /* Permitimos que use todo el ancho del celular */
        padding: 0 10px;
    }

    .familia-label {
        font-size: 0.65rem;
        letter-spacing: 2px; /* Espaciado más conservador en móvil */
        margin-bottom: 10px;
        line-height: 1.4;    /* Da espacio vertical si el texto llegara a romperse en dos líneas */
    }

    .regalos-grid {
        flex-direction: column;
        align-items: center;
    }

    .regalo-card {
        width: 100%;
        max-width: 100%;
        margin: 0; /* Asegura que no se desplace a la derecha */
    }

    .regalos-mensaje p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .vestimenta-container {
        padding: 30px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .vestimenta-info h3 {
        font-size: 1.6rem;
    }

    .excluyendo-blanco {
        font-size: 1.1rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .timeline-content p {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .itinerario-intro {
        font-size: 1.1rem;
    }

    .galeria-intro {
        font-size: 1.1rem;
    }

    .stack-container {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .foto-stack {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: rotate(0deg) !important;
        width: 90%;
    }

    /* Ajuste específico para el formulario RSVP */
    .form-group input, 
    .form-group select,
    .form-group textarea {
        font-size: 0.85rem !important;
        padding: 12px;
    }

    .btn-gold {
        font-size: 0.75rem !important;
        padding: 15px;
    }

    /* Títulos principales (Donde & Cuándo, RSVP, etc) */
    .section-title {
        font-size: 1.5rem !important; /* Bajamos de 2.5rem a 1.8rem */
        letter-spacing: 4px;
    }

    .main-footer {
        padding: 60px 20px 30px;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }

    .no-ninos {
    padding: 50px 20px;
}

    .no-ninos-container {
        width: 100%;
        padding: 35px 20px;
        box-sizing: border-box;
    }

    .icono-no-ninos {
        font-size: 2.5rem;
    }

    .mensaje-no-ninos {
        font-size: 1.15rem;
        line-height: 1.7;
    }

    .nota-no-ninos {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .hospedaje {
    padding: 50px 20px;
    }

    .hospedaje-intro {
        font-size: 1.1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hospedaje-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hotel-card {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
    }

    .hotel-card h3 {
        font-size: 1.5rem;
    }

    .hotel-card p {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
    .reveal, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}


:focus-visible {
    outline: 3px solid var(--dorado);
    outline-offset: 3px;
}
