* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Parkinsans';
    src: url('../fonts/Parkinsans.woff2') format('woff2'),
        url('../fonts/Parkinsans.woff') format('woff'),
        url('../fonts/Parkinsans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --azulOscuro: rgb(18, 29, 37);
    --azulMedio: rgb(49, 67, 80);
    --azulClaro: #6577ea;
    --blanco: #fcf9f9fd;
    --blancoborde: rgb(226, 227, 227, 0.1);
    --card-bg: #1e293b;
    --fontN: 1.125rem;
    --fontM: 1rem;
    --fontP: 0.875rem;
    --fontFamily: 'Parkinsans', sans-serif;
}

html,
body {
    margin: 0;
    background: var(--azulOscuro);
    color: var(--blanco);
    font-family: var(--fontFamily);
    font-size: var(--fontM);
}

li {
    list-style-type: none;
    padding-bottom: 10px;
}

.parent {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: repeat(8, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 5px;
    margin: 50px;
    grid-template-rows: auto;
}

.contenedor-centrador {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
    padding-top: 50px;
}

.card {
    width: 40%;
    height: 40%;
    border: var(--blancoborde) solid 1px;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.header-paginas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;

    & h2 {
        padding-bottom: 20px;
    }
}

.paginas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    width: 90%;
    max-width: 1100px;
    margin: 10px auto 100px;
    border-top: var(--blancoborde) solid 1px;
    border-bottom: var(--blancoborde) solid 1px;
    padding-top: 30px;
    padding-bottom: 20px;
}

.paginas>img {
    width: 100%;
    border-radius: 8px;
    height: auto;
}

.linea {
    margin-bottom: 50px;
}

.div1 {
    grid-area: 1 / 1 / 10 / 2;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: start;
}

.div1 img {
    max-width: 80%;
    width: 70%;
    height: auto;
    object-fit: cover;
}

.div2 {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    gap: 10px;
    justify-content: left;
    align-items: baseline;
    padding: 0px;
    font-size: 24px;
}

.div2 img {
    width: 60px;
    height: 60px;
    border-radius: 20%;
    object-fit: cover;
}

.div3 {
    grid-area: 2 / 2 / 3 / 3;
    display: flex;
    justify-content: left;
    align-items: center;
    padding-bottom: 10px;
}

.div4 {
    grid-area: 3 / 2 / 4 / 3;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px;
}

.div4 img {
    width: 30px;
    height: 30px;
}

.div5 {
    grid-area: 4 / 2 / 5 / 3;
    font-size: 36px;
    font-weight: bold;
    padding-top: 20px;
    padding-bottom: 10px;
}

.div6 {
    grid-area: 5 / 2 / 6 / 3;
    padding: 0px;
}

.div7 {
    grid-area: 6 / 2 / 7 / 3;
    margin-bottom: 10px;

    & h3 {
        margin-top: 10px;
    }
}

.div8 {
    grid-area: 7 / 2 / 8 / 3;
    display: flex;
    padding-top: 20px;
    justify-content: left;
}

.div9 {
    grid-area: 8 / 2 / 9 / 3;
}

.div10 {
    grid-area: 9 / 2 / 10 / 3;
}

.div11 {
    grid-area: 10 / 1 / 11 / 2;
    display: flex;
}

.div12 {
    grid-area: 10 / 2 / 11 / 3;
}

.btn {
    display: inline-block;
    width: 300px;
    padding: 7px 10px;
    font-family: var(--fontFamily);
    font-size: var(--fontM);
    line-height: 1.5;
    color: var(--blanco);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid var(--blanco);
    border-radius: .5rem;
    background-color: #fff0;
    transition: box-shadow 0.2s ease;
}

.btn:active {
    transform: scale(.9);
    box-shadow: 3px 2px 22px 1px var(--blanco)
}

.btn:disabled,
.btn[disabled] {
    border: 1px solid var(--blanco);
    background-color: var(--azulMedio);
    pointer-events: none;
    filter: none;
    opacity: .5
}

.btn:hover {
    box-shadow: 0 0 15px #5d9ec0;
    border: 1px solid var(--azulClaro)
}

#lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    display: none;
}

#lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 100%;
    max-height: 100%;
    padding: 4px;
    background-color: black;
    border: 2px solid white;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8rem;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.pagina:hover {
    cursor: pointer;
}

.redsocial img:hover {
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    opacity: .9;
}

/* Media Queries for Responsive Design */

@media (max-width: 768px) {
    .parent {
        grid-template-columns: 1fr;
        margin: 20px;
        grid-column-gap: 0;
    }

    .div1 {
        grid-area: 1 / 1 / 2 / 2;
        justify-self: center;
        margin-bottom: 20px;
    }

    .div1 img {
        width: 80%;
        max-width: 300px;
    }

    .div2,
    .div3,
    .div4,
    .div5,
    .div6,
    .div7,
    .div8,
    .div9,
    .div10,
    .div11,
    .div12 {
        grid-column: 1 / 2;
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    .div2 {
        grid-area: 2 / 1 / 3 / 2;
    }

    .div3 {
        grid-area: 3 / 1 / 4 / 2;
    }

    .div4 {
        grid-area: 4 / 1 / 5 / 2;
    }

    .div5 {
        grid-area: 5 / 1 / 6 / 2;
    }

    .div6 {
        grid-area: 6 / 1 / 7 / 2;
    }

    .div7 {
        grid-area: 7 / 1 / 8 / 2;
    }

    .div8 {
        grid-area: 8 / 1 / 9 / 2;
    }

    .div9 {
        grid-area: 9 / 1 / 10 / 2;
    }

    .div10 {
        grid-area: 10 / 1 / 11 / 2;
    }

    .div11 {
        grid-area: 11 / 1 / 12 / 2;
    }

    .div12 {
        grid-area: 12 / 1 / 13 / 2;
    }

    .card {
        width: 80%;
        padding: 20px;
    }

    .paginas {
        width: 90%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    :root {
        --fontN: 1rem;
        --fontM: 0.9rem;
        --fontP: 0.8rem;
    }

    .parent {
        margin: 10px;
    }

    .card {
        width: 90%;
    }

    .div5 {
        font-size: 28px;
    }
}