:root {
    /* --- NUEVA PALETA DE COLORES --- */
    --azul-oscuro: #1A2C42;  /* Azul Marino Profundo */
    --beige: #F5F1E7;        /* Blanco Crema Cálido */
    --verde: #879C87;        /* Verde Sabio / Eucalipto */
    --champagne: #D4B797;    /* Champagne Común */
    --madera: #8B5E34;       /* Madera Rústica Cálida */
    --blanco: #fff;
    --rojo: #B22222;

    --fuente-nombres: 'Great Vibes', cursive;
    --fuente-numeros: 'Playfair Display', serif;
    --fuente-textos: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-textos);
    background-color: var(--azul-oscuro);
    color: var(--beige);
    text-align: center;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 150vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    background-image: url('../assets/img/foto.jpg'); 
    background-size: cover;
    background-position: center top; /* Centra los rostros arriba */
}

/* El degradado oscuro */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(26, 44, 66, 0) 10%, 
        rgba(26, 44, 66, 0.6) 50%, 
        var(--azul-oscuro) 95%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; 
    padding-bottom: 2rem; 
    width: 100%;
}

.nombres-pareja {
    font-family: var(--fuente-nombres);
    font-size: 4.8rem;
    color: var(--beige);
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    margin-bottom: 0.5rem;
}

/* --- AJUSTE DE LA FECHA Y EL 03 GRANDE --- */
.fecha-boda {
    font-family: var(--fuente-numeros);
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: var(--champagne); /* Usamos el Champagne para la fecha */
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dia-grande {
    font-size: 3rem; /* Tamaño enorme para el 03 */
    margin: 0 15px;
    line-height: 1;
    color: var(--beige); /* Resalta el 03 en blanco crema */
}

.linea {
    color: var(--champagne);
    font-weight: 300;
    margin: 0 5px;
}

.audio-player p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.audio-player audio {
    width: 90%;
    max-width: 320px;
    height: 40px;
    margin-bottom: 2rem;
    border-radius: 50px;
}

/* --- AJUSTE DEL ANILLO --- */
.decoracion-anillos img {
    width: auto; /* Permite que tome su ancho natural sin cortarse */
    height: 75px; /* Controlamos el tamaño por el alto */
    margin-bottom: 1.2rem;
    display: inline-block;
    object-fit: contain; /* Evita recortes internos */
}

.frase {
    font-size: 0.85rem;
    max-width: 350px;
    margin: 0 auto;
    letter-spacing: 1px;
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--beige);
}

/* --- SAVE THE DATE SECTION --- */
.save-the-date {
    background-color: var(--beige); /* Blanco Crema Cálido */
    color: var(--azul-oscuro);
    padding: 0 2rem 4rem 2rem;
    position: relative;
    margin-top: 2rem; 
}

/* --- AJUSTE DE LAS FLORES SOBRE LO AZUL --- */
.flores-container {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    top: -55px; /* Empuja las flores hacia arriba, invadiendo el azul */
    margin-bottom: -30px; /* Compensa el espacio que dejan abajo */
}

.flores-container2 {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    top: -10px; /* Empuja las flores hacia arriba, invadiendo el azul */
    margin-bottom: -100px; /* Compensa el espacio que dejan abajo */
}

.flores-container3 {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    top: 80px; /* Empuja las flores hacia arriba, invadiendo el azul */
    margin-bottom: -100px; /* Compensa el espacio que dejan abajo */
}

.flores-top {
    width: 400px;
}


.save-the-date h2 {
    font-family: var(--fuente-nombres);
    font-size: 4rem;
    color: var(--champagne); /* Champagne Común */
    font-weight: normal;
    margin-bottom: 1rem;
}

.mensaje {
    font-size: 0.9rem;
    max-width: 450px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.solo-faltan {
    color: var(--champagne);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- CONTADOR --- */
.contador {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.tiempo {
    display: flex;
    flex-direction: column;
    min-width: 60px;
}

.tiempo span {
    font-family: var(--fuente-numeros);
    font-size: 4rem;
    color: var(--azul-oscuro);
    line-height: 1;
    margin-bottom: 5px;
}

.tiempo small {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--azul-oscuro);
}

.separador {
    font-family: var(--fuente-numeros);
    font-size: 2.5rem;
    color: var(--azul-oscuro);
    margin-top: -25px; 
}

/* --- INVITACIÓN FINAL --- */
.invitacion-final {
    background-color: var(--beige); /* Cambiado a Blanco Crema Cálido para que todo baje del mismo color */
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
}

.img-invitacion {
    width: 100%;
    max-width: 600px;
    height: auto;
    
    margin-bottom: 3rem;
}

/* =========================================
   NUEVAS SECCIONES: CALENDARIO E ITINERARIO 
   ========================================= */

/* --- SECCIÓN CALENDARIO --- */
.calendario-section {
    background-color: var(--azul-oscuro);
    padding: 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -100px;
}

.calendario-container {
    background-color: var(--beige);
    color: var(--azul-oscuro);
    padding: 2.5rem 1.5rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 3rem;
}

.mes-titulo {
    font-family: var(--fuente-nombres);
    font-size: 4rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    color: var(--azul-oscuro);
}

.calendario-grid {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--fuente-numeros);
}

.calendario-grid th {
    font-family: var(--fuente-textos);
    font-weight: 600;
    font-size: 0.85rem;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--azul-oscuro);
    color: var(--azul-oscuro);
}

.calendario-grid td {
    padding: 12px 0;
    font-size: 1.3rem;
    text-align: center;
}

.dia-boda {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 38px; /* Centra el número verticalmente */
    border: 2px solid var(--azul-oscuro);
    border-radius: 50%; /* Crea el círculo resaltando el día */
    font-weight: bold;
}

.frase-calendario {
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.8;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--beige);
    text-align: center;
}

.caravana-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-top: 2rem;
}

.caravana-casados {
    width: 200px;
}

/* --- SECCIÓN ITINERARIO --- */
.itinerario-section {
    background-color: var(--beige);
    color: var(--azul-oscuro);
    padding: 6rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titulo-itinerario {
    font-family: var(--fuente-nombres);
    font-size: 4.5rem;
    color: var(--madera);
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.subtitulo-itinerario {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4rem;
    color: var(--azul-oscuro);
    text-align: center;
}

/* El contenedor principal de las tarjetas (NUEVO AJUSTE) */
.tarjetas-itinerario {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 650px;
    margin-bottom: 8rem; 
   margin-top: 1.5rem;
    position: relative; /* Clave para que los elementos floten respecto a esta caja */
}

/* Imagen de las flores por detrás */
.flores-fondo {
    position: absolute;
    z-index: 1; /* Al fondo */
    top: -80px; /* Sube las flores */
    right: -60px; /* Las mueve a la derecha */
    width: 280px; 
    object-fit: contain;
}

/* NUEVO: Foto Polaroid con sello */
.foto-polaroid {
    position: absolute;
    z-index: 5; 
    left: 5px; /* Ligeramente asomada hacia la izquierda del óvalo */
    bottom: -370px; /* Al usar bottom, subimos la imagen y la anclamos a la base del óvalo */
    width: 300px; /* Un pelín más grande (antes 250px) */
}

/* Logo iniciales flotante */
.logo-flotante {
    position: absolute;
    z-index: 4; /* Al frente de todo */
    right: -10px; /* Lo empuja a la izquierda, debajo del óvalo */
    bottom: -130px; /* Lo baja */
    width: 130px;
}

/* El óvalo de la ceremonia */
.tarjeta-ceremonia {
    background-color: var(--azul-oscuro);
    color: var(--beige);
    padding: 4rem 1.5rem;
    border-radius: 200px; 
    width: 55%; 
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3; 
}

/* El rectángulo de la recepción */
.tarjeta-recepcion {
    background-color: var(--madera); 
    color: var(--beige);
    padding: 4rem 1.5rem; /* AHORA SÍ, PADDING SIMÉTRICO PARA CENTRAR */
    width: 50%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2; /* Por debajo del óvalo azul */
    margin-left: -5%; /* Overlap sutil */
    margin-top: 25%; /* Escalón hacia abajo */
}

.tarjeta-titulo {
    font-family: var(--fuente-nombres);
    font-size: 3.2rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

.icono-evento {
    width: 100px; 
    height: auto;
    margin-bottom: 2rem;
    object-fit: contain;
}

.tarjeta-lugar {
    font-family: var(--fuente-textos);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tarjeta-hora {
    font-family: var(--fuente-numeros);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.btn-mapa {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.btn-azul {
    background-color: var(--beige);
    color: var(--azul-oscuro);
}

.btn-madera {
    background-color: var(--beige);
    color: var(--madera);
}

.btn-mapa:hover {
    transform: translateY(-4px); 
}

/* =========================================
   NUEVAS SECCIONES: DRESS CODE, REGALOS Y GALERÍA 
   ========================================= */

/* --- DRESS CODE --- */
.dresscode-section {
    background-color: var(--beige);
    color: var(--azul-oscuro);
    padding: 6rem 1.5rem 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.titulo-elegante {
    font-family: var(--fuente-nombres);
    font-size: 4.5rem;
    color: var(--madera);
    font-weight: normal;
    margin-bottom: 1.5rem;
}

.texto-general {
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.divisor-estrellas {
    color: var(--champagne);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.img-dresscode {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 3rem;
}

.subtitulo-colores {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--azul-oscuro);
}

.colores-paleta {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

/* Forma de arco para los colores sugeridos */
.color-arco {
    width: 65px;
    height: 65px;
    border-radius: 50px 50px 5px 5px; /* Redondeado arriba, recto abajo */
}

/* Colores llamados desde nuestras variables maestras */
.color-azul { background-color: var(--azul-oscuro); }
.color-blanco { background-color: var(--blanco); }
.color-rojo { background-color: var(--rojo); }

/* --- TRANSICIONES CON FLORES --- */
.transicion-flores {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--azul-oscuro); /* Asume que la siguiente sección es azul */
    position: relative;
    height: 0; /* Para que no ocupe espacio adicional en el layout normal */
    z-index: 10;
}

/* Cuando la siguiente sección es clara (beige) */
.transicion-flores.invertido {
    background-color: var(--beige);
}

.flores-centro {
    width: 220px;
    transform: translateY(-50%); /* Hace que la mitad de la flor quede arriba y la mitad abajo */
}

/* --- LLUVIA DE SOBRES --- */
.regalos-section {
    background-color: var(--azul-oscuro);
    color: var(--beige);
    padding: 5rem 1.5rem 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -100px; /* Para que la sección se superponga un poco con la anterior */
}

.titulo-elegante.dorado {
    color: var(--champagne);
}

.texto-general.claro {
    color: var(--beige);
}

.img-regalo {
    width: 150px;
    margin-top: 2rem;
}

/* --- GALERÍA --- */
.galeria-section {
    background-color: var(--beige);
    padding: 6rem 1rem 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.galeria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 15px; /* Espacio entre las fotos */
    position: relative;
    max-width: 600px;
    width: 100%;
}

.foto-galeria {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que las fotos se deformen */
    aspect-ratio: 3 / 4; /* Proporción de retrato (más alto que ancho) */
    border-radius: 5px; /* Pequeño borde redondeado */
}

/* Sello dorado centrado en la cuadrícula */
.sello-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Lo clava en el puro centro matemático */
    width: 120px;
    z-index: 5;
    filter: drop-shadow(0px 5px 15px rgba(0,0,0,0.3)); /* Le da una sombrita para que resalte más sobre las fotos */
}

/* =========================================
   NUEVA SECCIÓN: CONFIRMACIÓN DE ASISTENCIA 
   ========================================= */

.confirmacion-section {
    background-color: var(--azul-oscuro); 
    color: var(--beige);
    padding: 5rem 1.5rem 6rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sobre-container {
    position: relative;
    width: 100%;
    max-width: 550px; /* Tamaño máximo para que el sobre no se vea gigante en PC */
    margin-top: 2rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.img-sobre {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Botón anclado sobre la imagen del sobre */
/* .btn-confirmar {
    position: absolute;
    bottom: 15%; 
    left: 55%;
    transform: translateX(-50%);
    background-color: var(--beige);
    color: var(--madera);
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--fuente-textos);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
    white-space: nowrap; 
} */

.btn-confirmar {
    position: absolute;
    bottom: 15%; /* Este porcentaje lo ancla a la tarjeta marrón del sobre */
    left: 55%;
    transform: translateX(-50%);
    background-color: var(--beige);
    color: var(--madera);
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--fuente-textos);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
    white-space: nowrap; /* Evita que el texto del botón salte de línea */
}

.btn-confirmar:hover {
    transform: translate(-50%, -4px); /* Se eleva un poquito al pasar el mouse */
}

.texto-con-carino {
    font-family: var(--fuente-textos);
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--beige);
    margin-bottom: -10px; /* Junta un poco el texto con las firmas */
}

.firma-final {
    font-family: var(--fuente-nombres);
    font-size: 5rem;
    color: var(--champagne);
    font-weight: normal;
}

/* =========================================
   MODAL DE CONFIRMACIÓN Y MARCA DE AGUA
   ========================================= */

/* --- MARCA DE AGUA --- */
.watermark-rebesiro {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--fuente-textos);
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px); /* Efecto cristalino */
    display: flex;
    align-items: center;
}

.watermark-rebesiro span {
    font-family: var(--fuente-nombres); /* Usa la fuente cursiva elegante */
    font-size: 1.1rem;
    margin-left: 5px;
    color: #fff;
}

.watermark-rebesiro:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    transform: scale(1.05);
}

/* --- MODAL DE CONFIRMACIÓN --- */
.modal-oculto {
    display: none; /* Se mantiene oculto hasta que JS lo active */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 44, 66, 0.85); /* Azul oscuro semitransparente */
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background-color: var(--beige);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    animation: aparecer 0.3s ease-out; /* Animación de zoom suave */
}

@keyframes aparecer {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cerrar-modal {
    position: absolute;
    top: 10px;
    right: 18px;
    color: var(--azul-oscuro);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cerrar-modal:hover {
    color: var(--madera);
}

.modal-contenido h2 {
    font-family: var(--fuente-textos);
    font-size: 1.1rem;
    color: var(--azul-oscuro);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.img-gato {
    width: 100%;
    border-radius: 10px;
    max-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   RESPONSIVE UNIFICADO PARA MÓVILES
   ========================================= */
@media (max-width: 480px) {
    /* Textos Generales */
    .nombres-pareja { font-size: 3.8rem; }
    .fecha-boda { font-size: 1rem; }
    .dia-grande { font-size: 2.5rem; }
    .tiempo span { font-size: 2.5rem; }
    .separador { font-size: 2rem; margin-top: -20px; }
    .save-the-date h2 { font-size: 3.5rem; }
    .tiempo { min-width: 50px; }
    .flores-top { width: 200px; }
    .flores-container { top: -45px; }

    /* Calendario e Itinerario */
    .mes-titulo { font-size: 3.5rem; }
    .calendario-grid td { font-size: 1.1rem; padding: 10px 0; }
    .titulo-itinerario { font-size: 3.8rem; }
    
    /* CORRECCIÓN: Óvalo y rectángulo de Itinerario */
    .tarjeta-ceremonia { 
        width: 60%; 
        padding: 3rem 1rem 6rem 1rem; /* Más padding abajo para que la foto no tape el botón */
    }
    .tarjeta-recepcion { 
        width: 55%; /* Un poco más ancha para que no corte "Barquisimeto" */
        padding: 3rem 1rem; 
        margin-top: 25%; 
        margin-left: -10%; 
    }
    .tarjeta-titulo { font-size: 2.5rem; }
    .tarjeta-hora { font-size: 1.5rem; }
    .icono-evento { width: 80px; }
    .tarjeta-lugar { font-size: 0.75rem; } /* Texto un poco más pequeño para que quepa bien */

    /* CORRECCIÓN: Imágenes flotantes Itinerario */
    .flores-fondo { top: -40px; right: -30px; width: 170px; }
    .logo-flotante { right: 10px; bottom: -80px; width: 100px; }
    .foto-polaroid { 
        bottom: -70px; /* Sube la imagen a la base del óvalo */
        left: -15px; /* La alinea a la izquierda */
        width: 170px; 
    } 
    
    /* Dress Code y Regalos */
    .titulo-elegante { font-size: 3.8rem; }
    .texto-general { font-size: 0.8rem; }
    .color-arco { width: 45px; height: 45px; }
    .flores-centro { width: 180px; }
    .img-regalo { width: 120px; }
    .galeria-grid { gap: 10px; }
    .sello-central { width: 90px; } 

    /* CORRECCIÓN: Botón Confirmar */
    .btn-confirmar {
        padding: 10px 25px;
        font-size: 0.8rem;
        bottom: 6%; /* Lo bajamos lo suficiente para que no pise el texto de "Te esperamos" */
    }
    .firma-final { font-size: 4rem; }
}

/* =========================================
   AJUSTE ESPECÍFICO PARA TELÉFONOS PEQUEÑOS
   ========================================= */
@media (max-width: 390px) {
    /* Hacemos la foto polaroid más pequeña para que no estorbe */
    .foto-polaroid { 
        width: 140px; 
        bottom: -55px; /* Reajustamos el anclaje a la nueva medida */
        left: -10px; 
    } 

    /* Ajustamos también el óvalo azul para compensar la nueva foto */
    .tarjeta-ceremonia { 
        padding: 3rem 1rem 5rem 1rem; 
    }
    
    /* Separamos un poco más la tarjeta marrón para dar aire */
    .tarjeta-recepcion { 
        margin-top: 30%; 
    }

    /* Achicamos un poquitito los botones en pantallas muy pequeñas */
    .btn-mapa, .btn-confirmar {
        font-size: 0.75rem;
        padding: 10px 20px;
    }
}