/* ------------------------- Body ------------------------- */

#body {
    background-color: #7D0988;
    zoom: 0.6; /* Reduce tamaño de los elementos*/
}

.introduccion{
    color: gold;
    margin-left: 15rem;
    margin-right: 15rem;
    margin-top: 3rem;
    font-size: 2rem;
    text-align: justify;
}

.texto_destacado {
    font-weight: bolder;
    font-size: 2.2;
}

.tabulado {
    padding-left: 40px;
}

/* ------------------------ Banner ------------------------ */

.banner-header {
    height: 20vw; /* vw = viewport width (tamaño relativo al ancho de pantalla) */
    min-height: 15rem; /* rem = root element (tamaño relativo al elemento raiz) */
}

.bannerImg {
    margin-top: 1vw;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


/* -------------------------- Nav ------------------------- */

.nav-bar {
    background-color: #7D0988;
    color: gold;
    padding-left: 3vw;
    padding-right: 3vw;
    height: 4.5vw;
    min-height: fit-content;
    top: 0;
    position:sticky;
}

.nav-item-box, .nav-item-box-selected {
    color: gold;
    text-decoration: none !important;
    text-align: center;
    align-content: center;
    padding: 0.5vw 1.2vw;
    width:25vw;
    min-width: fit-content;
    min-height: fit-content;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* animación */
}

.nav-item-box {
    background: rgba(255,255,255,0.25);
    font-size: x-large;
    font-weight: bold;
}

.nav-item-box-selected {
    background: rgba(255, 255, 255, 0.55);
    font-size: xx-large;
    font-weight: bolder;
}

.nav-item-box:hover {
    background: rgba(255, 255, 255, 0.45);
    color: gold;
    transform: scale(1.03); /* animación */
}

/*----------------- Responsive para el nav -----------------*/
/* Ocultamos checkbox real */
.menu-toggle {
    display: none;
}

/* Botón hamburguesa oculto en escritorio */
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}


/* ---------------------- Modo Móvil ---------------------- */
@media (max-width: 768px) {

    .menu-icon {
        display: block;
    }

    .introduccion {
        margin-left: 4rem;
        margin-right: 4rem;
        font-size: 1.5rem;
        text-align: left; 
    }

    .nav-bar {
        flex-direction: column !important;
        align-items: center;
        display: none !important;
        background: #7D0988; 
    }

    /* Cuando el checkbox está activo, mostramos el nav */
    .menu-toggle:checked + .menu-icon + .nav-bar {
        display: flex !important;
    }

    .nav-item-box,
    .nav-item-box-selected {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }  
}

@media (max-width: 480px) {

    .introduccion {
        margin-left: 2rem;
        margin-right: 2rem;
        margin-top: 1.5rem;
        line-height: 1.4; 
    }
}

/* ------------------------- Divs ------------------------- */

.div60 {
    padding-left: 2vw;
    width:80vw;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

/* ------------------------ Enlaces ----------------------- */

a {
    color: inherit;            
    text-decoration: none;     
}

a:visited {
    color: inherit;
}

a:hover {
    color: inherit;            
    text-decoration: underline; 
}

/* El orden de los enlaces en tarjetas debe ser siempre:
    Web -> Instagram -> Youtube -> Facebook -> TikTok */

.enlace_wb, .enlace_yt {
    width: 3rem;
    height: 3rem;
}

.enlace_ig, .enlace_fb {
    width: 4rem;
    height: 4rem;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
}

.enlace_wb {
    margin-left: 0.5rem;
    margin-right: 0.7rem;
    margin-top: 0.6rem;
}

.enlace_tk {
    width: 3.4rem;
    height: 3.4rem;
    margin-top: 0.4rem;
}

.enlace_yt {
    margin-left: 1.2rem;
    margin-right: 0.8rem;
    margin-top: 0.60rem;
}

.enlace_fb {
    margin-left: 0.1rem;
}
/* ------------------- Capas sobre eje Z ------------------ */

.zindex_back {
    z-index: -1;
}

.zindex_0 {
    z-index: 0;
}

.zindex_1 {
    z-index: 1;
}
