@font-face {
    font-family: "Avenir Next";
    src: url("/fonts/AvenirNextLTPro-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

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

/* No consegui esta fuente desde la pagina official del BCIE */
/* TODO: The "Medium" font variant is missing. Consider using "Regular" or "Bold" as a fallback for font-weight: 500.
   If the "Medium" variant becomes available in the future, uncomment and update the @font-face rule below. */
/* @font-face {
    font-family: "Avenir Next";
    src: url("/fonts/AvenirNextLTPro-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
} */

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

:root {
    --bs-font-sans-serif: "Avenir Next", sans-serif;

    /* Custom BCIE values */
    --bcie-blue-dev: #004bce;
    --bcie-green: #2BCE75;
    --bcie-sand: #EAE7DD;
    --bcie-blue: #091f5a;
    --bcie-dark-grey: #81808C;
    --bcie-light-grey: #DEDEE0;

    --black: #000000;
    --white: #FFFFFF;
}

.masthead .main-navbar ul li a {
    color: var(--black);
    font-weight: 600; /* Semi-bold text */
}

.masthead .main-navbar ul li:hover a,
.masthead .main-navbar ul li:focus a,
.masthead .main-navbar ul li.active a {
    color: var(--bcie-blue);
    background-color: var(--white);
}

#field-sitewide-search {
    text-transform: uppercase;
    padding: 0px 10px;
}

.masthead {
  background: var(--white);
  color: var(--black);
  padding: 4px !important;
}

.masthead .navbar .logo img {
    max-height: 55px;
}

.homepage .hero {
    background: var(--white);
}

.account-masthead {
  background: var(--bcie-blue);
  color: var(--bcie-sand);
  padding: 4px;
  min-height: 40px;
}
.account-masthead .account ul li a {
  color: #bfd7de;
  font-weight: normal;
  font-size: 14px;
}

.announcements-container {
  /* This should be fixed in ckanext-announcements */
  padding-top: 0px;
}

.site-footer {
    background: var(--bcie-blue);
    color: var(--bcie-sand);
    margin-top: auto;
}

html, body {
    height: 100%; /* Asegura que el documento tenga altura completa */
    display: flex;
    flex-direction: column; /* Permite alinear elementos verticalmente */
}

.btn-primary {
    background: var(--bcie-blue-dev);
    color: var(--bcie-sand);
}

.btn-primary.active {
    background: var(--bcie-blue);
}

/*
  En este bloque se definen los colores de los botones segun el figma del BCIE.
  La clase .btn-light será deprecada y podrá ser removida en el próximo minor release de CKAN.
  Upstream PR: https://github.com/ckan/ckan/pull/8826/files
*/

.btn-secondary {
    background: var(--bcie-light-grey);
    color: var(--bcie-sand);
}

.btn-secondary.active {
    background: var(--bcie-blue);
}

.btn .btn-light{
    background: var(--bcie-light-grey);
    color: var(--black);
}

.btn-light, .btn-default {
    background: var(--bcie-light-grey);
    border: #81808C solid 0.1px !important;
    color: var(--black);
}

.btn .btn-light.active {
    background: var(--bcie-blue);
}

a {
    color: var(--bcie-blue-dev);
}

.media-heading {
    hyphens: none;
}

.main.module-feeds {
    background: var(--white);
    color: var(--black);
}
.module-heading {
    background: var(--white);
    color: var(--black);
}

.main{
    background: var(--white);
}

.media-grid{
    background: var(--white);
    color: var(--black);
}

.page-header {
    background: var(--white);
    color: var(--black);
}

.search-form .search-input button i {
    color: var(--bcie-green);
}

.btn-color {
    color: var(--bcie-green);
}

.site-search input.form-control {
    border-radius: 9999px !important;
  }

.site-search button.btn {
border-radius: 9999px;
}

.btn-primary:hover {
    color: var(--white);
    background-color: var(--bcie-blue-dev);
    border-color: var(--bcie-blue);
}

.logo_footer img {
    max-height: 55px;
    margin: 0;
    padding: 0;
    display: block;
}

.social-icons {
    display: flex;
    gap: 10px; /* Espacio entre los íconos */
    padding: 0; /* Quita el padding predeterminado del <ul> */
    margin: 0; /* Quita el margen predeterminado del <ul> */
    list-style: none; /* Quita las viñetas de la lista */
}

.social-icons li a {
    text-decoration: none; /* Sin subrayado */
    color: var(--white); /* Ajusta el color de los íconos */
    font-size: 24px; /* Ajusta el tamaño del ícono */
    transition: color 0.3s; /* Efecto suave al pasar el mouse */
}

.social-icons li a:hover {
    color: var(--bcie-dark-green); /* Cambia de color al pasar el mouse */
}

.page-item.active .page-link{
    background-color: var(--bcie-blue-dev);
    border-color: var(--white);
}

.disabled a{
    border-color: var(--black);
    pointer-events: none; /* Desactiva la interacción con el enlace */
    color: gray; /* Cambia el color para que parezca desactivado */
    cursor: not-allowed; /* Cambia el cursor a uno de "no permitido" */
    text-decoration: none; /* Opcional: elimina el subrayado */
    opacity: 0.6; /* Opcional: hace que parezca más tenue */
}


/* Homepage Hero */
.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/promoted-image-2.jpg");

  /* Set a specific height */
  height: 60vh;

  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
}

.hero-text {
    font-size: 3.7rem;
    color: white;
    justify-self: center;
    align-self: center;
    text-wrap: balance;
    font-weight: 700;
    line-height: 1;
    margin-left: 10%;
}

/* Breadcrumb */
.toolbar .breadcrumb {
  font-size: var(--bs-body-font-size);
}

.toolbar .breadcrumb a {
  color: var(--black);
  text-transform: uppercase;
}

.toolbar .breadcrumb a:hover {
  color: var(--bcie-blue-dev);
  text-decoration: none;
}

.toolbar .breadcrumb .active a {
  font-weight: 500;
}

.toolbar .breadcrumb li:not(:first-child)::before {
    float: left;
    padding-right: 0.5rem;
    color: var(--black);
    content: ">";
}

/* Fin Breadcrumb */
