/* Estilo General */
body {
    font-family: 'Great Vibes', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Contenedor de la Invitación */
.invitation-container {
    background: #ffffff;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

/* Encabezado */
.header {
    text-align: center;
    background-color: #ffffff;
    color: #333;
}

.header .pre-title {
    font-family: 'Great Vibes', serif;
    font-size: 1.5rem;
    margin: 0;
    color: #145c94; /* Gris palo rosa */
}

.header .title {
    font-family: 'Great Vibes', serif;
    font-size: 4rem;
    margin: 10px 0;
    color: #145c94; /* Gris palo rosa oscuro */
}

.header .date {
    font-size: 1.2rem;
    margin: 10px 0 20px;
    color: #145c94; /* Gris palo rosa */
}

/* Contenido Principal */
.main-content {
    text-align: center;
    margin: 0 auto;
}

.imagenes {
    width: 100%;
    text-align: center;
    cursor: pointer;
}


/* Sección RSVP */
.rsvp-section {
    position: relative;
    text-align: center;
    margin: 20px 0;
}


form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 1.2rem;
    color: #4a4a4a;
    text-align: left;
}

.input-container {
    position: relative;
}

input[type="text"], input[type="number"] {
    padding: 10px;
    font-size: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

button {
    padding: 10px 20px;
    font-size: 0.8rem;
    color: white;
    background-color: #a86060;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #880101;
}

/* Media Queries para Responsividad */
@media (max-width: 600px) {
    .responsive-video,
.responsive-image,
.rsvp-background {
    width: 100%;
    margin: 0;
}

    #rsvp-container {
        padding: 10px;
    }

    label {
        font-size: 1rem;
    }
}

/* Botón para activar la música */
.audio-button {
    position: fixed; /* Cambiado a fixed para mantenerlo visible */
    top: 10px;
    left: 10px;
    padding: 15px 20px;
    font-size: 16px;
    color: rgb(255, 255, 255);
    background-color: #a50404a6;
    border: none;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 150px;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.audio-button:hover {
    background-color: #900505a6;
}


/* Contenedor común para la imagen y RSVP */
.image-rsvp-container {
    position: relative;
    width: 100%;
    height: auto;
}

/* Estilo para la imagen */
.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Estilo para la imagen */
.responsive-video {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Contenedor RSVP */
.rsvp-background {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    background: rgba(255, 255, 255, 0); /* Fondo semi-transparente */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Formulario dentro del contenedor RSVP */
#rsvp-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}


.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    visibility: visible; /* Asegúrate de que la lista esté visible */
    display: none; /* Comienza oculta */
    font-family: sans-serif;
}

.suggestions-list li {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
    font-family: sans-serif;
}

.suggestions-list li:hover {
    background: #f0f0f0;
}






.countdown {
    position: relative;
    width: 100%;
    height: 50vh;
    background-image: url('Imagenes/DSC05221.jpg');
    background-size: cover;
    background-position: center;
    color: #a87b05;
}

.countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
}

.countdown-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.countdown h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: normal;
    font-family: 'Great Vibes', cursive;
}

.countdown h3 {
    margin: 10px 0;
    font-size: 1.5rem;
}

.timer {
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    font-family: sans-serif, cursive;
}

.timer div {
    margin: 0 10px;
}




body {
    font-family: 'Great Vibes', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    overflow-x: hidden;
}



/* Modal de idioma */
.language-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    padding: 20px;
}

.language-modal.hidden {
    display: none;
}

.language-modal-content {
    background: white;
    padding: 30px 25px;
    border-radius: 18px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    font-family: 'Montserrat', sans-serif;
}

.language-modal-content h2 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    color: #333;
}

.language-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.language-btn {
    min-width: 130px;
    padding: 12px 18px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background-color: #a86060;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.language-btn:hover {
    background-color: #880101;
    transform: scale(1.03);
}

/* Botón música */
.audio-button {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 15px 20px;
    font-size: 16px;
    color: rgb(255, 255, 255);
    background-color: #a50404a6;
    border: none;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 150px;
    z-index: 1000;
}

.audio-button:hover {
    background-color: #900505a6;
}

.main-content {
    text-align: center;
    margin: 0 auto;
}

.imagenes {
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.responsive-video {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .responsive-video,
    .rsvp-background {
        width: 100%;
        margin: 0;
    }

    #rsvp-container {
        padding: 10px;
    }

    label {
        font-size: 1rem;
    }

    .language-modal-content {
        padding: 25px 18px;
    }

    .language-btn {
        width: 100%;
    }
}




.video-link {
    display: block;
    width: 100%;
    cursor: pointer;
    line-height: 0;
}

.video-link img {
    display: block;
    width: 100%;
    height: auto;
}


/* La página carga visible desde el inicio */
#pageContent {
    visibility: visible !important;
}

/* Evita problemas por estilos duplicados del body */
body {
    display: block;
    min-height: auto;
}

/* CARRUSEL FINAL */
.carousel-section {
    width: 100%;
    background: #ffffff;
    padding: 0;
    margin: 0;
    line-height: normal;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.45s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Botones izquierda / derecha */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.78);
    color: #7a4b4b;
    font-size: 34px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #880101;
    transform: translateY(-50%) scale(1.06);
}

.carousel-btn-left {
    left: 14px;
}

.carousel-btn-right {
    right: 14px;
}

@media (max-width: 600px) {
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }

    .carousel-btn-left {
        left: 8px;
    }

    .carousel-btn-right {
        right: 8px;
    }
}


/* CONTADOR */
.countdown-section {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
    padding: 48px 18px;
    box-sizing: border-box;
    text-align: center;
}

.countdown-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 34px 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 45px rgba(120, 70, 70, 0.14);
    border: 1px solid rgba(168, 96, 96, 0.16);
    backdrop-filter: blur(8px);
}

.countdown-subtitle {
    margin: 0 0 18px;
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #a86060;
    font-weight: normal;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.countdown-item {
    width: 130px;
    min-height: 110px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(120, 70, 70, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-item span {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: #7a4b4b;
    line-height: 1;
}

.countdown-item small {
    margin-top: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #a86060;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-date {
    margin: 20px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #7a4b4b;
}

@media (max-width: 600px) {
    .countdown-section {
        padding: 36px 14px;
    }

    .countdown-card {
        padding: 28px 14px;
        border-radius: 24px;
    }

    .countdown-subtitle {
        font-size: 2.6rem;
    }

    .countdown-grid {
        gap: 10px;
    }

    .countdown-item {
        width: 96px;
        min-height: 92px;
        border-radius: 18px;
    }

    .countdown-item span {
        font-size: 2.1rem;
    }

    .countdown-item small {
        font-size: 0.72rem;
    }
}


.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}