:root {
    /* Variables de colores */
    --color-primary: #383838;
    /*button:hover */
    --color-secondary: #b39805;
    /* Fondo sections */
    --color-light: #f3f2ef;
    /* Textos p */
    --color-text-dark: #000000;
    /* Textos button */
    --color-text-light: #fff;
    --color-muted: #000000;
    --color-highlight: #7d7d7d;
    --color-border: #ccc;
    --color-overlay: #ffffffba;
    /* --color-background: #eaf7ff; */
    /* --color-accent: #ff6f61; */
}

@font-face {
    font-family: 'Cardo';
    src: url('../../../shared_files/fonts/Cardo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Habilita desplazamiento suave */
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--color-light);
}

.container {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../slider.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.text-image {
    position: absolute;
    top: 5%;
    transform: translate(-50%, -50%);
    width: auto;
    z-index: 10;
    text-align: center;
}

.text-image img {
    width: auto;
    max-width: 90%;
    height: auto;
}

.date-countdown {
    position: absolute;
    bottom: 5%;
    width: 100%;
    text-align: center;
}

.date {
    margin: 0.5rem;
    color: white;
    font-family: 'Cardo', serif;
    font-size: 1rem;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    color: #ffffff;
    font-family: 'Cardo', serif;
}

.countdown div span {
    display: block;
    font-size: 2rem;
}

.countdown div small {
    display: block;
    font-size: 0.7rem;
}

.scroll-down {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--color-text-light);
    cursor: pointer;
    text-decoration: none;
    font-family: 'Cardo', serif;
    animation: bounce 2s infinite;
}

.story-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-light);
    padding: 2rem;
    text-align: center;
}

.story-section-2 {
    min-height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-light);
    padding: 2rem;
    text-align: center;
}

.story-section h2 {
    font-family: 'Cardo', serif;
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.story-section p {
    /* font-family: 'Cardo', serif; */
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.94rem;
    /* line-height: 1.8; */
    color: var(--color-text-dark);
    max-width: 800px;
    margin: 0 auto;
}

.story-section-2 p {
    /* font-family: 'Cardo', serif; */
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.94rem;
    /* line-height: 1.8; */
    color: var(--color-text-dark);
    max-width: 800px;
    margin: 0 auto;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

/* Estilo para la advertencia visible solo en escritorio */
.desktop-warning {
    display: none;
    /* Por defecto, está oculta */
    background-color: var(--color-light);
    color: #333;
    font-family: 'Cardo', serif;
    text-align: center;
    padding: 3rem;
    /* margin: 1rem 0; */
    /* border: 1px solid #ff5555;
    border-radius: 10px; */
    font-size: 1.2rem;
}

/* Mostrar la sección solo en pantallas más grandes (escritorio) */
@media (min-width: 768px) {
    .desktop-warning {
        display: block;
    }
}

/* Clase para ocultar en escritorio y mostrar en dispositivos móviles */
.hide-on-desktop {
    display: block;
    /* Visible por defecto en todos los dispositivos */
}

/* Ocultar en pantallas más grandes (escritorio) */
@media (min-width: 768px) {
    .hide-on-desktop {
        display: none;
    }
}

.story-image {
    text-align: center;
    margin-bottom: 1rem;
    /* Espacio entre la imagen y el h2 */
}

.story-image img {
    width: 50px;
    /* Ajusta el tamaño según sea necesario */
    height: auto;
    /* Mantiene la proporción de la imagen */
}

.story-section p {
    margin-bottom: 1.5rem;
    /* Espaciado entre párrafos */
    line-height: 1.8;
    /* Mejora la legibilidad del texto */
}

.gallery-section {
    text-align: center;
    /* padding: 2rem 0; */
    background-color: var(--color-light);
}

/* .gallery-section h2 {
    font-family: 'Cardo', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
} */

.carousel {
    position: relative;
    width: 100%;
    /* Ocupa todo el ancho */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    width: 100%;
    /* Asegura que el track ocupe todo el ancho */
}

.carousel img {
    width: 100vw;
    /* Cada imagen ocupa todo el ancho visible */
    height: auto;
    /* Mantiene la proporción */
    flex-shrink: 0;
    /* Evita que las imágenes se reduzcan */
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    z-index: 10;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* .carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
} */

/* CUANDO Y DONDE */
.location-section {
    background-color: var(--color-light);
    padding: 2rem 1rem;
    text-align: center;
}

.location-section h2 {
    font-family: 'Cardo', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.event {
    margin-bottom: 2rem;
    padding: 1rem 0;
    /* border-bottom: 1px solid #d6d6d6; */
}

.event:last-child {
    border-bottom: none;
    /* Elimina el borde del último evento */
}

.event h3 {
    font-family: 'Cardo', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.event .location-name {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--color-highlight);
    margin-bottom: 1rem;
}

.event p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.94rem;
    color: var(--color-text-dark);
    margin: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.event p i {
    color: var(--color-primary);
    font-size: 1rem;
}

.location-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-light);
    background-color: var(--color-primary);
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.location-button:hover {
    background-color: var(--color-secondary);
    /* Cambia el color al pasar el mouse */
}

.location-image {
    text-align: center;
    /* Centra la imagen */
    margin: 1rem 0;
    /* Espaciado alrededor de la imagen */
}

.location-image img {
    width: 80%;
    /* Tamaño relativo para que sea pequeña */
    max-width: 200px;
    /* Limita el tamaño máximo */
    border-radius: 5px;
    /* Bordes redondeados para un diseño más elegante */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Sombra ligera */
    display: inline-block;
    /* Asegura que la imagen esté alineada correctamente */
}

/* .location-title-image {
    text-align: center;
}

.location-title-image img {
    width: 50px;
    height: auto;
} */

/* CUANDO Y DONDE */

/* PHOTOMARCO */
.photo-section {
    background-color: var(--color-light);
    padding: 0 0 2rem 0;
    text-align: center;
    position: relative;
}

.photo-container {
    position: relative;
    display: inline-block;
    width: 95%;
    max-width: 500px;
    /* border-radius: 15px; */
    /* overflow: hidden; */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.main-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    /* text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); */
    white-space: nowrap;
    /* Evita el salto de línea */
}

.overlay h2 {
    font-family: 'Cardo', serif;
    font-size: 1.8rem;
    /* Reduce el tamaño si es necesario */
    margin: 0;
}

.overlay p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    margin: 0.5rem 0 0;
}


.decorative-image {
    position: absolute;
    bottom: 87%;
    left: 5%;
    width: 15%;
    height: auto;
    z-index: 8;
    pointer-events: none;
}

.decorative-image-2 {
    position: absolute;
    top: -25%;
    right: 9%;
    width: 15%;
    height: auto;
    z-index: 8;
    pointer-events: none;
}


/* PHOTOMARCO */

/* PROGRAMA */
.timeline-section {
    padding: 2rem;
    background-color: var(--color-light);
    text-align: center;
}

.timeline-section h2 {
    font-family: 'Cardo', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline-line {
    position: absolute;
    height: 100%;
    left: 50%;
    width: 2px;
    background-color: #6a714f4f;
    /* Línea verde */
    z-index: 1;
    transform: translateX(-50%);
}

.timeline-separator {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--color-text-light);
    border: 2px solid var(--color-primary);
    /* Verde elegante */
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-content {
    position: relative;
    z-index: 2;
    width: 45%;
    padding: 0;
    /* Sin relleno */
    border-radius: 0;
    /* Sin bordes redondeados */
}

.timeline-content.left {
    margin-right: auto;
    text-align: right;
}

.timeline-content.right {
    margin-left: auto;
    text-align: left;
}

.timeline-content h3 {
    font-family: 'Cardo', serif;
    font-size: 1.2rem;
    color: var(--color-highlight);
    margin-bottom: 0.2rem;
}

.timeline-content p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin: 0;
}

.timeline-icon {
    width: 55px;
    /* height: 64px; */
    /* margin: 0 auto 0.5rem; */
    opacity: 0.5;
    /* Centrar y dar espacio inferior */
}

/* PROGRAMA */

/* FOOTER */
.footer {
    background-color: var(--color-light);
    /* Fondo claro */
    text-align: center;
    padding: 1.5rem 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 1rem;
}

.footer-content a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--color-secondary);
}

.footer-icons {
    margin-top: 1rem;
}

.footer-icons a {
    margin: 0 0.5rem;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #d6d6d6;
    /* Fondo para los íconos */
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-icons a:hover {
    background-color: #bfc3b8;
    color: var(--color-secondary);
}

/* FOOTER */

/* REGALOS */
.gift-section {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--color-light);
}

.gift-title {
    font-family: 'Cardo', serif;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.gift-text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.gift-button {
    padding: 0.6rem 1.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-light);
    background-color: var(--color-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gift-button:hover {
    background-color: var(--color-secondary);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.close {
    position: absolute;
    top: 15px;
    /* Ajusta la distancia desde la parte superior */
    right: 15px;
    /* Ajusta la distancia desde la derecha */
    font-size: 1.8rem;
    /* Aumenta el tamaño del texto */
    font-family: Arial, sans-serif;
    color: var(--color-muted);
    /* Color del botón */
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    line-height: 1;
    /* Ajusta el espaciado interno */
}

.close:hover {
    color: #333;
    /* Cambia el color al pasar el mouse */
    transform: scale(1.2);
    /* Aumenta el tamaño al pasar el mouse */
}

.modal-title {
    font-family: 'Cardo', serif;
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.modal-option {
    margin: 1.5rem 0;
}

.modal-option h3 {
    font-family: 'Cardo', serif;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.modal-icon {
    /* width: 64px; */
    height: 80px;
    margin: 0.5rem 0;
}



.highlight-link {
    color: var(--color-primary);
    /* Color verde del diseño */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.highlight-link:hover {
    color: var(--color-secondary);
    /* Color más oscuro al pasar el mouse */
    text-decoration: underline;
    /* Subrayado en hover */
}

/* Ajuste para el logo */
.modal-logo {
    display: block;
    margin: 10px auto;
    /* Centrar y dar espacio superior e inferior */
    width: 100px;
    /* Ajustar tamaño del logo */
    height: auto;
    /* Mantener proporción */
    cursor: pointer;
    /* Mostrar que es clickeable */
}

.modal-bank-details {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin: 0.5rem 0;
}

.modal-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-light);
    background-color: var(--color-primary);
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: var(--color-secondary);
}

hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 1.5rem 0;
}

.no-scroll {
    overflow: hidden;
}

/* REGALOS */

/* CONSIDERACIONES */
/* Modal para Consideraciones */
#considerationsModal .modal-title {
    font-family: 'Cardo', serif;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

#considerationsModal .modal-option {
    margin: 1.5rem 0;
}

#considerationsModal .modal-option h3 {
    font-family: 'Cardo', serif;
    font-size: 1.2rem;
    color: var(--color-primary);
}

#considerationsModal .modal-option p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: var(--color-text-dark);
    margin: 0.5rem 0;
}

/* CONSIDERACIONES */

/* CONFIRMACION */
/* Estilos generales de la sección */
.rsvp-section {
    background-color: var(--color-light);
    /* Cambia por la ruta de tu imagen */
    background-size: cover;
    /* Ajusta la imagen para que cubra todo el contenedor */
    background-position: center;
    /* Centra la imagen */
    background-repeat: no-repeat;
    /* Evita que la imagen se repita */
    padding: 2rem 1rem;
    /* Espaciado dentro de la sección */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    /* Cambia el texto a blanco para mayor contraste */
}

.rsvp-container {
    background-color: var(--color-overlay);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.rsvp-title {
    font-family: 'Cardo', serif;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.rsvp-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
    font-weight: bold;
}

.rsvp-text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

/* Estilos del formulario */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rsvp-form p,
.rsvp-form small {
    color: var(--color-text-dark);
}

/* .rsvp-form label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    text-align: left;
} */

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 7px 15px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;

    margin-bottom: 5px;
    height: auto;
    background-color: var(--color-text-light);
    display: block;
    line-height: 1.75em;
    color: #837c51;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Para mejorar la apariencia del selector en navegadores que soportan pseudoelementos */
select::-ms-expand {
    display: none;
    /* Oculta el indicador de despliegue por defecto en IE y Edge */
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: var(--color-primary);
}

.rsvp-form textarea {
    resize: none;
    height: 80px;
}

.rsvp-submit {
    padding: 0.6rem 1.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-light);
    background-color: var(--color-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rsvp-submit:hover {
    background-color: var(--color-secondary);
}

.decoration-image {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 1rem; */
    /* Espacio entre la imagen y el título */
    text-align: center;
}

.decoration-image img {
    width: 70px;
    height: auto;
    max-width: 100%;
    max-height: 150px;
    /* Ajusta según el tamaño deseado */
    margin: 0 auto;
    /* Centrado horizontal */
}

.rsvp-box {
    display: none;
    background-color: var(--color-overlay);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.rsvp-box h2 {
    font-family: 'Cardo', serif;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.rsvp-box p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: var(--color-text-dark);
    /* margin: 0rem 0.5rem; */
    line-height: 1.5;
}

/* CONFIRMACION */


.gallery-grid {
    display: none;
    gap: 1rem;
    margin-top: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Mostrar grid en desktop y ocultar carrusel */
@media (min-width: 768px) {
    .gallery-carousel {
        display: none;
    }

    .gallery-grid {
        display: grid;
    }
}