/* ========================================================= */
/* 🛠️ Carga de la fuente Callisten.woff (AÑADIDO) */
/* ========================================================= */
@font-face {
    font-family: 'Callisten';
    /* ⚠️ Ajusta la ruta si 'Callisten.woff' no está en el directorio raíz. 
       Ej: url('fonts/Callisten.woff') format('woff'); */
    src: url('font/Callisten.woff') format('woff'); 
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Italianno&family=Parisienne&family=Pinyon+Script&family=Tangerine:wght@400;700&family=Cormorant+Garamond:wght@400;600;700&family=Lora:ital,wght@0,400..700;1,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Open+Sans:wght@400&family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #1c1c1c;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}

/* --- Contenedor tipo Franja Vertical Responsiva para Escritorio --- */
.invitation-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fafafa;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* <<<< CAMBIO CLAVE 2: Clase añadida por JS para mostrar cuando el sobre esté listo >>>> */
body.loaded {
    visibility: visible;
    opacity: 1;
}


/* ========================================================= */
/* 🎁 OVERLAY DE APERTURA (SOBRE) - CON IMAGEN DE TEXTURA */
/* ========================================================= */
#overlay-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 1000; 
    transition: opacity 1.5s ease-out, transform 0.3s ease-out;
    pointer-events: auto; 
    cursor: pointer;
    /* <<<< CAMBIO CLAVE 3: FONDO TRANSPARENTE para que se vea el fondo de la página al abrir >>>>> */
    background-color: transparent; 
}

/* La división del sobre (mitad izquierda y derecha) */
.overlay-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    
    background-image: url('sobre.jpg');
    background-size: 200% 100%;
    background-repeat: no-repeat;
    
    transition: transform 1.5s ease-in-out;
    /* AÑADIR UN FONDO SÓLIDO POR SI LA IMAGEN DE TEXTURA TARDA EN CARGAR */
    background-color: #ffffff; 
    pointer-events: none;
}

.left-half {
    left: 0;
    background-position: left center;
}

.right-half {
    right: 0;
    background-position: right center;
}

/* ❌ ELIMINAMOS el texto "TOCA PARA ABRIR" */
.open-instruction {
    display: none; 
}


/* CLASES DE APERTURA (Móvil y default) */
.is-open {
    pointer-events: none !important; 
}
.is-open .left-half {
    transform: translateX(-100%);
}

.is-open .right-half {
    transform: translateX(100%);
}

.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
/* ========================================================= */


/* ========================================================= */
/* 🖥️ MEDIA QUERY PARA ORDENADORES (SOBRE CENTRADO EN FRANJA VERTICAL) */
/* ========================================================= */
@media (min-width: 501px) {
    #overlay-intro {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        background-color: transparent; 
    }

    .overlay-half {
        width: 50%; 
        top: 0; 
        height: 100%; 
        max-height: 100%;
        background-size: 500px 100%; 
    }
    
    .left-half {
        left: 0;
        transform: none;
        background-position: left center;
    }

    .right-half {
        right: 0;
        left: auto;
        transform: none;
        background-position: right center;
    }

    .is-open .left-half {
        transform: translateX(-100%); 
    }

    .is-open .right-half {
        transform: translateX(100%); 
    }
}

/* --- Sección Principal (Hero) con Banner, Música, Fecha, etc. --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    background-image: url('img/BACK2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
    min-height: 600px;
    padding-bottom: 0;
    margin-top: 0;
}

.banner-container {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    overflow: hidden;
}

.banner-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* Estilos para el reproductor de música */
.music-player-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

#weddingSong {
    display: none;
}

/* Estilos para el nuevo botón de imagen (AUMENTADO APROX. 33%) */
.play-image-button {
    width: 80px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-image-button:hover {
    transform: scale(1.1);
}

/* ========================================================= */
/* 🎛️ CONTROLES MANUALES (VARIABLES DE AJUSTE RÁPIDO) */
/* ========================================================= */
:root {
    /* --- 1. CONTROL DE LA IMAGEN DE NOMBRES (nombres.png) --- */
    --nombres-ancho-maximo: 350px;         /* Tamaño / Ancho máximo (Ej: 200px, 280px, 350px) */
    --nombres-desplazamiento-vertical: 0px;/* Posición vertical: valores negativos suben (-10px), positivos bajan (10px) */
    --nombres-espacio-inferior: 15px;      /* Espacio de separación inferior antes de ¡NUESTRA BODA! */

    /* --- 2. CONTROL DEL TEXTO ¡NUESTRA BODA! --- */
    --nuestra-boda-tamano: 1.4em;          /* Tamaño de letra en pantalla normal / escritorio */
    --nuestra-boda-tamano-movil: 1.1em;    /* Tamaño de letra en pantallas móviles */
    --nuestra-boda-espacio-superior: 0px;  /* Espacio / Desplazamiento superior */
}

/* Estilos para las frases del encabezado */
.wedding-phrases-container {
    margin-top: 20px;
    margin-bottom: 15px;
    text-align: center;
    padding: 0 20px;
}

.names-image-container {
    width: 100%;
    max-width: var(--nombres-ancho-maximo);
    margin: 10px auto var(--nombres-espacio-inferior) auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: var(--nombres-desplazamiento-vertical); /* Mueve la imagen arriba (-) o abajo (+) */
}

.names-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.wedding-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--nuestra-boda-tamano);
    font-weight: 600;
    color: #e0c8c4;
    margin-top: var(--nuestra-boda-espacio-superior);
    margin-bottom: 0;
    letter-spacing: 4px;
}

.wedding-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.0em;
    font-weight: 600;
    color: #8c997b;
    margin: 5px 0 0 0;
    line-height: 1.2;
}

.wedding-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    font-weight: 500;
    color: #665b53;
    margin-top: 8px;
    letter-spacing: 4px;
}

.ring-image-container {
    width: 150px;
    margin-bottom: 25px;
}

.ring-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Frase de amor */
.love-phrase {
    font-family: 'Lora', serif;
    font-style: normal;
    font-size: 1.05em;
    color: #3a3a3a;
    line-height: 1.6;
    max-width: 500px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.love-phrase b {
    font-weight: bold;
}

/* --- Contenedor de ancho completo para el contador y el banner --- */
.full-width-container {
    width: 100%;
    position: relative;
    left: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* --- Contador Regresivo --- */
.countdown-container {
    margin-top: 30px;
    margin-bottom: 0;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

#countdown {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
}

.time-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    font-weight: bold;
    color: #e0c8c4;
}

.label {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #8c997b;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nuevo banner de invitación */
.invitation-banner-container {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

.invitation-banner-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- Sección de Padres y Padrinos con imagen de fondo (diseño simplificado) --- */
.parents-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    padding: 0;
    background-image: url('img/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
}

.parents-text-container {
    max-width: 500px;
    padding: 60px 20px;
    background-color: transparent;
    border-radius: 10px;
}

.parents-text-container h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5em;
    font-weight: 600;
    color: #8c997b;
    line-height: 1.4;
    margin: 0;
}

.parents-info {
    font-family: 'Montserrat', serif;
    font-size: 1.0em;
    color: #666;
    margin-top: 0px;
    padding: 0;
}

.parents-info p {
    margin: 0;
    padding: 0;
    margin-bottom: 15px;
}

.parents-info p:last-child {
    margin-bottom: 0;
}

.parents-info b {
    font-weight: bold;
    color: #666;
}

/* --- Estilos para las secciones de contenido individuales --- */
/* --- Estilos para la Sección de Recepción --- */
#locationContent {
    background-color: #ffffff;
    padding: 60px 40px;
    border-radius: 0;
    text-align: center;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    box-shadow: none;
}

.reception-heading {
    font-family: 'Pinyon Script', 'Parisienne', 'Italianno', cursive;
    font-size: 3.2em;
    color: #e0c8c4;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
    font-weight: normal;
    letter-spacing: 1px;
}

.reception-heading i {
    margin-right: 15px;
    color: #8c997b;
    font-size: 0.7em;
    vertical-align: middle;
}

.location .detail-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15em;
    margin-bottom: 8px;
    color: #8c997b;
    font-weight: 600;
}

.location .detail-address {
    font-family: 'Lora', serif;
    font-size: 1.05em;
    color: #666;
    margin-top: -5px;
    margin-bottom: 15px;
}

/* Estilos de botones generales */
.map-link, .gift-link, .whatsapp-link, .rsvp-button {
    display: inline-block;
    background-color: #c4ccb5;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Open Sans', sans-serif;
    border: none;
    box-shadow: none;
}

.location .map-link {
    background-color: #c4ccb5;
    color: #ffffff;
}

.map-link:hover, .gift-link:hover, .whatsapp-link:hover, .rsvp-button:hover {
    background-color: #8c997b;
    color: #ffffff;
    transform: translateY(-2px);
}

.whatsapp-link i {
    margin-right: 8px;
}

/* --- Sección de Línea del Tiempo (oculta a solicitud) --- */
.timeline-image-section {
    display: none;
    background-color: #ffffff;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
}

.timeline-image-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-image {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Nuevos estilos de la Galería --- */
.gallery-title-section {
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #ffffff;
}

.gallery-title-our {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #8c997b;
    margin: 0;
    line-height: 1;
    font-weight: 500;
}

.gallery-title-gallery {
    font-family: 'Pinyon Script', 'Parisienne', 'Italianno', cursive;
    font-size: 3.2em;
    color: #e0c8c4;
    margin: 0;
    line-height: 1.1;
    font-weight: normal;
}

.gallery-container {
    max-width: 900px;
    margin: 0 auto 0 auto;
    position: relative;
    padding: 0 20px;
    background-color: #ffffff;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.image-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 15px;
}

.carousel-image {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    scroll-snap-align: center;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Flechas del carrusel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #b39268;
    font-size: 2em;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    display: none;
}
.carousel-nav:hover {
    opacity: 1;
}
.carousel-nav.prev-nav { left: 10px; }
.carousel-nav.next-nav { right: 10px; }

/* --- Estilos para el Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    position: relative;
    z-index: 100;
}

.lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 102;
}

.lightbox .close-btn:hover {
    color: #836a4a;
}

.lightbox .lightbox-nav {
    color: #fff;
    font-size: 2.5em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: block !important;
    z-index: 101;
}

.lightbox .lightbox-nav:hover {
    opacity: 1;
}

.lightbox .lightbox-nav.prev-nav { left: 20px; }
.lightbox .lightbox-nav.next-nav { right: 20px; }

/* --- Sección de Video Vertical Save the Date --- */
.video-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.video-title-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    letter-spacing: 3px;
    color: #8c997b;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.video-title-main {
    font-family: 'Pinyon Script', 'Parisienne', 'Italianno', cursive;
    font-size: 3.2em;
    color: #e0c8c4;
    margin: 0 0 25px 0;
    font-weight: normal;
    line-height: 1.1;
}

.vertical-video-container {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background-color: #000000;
}

.vertical-video {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

/* --- Ocultar banners png antiguos de vestimenta --- */
.banner-container-bottom {
    display: none;
}

/* --- Sección de Código de Vestimenta --- */
.dresscode-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.dresscode-container-inner {
    max-width: 480px;
    margin: 0 auto;
}

.dresscode-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25em;
    letter-spacing: 6px;
    color: #222222;
    margin: 0 0 2px 0;
    font-weight: 500;
}

.dresscode-title {
    font-family: 'Pinyon Script', 'Parisienne', 'Italianno', cursive;
    font-size: 3.4em;
    color: #8c997b;
    margin: -10px 0 30px 0;
    font-weight: normal;
    line-height: 1.1;
}

.dresscode-formal {
    margin-bottom: 35px;
}

.formal-line1, .formal-line2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25em;
    letter-spacing: 8px;
    color: #222222;
    margin: 0 0 6px 0;
    font-weight: 400;
}

.dresscode-rules {
    margin-bottom: 35px;
}

.rule-group {
    margin-bottom: 25px;
}

.rule-gender {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
    letter-spacing: 4px;
    color: #111111;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.rule-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85em;
    letter-spacing: 3px;
    color: #444444;
    margin: 0;
    font-weight: 400;
}

.dresscode-palette {
    margin-top: 30px;
}

.palette-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    letter-spacing: 4px;
    color: #111111;
    margin: 0 0 22px 0;
    font-weight: 600;
}

.palette-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.color-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.color-circle:hover {
    transform: scale(1.1);
}

/* --- Sección de Mesa de Regalos --- */
.gifts-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    background-image: url('img/mesa.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
}

.gifts-container-inner {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.gifts-title-mesa {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #8c997b;
    margin: 0;
    line-height: 1;
    font-weight: 500;
}

.gifts-title-regalos {
    font-family: 'Pinyon Script', 'Parisienne', 'Italianno', cursive;
    font-size: 3.2em;
    color: #e0c8c4;
    margin: 0;
    line-height: 1.1;
    font-weight: normal;
}

.gifts-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #4a4a4a;
    margin: 20px 0;
}

.gifts-option {
    margin-bottom: 30px;
}
.gifts-option:last-of-type {
    margin-bottom: 0;
}


.gifts-logo-container {
    margin: 20px 0 10px 0;
}

.gifts-logo {
    width: 150px;
    height: auto;
}
.gifts-logo-bbva {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.bbva-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}
.bbva-info p {
    margin: 5px 0;
}

.sobre-info {
    margin-top: 40px;
}
.envelope-icon {
    font-size: 2.5em;
    color: #e0c8c4;
    margin-bottom: 10px;
}
.sobre-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #666;
    max-width: 350px;
    margin: 0 auto;
}

.gift-link {
    display: inline-block;
    background-color: #c4ccb5;
    color: #2b3324;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}
.gift-link:hover {
    background-color: #b0ba9f;
}

/* --- Sección de Confirmación de Asistencia (RSVP) --- */
.rsvp-section {
    text-align: center;
    padding: 60px 40px;
    background-color: #fff;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.rsvp-title-confirmacion {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #8c997b;
    margin: 0;
    line-height: 1;
    font-weight: 500;
}

.rsvp-title-asistencia {
    font-family: 'Pinyon Script', 'Parisienne', 'Italianno', cursive;
    font-size: 3.2em;
    color: #e0c8c4;
    margin: 0;
    line-height: 1.1;
    font-weight: normal;
}

/* Nuevos estilos para el formulario */
#rsvpForm {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d6bda9;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
}

.rsvp-button {
    background-color: #c4ccb5;
    color: #ffffff;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
}
.rsvp-button:hover {
    background-color: #8c997b;
    color: #ffffff;
    transform: translateY(-2px);
}

.respetuosamente {
    margin-top: 40px;
}

.rsvp-title-respetuosamente {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #8c997b;
    margin: 0;
    line-height: 1;
    font-weight: 500;
}

.rsvp-title-ninos {
    font-family: 'Pinyon Script', 'Parisienne', 'Italianno', cursive;
    font-size: 3em;
    color: #e0c8c4;
    margin: 0;
    line-height: 1.2;
    font-weight: normal;
}

/* --- Footer --- */
.footer {
    margin-top: 0;
    font-size: 0.9em;
    color: #8c997b;
    border-top: none;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 20px;
}

.back-to-top-link {
    color: #c4ccb5;
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.back-to-top-link:hover {
    color: #8c997b;
    transform: translateY(-2px);
}

.back-to-top-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    letter-spacing: 2px;
    color: #8c997b;
    margin-top: 5px;
    margin-bottom: 10px;
}

.copyright {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85em;
    color: #8c997b;
    margin: 4px 0 2px 0;
    text-align: center;
}

.website-url {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85em;
    color: #e0c8c4;
    margin: 2px 0;
    text-align: center;
}

/* --- Media Queries para Responsividad --- */
@media (min-width: 769px) {
    .image-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        overflow-x: visible;
    }
    .carousel-image {
        width: 100%;
        flex: auto;
    }
    .carousel-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .parents-section {
        flex-direction: column;
        gap: 20px;
        background-position: center;
        margin: 0;
    }

    .parents-text-container {
        max-width: 100%;
        padding: 40px 20px;
    }

    .carousel-wrapper {
        position: relative;
    }
    .carousel-nav {
        display: block;
    }
    .image-carousel {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 15px;
        overflow-x: hidden;
    }
    .carousel-image {
        flex: 0 0 100%;
        width: 100%;
    }
    .save-the-date-text {
        font-size: 2em;
    }
    .play-button {
        font-size: 3em;
    }
    .play-image-button {
        width: 80px;
        height: auto;
    }

    /* SOLUCIÓN para las flechas del lightbox en móvil */
    .lightbox .lightbox-nav {
        font-size: 1.5em;
        padding: 10px;
        opacity: 0.9;
        display: block !important;
        z-index: 101;
    }
    .lightbox .lightbox-nav.prev-nav { left: 10px; }
    .lightbox .lightbox-nav.next-nav { right: 10px; }

    .lightbox .close-btn {
        z-index: 102;
    }

    .lightbox-image {
        z-index: 100;
    }
}

@media (max-width: 508px) {
    #locationContent {
        padding: 40px 25px;
        margin: 0 auto;
    }
    .rsvp-section {
        padding: 40px 20px;
    }
    .gifts-section {
        padding: 40px 20px;
    }
    .wedding-headline {
        font-size: var(--nuestra-boda-tamano-movil);
        font-weight: 600;
        letter-spacing: 2px;
    }
    .wedding-date {
        font-size: 1.8em;
        font-weight: 600;
    }
    .wedding-location {
        font-size: 0.9em;
        font-weight: 400;
        letter-spacing: 2px;
    }
    .ring-image-container {
        width: 120px;
    }
    .love-phrase {
        font-size: 1.2em;
        font-family: 'Lora', serif;
        font-style: normal;
        max-width: 400px;
    }
    #countdown {
        gap: 15px;
    }
    .number {
        font-size: 2em;
    }
    .label {
        font-size: 0.9em;
    }
    .hero .names {
        font-size: 2.8em;
    }
    .we-get-married {
        font-size: 1.3em;
    }
    h2 {
        font-size: 1.5em;
    }
    .detail-info, .detail-address {
        font-size: 0.9em;
    }
    .map-link, .gift-link, .whatsapp-link, .rsvp-button {
        padding: 8px 15px;
        font-size: 0.8em;
    }
    .banner-image {
        height: 60vh;
        object-fit: cover;
    }
}

/* Nuevo estilo para el botón flotante */
.floating-music-button {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background-color: #e0c8c4;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 99;
}

.floating-music-button:hover {
    background-color: #d1b1ac;
    transform: scale(1.08);
}

.floating-music-button i {
    font-size: 18px;
    color: #ffffff;
}

/* Estilos para el botón flotante Siguiente Canción (A la izquierda del Play) */
.floating-next-button {
    position: fixed;
    bottom: 19px;
    right: 67px;
    background-color: #e0c8c4;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 99;
}

.floating-next-button:hover {
    background-color: #d1b1ac;
    transform: scale(1.08);
}

.floating-next-button i {
    font-size: 14px;
    color: #ffffff;
}

/* Estilos para el botón flotante Volver Arriba (Izquierda Inferior, sutil y visible tras scroll) */
.floating-back-to-top {
    position: fixed;
    bottom: 19px;
    left: 15px;
    background-color: #c4ccb5;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.3s ease, transform 0.2s ease;
    z-index: 99;
    text-decoration: none;
}

.floating-back-to-top.visible {
    opacity: 0.85;
    visibility: visible;
}

.floating-back-to-top.visible:hover {
    opacity: 1;
    background-color: #8c997b;
    transform: scale(1.08);
}

.floating-back-to-top i {
    font-size: 14px;
    color: #ffffff;
}

/* Estilos para el nuevo grupo de radio buttons */
.attendance-options {
    text-align: center;
}

.radio-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #d6bda9;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
}

.radio-group input[type="radio"]:checked + label {
    background-color: #e0c8c4;
    color: #fff;
    border-color: #e0c8c4;
}

/* Estilos para los iconos de redes sociales del footer */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0 10px 0;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #c4ccb5;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: none;
}

.social-icon:hover {
    background-color: #8c997b;
    color: #ffffff;
    transform: translateY(-3px);
}