body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fce4ec; /* Un rosa muy claro de fondo */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-container {
    max-width: 960px;
    width: 95%;
    background-color: #fff; /* Fallback color in case the image doesn't load or has transparency */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin: 0px;
    border-radius: 15px;
    overflow: hidden;
    padding: 12vw 30px; /* Add padding to make space for the frame */
    background: url('../images/header.png') no-repeat top center, url('../images/header.png') no-repeat bottom center, url('../images/container-frame.png') repeat-y top center !important;
    /*background-image: url('/images/container-frame.png'); /* Replace with the actual path to your main frame image */
    background-size: contain !important; /* Or contain, depending on how you want it to scale */    
    background-position: center;
}

#te-esperamos .button {
        display: inline-block;
        padding: 10px 20px;
        margin: 10px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1em;
        text-decoration: none;
        color: white;
        background-color: #e91e63; /* Color primario */
    }

    #te-esperamos .button.secondary {
        background-color: #6c757d; /* Color secundario (gris) */
    }

    #te-esperamos .button.primary {
        background-color: #e91e63; /* Color primario (rosa) */
    }

    #te-esperamos textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
    }

#codigo-vestimenta {
    /* Keep existing styles */
    padding: 60px 40px;
    text-align: center;
}

#codigo-vestimenta.contenedorInterior {
    display: flex; /* Apply Flexbox to the section */
    align-items: center; /* Optional: Align items vertically in the center */
    justify-content: space-around; /* Optional: Add space around the Lottie players */
    flex-wrap: wrap; /* Optional: Allow items to wrap to the next line on smaller screens */
}

/* You might want to adjust the width of the Lottie containers here instead of inline styles */
#codigo-vestimenta .animate__animated[style*="width: 50%"] {
    width: 45%; /* Adjust width with a small margin for spacing */
    margin-bottom: 20px; /* Add some margin below each Lottie on smaller screens if wrapping */
}

#codigo-vestimenta h2 {
    /* Keep existing styles */
    font-family: "Cookie", cursive;
    color: #e91e63;
    font-size: 3.5em;
    margin-bottom: 30px;
    margin-top: 40px; /* Add some top margin to separate from Lotties */
}

#codigo-vestimenta p {
    /* Keep existing styles */
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

.contenedorInterior {
    width: 81%;
    margin: auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
    text-align: center;
}

.section {
    padding: 60px 40px; /* Más padding horizontal */
    text-align: center;
}

.section h2 {
    font-family: "Cookie", cursive;
    color: #e91e63; /* Un rosa más intenso para los títulos */
    font-size: 3.5em; /* Títulos aún más grandes */
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05); /* Sombra sutil en el texto */
}

.resalte{
    font-family: "Cookie", cursive;
    color: #e91e63; /* Un rosa más intenso para los títulos */
    font-size: 2em; /* Títulos aún más grandes */
    margin-bottom: 30px;    
}

.subti{
    font-family: "Cookie", cursive;
    color: #e91e63; /* Un rosa más intenso para los títulos */
    font-size: 2.2em; /* Títulos aún más grandes */
    margin-bottom: 30px;    
}


/* Estilos para el Header (Hero) */
#hero {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 0;
}

.hero-image-container {
    position: relative;
    height: 550px; /* Altura ligeramente mayor */
    overflow: hidden;
    border-bottom: 5px solid #f8bbd0; /* Borde inferior decorativo */
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 192, 203, 0.4); /* Overlay rosa más claro */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero-message {
    padding: 25px 40px;
    background-color: rgba(255, 255, 255, 0.7); /* Fondo blanco semitransparente */
    border-radius: 10px;
    margin-top: 40px;
    font-size: 1.3em;
    color: #333;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

/* Estilos para las secciones de fotos con parallax */
.parallax-section {
    height: 500px; /* Ajusta esta altura según necesites */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 72%;
    margin: auto;
}

/* Estilos para el desvanecido superior */
.parallax-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Ajusta la altura del desvanecido superior */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, transparent 100%); /* Desvanecer de blanco (ligeramente transparente) a transparente */
    z-index: 2; /* Asegura que esté por encima de la imagen */
}

/* Estilos para el desvanecido inferior */
.parallax-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Ajusta la altura del desvanecido inferior */
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, transparent 100%); /* Desvanecer de blanco (ligeramente transparente) a transparente */
    z-index: 2; /* Asegura que esté por encima de la imagen */
}

.parallax-section img.parallax-bg { /* Especifica que solo las imágenes con la clase parallax-bg dentro de parallax-section tengan estos estilos */
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    position: absolute; /* **IMPORTANTE:** La imagen debe ser `position: absolute` */
    top: -400px;
    left: 0;
    z-index: 1;
}

#foto-2 img.parallax-bg {
    top: -1735px; /* Adjust this value as needed for foto 2 */
}

#foto-3 img.parallax-bg {
    top: -2090px; /* Adjust this value as needed for foto 2 */
}

#foto-4 img.parallax-bg {
    top: -3000px; /* Adjust this value as needed for foto 2 */
}

#foto-5 img.parallax-bg {
    top: -3600px; /* Adjust this value as needed for foto 2 */
}

#foto-6 img.parallax-bg {
    top: -2420px; /* Adjust this value as needed for foto 2 */
}

/* Estilos para la sección Ubicación (estructura de 2 filas, 2 columnas) */
#ubicacion {
    padding: 80px 30px;
    text-align: center;
    background-color: #f9f9f9; /* Fondo claro para la sección */
}

#ubicacion h2 {
    font-family: "Cookie", cursive;
    color: #e91e63;
    font-size: 3.5em;
    margin-bottom: 40px;
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column on small screens */
    gap: 40px; /* Spacing between the two rows */
    max-width: 1200px;
    margin: 0 auto;
}

.ubicacion-row {
    display: grid;
    gap: 20px; /* Spacing between columns in each row */
    align-items: center; /* Vertically align items in the row */
}

.ceremonia-row {
    grid-template-columns: 3fr 9fr; /* 3:9 ratio for ceremonia */
}

.recepcion-row {
    grid-template-columns: 9fr 3fr; /* 9:3 ratio for recepción */
}

.ubicacion-col-3 img {
    width: 100%;
    max-width: 200px; /* Adjust as needed */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ubicacion-col-9 {
    padding: 20px;
}

.ceremonia-row .ubicacion-col-9 {
    text-align: left;
}

.recepcion-row .ubicacion-col-9 {
    text-align: right;
}

.evento-nombre {
    font-size: 1.6em;
    color: #e91e63;
    margin-bottom: 10px;
}

.lugar-nombre {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
}

.hora-evento {
    color: #555;
    margin-bottom: 6px;
    font-style: italic;
}

.direccion {
    color: #777;
    margin-bottom: 15px;
}

.map-button {
    width: auto;
    max-width: 50px; /* Adjust size of the map button image */
    height: auto;
    display: block; /* Keep as block for margin control */
    margin-top: 10px;
}

.ceremonia-row .ubicacion-col-9 .map-button {
    margin-left: 0; /* Align left for ceremonia */
    margin-right: auto; /* Ensure no unwanted right margin */
}

.recepcion-row .ubicacion-col-9 .map-button {
    margin-left: auto; /* Push to the right */
    margin-right: 0; /* Ensure no unwanted right margin */
}

/* Media query for smaller screens (stack columns) */
@media (max-width: 768px) {
    .main-container {
        width: 100vw; /* Set width to 100vw on smaller screens */
        margin-left: 0;
        margin-right: 0;
        border-radius: 0; /* Remove border-radius on full width */
    }
    .parallax-section {    
        width: 77%;
    }
     #te-esperamos {
        text-align: center; /* Center the heading if needed */
    }

    #te-esperamos #confirmacion-form {
        width: 90%; /* Adjust width for mobile */
        margin-left: auto; /* Center horizontally */
        margin-right: auto; /* Center horizontally */
    }
    
    #countdown #countdown-timer {
        width: 90%; /* Adjust width for mobile if needed */
        max-width: none; /* Remove max-width restriction on mobile */
        margin-left: auto;
        margin-right: auto;
    }
    .contenedorInterior{
        width: 74.5vw;
    }
    .ubicacion-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .ubicacion-row {
        grid-template-columns: 1fr; /* Single column within rows */
        text-align: center; /* Center align text on mobile */
    }

    .ubicacion-col-9 {
        text-align: center;
    }

    .ceremonia-row,
    .recepcion-row {
        flex-direction: column; /* Stack columns if using flexbox previously */
    }
}

/* Estilos para la mesa de regalos */
#mesa-regalos .regalos-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

#mesa-regalos .regalo-item {
    text-align: center;
}

#mesa-regalos .regalo-item img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    border-radius: 5px; /* Ligeros bordes redondeados */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.03);
}

#mesa-regalos .regalo-item img:hover {
    opacity: 1;
}

#mesa-regalos .regalo-item a {
    display: block;
    color: #e91e63; /* Color rosa para los enlaces */
    text-decoration: none;
    font-weight: normal; 
    transition: color 0.3s ease;
}

#mesa-regalos .regalo-item a:hover {
    color: #c2185b;
}

.centered-lottie {
    display: block; /* Asegura que sea un elemento de bloque */
    margin-left: auto;
    margin-right: auto;
    max-width: 250px; /* Mantén o define el ancho máximo aquí */
}

/* Estilos para la sección countdown con imagen de fondo y overlay */
#countdown {
    padding: 60px 40px;
    text-align: center;
    position: relative; /* Necesario para posicionar el overlay y la imagen */
    color: #fff; /* Color de texto predeterminado para esta sección */
    overflow: hidden; /* Asegurar que la imagen parallax no se salga */
}

#countdown img.parallax-bg {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Detrás del contenido */
}

#countdown .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay negro con opacidad */
    z-index: 0; /* Encima de la imagen pero debajo del texto */
}

#countdown h2 {
    position: relative; /* Asegurar que el título esté por encima del overlay */
    z-index: 1;
}

#countdown #countdown-timer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative; /* Asegurar que el timer esté por encima del overlay */
    z-index: 1;
}

#countdown .timer-segment {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

#countdown .timer-segment span {
    display: block;
    font-size: 4em;
    font-weight: bold;
    color: #fff; /* Texto blanco para los números */
}

#countdown .timer-segment .label {
    font-size: 1.7em;
    color: #eee; /* Texto ligeramente más claro para las etiquetas */
    margin-top: 5px;
}

/* Estilos para el formulario de confirmación */
#te-esperamos #confirmacion-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 21px;
    border: 2px solid #f8bbd0; /* Borde más visible */
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#te-esperamos #confirmacion-form label {
    text-align: left;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

#te-esperamos #confirmacion-form input[type="text"],
#te-esperamos #confirmacion-form input[type="email"],
#te-esperamos #confirmacion-form select {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;    
}

#te-esperamos #confirmacion-form button {
    background-color: #e91e63; /* Color rosa para el botón */
    color: white;
    padding: 18px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 25px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

#te-esperamos #confirmacion-form button:hover {
    background-color: #c2185b;
}

/* Estilos para el programa (actualizados para parecerse a la referencia) */
/* Estilos para el programa (imitando las clases de referencia) */
#programa {
    padding: 40px; /* Equivalente a un padding interno */
    text-align: left;
    background-color: #f9f9f9; /* Fondo similar a 'fondoBloque0' */
    border-radius: 10px; /* Si la referencia tiene bordes redondeados */
    margin-top: 30px; /* Equivalente a 'mt_5' (ajusta el valor si es necesario) */
    margin-bottom: 30px; /* Equivalente a 'mb_5' (ajusta el valor si es necesario) */
    margin-left: auto; /* Para centrar horizontalmente si es necesario */
    margin-right: auto; /* Para centrar horizontalmente si es necesario */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* Una sombra sutil */
    width: 90%; /* O un ancho específico si el contenedor de referencia no ocupa todo el ancho */
    max-width: 800px; /* Un ancho máximo para controlar el tamaño en pantallas grandes */
}

#programa h2 {
    font-family: "Cookie", cursive;
    color: #e91e63;
    font-size: 3.5em;
    margin-bottom: 30px;
    text-align: center;
}

#programa .programa-lista {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#programa .programa-lista li {
    padding: 15px 0;
    border-bottom: 1px dotted #f8bbd0;
    display: flex;
    align-items: center;
}

#programa .programa-lista li:last-child {
    border-bottom: none;
}

#programa .programa-lista li span:first-child {
    font-weight: bold;
    color: #333;
    width: 120px;
    display: inline-block;
    margin-right: 20px;
    text-align: right;
}

#programa .programa-lista li span:last-child {
    color: #666;
}

/* Media query para pantallas más grandes */
@media (min-width: 769px) {
    #programa .programa-lista li span:first-child {
        width: 150px;
    }
    #countdown{
        margin: auto;
        width: 85%;
    }
}

/* Estilos para el FAQ */
#faq .faq-container {
    margin-top: 40px;
}

#faq .faq-item {
    margin-bottom: 25px;
    border: 2px solid #f8bbd0; /* Borde más visible */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#faq .faq-question {
    background-color: #fff;
    color: #e91e63; /* Color rosa para la pregunta */
    padding: 20px;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.05em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#faq .faq-question:hover {
    background-color: #fce4ec; /* Un rosa muy claro al pasar el ratón */
    color: #c2185b;
}

#faq .faq-answer {
    padding: 20px;
    display: none;
    background-color: #f9f9f9;
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

#faq .faq-answer.active {
    display: block;
}

h2, h3{
    font-weight: normal !important;        
}

.parents-sponsors-container {
    display: grid; /* Enable CSS Grid */
    grid-template-columns: repeat(12, 1fr); /* Create a 12-column grid */
    gap: 20px; /* Spacing between grid items (rows and columns) */
    max-width: 1200px; /* Adjust as needed for your overall layout */
    margin: 0 auto;
}

.parents-section {
    grid-column: 6 / span 9; /* Start at the 4th column and span 9 columns */
    text-align: left;
}

.sponsors-section {
    grid-column: 3 / span 8; /* Start at the 1st column and span 9 columns */
    text-align: right; /* Align text to the right within its 9 columns */
    justify-self: end; /* Align the entire block to the right end of its grid area */
}

.parents-section h2,
.sponsors-section h2 {
    font-family: "Cookie", cursive;
    color: #e91e63;
    font-size: 3em;
    margin-bottom: 15px;
}

.parents-section p,
.sponsors-section p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Estilos para la música de fondo */
#background-music {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0.6;
    z-index: -1;
}

/* Estilos para el modal inicial */
.initial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 50px;
    border-radius: 15px;
    text-align: center; /* Puedes eliminar esta línea */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex; /* Añadir para usar flexbox */
    flex-direction: column; /* Alinear los elementos en columna */
    align-items: center; /* Centrar horizontalmente los elementos */
}

.play-button {
    background-color: #e91e63; /* Rosa para el botón de play */
    color: white;
    border: none;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    font-size: 3em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: #c2185b;
}

.music-text {
    color: #555;
    font-size: 1.3em;
    margin-bottom: 30px;
    font-family: "Cookie", cursive; /* Usar la fuente elegante aquí también */
}

.no-music-button {
    background-color: #fff;
    color: #e91e63; /* Rosa para el botón "sin música" */
    border: 2px solid #e91e63;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.no-music-button:hover {
    background-color: #fce4ec; /* Un rosa muy claro al pasar el ratón */
    color: #c2185b;
}

/* Responsive Design (Ajustes adicionales para pantallas pequeñas) */
@media (max-width: 768px) {
    .main-container {
        width: 98%;        
    }
    
    #countdown {
        padding: 60px 22px;
        text-align: center;
        position: relative; /* Necesario para posicionar el overlay y la imagen */
        color: #fff; /* Color de texto predeterminado para esta sección */
        overflow: hidden; /* Asegurar que la imagen parallax no se salga */
    }

    
    #countdown .timer-segment span {
        display: block;
        font-size: 2em;
        font-weight: bold;
        color: #fff; /* Texto blanco para los números */
    }

    #countdown .timer-segment .label {
        font-size: 0.7em;
        color: #eee; /* Texto ligeramente más claro para las etiquetas */
        margin-top: 5px;
    }


    .section {
        padding: 40px 20px;
    }

    .section h2 {
        font-size: 2.8em;
        margin-bottom: 25px;
    }

    #hero .hero-image-container {
        height: 450px;
    }

    #ubicacion .ubicacion-container {
        grid-template-columns: 1fr;
    }

    #mesa-regalos .regalos-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    #mesa-regalos .regalo-item img {
        max-width: 180px;
    }

    #countdown #countdown-timer {
        width: 90%; /* Adjust width for mobile if needed */
        max-width: none; /* Remove max-width restriction on mobile */
        margin-left: auto;
        margin-right: auto;
    }

    .modal-content {
        padding: 40px;
    }

    .play-button {
        width: 80px;
        height: 80px;
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    .music-text {
        font-size: 1.2em;
        margin-bottom: 25px;
    }

    .no-music-button {
        padding: 12px 24px;
        font-size: 1em;
    }
}

/* Estilos adicionales para fuentes (asegúrate de tener esto en el <head> del HTML) */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Montserrat:wght@400;500;700&display=swap');