/* GENERAL */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

@font-face {
    font-family: 'SheerElegance';
    src: url('SheerElegance.ttf') format('truetype');
}

/* ANIMACIONES */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* INTRO */
.intro {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.bg-img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0.8;

    z-index: -1;
}

/* NOMBRES */
.intro-names {
    font-family: 'SheerElegance', cursive;
    color: #000;
    text-transform: none;
    font-weight: normal;

    line-height: 0.6;

    margin-top: 25px;
    margin-bottom: -1px;
}

.intro-names span {
    display: block;
}

.name {
    font-size: 8rem;
    line-height: 1;
    margin: 0;
}

.name:first-child {
    margin-bottom: -1px;
}

.name:last-child {
    margin-top: -1px;
}

.ampersand {
    font-size: 3rem;
    transform: translate(33px, -8px);
}

/* SUBTITULO */
.subtitle {
    color: #000000;
    font-size: 2rem;

    margin-top: -11px;
    margin-bottom: -10px;
}

/* TEXTO */
.music-text {
    color: #000000;
    margin-bottom: 20px;
}

/* BOTONES */
.buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.btn-img {
    width: 220px;

    cursor: pointer;

    transition: 0.3s ease;

    margin-top: -30px;
}

.btn-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* SECCIONES */
.box-nombres {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    padding: 80px 20px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

/* FONDO */
.bg-box {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    z-index: -1;
}

/* LOGO */
.logo {
    width: 300px;

    margin-top: -150px;

    animation: fadeUp 1s ease forwards;
}

/* NOMBRES DENTRO */
.intro-names-dentro {
    position: relative;

    font-family: 'SheerElegance', cursive;

    color: #000;

    text-transform: none;
    font-weight: normal;

    line-height: 0.6;

    margin: 0;
}

.intro-names-dentro::before,
.intro-names-dentro::after {
    content: "";

    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    width: 60%;
    height: 1px;

    background: rgba(0, 0, 0, 0.2);
}

.intro-names-dentro::before {
    top: -15px;
}

.intro-names-dentro::after {
    bottom: -15px;
}

.name-dentro {
    color: #000000;

    font-size: 8rem;

    line-height: 1;

    margin: 0;
}

/* FRASE */
.intro-quote {
    font-size: 1rem;
    letter-spacing: 3px;
    color: #000000;
    margin-top: 40px;
}

/* CONTADOR */
.count-box {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding: 20px;

    box-sizing: border-box;

    text-align: center;
}

.faltan {
    font-family: 'Libre Baskerville', serif;

    font-size: 2.5rem;

    color: #000000;

    margin-bottom: 30px;
}

.countdown {
    display: flex;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
}

.countdown div {
    text-align: center;

    padding: 0 20px;

    position: relative;
}

.countdown div:not(:last-child)::after {
    content: "";

    position: absolute;

    right: 0;
    top: 10%;

    height: 80%;
    width: 1px;

    background: rgba(0, 0, 0, 0.2);
}

.countdown span {
    display: block;

    font-family: 'Libre Baskerville', serif;

    font-size: 3.5rem;

    color: #000000;
}

.countdown small {
    font-size: 1rem;

    color: #666;

    letter-spacing: 2px;
}

/* TITULOS */
.count-box h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 4rem;
    font-weight: normal;
    color: #000000;
    letter-spacing: 5px;
    margin-top: -80px;
}

/* INFO */
.info-title {
    font-size: 1rem;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: rgba(0, 0, 0, 0.7);

    margin-bottom: 10px;
}

.event-date {
    font-family: 'Libre Baskerville', serif;

    font-size: 1.5rem;

    color: #000000;

    margin-bottom: 30px;
}

.place-name {
    font-family: 'Libre Baskerville', serif;

    font-size: 3.5rem;

    color: #000000;

    line-height: 1;

    margin: 10px 0;
}

.address {
    font-size: 1rem;

    color: rgba(0, 0, 0, 0.85);

    margin-bottom: 30px;
}

/* BOTON MAPA */
.map-btn {
    display: inline-block;

    background: #2c3e50;

    color: #f6eacc;

    padding: 12px 25px;

    border-radius: 30px;

    text-decoration: none;

    transition: 0.3s ease;
}

.map-btn:hover {
    background: #1a252f;

    transform: scale(1.05);
}

/* VESTIMENTA */
.dress-title {
    font-size: 1rem;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: rgba(0, 0, 0, 0.7);

    margin-bottom: 20px;
}

.dress-text {
    max-width: 500px;

    margin: auto;

    font-size: 1.1rem;

    line-height: 1.8;

    color: #000000;
}

/* REGALOS */
.gift-animation {
    width: 90px;
    height: 90px;

    margin: 20px auto;
}

.gift-btn {
    background: #2c3e50;
    color: #F6EACC;

    padding: 12px 28px;

    border: none;
    border-radius: 30px;

    cursor: pointer;

    font-size: 0.95rem;

    letter-spacing: 1px;

    transition: 0.3s ease;
}

.gift-btn:hover {
    background: rgba(0, 0, 0, 0.35);

    transform: scale(1.03);
}

/* MODAL */
.modal {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.5);

    z-index: 9999;

    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;

    width: 90%;
    max-width: 400px;

    padding: 35px 25px;

    border-radius: 20px;

    background: #ffffff;

    text-align: center;

    animation: aparecer 0.3s ease;
}

.modal-content h3 {
    font-family: 'Libre Baskerville', serif;

    margin-bottom: 20px;

    color: #000000;
}

.modal-content p {
    margin: 12px 0;

    color: #000000;
}

.cerrar {
    position: absolute;

    top: 15px;
    right: 20px;

    font-size: 28px;

    cursor: pointer;

    color: #999;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .intro-names {
        font-size: 30px;
    }

    .subtitle,
    .music-text {
        font-size: 17px;
    }

    .logo {
        width: 120px;
    }

    .buttons {
        gap: 10px;
    }

    .countdown {
        justify-content: space-around;
        flex-wrap: wrap;

        gap: 10px;
    }

    .countdown div {
        padding: 0 10px;
    }

    .countdown span {
        font-size: 2rem;
    }

    .countdown small {
        font-size: 0.7rem;
    }
}

/* LÍNEA ENTRE SECCIONES */
.box-nombres::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 70%;
    height: 1px;

    background: linear-gradient(to right,
            transparent,
            #d4af37,
            transparent);

    opacity: 0.7;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    color: #d4af37;

    font-size: 1.2rem;

    margin: 0;
}

/* LÍNEAS */
.divider::before,
.divider::after {
    content: "";

    width: 120px;
    height: 1px;

    background: linear-gradient(to right,
            transparent,
            #d4af37);
}

/* DERECHA */
.divider::after {
    background: linear-gradient(to left,
            transparent,
            #d4af37);
}

.dress-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: normal;
    margin-bottom: 10px;
    color: #000;
}

.dress-style {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    letter-spacing: 10px;
    color: #000000;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.dress-card {
    max-width: 650px;
    margin: auto;

    padding: 35px;

    border-top: 1px solid rgba(64, 78, 112, 0.525);
    border-bottom: 1px solid rgba(59, 185, 107, 0.15);
}

.dress-main {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333;
}

.dress-rules {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #000;
}

.dress-list {
    list-style: none;
    padding: 0;
    margin: 25px auto 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;
}

.dress-list li {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    font-size: 1.1rem;
    color: #222;
}

.dress-list li::before {
    content: "✦";
    color: #d8c08f;
    font-size: 0.9rem;
}

.dress-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    margin: 15px 0;
}

.dress-item img {
    width: 70px;
    opacity: 0.7;
}

.dress-item-cal img {
    margin-top: 20px;
    width: 50px;
    opacity: 0.7;
}

.dress-item-reg img {

    width: 55px;
    opacity: 0.7;
}



.dress-main {
    max-width: 650px;

    margin: 20px auto;

    font-size: 1.1rem;
    line-height: 1.8;

    color: #333;
}

.dress-note {
    font-size: 1rem;
    letter-spacing: 1px;

    color: #666;
}

.dress-info {
    margin-top: 35px;

    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dress-info p {
    font-size: 1.05rem;
    line-height: 1.9;

    color: #333;

    margin-bottom: 18px;
}

.dress-info strong {
    font-family: 'Libre Baskerville', serif;

    color: #000;
}

/*confirmacion*/
.dress-item-reg img {
    width: 60px;
    opacity: 0.9;
}

.attendance-text {
    margin-top: 35px;

    font-size: 0.9rem;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: rgba(0, 0, 0, 0.7);
}

.thanks-text {
    font-family: 'Great Vibes', cursive;

    font-size: 3rem;

    color: #b08b5b;

    margin-top: 10px;
}

/* =========================
   TABLETS
========================= */
@media (max-width: 1024px) {

    .name-dentro {
        font-size: 6rem;
    }

    .count-box h2 {
        font-size: 3rem;
        letter-spacing: 3px;
    }

    .place-name {
        font-size: 3rem;
    }

    .dress-style {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .logo {
        width: 220px;
        margin-top: -80px;
    }
}


/* =========================
   CELULARES
========================= */
@media (max-width: 768px) {

    .box-nombres {
        min-height: auto;
        padding: 90px 20px;
    }

    .logo {
        width: 140px;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .name-dentro {
        font-size: 4rem;
    }

    .ampersand {
        font-size: 2rem;
        transform: translate(18px, -5px);
    }

    .intro-quote {
        font-size: 0.85rem;
        letter-spacing: 2px;
        line-height: 1.8;
        padding: 0 10px;
    }

    .count-box h2 {
        font-size: 2.2rem;
        letter-spacing: 2px;
        margin-top: 0;
    }

    .faltan {
        font-size: 2rem;
    }

    .countdown {
        gap: 15px;
        flex-wrap: wrap;
    }

    .countdown div {
        padding: 0 8px;
    }

    .countdown span {
        font-size: 2rem;
    }

    .countdown small {
        font-size: 0.8rem;
    }

    .event-date {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .place-name {
        font-size: 2.3rem;
    }

    .address {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 10px;
    }

    .map-btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .dress-style {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .dress-main,
    .dress-info p,
    .gift-text {
        font-size: 1rem;
        line-height: 1.8;
        padding: 0 10px;
    }

    .attendance-text {
        font-size: 0.75rem;
        letter-spacing: 3px;
        line-height: 1.8;
    }

    .thanks-text {
        font-size: 2.3rem;
    }

    .modal-content {
        width: 88%;
        padding: 30px 20px;
    }

    .dress-icons {
        gap: 10px;
    }

    .dress-item img {
        width: 55px;
    }
}


/* =========================
   CELULARES PEQUEÑOS
========================= */
@media (max-width: 480px) {

    .name-dentro {
        font-size: 3.2rem;
    }

    .count-box h2 {
        font-size: 1.9rem;
    }

    .place-name {
        font-size: 2rem;
    }

    .dress-style {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    .countdown span {
        font-size: 1.7rem;
    }

    .logo {
        width: 110px;
    }

    .thanks-text {
        font-size: 2rem;
    }
}