/* INICIO GENERAL */
@font-face {
    font-family: "AvenirNext";
    src: url("../fonts/AvenirNextLTPro-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "AvenirNext";
    src: url("../fonts/AvenirNextLTPro-Bold.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "AvenirNext";
    src: url("../fonts/AvenirNextLTPro-It.otf") format("opentype");
    font-weight: normal;
    font-style: italic;
}

* {
    user-select: none;
}

body {
    background-color: #01305d;
    width: 100%;
    margin: 0 !important;
    font-family: "AvenirNext";
    display: flex;
    flex-direction: column;
    align-items: center;
}

.max-width-container {
    max-width: 1200px !important;
}

.row {
    margin: 0 !important;
}

a {
    text-decoration: none;
    color: inherit;
}
/* FIN GENERAL */

/* INICIO HOME */
.div-inicio {
    display: flex;
    width: 100%;
}

.bloque-azul {
    width: 10%;
    background-color: #005194;
}

.contenedor-principal {
    background-image: url("../img/Fondo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 90%;
}
/* FIN HOME */

/* INICIO NAVBAR */
.logo-informatica {
    height: 100%;
    width: 10vw;
    margin-left: 2vw;
}

.div-navbar {
    border: none;
}

.navbar {
    display: flex;
    justify-content: space-around;
    padding: 2.5vw 0 5.5vw 0;
    background-color: transparent !important;
    width: 90%;
}

.navbar-opciones {
    width: 100%;
    justify-content: space-around;
}

.nav-link {
    font-size: 15.5px;
    font-weight: 300;
}
/* FIN NAVBAR */

/* INICIO CONTENT */
.div-content {
    display: flex;
    align-items: flex-start;
    margin: 0 !important;
}

.div-imagen {
    position: relative;
    background-color: #005194;
    width: 320px;
    min-width: 320px;
    height: 220px;
    margin-top: 35px; /* Espacio superior para compensar el desfasaje de la foto */
    margin-right: 40px; /* Separación con el texto para que el desfasaje no tape las letras */
}

.img-content {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Encuadra la foto sin deformarla ni estirarla */
    border-top-right-radius: 80px;
    border: 3px solid white;
    /*box-sizing: border-box;*/
    /* Mueve la foto hacia arriba y la derecha, permitiendo ver el marco azul abajo a la izquierda */
    transform: translate(35px, -35px);
}

.div-intro {
    padding-bottom: 3rem;
    padding-left: 1rem;
    flex: 1;
}

.titulo-informatica {
    font-size: 15.5px;
    color: #4e4f4f;
}

.texto-bienvenida {
    font-size: 14.5px;
    font-weight: 300;
    padding: 0 3vw 0 0;
    color: grey;
}
/* FIN CONTENT */

/* INICIO MODALIDADES */
#modalidades {
    background-color: #005194;
}

.div-modalidades {
    background: linear-gradient(to bottom, white 35%, #005194 35%);
    text-align: center;
    padding: 2vw 0 5vw 0;
    transform: translateY(-1px);
}

.titulo-modalidades {
    font-size: 15.5px;
}

.subtitulo-modalidades {
    color: grey;
    font-size: 14.5px;
    padding-left: calc(5% + 16px);
    padding-right: calc(5% + 16px);
}

.card {
    background-color: transparent;
    border: none;
    color: white;
}

.col-modalidad {
    display: flex;
    justify-content: center;
    margin-top: 1vw;
}

.tipo-modalidad {
    width: 80%;
}

.tipos-modalidades {
    display: flex;
    justify-content: space-evenly;
}

.tipos-modalidades > div {
    width: 40%;
}

.card-title {
    font-size: 15.5px;
    font-weight: 300;
}

.card-text {
    font-weight: 100;
    font-size: 14.5px;
    text-align: justify !important;
}

.modal-title {
    font-size: 1.5vw !important;
}
/* FIN MODALIDADES */

/* INICIO INFO */

.div-info {
    display: flex;
    justify-content: space-evenly;
    padding: 3rem 0 2rem 0 !important;
    margin: 0 2rem 2rem 2rem !important;
    border: 1px solid white;
    border-radius: 25px;
    position: relative;
}

.titulo-informacion {
    position: absolute;
    text-align: center;
    color: white;
    font-size: 15.5px;
    top: -12px;
    width: auto;
    background-color: #005194;
    text-transform: uppercase;
}

.info {
    border-radius: 30px;
    background-color: white;
    text-align: center;
    color: #155d9d;
    padding: 0 1rem;
    margin: 1.5rem 0;
    position: relative;
    width: calc(100% / 4 - 1.5rem);
}

.info img {
    width: 5rem;
    height: 5rem;
    border-radius: 100%;
    transform: translateY(-30%);
}

.info h2 {
    font-size: 14px;
    transform: translateY(-75%);
}

.leyenda-cursos {
    position: absolute;
    text-align: center;
    font-size: 17px;
    color: white;
    width: auto;
    bottom: 15px;
    padding: 1rem 2rem 0 2rem;
}
/* FIN INFO */

/* INICIO FOOTER */
#footer {
    width: 100%;
}

.div-footer {
    display: flex;
    justify-content: space-between;
    background-color: white;
    padding: 2vw 2vw 0.5vw 2vw;
    color: #155d9d;
}

.seccion-info {
    display: inline-flex;
}

.redes {
    margin-bottom: 2vw;
}

.redes img {
    width: 4vw;
}

.info-unidad {
    font-size: 13px;
}

.info-unidad p {
    margin: 0 !important;
}

.seccion-sitios {
    width: 50%;
}

.titulo-sitios {
    font-size: 14px;
    font-weight: bolder;
}

.link-unidad {
    font-size: 13px;
}
/* FIN FOOTER */

/* INICIO MODAL */
.div-categorias {
    display: flex;
    justify-content: space-around;
}

.modal-title {
    color: #005194;
    font-size: 20px !important;
    letter-spacing: 1px;
}

.titulo-categorias {
    text-align: center;
    font-size: 17px;
    color: #005194;
    letter-spacing: 1px;
}

.btn-categoria {
    width: 20%;
    border: 1px solid black;
    border-radius: 10px;
    padding: 1vw;
    text-align: center;
    transition: all ease-in-out 0.5s;
    font-size: 14px;
    background-color: #01305d;
    color: white;
    letter-spacing: 2px;

    &:hover {
        transform: scale(1.1);
    }
}

.div-programa {
    width: calc((100% - 4rem) / 5);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    transition: all ease-in-out 0.5s;
    border-radius: 15px;
    overflow: hidden;

    &:hover {
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }
}

.div-programa img {
    width: 100%;
}

.div-programa p {
    text-align: center;
    font-size: 10px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    padding: 0 0.5rem;
    letter-spacing: 1px;
}

.btn-volver {
    border: none;
    color: white;
    border-radius: 10px;
    padding: 0.5vw 2vw;
    font-size: 18px;
    margin: 1vw 0;
    background-color: #005194;
    transition: all ease-in-out 0.5s;

    &:hover {
        transform: scale(1.1);
    }
}
/* FIN MODAL */

/* INICIO RESPONSIVE */
@media (width >= 1200px) {
    .logo-informatica {
        width: 7vw;
    }

    .div-navbar {
        border: none;
    }

    .div-imagen {
        width: 450px;
        min-width: 360px;
        height: 300px;
    }

    .img-content {
        transform: translate(35px, -40px);
    }

    .div-intro {
        padding-left: 2rem;
        padding-bottom: 0vw;
    }

    .texto-bienvenida {
        padding-right: 1vw;
    }

    .div-modalidades {
        padding-bottom: 5vw;
    }

    .titulo-modalidades {
        padding: 1vw 0;
    }

    .subtitulo-modalidades {
        padding: 0 1vw;
    }

    .tipo-modalidad {
        width: 90%;
    }

    .info p {
        padding: 0 0.5vw;
    }

    .redes {
        margin-bottom: 1vw;
    }

    .redes img {
        width: 2vw;
    }

    .seccion-sitios {
        width: 50%;
    }
}

@media (992px <= width <= 1199px) {
    .info {
        width: calc(100% / 2 - 3rem);
    }

    .div-imagen {
        width: 400px;
        min-width: 280px;
        height: 275px;
    }

    .img-content {
        transform: translate(20px, -30px);
    }
}

@media (769px <= width <= 991px) {
    .div-navbar {
        border-bottom: 1px solid black;
        margin: 0.5rem 1.5rem;
    }

    .bloque-azul {
        display: none !important;
    }

    .div-imagen {
        display: none !important;
    }

    .div-intro {
        padding: 0 3rem 2rem 3rem;
    }

    .contenedor-principal {
        width: 100%;
    }

    .tipo-modalidad {
        width: 90%;
    }

    .seccion-sitios {
        width: 60%;
    }

    .div-programa {
        width: calc((100% - 2rem) / 3);
    }

    .div-categorias {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .btn-categoria {
        width: 50%;
    }

    .div-modalidades {
        background: linear-gradient(to bottom, white 25%, #005194 25%);
    }

    .titulo-informatica {
        text-align: center;
    }

    .texto-bienvenida {
        text-align: justify !important;
    }

    .info {
        width: calc(100% / 2 - 3rem);
    }
}

@media (width <= 768px) {
    .div-navbar {
        border-bottom: 1px solid black;
        margin: 0.5rem 1.5rem;
    }

    .logo-informatica {
        width: 5rem;
    }
    .contenedor-principal {
        width: 100%;
    }

    .bloque-azul {
        display: none;
    }

    .div-intro {
        padding: 0 1.5rem 2rem 1.5rem;
    }

    .div-imagen {
        display: none;
    }

    .tipo-modalidad {
        width: 90%;
    }

    .img-modalidades {
        width: 80%;
    }

    .div-modalidades {
        background: linear-gradient(to bottom, white 30vw, #005194 30vw);
    }

    .div-categorias {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .btn-categoria {
        width: 75%;
    }

    .div-info {
        padding-bottom: 5rem !important;
    }

    .info {
        width: 75%;
        display: block;
        margin-bottom: 3rem;
    }

    .div-programa {
        width: calc((100% - 1rem) / 2);
    }

    .div-categoria {
        font-size: 8px;
    }

    .titulo-informatica {
        text-align: center;
    }

    .texto-bienvenida {
        text-align: justify !important;
    }

    .div-footer {
        display: block;
        padding-left: 2rem;
    }

    .seccion-sitios {
        width: 100%;
        margin-top: 1rem;
    }

    .div-sitios {
        display: block;
    }

    .titulo-sitios {
        margin-bottom: 0.5rem;
    }
}
/* FIN RESPONSIVE */
