:root {
    --azul: #3a6ea5;
    --azul-suave: #e9f1fa;
    --dorado: #f5da98;
    --blanco: #fff;
    --gris: #f6f8fa;
    --texto: #222;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    /* background: var(--gris); */
    color: var(--texto);
    overflow-x: hidden;

    /* Mosaico con desplazamiento para crear variedad visual */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
        url("img/fondo4.jpg");
    background-repeat: repeat;
    background-size: 80px auto;
     
}

/* HERO */
#hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

#hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(65%);
    transform: scale(1.05);
    transition: transform 2s ease;
}

#hero:hover #hero-img {
    transform: scale(1.1);
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 50, 0.2);
}

#hero-text {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 90%;


    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--blanco);
    animation: fadeInUp 2s ease;

    font-family: "Playfair Display", serif;

}


#hero-text h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
}

#hero-text h2 {
    font-size: 1.6rem;
    margin-top: 0.5rem;
}

.fecha {
    font-size: 1.2rem;
    color: var(--dorado);
    margin-top: 0.5rem;
}

#gran-dia {
    font-size: 1.8rem;
    color: var(--);
    margin-top: 0.5rem;
}

/* SECCIONES */
main {
    padding: 25px 8%;
}

section {
    margin-bottom: 40px;
}

blockquote {
    background: var(--azul-suave);
    border-left: 4px solid var(--azul);
    border-radius: 6px;
    padding: 1rem;
    animation: fadeIn 2s ease;
    margin: 0;

    line-height: 2rem;
    letter-spacing: 1px;
}


.dancing-script {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: italic;
    font-size: 1.6rem;
}

#frase-final {
    text-align: center;
    margin-top: 20px;
}

#cita {
    margin-top: 10px;
    text-align: right;
    font-size: 1.2rem;

}

/* TARJETAS */
#detalles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card {
    background: var(--blanco);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem 1rem;
    text-align: center;
    animation: fadeInUp 1.5s ease;
}

/* CONTACTO */
#contacto .contact-box {
    background: var(--blanco);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* CARRUSEL */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    margin-top: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    flex-shrink: 0;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(58, 110, 165, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;

    width: 2rem;
    height: 2rem;
    z-index: 10;

}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* BOTÓN FORMULARIO */
.boton-form {
    display: inline-block;
    background: var(--azul);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.boton-form:hover {
    background: var(--dorado);
}

/* FOOTER */
footer {
    background: var(--azul);
    color: white;
    text-align: center;
    padding: 15px 0;
}

#music-player {
    margin-bottom: 10px;
}

#play-pause {
    background: white;
    color: var(--azul);
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-weight: bold;
}

#play-pause:hover {
    background: var(--dorado);
}

#contactos {
    display: flex;
    justify-content: space-around;
}

.contacto {
    /* font-weight: bold; */
    transition: color 0.3s;
    text-align: center;
    /* border: 1px solid black; */
    border-radius: 5px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;

    width: 35%;


    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.contacto a {
    text-decoration: none;
    color: inherit;
}


/* ANIMACIONES */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (min-width: 614px) {
    #detalles {
        flex-direction: row;
        justify-content: center;
    }

    .card {
        flex: 1;
    }
}


body {
    font-family: "Poppins", sans-serif;
}

/* Scroll reveal simple */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Modal de bienvenida --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    max-width: 90%;
    animation: pop-in 0.8s ease;
}

.modal-content h2 {
    margin-bottom: 10px;
    color: var(--azul);
}

.modal-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

#start-btn {
    background: var(--azul);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

#start-btn:hover {
    background: #1e88e5;
}

/* --- Animación modal --- */
@keyframes pop-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Botón de música flotante --- */
.music-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--azul);
    color: white;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
    font-size: 1.5rem;
    transition: transform 0.2s ease, background 0.3s ease;
}

.music-float:hover {
    transform: scale(1.1);
    background: #1e88e5;
}


/* Modal ya existente */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(4px);

    /* transición suave */
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Clase para cerrar */
.modal.hidden {
    opacity: 0;
    pointer-events: none;
    /* para que no moleste al hacer click */
}

/* Modal content con animación de pop-out */
.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    max-width: 90%;
    transform: scale(1);
    transition: transform 0.5s ease;

    margin: 1rem;

}

/* Clase para cerrar el contenido */
.modal.hidden .modal-content {
    transform: scale(0.8);
}



/* 
#countdown {
  text-align: center;
  padding: 50px 20px;
}

#countdown h2 {
  font-size: 1.6rem;
  color: var(--azul);
  margin-bottom: 30px;
} */

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

/* 
.time-box span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--azul);
}

.time-box small {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-top: 5px;
} */

h2 {
    margin-top: 0;
}

p.direccion {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 0;

}

iframe {
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.time-box {
    background: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 14px;

}

.time-box:hover {
    transform: scale(1.1);
}

.time-box span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--azul);
}

.time-box small {
    font-size: 0.7rem;
    color: #555;
    margin-top: 3px;
}

.iban-box {
    background: white;
    border-radius: 15px;
    /* display: inline-flex; */
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 15px;

    flex-direction: column;

}

#iban {
    font-weight: bold;
    color: #333;
   /* letter-spacing: 1px; */
    user-select: all;
    margin: 0;

     font-size: 0.95rem; 

    /* width: 10rem; */

}

#copy-iban {
    background: var(--azul);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#copy-iban:hover {
    background: #003c80;
}