/* ESTILOS GENERALES CSNET */

:root {
    --principal: #7c80b1;
    --principal-suave: #f3f4f7;
    --principal2: #969bce;
    /*--secundario: #ff4343;*/
    --secundario: #e73f39;
    --dark1: #5a6284;
    --light1: #f5f5f5;
    --light2: #eeeff9;
    --gris1: #e7e7ea;
    --gris2: #E7E9EF;
    --negro: #131313;
    --negro2: #606060;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("/fuentes/RobotoCondensed/RobotoCondensed-VariableFont_wght.ttf");
    font-weight: 100 1000;
    font-display: swap;
}

@font-face {
    font-family: "Hind Siliguri";
    src: url("/fuentes/HindSiliguri/HindSiliguri-Light.ttf");
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: "Hind Siliguri";
    src: url("/fuentes/HindSiliguri/HindSiliguri-Regular.ttf");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Hind Siliguri";
    src: url("/fuentes/HindSiliguri/HindSiliguri-Medium.ttf");
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Hind Siliguri";
    src: url("/fuentes/HindSiliguri/HindSiliguri-Bold.ttf");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Hind Siliguri";
    src: url("/fuentes/HindSiliguri/HindSiliguri-Bold.ttf");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-Thin.ttf");
    font-style: normal;
    font-weight: 100;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-ThinItalic.ttf");
    font-style: italic;
    font-weight: 100;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-Light.ttf");
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-LightItalic.ttf");
    font-style: italic;
    font-weight: 300;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-Regular.ttf");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-Italic.ttf");
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-Medium.ttf");
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-MediumItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 500;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-BoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 700;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-Black.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
}

@font-face {
    font-family: "Roboto";
    src: url("/fuentes/Roboto/Roboto-BlackItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 900;
}

.fondo-principal {
    background-color: var(--principal);
}

.fondo-principal-suave {
    background-color: var(--principal-suave);
}

.fondo-light {
    background-color: var(--light1);
}

.color-principal {
    color: var(--principal);
}

.color-dark,
.accent-color {
    color: var(--dark1);
}

.color-secundario {
    color: var(--secundario);
}

.boton-principal,
.boton-outline-principal {
    font-family: "Hind Siliguri", sans-serif;
    font-weight: 700;
    border-radius: 0;
    text-transform: uppercase;
    border: 2px solid var(--principal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.boton-principal {
    color: white;
    background-color: var(--principal);
}

.boton-principal:hover {
    color: white;
    background-color: var(--principal2);
    border: 2px solid var(--principal2);
}

.boton-outline-principal {
    color: var(--principal);
}

.boton-outline-principal:hover {
    color: white;
    background-color: var(--principal);
}

body {
    font-family: "Roboto", sans-serif;
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1.1rem;
}

main {
    flex-grow: 1;
}

.boton-clausula {
    width: fit-content;
    border: 1px solid rgb(190, 190, 190);
}

.boton-clausula:focus:not(:focus-visible),
.boton-clausula:not(.collapsed) {
    color: var(--negro);
    box-shadow: none;
    background-color: transparent;
    border: 1px solid rgb(190, 190, 190);
}

.boton-clausula:not(.collapsed)::after {
    background-image: url("/imagenes/iconos/chevron-down.svg"),
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Cards */

.card-280 {
    height: 280px;
    width: 280px;
}

#downloadBtn {
    background-image: none;
}

.card-noticia {
    text-decoration: none;
    color: var(--negro);
    transition: all 0.2s;
}

.card-noticia:hover {
    color: var(--negro);
    opacity: 0.7;
}

.noticia a {
    color: var(--principal);
    text-decoration: none;
    transition: all 0.2s;
}

.noticia a:hover {
    opacity: 0.7;
}

ul.pagination {
    justify-content: center;
    margin-bottom: 3em;
}

.pagination .page-item.active .page-link {
    background-color: var(--verde1);
    border-color: var(--verde1);
}

.pagination .page-link {
    color: var(--verde1);
}

.pagination .page-link:focus {
    box-shadow: none;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0;
}

.pie {
    background-color: rgb(234, 238, 241);
    overflow: hidden;
}

.pie-contacto {
    flex-direction: column;
}
/* FIN DE ESTILOS GENERALES CSNET */

.header-principal {
    border-bottom: 3px solid var(--principal);
    height: 160px;
    transition: height 0.3s ease-in-out !important;
}

.header-on-scroll {
    height: fit-content !important;
    transition: height 0.3s ease-in-out !important;
}


/* ESTILOS DE ANIMACIÓN CAMBIO EN MENU */

#logo-simple {
    visibility: visible;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#logo-simple img {
    height: 50px;
}

/* Estilo para la transición suave */
.navbar-fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    position: absolute;
}

/* Visible con transición suave y retraso */
.navbar-fade-in, #logo-simple.navbar-fade-in {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease-out 0.3s, transform 0.3s ease-out 0.3s, visibility 0.3s ease-out 0.3s;
    position: relative;
}


/* Margen para el contenido que sigue al navbar */
.navbar-margin {
    margin-bottom: 160px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    width: auto !important;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
}

.header-principal .navbar-toggler:focus:not(:focus-visible) {
    box-shadow: none;
}

.header-principal .nav-link,
.pie a {
    color: var(--negro2);
    transition: all 0.2s;
}

.header-principal .nav-link:hover,
.pie a:hover {
    opacity: 1;
    color: var(--negro);
}

.header-principal .nav-item {
    font-family: "Roboto", sans-serif;
    font-weight: 500 !important;
}

.header-principal .dropdown-menu {
    min-width: fit-content;
}

.dropdown .nav-item {
    width: 100%;
}

.header-principal .dropdown-item:hover {
    background-color: var(--light2);
}
.x-twitter-icon {
    width: 20px;
}

.navbar-paginas .nav-link {
    font-family: "Roboto", sans-serif;
    font-weight: 500 !important;
}

.color-logo-principal {
    fill: #525061;
}

.color-logo-secundario {
    fill: var(--secundario);
}

.logo-pie {
    width: 250px;
    max-width: 100%;
    height: auto;
}

.logo-pie svg * {
    fill: var(--dark1);
}

.section-title {
    font-weight: 500;
}

/* BORDE COLOR PRINCIPAL */

.bt-principal {
    border-top: 3px solid var(--principal);
}

.bb-principal {
    border-bottom: 3px solid var(--principal);
}

.by-principal {
    border-bottom: 3px solid var(--principal);
    border-top: 3px solid var(--principal);
}

.by-dark {
    border-bottom: 3px solid var(--dark1);
    border-top: 3px solid var(--dark1);
}

/* VER MÁS */
.ver-mas {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.ver-mas:hover {
    color: var(--principal);
}

/* BANNERS DE LAS PÁGINAS */

.page-banner {
    position: relative;
    max-height: 275px;
    min-height: 275px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-banner img {
    object-fit: cover;
    position: center;
    width: 100%;
    filter: brightness(60%);
    box-sizing: border-box;
}

.banner-title {
    position: absolute;
    left: 22%;
    top: 50%;
    transform: translateY(-50%);
}

.titulo-principal {
    font-weight: 900;
    font-size: 3rem;
    height: fit-content;
    color: #fff;
    display: flex;
    align-items: baseline;
}

.cuadrado-titulo {
    margin-top: 0;
}

.titulo-principal svg {
    color: #fff;
    width: 32px;
    height: 32px;
}

/* Overlays paginas destacadas */

/* OBJETIVOS */

.lista-objetivos {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 0;
    padding-left: 2.5rem;
}

.contenedor-objetivo {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-self: start;
}

.forma {
    display: flex;
    justify-content: center;
    align-items: center;
}

.forma-cuadrado {
    height: 1rem;
    width: 1rem;
    background-color: var(--secundario);
}
.forma-triangulo {
    width: 0;
    height: 0;
    border-left: 1rem solid transparent;
    border-right: 1rem solid transparent;
    border-bottom: 1.732rem solid var(--dark1);
}

.forma-circulo {
    height: 2rem;
    width: 2rem;
    background-color: #bbb;
    border-radius: 50px;
}

.contenedor-objetivo .objetivo {
    font-size: 1.5rem;
    color: var(--dark1);
}

/* Tamaño de letra */
.font-20 {
    font-size: 1.25rem;
}

.font-48 {
    font-size: 3rem;
}

.font-32 {
    font-size: 2rem;
}

.italic-text{
    font-style: italic;
}

/* Contendores */
.contenedor-contenido-partido {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

/* Secciones */
.section-normal {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 12rem;
}

.section-contenido {
    width: 80%;
    max-width: 1320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Imagen */

.imagen-cuadrada {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 0;
    max-width: 580px;
}

.imagen-280 {
    max-height: 280px;
    max-width: 280px;
}

/* banners */
.section-banner {
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    margin: 3rem 0;
}

.section-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}

.section-banner-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
}

.title {
    margin: 0;
    max-width: 90%;
}

.subtitle {
    max-width: 90%;
    margin-top: 10px;
    font-weight: 300;
}
/* Elimina las flechas de los inputs numéricos (Chrome, Safari, Edge, Opera) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Opcional: prevenir cambio de valor con scroll del ratón */
input[type=number]:focus {
    outline: none;
}
input[type=number] {
    overscroll-behavior: none;
}

@media (min-width: 1200px) {
    .section-normal {
        padding: 3rem 10rem;
    }


    .page-banner {
        position: relative;
        max-height: 275px;
        min-height: 275px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-banner img {
        max-height: 275px;
        min-height: 275px;
        width: 100%;
    }
}

@media (max-width: 1200px) {

    .navbar-toggler{
        margin-right: 0;
        margin-left: auto;
    }

    .menu-collapsed{
        margin-top: 12px;
        padding: 1rem;
    }

    .section-normal {
        padding: 2.5rem 8rem;
    }

    .navbar-collapse{
        width: 100% !important;
        background-color: #fff;
    }
    .page-banner {
        position: relative;
        max-height: 230px;
        min-height: 230px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-banner img {
        max-height: 230px;
        min-height: 230px;
        width: 100%;
    }

    #logo-subtitled img {
        height: 120px;
    }

    #logo-simple img {
        height: 50px;
    }
}

@media (max-width: 991.5px) {
    .section-normal {
        padding: 2rem 5rem;
        flex-direction: column;
    }

    .dropdown-item {
        text-align: center;
    }

    .pie-logo,
    .pie-contacto {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 767.5px) {
    .section-normal {
        padding: 1.5rem 3rem;
    }

    .titulo-principal {
        font-size: 2.5rem;
    }

    .dropdown-item {
        text-align: center;
    }
}

@media (max-width: 567.5px) {
    .section-normal {
        padding: 1rem 1.5rem;
    }

    .font-20 {
        font-size: 1.1rem;
    }

    .font-48 {
        font-size: 1.75rem;
    }

    .font-32 {
        font-size: 1.3rem;
    }

    .section-banner-caption {
        width: 90%;
    }

    #logo-subtitled img {
        height: 100px;
    }

    .pie-logo,
    .pie-contacto,
    .pie-redes {
        width: 60%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 2rem;
    }

    .pie-contacto {
        flex-direction: column;
    }

    .banner-title {
        left: 12%;
    }

    .titulo-principal {
        font-size: 1.75rem;
    }

    .header-principal .dropdown-menu {
        width: 90vw;
    }
}
