/******************************************************
   * Colors theme
   *****************************************************/

:root {
  --bs-primary: #00953b;
  --bs-primary-rgb: 0, 149, 59;
  --bs-body-color: #696b6a;
  /*  #7b7b7b; */
  --bs-link-color: #00953b;
  --bs-link-hover-color: rgb(0, 122, 50);
  --bs-link-opacity: 1;

  --bs-link-color-rgb: 0, 149, 59;
  --bs-link-hover-color-rgb: 0, 122, 50;
  --bs-link-hover-opacity: 1;
  /*
    --bs-pagination-active-bg: #00953b;
    --bs-pagination-active-border-color: #09a347;
    */
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #007a32;
  --bs-btn-hover-border-color: #007a32;
  --bs-btn-active-bg: #00662a;
  --bs-btn-active-border-color: #00662a;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}


.btn-outline-primary {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

a {
  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
  text-decoration: none;
}

a:hover {
  color: rgba(var(--bs-link-hover-color-rgb), var(--bs-link-hover-opacity, 1));
  text-decoration: none;
}

/******************************************************
   * Menu principal
   *****************************************************/
@media (max-width: 576px) {
  .navbar-brand {
    flex-direction: row; /* Logo y texto en fila */
    align-items: center;
    text-align: left;
  }

  .navbar-brand img {
    margin-right: 6px; /* espacio entre logo y texto */
    margin-bottom: 0;
  }

  .navbar-brand span {
    font-size: 16px !important;
    white-space: normal; /* permite que se divida en 2 líneas si es necesario */
    line-height: 1.2;
  }
}

/******************************************************
   * Breadcrumb
   *****************************************************/

.breadcrumb a {
  color: var(--bs-link-color) !important;
  text-decoration: underline !important;
  font-weight: bold !important;
}

.breadcrumb a:hover {
  color: var(--bs-link-hover-color) !important;
}

/******************************************************
   * Slider
   *****************************************************/

.caption-box {
  max-width: 100%;
}

@media (min-width: 768px) {
  .caption-box {
    max-width: 400px;
  }
}

@media (min-width: 1200px) {
  .caption-box {
    max-width: 400px;
  }
}

/******************************************************
   * Head page
   *****************************************************/
.page-title-section {
  /* background: #f0f0f0 url('assets/img/bg-gray.jpg') center center / cover no-repeat;*/
  background: var(--bs-gray-100) url("../img/bg-head.jpg") center center / cover
    no-repeat;
  /*color: white;*/
  padding: 60px 0;
  text-align: center;
}

/******************************************************
   * Filter
   *****************************************************/

.filter-group {
  margin-bottom: 2rem;
}

.icon-view-mode i {
  cursor: pointer;
  color: var(--bs-gray-500);
  font-size: 1.5rem;
}

.icon-view-mode i.active {
  /*color: #00953b;*/
  color: var(--bs-gray-600);
}

.icon-view-mode i:hover {
  color: var(--bs-gray-600);
}

/******************************************************
   * Paginador
   *****************************************************/

.pagination .page-item.active .page-link {
  background-color: #00953b !important;
  border-color: #09a347 !important;
}

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

/******************************************************
   * Forms
   *****************************************************/

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Clase personalizada para botones grandes en lg */
@media (min-width: 992px) {
  .flex-lg-50 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/*
  form-select option:hover {
    background-color: var(--bs-primary);
  }
  */

/******************************************************
   * End colors theme
   *****************************************************/

body {
  font-family: "Roboto", sans-serif;
}

/******************************************************
   * Tablets
   *****************************************************/
@media (min-width: 768px) and (max-width: 991px) {
  #filtroAnioooo {
    min-width: 220px;
  }
}

/******************************************************
   * Bar menu
   *****************************************************/
.navbar-institucional {
  background-color: #00953b;
}

.btn-outline-light i {
  margin-right: 5px;
}

.navbar-institucional .nav-link {
  color: #fff !important;
}

.dropdown-item:focus,
.dropdown-item:active {
  background-color: var(--bs-primary, #00953b) !important;
  color: #fff !important;
  outline: none !important;
}

.dropdown-item:hover {
  background-color: #d3d3d3;
  color: #fff;
}

.dropdown-item {
  -webkit-tap-highlight-color: transparent;
}

/******************************************************
   * Background section light
   *****************************************************/

.section-light {
  background-color: #f8f9fa;
}

/******************************************************
   * Cards
   *****************************************************/

.title-card {
  height: 4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (min-width: 768px) and (max-width: 1024px) {
  h5.title-card {
    font-size: 1.2rem !important;
  }
}

/******************************************************
   * News 
   *****************************************************/

.noticia {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.noticia:last-child {
  border-bottom: none;
}

.noticias-card {
  font-size: 0.75rem;
}

.noticias-card h6 {
  font-size: 0.95rem;
  font-weight: normal;
}

#noticias-loader {
  min-height: 150px;
  /* altura mínima mientras carga */
}

/******************************************************
   * Animation
   *****************************************************/

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

.fade-in.show {
  opacity: 1;
}

/******************************************************
   * Google login
   *****************************************************/
.btn-google {
  background-color: #ffffff; /* Fondo blanco */
  border: 1px solid #ccc; /* Borde gris */
  color: #000; /* Texto negro */
  transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-google:hover {
  background-color: #e8f0fe; /* Color hover más moderno */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/******************************************************
   * Footer
   *****************************************************/

footer h5 {
  margin-bottom: 1.5rem;
  font-weight: 600;
}

footer ul li {
  margin-bottom: 0.85rem;
}

/******************************************************
   * Clases temporales para la muestra (se va a eliminar)
   *****************************************************/
.temporary_card_show_category_publisher {
  display: none;
}

.temporary_news_show_image {
  display: none;
}
