:root {
    --font-base-size: 14px;

    /* Escala Tipográfica */
    --text-10: 0.714rem;
    --text-11: 0.785rem;
    --text-12: 0.857rem;
    --text-base: 1rem;
    --text-16: 1.142rem;
    --text-18: 1.285rem;
    --text-22: 1.571rem;
    --text-25: 1.785rem;
    --text-26: 1.857rem;
    --text-34: 2.428rem;
    --text-40: 2.857rem;
}

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

body {
    background: #F6F6F6;
    color: #282828;
    font-family: Roboto;
    font-size: var(--font-base-size);
    font-weight: 400;
    font-style: normal;
    line-height: normal;
}

.hidden {
    display: none;
}

.border-rgt {
    border-right: 1px solid #D0A3B1;
}

.border-lft {
    border-left: 1px solid #D0A3B1;
}


/*
 * Estilos Invitación: ESTRUCTURA
 */

.grid-container {
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "content"
        "footer";
}

.header {
    grid-area: header;
}

.main {
    grid-area: main;
}

.content {
    grid-area: content;
}

.footer {
    grid-area: footer;
}


/*
 * Estilos Invitación: HEADER
 */

.nuestra-boda {
    display: flex;
    min-height: 64px;
    border-bottom: 1px solid #E9E9E9;
    background: #FBFBFB;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nuestra-boda__logo {
    margin: auto;
    font-family: "Playfair Display";
    font-size: var(--text-22);
    font-weight: 300;
    font-style: italic;
    line-height: 2.8;
}

.invitacion__mobile {
    display: block;
}

.invitacion__desktop {
    display: none;
}

.invitacion img {
    border: none;
    display: block;
    width: 100%;
    min-height: 100vh;
    object-fit: cover;
}


/*
 * Estilos Invitación: PORTADA
 */

.portada__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*
 * Estilos Invitación: NOSOTROS
 */

.nosotros {
    margin-top: 50px;
}

.nosotros__novios {
    display: flex;
    flex-direction: column;
    gap: 10px;

    font-family: "Playfair Display";
    font-size: var(--text-34);
    font-style: italic;
    letter-spacing: 1px;
    text-align: center;
}

.novios {
    margin: 0;
}

.novios__nombre {
    font-size: var(--text-40);
    font-weight: 500;
    line-height: 1.2;
}

.novios__apellido {
    font-size: var(--text-12);
}

.nosotros__historia {
    margin: 40px 0 50px 0;
    padding: 0 32px;
    font-size: var(--text-11);
    font-weight: 300;
    line-height: 1.6;
    text-align: balance;
}

.nosotros__img {
    display: block;
    width: 100%;
    height: 100%;
}


/*
 * Estilos Invitación: COUNTDOWN
 */

.countdown {
    padding: 30px 0;
    background: #D0A3B1;
    color: #FFF;
    font-family: "Playfair Display";
    font-size: var(--text-16);
    font-style: italic;
    font-weight: 400;
    text-align: center;
}

.countdown__tiempo {
    display: flex;
    justify-content: space-evenly;
    font-style: normal;
}

.tiempo__hora {
    font-size: var(--text-40);
    font-weight: 500;
    letter-spacing: 1px;
}

.tiempo__detalle {
    font-size: var(--text-10);
    font-weight: 400;
}


/*
 * Estilos Invitación: CARDS
 */

.section-evento {
    display: flex;
    flex-direction: column;
}

.section-boda {
    display: flex;
    flex-direction: column;
}

.cards__divisor {
    border: none;
    border-top: 1px solid #D0A3B1;
    margin: 0 32px;
}

.card {
    margin: 50px 0;
    padding: 0 32px;
    font-weight: 300;
    text-align: center;
}

.card__svg {
    display: block;
    margin: 0 auto;
}

.card__titulo {
    margin: 14px 0;
    font-family: "Playfair Display";
    font-size: var(--text-25);
    font-weight: 400;
    letter-spacing: 1px;
}

.card__tarjeta {
    margin: 14px 0;
    font-family: "Playfair Display";
    font-size: var(--text-16);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 1px;
}

.card__subtitulo {
    margin: 14px 0;
    font-size: var(--text-18);
    font-weight: 300;
}

.card__detalle {
    margin: 27px 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.detalle__evento {
    padding: 0 16px;
    font-size: var(--text-26);
    font-weight: 300;
    text-align: center;
}

.card__valores {
    margin: 16px 0;
    font-weight: 300;
}

.card__anexo {
    margin: 24px 0;
    font-size: var(--text-11);
    font-weight: 300;
}

.card__cierre {
    margin: 24px 0;
    font-weight: 300;
}

.card__descripcion {
    margin: 24px 0;
    font-weight: 300;
}

.card__link,
.card__button {
    display: inline-block;
    padding: 5px 35px;
    background-color: #D0A3B1;
    border-radius: 25px;
    color: #FFF;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.1px;
}

.card__link {
    text-decoration: none;
}

.card__button {
    border: none;
    font-family: Roboto;
    font-size: var(--font-base-size);
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/*
 * Estilos Invitación: SVG CARDS
 */

.svg__anillos {
    width: 96px;
    height: 93px;
}

.svg__fiesta {
    width: 96px;
    height: 93px;
}

.svg__dresscode {
    width: 127px;
    height: 125px;
}

.svg__instagram,
.svg__musica,
.svg__regalos {
    width: 79px;
    height: 79px;
}

.svg__vector path {
    stroke: #282828;
}


/*
 * Estilos Invitación: FOOTER
 */

dialog {
    margin: auto;
    display: none;
}

dialog[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 23px 18px 33px 18px;
    background: #FFF;
    border-radius: 25px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.4s ease forwards;
}

dialog[open]::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.4s ease forwards;
}

.modal__header {
    font-family: "Playfair Display";
    font-size: var(--text-16);
    font-style: italic;
    font-weight: 600;
    text-align: center;
}

.modal__body {
    font-size: var(--text-base);
    font-weight: 300;
    text-align: center;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/*
 * Estilos Invitación: FOOTER
 */

footer {
    display: flex;
    height: 110px;
    padding: 32px;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid #282828;
    background: #282828;
}

.footer__copy {
    color: #FFF;
    align-self: stretch;
    font-weight: 300;
    line-height: 1.6;
    text-align: center;
}


/*
 * Estilos Invitación: MEDIA QUERIES
 */

@media (min-width: 768px) {
    :root {
        --font-base-size: 16px;
    }

    .grid-container {
        max-width: 1200px;
        margin: 0 auto;
        height: 100vh;
    }

    .nuestra-boda {
        position: relative;
        min-height: 85px;
    }

    .invitacion__mobile {
        display: none;
    }

    .invitacion__desktop {
        display: block;
    }

    .invitacion img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        display: block;
        border: none;
    }

    .nosotros__historia {
        font-size: var(--text-12);
        text-align: center;
    }

    .section-evento {
        flex-direction: row;
        justify-content: space-evenly;
    }
    
    .section-boda {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section-boda .card {
        flex: 1 1;
        min-width: 300px;
    }
}
