@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

/* --------------------------- ELEMENTOS --------------------------- */
:root {
    --azul-electrico: #006fba;
    --azul-diamante: #d8f0fd;
    --azul-nube: #f4fbfe;
    font-family: 'Libre Baskerville';
}

* {
    margin: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 1.8em;
}

p, li, table {
    line-height: 1.5;
}

li {
    margin-bottom: 1.5rem;
    text-align: justify;
}

ul {
    margin-left: 20px;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}

table {
    width: 100%;
}

th {
    background-color: var(--azul-electrico);
    color: white;
    font-size: 15px;
}

/* --------------------------- CLASES --------------------------- */
.ul__bold::marker {
    font-weight: bold;
}

.p__cont {
    text-indent: 1.5em;
    text-align: justify;
}

.p__inciso {
    text-indent: -1.5em;
}

.p__gen {
    text-align: justify;
}

.p__der {
    text-align: right;
}

.p__izq {
    text-align: left;
}

.p__cen {
    text-align: center;
}

.p__normal {
    font-weight: normal;
}

.p__tbl {
    text-indent: 1.5em;
}

.p--13 {
    font-size: 13px;
}

.p--15 {
    font-size: 15px;
}

.p__ref {
    width: calc(100% - 6em);
    text-indent: -6em;
    text-align: justify;
    transform: translateX(6em);
    font-size: 15px;
}

.hero__portada {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/portada4.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.main {
    display: block;
    margin-top: 100vh;
    background-color: white;
    padding: 20px 0;
    box-sizing: border-box;
}

.main__container {
    max-width: 800px;
    margin: 0 auto;
}

.main__intro {
    text-align: center;
    padding: 300px 0;
}

.main__intro2 {
    text-align: center;
    padding: 150px 0 200px;
}

.espacio {
    margin-top: 30px;
}

.espacio50 {
    margin-top: 50px;
}

.azul__electrico {
    color: var(--azul-electrico);
}

#lupa {
    width: 150px;
}

.main__subtitulos {
    text-align: center;
    font-size: 18px;
}

#logo-folia {
    width: 100px;
}

.main__legal {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 300px;
}

.legal__logos {
    display: flex;
    justify-content: space-between;
}

.legal__miembros {
    display: flex;
}

.legal__izq {
    padding-right: 40px;
}

.legal__der {
    padding-left: 40px;
    border-left: 1px solid black;
}

.muli {
    font-family: "Mulish";
}

.small {
    font-variant: small-caps;
    font-size: 18px;
}

.sub__cont {
    display: flex;
    justify-content: center;
}

.num__cont {
    padding-right: 15px;
}

.main__cita {
    font-size: 15px;
    text-align: justify;
    padding: 5px 5%;
}

.tbl__diamante {
    background-color: var(--azul-diamante);
}

.tbl__nube {
    background-color: var(--azul-nube);
}

.tbl__10 {
    width: 10%;
}

.tbl__11 {
    width: 11%;
}

.tbl__15 {
    width: 15%;
}

.tbl__16 {
    width: 16%;
}

.tbl__20 {
    width: 20%;
}

.tbl__25 {
    width: 25%;
}

.tbl__30 {
    width: 30%;
}

.tbl__33 {
    width: 33%;
}

.tbl__35 {
    width: 35%;
}

.tbl__40 {
    width: 40%;
}

.tbl__45 {
    width: 45%;
}

.tbl__50 {
    width: 50%;
}

.tbl__55 {
    width: 55%;
}

.tbl__60 {
    width: 60%;
}

.tbl__70 {
    width: 70%;
}

.tbl__75 {
    width: 75%;
}

.tbl__80 {
    width: 80%;
}

.tbl__90 {
    width: 90%;
}

.tbl__padd {
    padding: 10px;
}

.tbl__info {
    padding: 10px;
    font-size: 14px;
}

.tbl__info2 {
    padding: 5px 10px;
    font-size: 14px;
}

.tbl__info3 {
    padding: 5px 10px;
    font-size: 12px;
}

.tbl__largo {
    margin: 0 auto;
}

.tbl__list {
    margin-bottom: 0.5rem;
}

.tbl__list2 {
    margin-top: 0.5rem;
}

.tbl__list3 {
    position: relative;
    left: -30px;
}

.form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form1 {
    padding: 0 40px 0 15px;
}

.form2 {
    padding: 0 10px;
}

.form3 {
    padding: 0 15px;
}

.form4 {
    padding: 0 5px;
}

.form__arriba {
    text-align: center;
    border-bottom: 1px solid black;
}

.figura {
    width: 100%;
}

.texto--vertical {
    transform: rotate(180deg);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 0;
}

.no--marg {
    margin: 0;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-in-out forwards; /* Animación con retraso */
}

.popup-contenido {
    position: relative;
    background-color: #fff;
    width: 70vw;
    height: 70vh;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto; /* Agrega una barra de desplazamiento vertical */
    overflow-x: hidden; /* Oculta la barra de desplazamiento horizontal */
}

.popup-contenido a {
    text-decoration: none; /* Quita el subrayado */
    color: inherit; /* Usa el color del elemento padre */
}

.popup-contenido a:hover {
    color: var(--azul-electrico);
}

.popup.fade-in {
    animation: fadeIn 1s ease-in-out forwards; /* Animación para abrir */
}

.popup.fade-out {
    animation: fadeOut 1s ease-in-out forwards; /* Animación para cerrar */
}

.niv1 {
    padding-left: 2em;
}

.menu {
    padding-top: 8px;
    padding-bottom: 8px;
}

.nave {
    display: grid;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    z-index: 9999;
    gap: 5px 5px;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-template-areas: 
    "e1 e1 e1 e1 e1 e1 e1 e1 e1 e1 e1 e1"
    ". . . . . . . . . . e2 e3";
}

.item {
    border: 1px solid black;
    background-color: white;
    border-radius: 15px;
    font-family: 'Karla';
    padding: 5px 15px;
    text-align: center;
}

.conte {
    grid-area: e3;
    cursor: pointer;
}

.epub {
    grid-area: e2;
}

.epub a {
    text-decoration: none;
    color: black;
}

.title {
    grid-area: e1;
}

#cerrarPopup {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: white;
    color: var(--azul-electrico);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#cerrarPopup:hover {
    color: black;
}

/* --------------------------- MEDIA QUERIES --------------------------- */

@media (min-width: 1200px) {
    .hero__portada{
        background-image: url('img/portada1.png');
        background-size: cover;
        background-position: center;
    }
}

/* --------------------------- KEYFRAMES --------------------------- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
