/* ESTILOS GENERALES CSNET */

:root {
    --principal: #cfcfcf;
    --secundario: #2d2d2d;
    --negro: #000;
    --blanco: #fff;
    --naranja: #f0aa39;
}

@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-Regular.ttf");
    font-style: normal;
    font-weight: 400;
}

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

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

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

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

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

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

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

.color-gris-claro{
    color: #ccc;
}

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

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

.boton-outline-principal {
    color: var(--principal);
    border: 1px solid var(--principal);
}

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

body {
    font-family: "Outfit", sans-serif;
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 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");
}

.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;
}

.img-byn{
    filter: grayscale(1);
}

/* FIN DE ESTILOS GENERALES CSNET */

/* Estilos generales SPANIA GTA*/

/* Comportamiento del navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: none;
    transition: transform 0.3s ease, opacity 0.6s ease, padding 0.3s ease,
        background-color 0.3s ease;
    transform: translateY(0);
    opacity: 1;
    display: flex;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.hidden {
    transform: translateY(-150%);
}

.navbar.scrolled {
    background-color: var(--negro);
    padding: 0 !important;
    min-height: 140px;
}

.navbar-content {
    max-width: 1200px;
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 0;
    box-sizing: border-box;
    transition: padding 0.3s ease, height 0.3s ease;
}

.navbar.scrolled .navbar-content {
    padding-top: 20px;
    padding-bottom: 20px;
    height: auto;
}

.navbar-brand img {
    height: 100px;
    display: flex;
    align-items: center;
}

.nav-link:focus{
    color: red;
}

.logo-container {
    position: relative;
    height: 100px;
}

.logo-container img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: opacity 0.5s ease;
}

.logo-container img.original {
    z-index: 1;
}

.navbar.scrolled .logo-container img.original {
    opacity: 0;
}

.logo-container img.scrolled {
    z-index: 1;
    opacity: 0;
}

.logo-container img.active {
    opacity: 1;
}

.imagen-logo {
    transition: opacity 0.3s ease;
    display: block;
}

.navbar a {
    color: var(--blanco);
    text-decoration: none;
}

.navbar a:hover {
    color: var(--blanco);
    opacity: 0.85;
}

/* ENLACES NAVBAR */
.escalera {
    display: flex;
    flex-direction: column;
}

.escalera a {
    margin-bottom: 0.5rem;
    padding-left: 0;
    transition: padding-left 0.3s;
}


/* ICONO MENU NAVBAR */

.navbar-toggler {
    width: 100px;
    height: 100px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.menu-icon {
    display: block;
    width: 70%;
    height: auto;
}

.menu-icon .line {
    fill: white;
    transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.35, 1);
    transform-origin: center;
    transform-box: fill-box;
}

.navbar-toggler.collapsed .menu-icon .top,
.navbar-toggler.collapsed .menu-icon .bottom {
    transform: rotate(0) translateY(0);
}

.navbar-toggler:not(.collapsed) .menu-icon .top {
    transform: translateY(0) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .menu-icon .bottom {
    transform: translateY(-17px) rotate(-45deg);
}

/* ESTILOS DE TEXTOS */

.texto-destacado {
    color: #000;

    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
}

/* PIE */
.pie {
    padding: 58px 64px;
    background-color: var(--negro);
    color: var(--blanco);
}

.pie-superior {
    padding-bottom: 40px;
}

.ancla-logo-pie{
    min-height: 280px;
}

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


.pie li {
    padding-bottom: 1rem;
    line-height: normal;
}

.pie li a {
    color: var(--blanco);
    font-size: 1rem;
    font-style: normal;
    font-weight: 300;
}

.rutas-principales li {
    line-height: normal;
}
.rutas-principales li a {
    color: #fff;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

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

.pie a:hover {
    color: var(--principal);
}

.pie-inferior {
    border-top: 1px solid var(--blanco);
}

.pie-inferior a {
    color: var(--blanco);
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.pie-inferior .row {
    padding: 20px;
}

/* alertas y mensajes */

.alert{
    background-color: black !important;
    border-radius: 0 !important;
    color: white !important;
    margin-top: 3rem;
}

@media (max-width: 768px) {

}
@media (max-width: 450px) {
    .logo-pie {
        max-height: 180px;
        height: 100%;
        width: auto;
    }
}
