/*ESTILOS CSS  TEMA RICORS_REI*/

:root {
  --primary-color: #c31305;
  --secondary-color: #fac610;
  --text-color: #334155;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --footer-bg: #1a1a1a;
  --sidebar-bg: #111827;
  --fuente-principal: 'Source Sans Pro', sans-serif;
  --font-base: 16px;
  --line-height: 1.6;
}

/*
==============                ==============
                  GENERAL
==============                ============== */

/* Aplicamos a toda la página */
html,
body,
#page-wrapper,
#page,
#page-user {
  font-family: var(--fuente-principal) !important;
  font-size: var(--font-base);
  line-height: var(--line-height);
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Aseguramos que el html y body ocupen todo el alto */
html,
body {
  height: 100%;
  margin: 0;
}

#page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

main {
  padding-top: 80px; /* altura del menú */
}

#header,
#main-wrapper {
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Header fijo a todo el ancho */
header#header.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
  max-width: 100% !important;
}

/* El nav interior se centra con padding lateral */
header#header.header nav#navbar-main {
  max-width: 1200px;
  /* o el ancho que uses en el resto del site */
  margin: 0 auto;
  width: 100%;
  padding-left: 25px;
  padding-right: 15px;
}

#page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* 100% del alto de la ventana */
  padding-top: 100px;
  /* ajusta según la altura real de tu header */
}

#main-wrapper {
  flex: 1 0 auto;
}

body.path-user,
#page-wrapper {
  height: auto !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  padding: inherit;
}

/* 2. Tu contenedor privado: flujo libre hacia abajo */
.content-private {
  flex-grow: 1;
  margin-left: 300px;
  width: calc(100% - 300px);
  background-color: #e2e8f0;
  height: auto !important;
  /* Nos aseguramos de que NO tenga tamaño fijo */
  overflow: visible !important;
  /* No queremos scrolls internos aquí dentro */
  display: flex;
  flex-direction: column;
}

/* 3. Aseguramos que el contenido de la Vista no se quede atrapado en un contenedor rígido */
.content-private #main-content {
  flex-grow: 1;
  height: auto !important;
  overflow: visible !important;
}


/* El footer se queda al final */
.site-footer {
  flex-shrink: 0;
}

.btn-primary {
  color: #ffffff;
  /* margin-top: 10px; */
}

.btn-primary:hover {
  color: #ffffff;
}

.d-inline-block {
  max-width: 11rem;
}

p {
  margin-bottom: 1rem;
  font-family: var(--fuente-principal) !important;
  font-size: 1rem;
}

button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fuente-principal);
}

h1 {
  font-size: 2.3rem;
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.50rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.12rem;
}

h6 {
  font-size: 0.7rem;
  font-weight: bold;
}

.field__item,
.block-ricors-rei-content {
  margin-bottom: 6% !important;
}
.view{
  margin-bottom: 0% !important;
}


.fieldset-legend {
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
  ;
  font-weight: bold;
  font-size: 17px;
}

/*margen de abajo de los botones de buscar en views*/
.mb-3 {
  margin-bottom: 0rem !important;
}


article.node {
  position: relative;
  z-index: 1;
  /* Un valor bajo para que se quede atrás */
}

/*
==============                ==============
                  BUSCADOR
==============                ============== */

/* Contenedor principal del formulario */
#edit-submit,
#edit-submit-publicaciones {
  color: white;
}

#search-block-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  transition: all 0.4s ease;
  position: relative;
}

/* --- EL CAMPO DE TEXTO (SOLO LÍNEA INFERIOR) --- */
#search-block-form input[type="search"],
#search-block-form .form-text {
  width: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--text-color, #333);
  border-radius: 0;
  height: 40px;
  outline: none;
}

/* --- EL BOTÓN DE BÚSQUEDA (SOLO LUPA) --- */
#search-block-form input[type="submit"],
#search-block-form .form-submit {
  width: 60px;
  height: 40px;
  background-color: transparent;
  color: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  margin-left: -15px;
}

/* --- ESTADO EXPANDIDO --- */

#search-block-form:hover input[type="search"],
#search-block-form input[type="search"]:focus {
  width: 220px;
  padding: 0 40px 0 5px;
  opacity: 1;
  cursor: text;
}

#search-block-form:hover .form-submit {
  opacity: 0.7;
}

.form-item-search-block-form {
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.form-actions {
  margin: 0 !important;
}

@media (max-width: 1200px) {

  #search-block-form {
    width: 100%;
  }

  #block-ricors-rei-main-menu .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
  }

  #block-ricors-rei-main-menu .nav-item:last-child {
    border-bottom: none;
  }

  .submenu-toggle {
    margin-left: 8px;
    color: var(--primary-color);
    transition: transform 0.2s ease;
  }

  .dropdown.open .submenu-toggle i {
    transform: rotate(180deg);
  }

  .dropdown-content {
    background-color: rgba(0, 0, 0, 0.02);
    padding-left: 12px;
  }

  .dropdown-content-item {
    padding: 10px 0;
  }

  .dropdown-content-item a {
    font-size: 0.9rem;
  }

   #search-block-form {
    margin: 16px 0;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 24px;
  }

  .area-privada-link { /* ajusta el selector real */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
  }

  #search-block-form {
    justify-content: center;
    width: 100%;
    margin: 16px auto;
    padding: 10px 20px; /* más alto = buscador más grande */
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    max-width: none; /* quitamos cualquier límite heredado */
  }

  .form-item-search-block-form {
    justify-content: center;
    width: 100%;
  }

  #search-block-form input[type="search"],
  #search-block-form .form-text {
    width: 100%;
    opacity: 1;
    cursor: text;
    border-bottom: none;
    font-size: 1rem; /* un poco más grande el texto */
  }

  #block-search-form-block{
    margin-left: 15%;
  }
  
      #block-ricors-rei-search-form-narrow {
    display: flex;
    justify-content: center;
  }

}


/*
==============                ==============
                    HEADER
==============                ============== */
header {
  position: relative;
  max-width: 1315px;
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
  z-index: 100;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: -1;
}

.region-secondary-menu {
  display: flex !important;
  margin-left: auto !important;
  flex: 0 1 auto !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

#block-ricors-rei-account-menu {
  width: auto !important;
  flex: 0 0 auto !important;
  margin-right: 15px !important;
}

#block-ricors-rei-account-menu ul.nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  /* Prohibido bajar a la segunda línea */
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
}

#block-ricors-rei-account-menu ul.nav li a {
  white-space: nowrap !important;
}

/* 5. Buscador: Compacto a la derecha */
#block-ricors-rei-search-form-wide {
  margin: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
}

#block-ricors-rei-search-form-wide form {
  display: flex;
  margin: 0;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #ffffff !important;
}

.navbar-nav .nav-link {
  font-size: 14px;
  font-weight: 500;
}

.navbar-nav .dropdown-content a {
  font-size: 15px;
  padding: 8px 12px;
}

.navbar-nav .dropdown-content a i {
  font-size: 13px;
  width: 16px;
}

/* 1. Estado inicial de los enlaces del submenú */
.navbar-nav .dropdown-content a {
  display: block;
  transition: transform 0.25s ease;
}

/* 2. Efecto Hover: se desplaza ligeramente hacia la derecha/izquierda */
.navbar-nav .dropdown-content a:hover {
  transform: translateX(6px);
}

/*ACCOUNT*/
.nav-link--user {
  border: 1px solid #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--primary-color) !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-area-privada::before {
  font-family: "Font Awesome 6 Free";
  content: "\f4f5";
  font-weight: 900;
  margin-right: 8px;
}

.user-login-form,
.user-pass {
  padding: 5rem 0;
  max-width: 450px;
  /* Evita que se estire infinitamente */
  margin-left: auto;
  /* Centra el formulario horizontalmente */
  margin-right: auto;
}

/*MENU*/
#block-ricors-rei-main-menu .nav-item a {
  color: var(--text-color);
  text-decoration: var(--text-color);
  font-size: 1rem;
}

#block-ricors-rei-main-menu .nav-item a:hover {
  color: var(--primary-color);
}

.dropdown {
  position: relative;
  display: inline-block;
}

/* Oculto por defecto */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff; /* ajusta a tu diseño */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);

}

/* Mostrar al pasar el ratón */
.dropdown:hover > .dropdown-content {
  display: block;
}

/* Mostrar cuando el JS añade la clase .open (clic en el botón) */
.dropdown.open > .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: black;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
}

.badge-estado {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  text-align: center;
}

.nav-link-wrapper {
  display: flex;
  align-items: center;
}

.submenu-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 6px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.submenu-toggle i {
  font-size: .8rem;
  transition: transform .3s ease;
}

/* Girar flecha al abrir */
.dropdown.open .submenu-toggle i {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 991px) {

  /* El contenedor deja de ser el punto de referencia para el absolute */
  .dropdown {
    position: static;
    display: block;
    width: 100%;
  }

  /* El submenú pasa a formar parte del flujo normal, no flota */
  .dropdown-content {
    position: static;
    display: none; /* seguimos ocultándolo por defecto */
    width: 100%;
    box-shadow: none;
    background: transparent; /* o el color que quieras para diferenciarlo */
    padding-left: 1rem; /* indentación típica de submenú móvil */
  }

  .dropdown:hover > .dropdown-content {
    display: none;
  }

  /* Solo se abre con la clase .open que pone tu JS al hacer clic */
  .dropdown.open > .dropdown-content {
    display: block;
  }

  /* Si usaste la versión con opacity/visibility, anula igual el hover: */
  .dropdown:hover > .dropdown-content {
    visibility: hidden;
    opacity: 0;
  }

  .dropdown.open > .dropdown-content {
    visibility: visible;
    opacity: 1;
  }
}
/*
==============                ==============
                    INICIO - Filtros cohortes, Grupos de Investigacion y Guías
==============                ============== */
/*
/* Colores de los badges según el estado */
.view-id-cohortes .badge-activo {
  background-color: #e6f7ed;
  color: #1f7a42;
}

.view-id-cohortes .badge-cerrado {
  background-color: #f0f2f5;
  color: #4a5568;
}

/* === 1. TU CSS COMPACTADO Y ADAPTATIVO === */
.views-exposed-form {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding-top: 60px !important;
  /* Espacio superior reservado para el título */
  padding-bottom: 10px;
  position: relative;
}

/* Inyección global del título "Filtros" con su icono SVG */
.views-exposed-form::before {
  content: "Filtros" !important;
  position: absolute !important;
  top: 20px !important;
  left: 20px !important;
  display: flex !important;
  align-items: center !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #1e293b !important;
  font-family: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c81005' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'></polygon></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  padding-left: 28px !important;
}

.views-exposed-form details {
  border: none !important;
  background: transparent;
  width: 100%;
}

.views-exposed-form details summary {
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  list-style: none;
  margin-bottom: 15px;
}

.views-exposed-form details summary::-webkit-details-marker {
  display: none;
}

/* === BLINDAJE: .radio-button-item NO SE SALE DE AQUÍ === */
.bef-radios-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  /* Fuerza a los .radio-button-item a saltar de línea abajo */
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 5px 0 !important;
  box-sizing: border-box !important;
  clear: both !important;
  /* Rompe cualquier float residual de Drupal */
}

/* Control estricto de cada item individual */
.radio-button-item {
  width: auto !important;
  max-width: 100% !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  float: none !important;
  /* Anula arrastres nativos */
}

.bef-radios-buttons .custom-radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* TUS BOTONES ADAPTATIVOS */
.bef-radios-buttons .custom-radio-label {
  color: #334155;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid #f1f5f9;
  background-color: #f8fafc;
  white-space: normal !important;
  /* Permite saltos internos si el texto es gigante */
  max-width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: auto;
  min-height: 38px;
  box-sizing: border-box !important;
}

.bef-radios-buttons .custom-radio-label:hover {
  background: #fac610;
  border-color: #fac610;
}

.bef-radios-buttons .custom-radio-input:checked+.custom-radio-label {
  background: #fac610;
  border-color: #fac610;
}

/* === 2. AGREGADO EXCLUSIVO Y LIMPIEZA DE LABELS NATIVOS === */
/*.view-id-cohortes fieldset legend,
  .view-id-cohortes .views-exposed-form h3,
  .view-id-cohortes .views-exposed-form label:not(.custom-radio-label) {
    display: none !important;
  }
*/

/*
==============                ==============
                    FOOTER
==============                ============== */
.site-footer {
  background-color: var(--footer-bg);
  padding: 0;
}

.site-footer-custom {
  background-color: var(--footer-bg);
  color: #ffffff;
  font-family: sans-serif;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  box-sizing: border-box;
}

.site-footer-custom a {
  color: #ffffff;
  text-decoration: none !important;
  opacity: 0.8;
  transition: 0.3s;
}

.site-footer-custom a:hover {
  text-decoration: underline;
}

.logo-col p {
  margin: 0;
  line-height: 1.5;
  max-width: 350px;
}

.menu-col {
  text-align: left;
  width: 33%;
}

.funding-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 100%;
  padding-bottom: 1rem;
}

.title-footer {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0.6;
  padding: 24px;
}

.logos-footer {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 8px 16px;
}

.logos-footer img {
  height: 60px;
  width: auto;
}

@media (max-width: 768px) {
  .funding-footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .title-footer {
    white-space: normal;
    padding: 1rem;
    width: 100%;
    max-width: 300px;
  }

  .logos-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }

  .logos-footer img {
    height: 45px;
  }
}

/* Línea divisoria */
.footer-divider {
  border: 0;
  margin: 20px 0;
}

/*redes sociales*/
.social-links {
  display: flex;
  justify-content: left;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #2b2b2b; 
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #2b2b2b;
}

.contact-mail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-mail span {
  color: #fff;
  font-size: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column p {
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  /* justify-content: space-between; */
  gap: 33%;
  align-items: flex-start;
  max-width: 1320px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0 20px;
}

/*Sección menú footer*/
.footer-menu-container{
  padding-top: 10px;
}

.footer-menu-item {
  font-size: 0.9rem;
  color: var(--text-color);
  font-family: var(--fuente-principal);
  transition: color 0.3s ease;
}

.footer-menu-item a:hover {
  color: var(--secondary-color);
  cursor: pointer;
}

/* Sección inferior */
.footer-bottom {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-bottom p {
  margin: 0;
  padding: 0 20px;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.footer-menu-title {
  font-size: 0.9rem !important;
}

@media (max-width: 1200px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-menu-title {
    font-size: 0.9rem !important;
    padding-top: 3rem;
  }

  .footer-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-column ul {
    /* align-items: center; */
    padding: 0;
  }

  .footer-column img {
    margin: 0 auto;
  }
}

/*
==============                ==============
                  HEADER
==============                ============== */

@media (max-width: 1200px) {
  header .row {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px;
    padding: 10px 0;
  }

  .region-secondary-menu {
    flex: 1 1 100% !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 15px;
  }

  /* Menú de cuenta */
  #block-ricors-rei-account-menu {
    margin-right: 0 !important;
    width: 100% !important;
  }

  #block-ricors-rei-account-menu ul.nav {
    justify-content: center !important;
    gap: 20px;
  }

  /* Buscador */
  #block-ricors-rei-search-form-wide {
    width: 100% !important;
    max-width: 300px;
  }

  #block-ricors-rei-search-form-wide form {
    width: 100%;
  }

  #block-ricors-rei-search-form-wide input[type="search"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #block-ricors-rei-account-menu ul.nav {
    font-size: 14px;
    gap: 10px;
  }
}

@media (max-width: 768px) {

  .logo-col,
  .menu-col {
    text-align: center;
  }
}


/*
==============                ==============
                  ÁREA PRIVADA
==============                ============== */
/* Centramos el contenido dentro del contenedor padre */
.p-3 {
  display: flex;
  justify-content: center;
  /* Centrado horizontal */
  align-items: center;
  /* Centrado vertical */
}

/* Tu código actual de la imagen se queda igual */
.p-3 img[src*="logo_Rei_2.0.svg"] {
  filter: brightness(0) invert(1);
  max-width: 10rem;
  height: auto;
}

/*MENU AREA PRIVADA*/
.menu--menu-admin {
  display: flex !important;
  flex-direction: column !important;
}

.menu--menu-admin li {
  display: block;
  width: 100%;
}

.nav-link- {
  color: #6c757d !important;
}

.nav-item::marker,
.dropdown-item::marker,
li::marker {
  content: none;
  display: none;
}

.nav-item,
.dropdown-menu li {
  display: block;
}

.menu {
  padding-left: 0rem !important;
}

.nav-group {
  margin-bottom: 25px;
}

.sidebar {
  width: 300px;
  background: var(--sidebar-bg);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.3) var(--sidebar-bg);
  scrollbar-width: thin;
  /* Hace el scroll más fino y elegante */
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--sidebar-bg);
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
  /* Brilla un poco más al pasar el cursor */
}

/* Contenedor principal que reajustamos en el Twig */
.sidebar-nav {
  padding: 15px;
  padding-bottom: 30px;
}

/* Enlaces (Afecta al primer nivel y al segundo nivel) */
.sidebar-nav a,
.menu-link-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 15px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: 0.2s;
}

/* Estado Activo Base (Gana prioridad sobre el hover normal) */
.sidebar-nav a.active,
.menu-link-sub.active {
  background-color: var(--primary-color);
  color: white;
}

/* Hover General (Solo para los que NO están activos) */
.sidebar-nav a:not(.active):hover,
.menu-link-sub:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* Iconos de FontAwesome */
.sidebar-nav i,
.menu-link-sub i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Estilo específico para los elementos de primer nivel que usan la etiqueta <a> (como Salir) */
.sidebar-nav .menu-level-0>a,
.sidebar-nav .menu-level-0>.menu-link-sub {
  color: white;
  /* Lo hace blanco */
  font-size: 1rem;
  /* Aumenta el tamaño para igualar a los otros padres */
  font-weight: 600;
  /* Le da un poco más de grosor si lo deseas */
  padding: 10px 15px;
  /* Un poco más de espacio vertical por ser un elemento padre */
}

/* Aseguramos que el hover de este botón padre siga funcionando bien en blanco */
.sidebar-nav .menu-level-0>a:not(.active):hover,
.sidebar-nav .menu-level-0>.menu-link-sub:not(.active):hover {
  background: rgba(255, 255, 255, 0.08);
  /* Sutil fondo al pasar el ratón */
  color: white;
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 15px;
  margin-bottom: 10px;
  display: block;
}

.menu-item--expanded {
  padding-top: 10px;
}


/*FOOTER AREA PRIVADA*/

.data-card {
  background-color: #ffffff;
  border-radius: 10px;
}

.dash-footer {
  margin-top: auto !important;
  width: 100%;
  padding-left: 20rem !important;
  border-top: 1px solid #e2e8f0;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
}

.dash-footer-logos {
  display: flex;
  gap: 20px;
  align-items: center;
}

.dash-footer-logos img {
  height: 22px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: 0.3s;
}

.dash-footer-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .dash-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px;
  }
}

/*
==============                ==============
                    RRSS
==============                ============== */
.social-title {
    margin-top: 110px;
    margin-bottom: 15px;
}

.social-widget1 {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.social-feeds {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: #fff;
  border-radius: 24px;
  padding: 3rem;
  box-shadow:
    0 10px 30px rgba(0,0,0,.08),
    0 1px 3px rgba(0,0,0,.05);
}

.social-column {
    flex: 1;
  position: relative;
}


.social-column:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1.5rem;
  width: 1px;
  height: 100%;
  background: #e5e7eb;
}


.social-column h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #1b2b4b;
    font-size: 2rem;
    font-weight: 700;
}

.social-column iframe {
    width: 100%;
    border-radius: 12px;
    background: #fff;
}


@media (max-width: 992px) {
    .social-feeds {
        flex-direction: column;
    }

     .social-column {
        width: 100%;
    }

    .social-column h3 {
        font-size: 1.75rem;
    }
}

/* Móvil */
@media (max-width: 576px) {

    .social-feeds {
        gap: 20px;
    }

    .social-column h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}




/*
==============                ==============
              PAGINA PRINCIPAL
==============                ============== */

/*BANNER*/
.stats-section {
  background-color: var(--primary-color);
  padding: 60px 20px;
  font-family: var(--fuente-principal);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin: 4% -50vw;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  /* Cambiado de nowrap a wrap para permitir el salto de línea */
  justify-content: center;
  gap: 15px;

}

.card-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  flex: 1 1 calc(50% - 15px);
  min-width: 140px;
  max-width: 220px;
  height: 9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* En tablets y escritorio, dejamos que se expandan de forma natural */
@media (min-width: 768px) {
  .card-stat {
    flex: 1 1 180px;
    /* Se ajustarán en fila según el espacio del contenedor */
  }
}

@media (max-width:768px){
    .stats-section{
    margin-top: 3rem;
  }
}

.card-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-corp {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  margin-top: 25px;
}

.btn-corp:hover {
  background: var(--secondary-color);
  color: #1a1a1a;
}

/* .card-stat {
    background: rgba(255, 255, 255, 0.1);;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-width: 180px;
    max-width: 220px;
    flex: 1 1 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
} */

.card-stat .card-title {
  color: var(--secondary-color);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.card-stat .card-text {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.social-widget {
  background: #fff;
  padding: 60px;
  border-radius:
    12px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}


#tarjetas-inicio .view-btn {
  color: #ffffff;
  background-color: var(--primary-color);
}

#tarjetas-inicio .view-btn:hover {
  color: var(--text-color);
  background-color: var(--secondary-color);
}

/*
==============                ==============
            PARAGRAPHS TARJETAS
==============                ============== */


/* Contenedor principal */
.cta-grid,
.field--name-field-tarjeta {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}



/* Tarjeta individual */
.cta-card {
  background: white;
  padding: 45px 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e0e0e0);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.cta-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.cta-card h3 {
  margin: 15px 0;
  font-size: 1.5rem;
}

.cta-card button {
  margin-top: auto;
  padding: 10px 20px;
  cursor: pointer;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
}

.cta-card .view-btn {
  margin-top: auto;
  padding: 10px 20px;
  cursor: pointer;
  background: var(--primary-color);
  color: white;
  border-radius: 5px;

  display: inline-block;   
  width: fit-content;     
  align-self: center;     
}


.card-icon {
  margin-bottom: 15px;
}

.card-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  display: inline-block;
  line-height: 1;
}

.cta-card:hover .card-icon i {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}




/*
==============                ==============
                  SABER MÁS
==============                ============== */
/* Videos */
.video-hero {
  position: relative;
  height: 450px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}



.video-placeholder {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.play-btn {
  position: relative;
  z-index: 10;
  width: 80px;
  height: 80px;
  background: var(--primary-color, #c81005);
  /* Añadido un color por defecto si falla la var */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.4s;
  border: 6px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  /* Evita que el borde estire el círculo */
}

/* EL TRUCO DEL TRIÁNGULO: Dibujamos el Play justo aquí en el centro */
.play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  /* Ajusta el tamaño del triángulo cambiando estos valores */
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #ffffff;
  /* Un pequeño empujón a la derecha para compensar la ilusión óptica del triángulo centrado */
  transform: translateX(3px);
  transition: 0.4s;
}

/* Efectos Hover */
.play-btn:hover {
  transform: scale(1.1);
  background: var(--secondary-color, #fac610);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Si quieres que el triángulo cambie de color al pasar el cursor (hover) */
.play-btn:hover::after {
  border-color: transparent transparent transparent #1a1a1a;
  /* Color oscuro como tenías pensado */
}

.gold-left {
  border-left: 4px solid rgb(249, 182, 0);
  margin: 40px 0 15px;
  padding-left: 20px;
  text-align: left;
}

.gold-bar h3 {
  margin: 0;
  font-weight: 700;
  color: #1e293b;
}

/* Contenedor principal con margen de seguridad */
.grid-hitos-container {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* La fila con Flexbox y wrap para el salto de línea */
.grid-hitos-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  /* Compensa el padding de las columnas */
}

/* Configuración de las columnas: 100% en móvil por defecto */
.grid-hitos-col,
.grid-step-desc,
.grid-obj-pill-mini {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
  margin-bottom: 30px;
  /* Espacio cuando se apilan en móvil */
}

/* Tablet: 2 columnas (opcional, si quieres que se vean 2 arriba y 1 abajo) */
@media (min-width: 768px) and (max-width: 991px) {

  .grid-hitos-col,
  .grid-step-desc,
  .grid-obj-pill-mini {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Desktop: 3 columnas iguales */
@media (min-width: 992px) {

  .grid-hitos-col,
  .grid-step-desc,
  .grid-obj-pill-mini {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    margin-bottom: 0;
  }
}

.timeline-wrapper {
  overflow-x: auto;
  width: 100%;
}

/*Bloque transferencia y objetivos*/
.framework-box-mini {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.step-mini {
  display: flex;
  flex-direction: row;
  /* Cambio: de column a row */
  align-items: flex-start;
  /* Alinea el número con la primera línea de texto */
  gap: 12px;
  margin-bottom: 25px;
}

.step-num-mini {
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.obj-pill-mini {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.obj-num-mini {
  font-weight: 900;
  color: var(--secondary-color);
  font-size: 1rem;
}


/*Gobernanza*/
/* Selecciona el h3 que esté dentro del elemento con ID gobernanza */
#gobernanza h3 {
  color: var(--primary-color);
  font-weight: bold;
}

/*Hub del paciente*/
#hub-paciente,
#gobernanza,
#preguntas-frecuentes {
  background-color: #f1f5f9;
  padding: 40px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}


#servicios {
  background-color: #f1f5f9;
  padding: 40px 170px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

#colaboradores-actuales {
  padding: 40px 170px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

@media (max-width: 768px) {

  #servicios,
  #colaboradores-actuales {
    width: auto;
    position: static;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 40px 20px;
  }

}

#hub-paciente .field--name-field-tarjeta,
#gobernanza .field--name-field-tarjeta {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 11rem;
  box-sizing: border-box;
}

#hub-paciente .cta-card {
  border-bottom: 6px solid var(--secondary-color);
}

#hub-paciente .cta-card:hover {
  border-color: transparent;
  border-bottom: 6px solid var(--secondary-color);
}

@media (max-width: 1200px) {
  #hub-paciente .field--name-field-tarjeta,
  #gobernanza .field--name-field-tarjeta {
    padding: 0 2rem;
  }
}

#hub-paciente .field--name-field-text,
#gobernanza .field--name-field-text {
  margin: 30px !important;
  text-align: center;
}


@media (max-width: 767px) {

  #hub-paciente {
    padding: 20px 0;
  }
}


.action-cards {
  padding: 60px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.action-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: 0.3s;
}

.action-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px);
}

.action-card i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.action-card h3::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* obligatorio para solid */
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Ensayos Clínicos → hand-holding-medical */
.action-card:nth-child(1) h3::before {
  content: "\f95c";
}

/* Donación de Muestras → microscope */
.action-card:nth-child(2) h3::before {
  content: "\f610";
}

.action-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.btn-action {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  margin-top: 20px;
}

.btn-action :hover{
  color: #ffffff;
}

#ensayos-donacion .card-icon i{
  color: var(--secondary-color);
}
#ensayos-donacion .view-btn{
  background-color: var(--primary-color);
}

#ensauos-donaciones {
  background-color: #ffffff;
  padding: 40px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}


/*TRABAJOS ESPECIALIZADOS*/
/* Cabecera del acordeón */
.accordion-button{
    font-size:1.2rem;
    font-weight:600;
}
/* Fondo general al desplegar */
.accordion-body{
    background:#eef2f3;
    padding:40px 30px;
}
/* Espaciado entre tarjetas */
.accordion-body .row{
    gap:30px;
}
/* Tarjetas */
.accordion-open{
    background:#ffffff !important;
    border:1px solid #d9e0e7 !important;
    border-radius:10px !important;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
    padding:32px !important;
    min-height:400px;
}
/* Títulos de tarjetas */
.accordion-open p{
    margin-bottom:25px;
    padding-bottom:12px;
    border-bottom:2px solid #dfe5eb;
}
.accordion-open p strong{
    font-size:1.75rem;
    color:#24324a;
    font-weight:700;
}
/* Listas */
.accordion-open ul{
    padding-left:25px;
    margin:0;
}
.lista-accord{
    background:transparent !important;
    color:#667085 !important;
    font-family:Inter,sans-serif;
    font-size:1.1rem !important;
    line-height:1.7;
    margin-bottom:14px;
}
.lista-accord::marker{
    color:#c8ced6;
}
/* Responsive */
@media (max-width: 768px){
    .accordion-open{
        min-height:auto;
        margin-bottom:20px;
    }
}


/* PREGUNTAS FRECUENTES */
.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-header h2 {
  color: var(--text-color);
}

.headingOne {
  background-color: #ffffff !important;
  color: var(--text-color) !important;
}

/* Contenedor */
#accordionPanelsStayOpenExample {
    width: 100%;
    max-width: 61rem;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

#accordionPanelsStayOpenExample .accordion-item,
#accordionPanelsStayOpenExample .accordion-button,
#accordionPanelsStayOpenExample .accordion-body {
    width: 100%;
    word-break: break-word;
}

/* Item */
#accordionPanelsStayOpenExample .accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

/* Botón (pregunta) */
#accordionPanelsStayOpenExample .accordion-button {
  padding: 20px 25px;
  font-weight: 700;
  color: #1e293b;
  background: #ffffff;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* Hover */
#accordionPanelsStayOpenExample .accordion-button:hover {
  background: #f1f5f9;
}

/* Eliminamos el azul de Bootstrap */
#accordionPanelsStayOpenExample .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background: #ffffff;
  box-shadow: none;
}

/* Flecha */
#accordionPanelsStayOpenExample .accordion-button::after {
  filter: invert(25%) sepia(97%) saturate(1925%) hue-rotate(213deg);
  transition: transform 0.3s ease;
}

/* Flecha cuando abierto */
#accordionPanelsStayOpenExample .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

/* Contenido */
#accordionPanelsStayOpenExample .accordion-body {
  padding: 10px 25px 25px;
  color: #64748b;
  font-size: 0.95rem;
}

h3 {
  font-weight: 700;
  color: #1e293b;
}

.subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 40px;
}

/* Contenedor del contenido abierto */
#accordionPanelsStayOpenExample .accordion-collapse {
  border-top: 1px solid #e2e8f0;
}

/* Cuerpo del acordeón */
#accordionPanelsStayOpenExample .accordion-body {
  padding: 20px 25px;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Párrafos más limpios */
#accordionPanelsStayOpenExample .accordion-body p {
  margin-bottom: 16px;
}

/* Preguntas internas en negrita */
#accordionPanelsStayOpenExample .accordion-body strong {
  color: #1e293b;
  font-weight: 700;
}

/* Espaciado entre bloques largos */
#accordionPanelsStayOpenExample .accordion-body span {
  line-height: 1.6;
}

@media (max-width:515px){
  .faq-header{
    margin: 0 20px;
  }
}
/*
==============                ==============
                COLABORACIÓN
==============                ============== */

/* Contenedor principal */

.nodo {
  color: var(--secondary-color);
  background-color: transparent;
  border-color: #e5e7eb;
  text-align: start;
}

.seccion-botones {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px;
}

.contenedor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.nodos-Excelencia {
  display: inline-flex;
  padding: 4px 12px;
  color: var(--secondary-color);
  background-color: var(--text-color);
  border-radius: 15px;
  font-weight: bold;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e2a3a;
  color: #ffc107;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* Icono */
.badge::before {
  content: "\f3c5";
  /* map-marker-alt en Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  /* necesario para solid */
  color: #ffc107;
  font-size: 14px;
}

/* Badge */
.badge-custom {
    display: inline-block;
    padding: .4rem .8rem;
    background: #c81005;
    color: #fff;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
}

/* Título */
.hero-title {
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-title .accent {
    color: #c81005;
}

/* Descripción */
.hero-description {
    /* font-size: 1.125rem; */
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* Estadísticas */
.estadisticas {
    display: flex;
    gap: 1rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: .9rem;
    color: #94a3b8;
}

/* Contenedor mapa */
.map-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1.5rem;
}

/* SVG */
.grupos-rht svg {
    width: 100%;
    height: auto;
}

.ccaa-region {
    fill: #ffffff;
    stroke: #000;
    transition: .3s ease;
    cursor: pointer;
}

.ccaa-region:hover {
    fill: #c81005;
}

@media (max-width:997px) {
  #mapa{
    margin-top: 30px;
  }

  .estadisticas {
    justify-content: center;
  }  
  .nodos-activos, .provincias{
    text-align: center;
  }

  .hero-title, 
  .hero-description,
  .badge-custom{
    margin: 0 30px;
    padding-bottom: 15px;
  }
}


.flex {
  display: flex;
  gap: 20px;
}

/* Tarjetas */
.nodos-activos,
.provincias {
  background: #1b263b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px 28px;
  min-width: 220px;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Número grande */
.nodos-activos span:first-child,
.provincias span:first-child {
  font-size: 36px;
  font-weight: 700;
  color: #ffc107;
  /* amarillo */
}

/* Texto */
.nodos-activos span:last-child,
.provincias span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: #8aa0c6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nodos-activos,
.provincias {
  background: linear-gradient(180deg, #1e2a3a 0%, #1a2333 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}


@media (max-width: 768px) {
    .estadisticas {
        flex-direction: column;
    }
}



/*Hub del paciente*/
#colaboracion-map {
  background-color: #0f172a;
  padding: 1px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

#colaboracion-map .field--name-field-tarjeta {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

#colaboracion-map .field--name-field-text {
  margin: 30px 0 !important;
  text-align: center;
}

@media (max-width: 992px) {
  #colaboracion-map .container {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw);
  }
}


/* Móvil: 1 columna */
@media (max-width: 767px) {

  #colaboracion-map {
    padding: 20px 0;
  }

    .contenedor-grid {
    grid-template-columns: 1fr;
  }
}

/* Estilo de la tarjeta */
/* Contenedor de las dos tarjetas */
.contenedor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}


.card-boton {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 40px;
  border-radius: 3rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.card-titulo,
.card-descripcion {
  grid-column: 1;
  display: block;
}

.card-icono {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
}

.card-titulo {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 4px;
}

.card-descripcion {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* COLORES BOTÓN OSCURO */
.btn-oscuro {
  background-color: #0f172a;
  color: #ffffff !important;
}

.btn-oscuro .card-descripcion {
  color: #94a3b8;
}

.btn-oscuro .card-icono {
  background: rgba(255, 255, 255, 0.1);
}

.btn-oscuro:hover {
  background-color: var(--primary-color);
}

.btn-oscuro:hover .card-descripcion {
  color: rgba(255, 255, 255, 0.8);
}

/* COLORES BOTÓN CLARO */
.btn-claro {
  background-color: #ffffff;
  color: #0f172a !important;
  border: 2px solid var(--border-color);
}

.btn-claro .card-descripcion {
  color: #64748b;
}

.btn-claro .icono-rojo {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-claro:hover {
  border-color: var(--primary-color);
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  .card-boton {
    padding: 30px 20px;
    border-radius: 2rem;
  }

  .card-titulo {
    font-size: 1.2rem;
  }
}



/*
==============                ==============
                CONECTA-AVANCE
==============                ============== 
*/
#conecta-avances{
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 20px;
}



/*
==============                ==============
                  ACTIVOS
==============                ============== 

/*Vistas cohortes y biomarcadores*/
/* Eliminamos el borde inferior que une las pestañas */
.custom-tabs-container .nav-pills {
  border-bottom: none;
  gap: 10px;
  /* Espacio entre botones */
}

.custom-tabs-container .nav-link {
  color: var(--text-color);
  border: 1px solid #6c757d;
  background-color: #ffffff;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.custom-tabs-container .nav-link:hover {
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

/* Estilo cuando el botón está activo */
.custom-tabs-container .nav-link.active {
  background-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.coming-soon-card {
    max-width: 700px;
    padding: 40px;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coming-soon-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #c40000,
        #ff4d4d
    );
}

.coming-soon-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.08);
}

.coming-soon-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #0c224d;
    margin-bottom: 20px;
}

.coming-soon-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5f6b80;
    margin-bottom: 20px;
}

.coming-soon-card .badge {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 50px;
    background: #fff3cd !important;
    border: 1px solid #ffe69c;
}


.colab {
  background: var(--bg-light);
  padding: 50px 0;
  text-align: center;
}

.colab h1 {
  /* font-size: 2.5rem;  */
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 15px;
}

.colab p {
  font-size: 1.1rem;
  color: #64748b;
  /* max-width: 800px;  */
  margin: 0 auto;
}

.collaborators-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.colab-logo {
  padding: 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 220px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #94a3b8;
  font-size: 1.4rem;
  transition: 0.3s;
  letter-spacing: 1px;
}

.colab-logo img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: 0.3s;
}

.colab-logo:hover {
  border-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.colab-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.alliance-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 45px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  box-sizing: border-box;
}

.full-width {
  grid-column: span 2;
}

.btn-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 6px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
}

.btn-submit:hover {
  background: #a50d04;
}

/* RESPONSIVE GRID */
@media (max-width: 1024px) {
  .catalog-wrapper {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

#vistas{
  margin-top: -25px;
  position: relative;
}

#catalogo-activo {
  background-color: #f1f5f9;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

#catalogo-activo .field--name-field-tarjeta {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}



/*
==============                ==============
               PUBLICACIONES
==============                ============== */

.page-intro {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  padding: 60px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.page-intro h1 {
  /* font-size: 2.5rem;  */
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.page-intro p {
  max-width: 700px;
  margin: 15px auto 0;
  color: #64748b;
  /* font-size: 1.1rem;  */
}

#views-exposed-form-publicaciones-page-1 {
  display: flex;
  align-items: end;
  gap: 1rem;
}

#views-exposed-form-publicaciones-page-1 .form-item {
  margin-bottom: 0;
}

#views-exposed-form-publicaciones-page-1 .form-actions {
  margin-bottom: 0;
}

#views-exposed-form-publicaciones-page-1 .form-control {
  width: auto;
}

#views-exposed-form-publicaciones-page-1 .form-submit {
  width: auto;
  min-width: 120px;
}


.view-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.publication-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;

  padding: 1.75rem;

  transition: all .25s ease;
}

.publication-card:hover {
  border-color: #c60000;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.publication-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;

  margin-bottom: 1rem;
}

.publication-card__date {
  background: #fef2f2;
  color: #c60000;

  padding: .35rem .75rem;

  border-radius: 20px;

  font-size: .85rem;
  font-weight: 600;
}

.publication-card__title {
  margin: 0 0 1rem 0;

  font-size: 2rem;
  line-height: 1.25;
  font-weight: 700;
}

.publication-card__title a {
  text-decoration: none;
  color: #102a43;
}

.publication-card__title a:hover {
  color: #c60000;
}

/* Resumen */

.publication-card__summary {
  color: #475569;
  line-height: 1.8;
  font-size: 1rem;
}

/* Pie */

.publication-card__footer {
  margin-top: 1.5rem;
  padding-top: 1rem;

  border-top: 1px solid #e5e7eb;
}

.publication-card__pmid {
  display: inline-block;

  font-family: monospace;

  background: #f8fafc;
  border: 1px solid #e2e8f0;

  padding: .4rem .8rem;
  border-radius: 6px;

  color: #475569;
}
/*
==============                ==============
                PAGINA LA RED
==============                ============== */
/*REVISAR: es posible que esto ya no sea necesario*/
.tabs-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  padding: 10px 0;
}

.btn-tab {
  padding: 12px 24px;
  text-decoration: none;
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  border-radius: 30px;
  /* Bordes totalmente redondeados */
  font-weight: 700;
  font-family: sans-serif;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.btn-tab:hover {
  background-color: #e7f1ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: var(--primary-color);
}

.btn-tab:focus {
  outline: none;
}



/*
==============                ==============
                    VIEWS 
==============                ============== */

/*==============VIEWS GENERAL==============*/

#edit-reset-grupos-de-investigacion {
  color: #ffffff !important;
}

/* Fuerza a que cada opción del checkbox ocupe toda la línea */
.bef-checkboxes .form-item {
  display: block;
  margin-bottom: 0.5rem;
  /* Un poco de espacio entre ellos */
}

/* ==========================================================================
   Estructura de la Vista: Filtros Izquierda, Contenido y Paginador Derecha
   ========================================================================== */

#view-grupos-invest,
#vistas {
  width: 80rem;
  margin-left: -5rem; 
}

@media (max-width:1280px) {
  #view-grupos-invest{
        margin-left: 0;
    width: auto;
  }

    .view-cohortes,
  #vistas {
    margin-left: 0;
    width: auto;
  }
}

@media (max-width: 768px) {
  .view-cohortes .view-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .view-cohortes table {
    min-width: 1000px;
  }
}

.view-grupos-de-investigacion,
.view-cohortes {
  display: grid !important;
  /* Creamos 2 columnas: 25% para filtros, el resto (1fr) para el contenido */
  grid-template-columns: 25% 1fr;
  gap: 24px;
  align-items: start;
}

/* 1. Filtros: Se quedan fijos en la primera columna */
.view-grupos-de-investigacion .view-filters,
.view-cohortes .view-filters {
  grid-column: 1;
  /* Columna 1 */
}

/* 2. Resultados (Tabla): Van a la derecha */
.view-grupos-de-investigacion .view-content,
.view-cohortes .view-content {
  grid-column: 2;
  /* Columna 2 */
}

.view-grupos-de-investigacion nav[aria-label="Page navigation"],
.view-cohortes nav[aria-label="Page navigation"],
.view-glossary nav[aria-label="Page navigation"],
nav[aria-label="pagination-heading--2"] {
  grid-column: 2;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 1254px){
  .view-content {
    overflow-x: auto;
  }

  .view-content table {
    min-width: 1200px;
  }
}


/* Ajuste para pantallas móviles */
@media (max-width: 993px) {

  .view-grupos-de-investigacion,
  .view-cohortes {
    grid-template-columns: 1fr;
    /* Una sola columna en móvil */
  }

  .view-grupos-de-investigacion .view-filters,
  .view-cohortes .view-filters,
  .view-grupos-de-investigacion .view-content,
  .view-cohortes .view-content,
  .view-grupos-de-investigacion nav[aria-label="Page navigation"],
  .view-cohortes nav[aria-label="Page navigation"] {
    grid-column: 1;
    /* Todo vuelve a su orden natural */
  }
}

/* 1. Forzar a que el contenedor del formulario no ponga todo en línea */
.views-exposed-form .d-flex.flex-wrap {
  display: block !important;
  /* Rompe el flex horizontal global si es necesario */
}

/* Forzar a que las opciones internas de BEF vayan en una sola columna vertical */
.views-exposed-form details .details-wrapper,
.views-exposed-form .bef-checkboxes {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 8px;
  width: 100%;
}

/* Asegurar que cada opción ocupe el 100% del ancho disponible */
.views-exposed-form .form-type-checkbox,
.views-exposed-form .form-type-radio,
.views-exposed-form .bef-checkboxes .form-item {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  /* Elimina floats que herede de Drupal */
}

@media (min-width: 768px) {

  .views-exposed-form details .details-wrapper,
  .views-exposed-form .bef-checkboxes {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
  }
}

.views-exposed-form details {
  margin-bottom: 15px;
  /* Controla la separación vertical entre cada bloque de filtro */
  border: none;
  /* Por si tu tema añade bordes por defecto */
}

.views-exposed-form details summary {
  display: flex !important;
  justify-content: space-between;
  /* Empuja el texto a la izquierda y la flecha a la derecha */
  align-items: center;
  list-style: none;
  /* Oculta la flecha nativa en la mayoría de navegadores */
  cursor: pointer;
  padding: 8px 0;
  font-weight: 500;
  color: #333;
  /* Cambia el color del texto a tu gusto */
}

/* Ocultar la flecha nativa específicamente en Safari/Chrome antiguos */
.views-exposed-form details summary::-webkit-details-marker {
  display: none !important;
}

/*flecha elegante en grupos de investigación*/
.views-exposed-form details summary::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  margin-right: 5px;
}

/* ==========================================
   4. ROTACIÓN DE LA FLECHA CUANDO SE ABRE
   ========================================== */
.views-exposed-form details[open] summary::after {
  transform: rotate(45deg);
  /* Rota hacia abajo al abrirse */
}




/*==============VIEWS TARJETAS==============*/
/* Estructura de las Tarjetas */
.view-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 12px;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.view-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.view-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.view-content {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.view-date {
  color: var(--text-color);
  font-size: 10px;
}

.view-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/*Vistas guia*/
/*Filtro*/
/* El contenedor que creamos en el twig */
.botones-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boton-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.boton-item label {
  display: inline-block;
  padding: 10px 20px;
  background: #eee;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ccc;
  transition: 0.3s;
}

.boton-item input:checked+label {
  background: #007bff;
  color: white;
  border-color: #0056b3;
}

/*header*/

.guides-hero {
  background: var(--primary-color);
  color: white;
  padding: 60px 0;
  text-align: center;

}

.guides-hero h1 {
  /* font-size: 2.5rem;  */
  margin: 0 0 15px;
  font-weight: 800;
}

.guide-thumb {
  height: 200px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.guide-thumb i {
  font-size: 4rem;
  color: #cbd5e1;
}

.guide-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.guide-body h3 {
  margin: 0 0 10px;
  color: var(--text-color);
  font-weight: 700;
}

.guide-body p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.4;
}

.guide-card {
  background: white;
  border-radius:
    12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.view-cat {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;

}

.view-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--text-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
}

.view-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
}


/******Vista grupo de investigador*******/


.group-card {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 4px 12px #0000001a;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #eee;
  font-family: var(--font-base);
  border-top: 4px solid var(--primary-color)
}

.group-body {
  padding: 20px;
}

.group-ccaa {
  display: inline-block;
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Título de la tarjeta */
.group-body h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  padding: 4px 12px;

}

/* Bloque del investigador con fondo gris */
.investigador {
  background-color: #f5f5f5;
  /* Gris claro */
  padding: 15px;
  border-radius: 6px;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Estilo para la descripción que ahora está dentro del bloque gris */
.group-descrip,
.group-descrip * {
  width: 100%;
  margin: 12px 0 0 0;
  color: #444;
  line-height: 1.4;
  font-size: 13px;
}

/* Estilo para el contenedor del investigador */
.group-invest {
  font-weight: bold;
  margin: 0 0 5px 0;
  font-size: 0.8rem;
}

/* Opcional: Para asegurar que no tengan márgenes internos que rompan la alineación */
.group-invest,
.group-cod {
  margin: 0;
}

.group-invest a {
  color: #000;
  text-decoration: none;
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 1px;
  transition: background-color 0.3s ease;
  /* Opcional: para un efecto suave */
}

/* Efecto al pasar el ratón (hover) */
.group-invest a:hover {
  color: var(--primary-color);
}

.group-cod {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  background-color: #ffffff;
  border-radius: 7px;
  padding: 3px;
}

/* Contenedor de cada grupo (Etiqueta + Datos) */
.group-section {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  /* La etiqueta arriba, los botones abajo */
  gap: 6px;
  /* Separación limpia entre el título y las etiquetas */
}

/* Estilo exclusivo para tus etiquetas de título (Patologías, Muestras, etc.) */
.group-label{
  color: rgb(148 163 184);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0 !important;
}

/* 1. Reset estricto para los contenedores de Drupal */
.group-pat,
.group-muestras,
.group-exp {
  display: inline !important;
}

/* 2. Forzar las etiquetas en línea */
.group-label {
  color: rgb(148 163 184);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline !important;
  /* Forzamos inline */
  margin-right: 8px !important;
  margin-bottom: 0 !important;
}

.group-pat:empty,
.group-muestras:empty,
.group-exp:empty,
.group-tags:empty {
  display: none;
}

/* 3. Forzar al UL a comportarse como un bloque en línea sin propiedades de lista */
.group-muestras,
.group-exp,
.group-pat,
.group-pat .item-list,
.group-muestras .item-list,
.group-exp .item-list {
  display: inline !important;
}

/* 2. Desactivar el comportamiento vertical del 'list-group' de Bootstrap */
.group-pat ul.list-group,
.group-muestras ul.list-group,
.group-exp ul.list-group {
  display: inline-flex !important;
  /* Cambiamos de 'flex' (vertical) a 'inline-flex' (horizontal) */
  flex-direction: row !important;
  /* Forzamos dirección horizontal */
  flex-wrap: wrap !important;
  /* Permite saltar de línea si falta espacio */
  gap: 6px !important;
  /* Separación entre píldoras */
  padding: 0 !important;
  margin: 0 16px 0 0 !important;
  /* Margen a la derecha para separar del siguiente bloque */
  list-style: none !important;
  border: none !important;
  /* Quitamos posibles bordes heredados de Bootstrap */
}

/* 3. Neutralizar por completo el 'list-group-item' de Bootstrap y hacerlo píldora */
.group-pat ul.list-group li.list-group-item,
.group-muestras ul.list-group li.list-group-item,
.group-exp ul.list-group li.list-group-item {
  display: inline-block !important;
  /* Rompe el comportamiento de lista de Bootstrap */
  width: auto !important;
  /* Evita que ocupe el 100% del ancho */
  max-width: max-content !important;
  /* Ajuste estricto al texto */

  /* Reseteos de estilos de Bootstrap */
  border: none !important;
  /* Quita el borde gris típico de Bootstrap */
  margin: 0 !important;

  /* Tus estilos de píldora */
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 15px;
  font-weight: 600;
}

/* 4. Aplicar los colores correspondientes */
.group-muestras ul.list-group li.list-group-item,
.group-exp ul.list-group li.list-group-item {
  color: #475569 !important;
  background-color: #e5e7eb !important;
  /* Gris */
}

.group-pat ul.list-group li.list-group-item {
  color: var(--primary-color) !important;
  background-color: color-mix(in srgb, var(--primary-color), white 90%) !important;
  /* Color primario suave */
}

/* 5. Asegurar los enlaces internos */
.group-pat ul.list-group li.list-group-item a,
.group-muestras ul.list-group li.list-group-item a,
.group-exp ul.list-group li.list-group-item a {
  color: inherit !important;
  text-decoration: none !important;
  display: inline !important;
}

.group-muestras ul li a:hover,
.group-exp ul li a:hover,
.group-pat ul li a:hover {
  text-decoration: underline;
}


/* === OCULTAR CAMPOS VACÍOS (Corregido para la nueva estructura) === */
/* Si el contenedor de Drupal está vacío, ocultamos toda la sección incluyendo la etiqueta */
.group-section:has(.group-pat:empty),
.group-section:has(.group-muestras:empty),
.group-section:has(.group-exp:empty) {
  display: none;
}

/* Efecto de elevación de la tarjeta */
.group-card {
  transition: box-shadow 0.3s ease;
}

.group-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/*==============VIEWS EXPORT==============*/


.view-id-mi_vista_csv .views-data-export-link {
  padding: 15px 30px !important;
  font-size: 20px !important;
}


/*==============VIEWS CALENDARIO==============*/

/* Ajusta el selector según la clase de tu vista o bloque */
.js-drupal-fullcalendar {
  max-width: 900px;
  /* O el porcentaje que prefieras, ej: 80% */
  margin: 0 auto;
  /* Para centrarlo si quieres */
}


/*Filtros*/
/* ==========================================================================
   DISEÑO EN COLUMNAS (FILTROS IZQUIERDA, CALENDARIO DERECHA)
   ========================================================================== */

@media (min-width: 768px) {

  /* 1. Buscamos el contenedor padre que envuelve la vista */
  .view-agenda {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* Columna fija para filtros, el resto para el calendario */
    gap: 30px;
    /* Espacio de separación entre columnas */
    align-items: start;
  }

  /* 2. Forzamos a tus filtros a ocupar la primera columna */
  #views-exposed-form-agenda-page-1 {
    grid-column: 1;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }

  /* Ajuste para que los campos del filtro se apilen verticalmente (uno abajo del otro) */
  #views-exposed-form-agenda-page-1 .form--inline>.form-item,
  #views-exposed-form-agenda-page-1 .form-actions {
    display: block;
    margin-bottom: 15px;
    width: 100%;
  }

  /* 3. Forzamos al calendario a ocupar la segunda columna */
  .view-agenda .view-content {
    grid-column: 2;
  }
}

/* ==========================================================================
   REESTILIZADO MODERNO PARA FULLCALENDAR (DRUPAL 11)
   ========================================================================== */

/* 1. Contenedor principal y tipografía */
.fc {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  border: 1px solid #e5e7eb;
  /* Gris muy suave */
  border-radius: 12px;
  /* Bordes redondeados modernos */
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  background: #ffffff;
  padding: 15px;
}

/* 2. Barra de herramientas (Botones y Título) */
.fc .fc-toolbar {
  margin-bottom: 1.5rem !important;
}

.fc .fc-toolbar-title {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: #1f2937;
  /* Negro azulado moderno */
}

/* Botones más limpios y minimalistas */
.fc .fc-button {
  background-color: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #4b5563 !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.fc .fc-button:hover {
  background-color: #f9fafb !important;
  color: #111827 !important;
  border-color: #9ca3af !important;
}

/* 
.fc .fc-button-active {
    background-color: var(--primary-color) !important; 
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
} */

/* 3. Cabecera de los días (Lun, Mar, Mié...) */
.fc th {
  border: none !important;
  padding: 10px 0 !important;
  background-color: #ffffff;
  color: var(--text-color);
}

.fc .fc-col-header-cell-cushion {
  color: #ffffff !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-decoration: none !important;
}

/* 4. Cuadrícula de días */
.fc td,
.fc th {
  border: 1px solid #f1f5f9 !important;
  background-color: #ffffff !important;
}

/* Día actual destacado */
.fc-unthemed td.fc-today {
  background-color: rgba(255, 59, 48, 0.1) !important;
}

/* Números de los días */
.fc .fc-daygrid-day-number {
  color: #475569;
  font-weight: 500;
  padding: 8px !important;
  text-decoration: none !important;
  font-size: 0.9rem;
}

/* 5. Eventos (Las "pastillas" de contenido) */
.fc-v-event,
.fc-h-event {
  background-color: var(--primary-color) !important;
  /* Color del evento */
  border: none !important;
  border-radius: 6px !important;
  /* Eventos redondeados */
  padding: 3px 6px !important;
  margin-top: 2px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fc-event-title,
.fc-event-time {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--text-color) !important;
}

/* Efecto hover en los eventos */
.fc-event:hover {
  opacity: 0.9;
  cursor: pointer;
}

/*==============VIEWS TABLAS==============*/

/* 1. Estructura general de la tabla */
.views-table {
  width: 100%;
  margin-bottom: 2rem;
  background-color: #ffffff;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  margin-top: 0;
}

/* 2. Encabezado de la tabla */
.views-table thead tr {
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
}

.views-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  /* border: none; */
}

.views-table thead th,
.views-table thead th a {
  color: #64748b !important;
  text-transform: uppercase;
  text-decoration: none;
}

/* 3. Celdas del cuerpo de la tabla (Filas en blanco absoluto) */
.views-table tbody tr {
  background-color: #ffffff !important;
  /* El !important evita que otros estilos hereden el color cebra */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.views-table tbody td {
  padding: 16px 20px !important;
  color: #475569;
  font-size: 0.85rem;
  vertical-align: middle;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #f1f5f9;
}

/* Estilo para enlaces dentro de las celdas */
.views-table tbody td a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.views-table tbody td a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* 4. Efecto Hover Interactivo (Tu nuevo color) */
.views-table tbody tr:hover {
  background-color: #f8fafc !important;
  /* cursor: pointer; */
  /* Mantiene el detalle de color a la izquierda para guiar la lectura horizontal */
  box-shadow: inset 4px 0 0 0 var(--primary-color);
}

/* Catálogo de Activos: corrige esquinas blancas del encabezado en Firefox/Safari. */
.view-cohortes .views-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
}

.view-cohortes .views-table thead tr {
  border: 0;
}

.view-cohortes .views-table thead th {
  background-color: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 1px solid #e2e8f0;
}

.view-cohortes .views-table thead th:first-child {
  border-left: 1px solid #e2e8f0 !important;
  border-top-left-radius: 16px;
}

.view-cohortes .views-table thead th:last-child {
  border-right: 1px solid #e2e8f0 !important;
  border-top-right-radius: 16px;
}

.view-cohortes .views-table th:nth-child(1),
.view-cohortes .views-table td:nth-child(1) {
  width: 22%;
}

.view-cohortes .views-table th:nth-child(2),
.view-cohortes .views-table td:nth-child(2) {
  width: 20%;
}

.view-cohortes .views-table th:nth-child(3),
.view-cohortes .views-table td:nth-child(3) {
  width: 18%;
}

.view-cohortes .views-table th:nth-child(4),
.view-cohortes .views-table td:nth-child(4) {
  width: 15%;
}

.view-cohortes .views-table th:nth-child(5),
.view-cohortes .views-table td:nth-child(5) {
  width: 12%;
}

.view-cohortes .views-table th:nth-child(6),
.view-cohortes .views-table td:nth-child(6) {
  width: 13%;
}

.view-cohortes .views-table th,
.view-cohortes .views-table td {
  overflow-wrap: anywhere;
}

/*==============VIEWS TAXONOMIA==============*/
table.custom-inline-table {
  border-collapse: collapse;
  border: none;
  background: transparent;
  width: auto;
  /* Se ajusta al contenido, no ocupa el 100% de la pantalla */
  margin: 0;
  padding: 0;
}

table.custom-inline-table td {
  border: none;
  padding: 0;
  vertical-align: middle;
  /* Asegura que ambos queden exactamente a la misma altura */
}

/* Crea la separación exacta entre el nombre y los botones */
table.custom-inline-table .table-name-cell {
  padding-right: 20px;
  /* Ajusta este número si quieres más o menos separación */
}


/*
==============                ==============
                VIEWS GLOSARIO
==============                ============== */

/*HEADER*/

.glossary-hero,
.guides-hero,
.participa {
  background: var(--primary-color);
  color: white;
  padding: 60px 20px;
  text-align: center;
  width: auto;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.glossary-hero h1 {
  color: #ffffff;
  font-weight: 800;
}

.participa h1{
  color: #ffffff;
  font-size: 2.5rem;
  margin: 0 0 15px;
  font-weight: 800;
}

/* Forzar el diseño tanto por ID, por clase de Drupal y en sus estados */
#views-exposed-form-glossary-page-1 select,
#edit-field-especialidad-target-id,
#edit-field-especialidad-target-id option {
  border-radius: 10px !important;
}

/* Evitar que los navegadores o el repintado de AJAX restablezcan el borde al hacer foco/cambio */
#edit-field-especialidad-target-id:focus,
#edit-field-especialidad-target-id:active,
#edit-field-especialidad-target-id:visited {
  outline: none !important;
}

.view-guias {
  padding-bottom: 50px;
}

#views-exposed-form-glossary-page-1.views-exposed-form::before,
#views-exposed-form-guias-page-1.views-exposed-form::before {
  content: none !important;
  border-color:none !important;
}

#views-exposed-form-guias-page-1{
  padding: 0 !important;
  border: none;
}

.view-glossary .views-exposed-form{
  border: none;
  padding: 0 !important;
}

.glossary-hero {
  padding-bottom: 96px;
}

.view-glossary .views-exposed-form .form-submit {
  text-indent: -9999px;
  overflow: hidden;
}

#views-exposed-form-glossary-page-1 [data-drupal-selector="edit-reset-glossary"] {
  display: none !important;
}

#views-exposed-form-glossary-page-1 input[id^="edit-reset-glossary"],
#views-exposed-form-glossary-page-1 button[id^="edit-reset-glossary"] {
  display: none !important;
}

#views-exposed-form-glossary-page-1 .form-item {
  flex: 1 1 auto;
}

.view-id-glossary .exposed-form-wrapper,
.view-id-guia .exposed-form-wrapper {
  width: auto !important;
}

#views-exposed-form-glossary-page-1 {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #303844;
  max-width: 640px;
  width: calc(100% - 32px);
  position: relative;
  z-index: 5;
  margin: -76px auto 58px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#views-exposed-form-glossary-page-1 .form--inline,
#views-exposed-form-glossary-page-1 .views-exposed-form {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}



#views-exposed-form-glossary-page-1 h3 {
  color: #ffffff;
  font-weight: bold;
  justify-content: center;
}

#views-exposed-form-glossary-page-1 input,
#views-exposed-form-glossary-page-1 select {
  width: 100%;
}

#views-exposed-form-glossary-page-1 .exposed-form-wrapper{
  align-items: stretch;
  display: flex !important;
  gap: 0;
  position: relative !important;
  width: 100% !important;
  filter: drop-shadow(0 10px 18px rgba(17, 24, 39, .14));
}

#views-exposed-form-glossary-page-1 .form-item-field-especialidad-target-id {
  flex: 0 0 150px;
}

#views-exposed-form-glossary-page-1 .form-item-title {
  flex: 1 1 auto;
}

#views-exposed-form-glossary-page-1 .form-item,
#views-exposed-form-glossary-page-1 .form-actions {
  margin: 0 !important;
}

#views-exposed-form-glossary-page-1 select,
#views-exposed-form-glossary-page-1 input[type="text"] {
  background-color: #ffffff;
  border: 1px solid rgba(25, 36, 52, .18);
  border-radius: 0 !important;
  box-shadow: none;
  color: #253041;
  font-size: 1rem;
  min-height: 44px;
  padding: 8px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#views-exposed-form-glossary-page-1 select {
  background-color: #f8fafc;
  border-radius: 7px 0 0 7px !important;
  border-right: 0;
  color: #344054;
  font-size: .95rem;
}

#views-exposed-form-glossary-page-1 input[type="text"] {
  border-radius: 0 7px 7px 0 !important;
}

#views-exposed-form-glossary-page-1 select:focus,
#views-exposed-form-glossary-page-1 input[type="text"]:focus {
  border-color: var(--primary-color, #c9140b);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
  outline: none;
  position: relative;
  z-index: 2;
}

#views-exposed-form-glossary-page-1 select:focus {
  box-shadow: none;
}

#views-exposed-form-glossary-page-1 .ajax-progress,
#views-exposed-form-glossary-page-1 .ajax-progress-throbber {
  display: none !important;
}

#views-exposed-form-glossary-page-1 input[type="text"] {
  padding-right: 42px;
}

#views-exposed-form-glossary-page-1 .form-item-title::after {
  color: var(--primary-color, #c9140b);
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

#views-exposed-form-glossary-page-1 .form-item-title {
  position: relative;
}

.search-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

@media (max-width: 640px) {
  .glossary-hero {
    padding: 48px 16px 104px;
  }

  #views-exposed-form-glossary-page-1 {
    margin-top: -86px;
    margin-bottom: 38px;
    padding: 0;
    width: calc(100% - 24px);
  }

  #views-exposed-form-glossary-page-1 .exposed-form-wrapper {
    display: block !important;
    filter: drop-shadow(0 10px 18px rgba(17, 24, 39, .14));
  }

  #views-exposed-form-glossary-page-1 .form-item-field-especialidad-target-id,
  #views-exposed-form-glossary-page-1 .form-item-title {
    width: 100%;
  }

  #views-exposed-form-glossary-page-1 .form-item-title {
    margin-top: 10px !important;
  }

  #views-exposed-form-glossary-page-1 select,
  #views-exposed-form-glossary-page-1 input[type="text"] {
    border-radius: 7px !important;
    border-right: 1px solid rgba(25, 36, 52, .18);
  }
}


/* Contenedor del abecedario */

.glossary-card {
  scroll-margin-top: 50px;
}


.attachment .view-content {
  padding: 20px;
  background: #fff;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 81px;
  z-index: 10;
}


/* Contenedor principal de la tarjeta */

.glossary-card {
  padding: 20px;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eeeeee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 15px;
}

.glossary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.glossary-thumb p:first-child {
  font-size: 1.25rem;
  font-weight: bold;
  color: #2d3436;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.glossary-thumb p:last-child {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #636e72;
  margin: 0;
}

.glossary-title {
  color: var(--primary-color);
}

.glossary-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
  color: var(--primary-color) !important;
}


.view-glossary .attachment .row .views-summary,
.view-glossary .attachment .row span {
  display: inline-block !important;
  width: auto !important;
  flex: 0 1 auto !important;
}

.view-glossary .attachment .row .views-summary a {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--bg-light);
  color: var(--text-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s;
}

.view-glossary .attachment .row .views-summary a:hover {
  background: var(--secondary-color);
  color: #1a1a1a;
}


.view-glossary  .is-active {
  background-color: var(--secondary-color) !important;
}

/* .active {
  border: 3px solid blue !important;
} */


.view-glossary .attachment .views-summary .views-summary__count {
  display: none !important;
}

.view-glossary .attachment .row span.views-summary {
  font-size: 0;
}

.view-glossary .attachment .row span.views-summary a {
  font-size: 16px;
}

/* Ajuste para centrar el abecedario */
.view-glossary .attachment .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  justify-content: center !important;
  /* gap: 10px; */
  margin: auto !important;
  width: 100%;
}

.view-glossary .attachment {
  text-align: center;  
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-bottom: 2px solid var(--border-color);

}

@media (max-width: 1600px) {
  .view-glossary .attachment .row {
    flex-wrap: wrap !important;
  }
}

/*
==============                ==============
                VIEWS HITOS
==============                ============== */

/* NUEVO: Fijar tamaño y añadir scroll al contenedor principal */
.view-timeline {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 15px;
  box-sizing: border-box;
}

.view-timeline .view-content {
  position: relative;
  list-style: none;
}

/* 2. La línea vertical (el raíl) */
.view-timeline .view-content::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: grey;
}

.view-timeline .views-row {
  position: relative;
  margin-bottom: 40px;
  padding-left: 60px;
}

.view-timeline .views-field-title{
  color: var(--primary-color);
  font-weight: bold;
}

/* El punto de la cronología */
.view-timeline .views-field-title::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 5px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border: 3px solid var(--secondary-color);
  border-radius: 50%;
  z-index: 1;
}

/*
==============                ==============
            VIEWS PUBLICACIONES
==============                ============== */

#views-exposed-form-publicaciones-page-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.views-view-responsive-grid {
  --views-responsive-grid--column-count: 3;
}

@media (max-width: 900px) and (min-width: 600px) {
  .views-view-responsive-grid {
    --views-responsive-grid--column-count: 2 !important;
  }
}

@media (max-width: 767px) {
  .views-view-responsive-grid {
    --views-responsive-grid--column-count: 1 !important;
  }
}




/*
==============                ==============
            TIPOS DE CONTENIDOS
==============                ============== */


/*==============INVESTIGADORES ==============*/
.card-presentacion {
  display: flex;
  gap: 40px;
  /* Más espacio entre foto y texto */
  border: 1px solid #eee;
  padding: 40px;
  /* Más aire interno */
  border-radius: 12px;
  background: #fff;
  margin: 20px auto;
  /* La centramos en la página */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* Un toque de sombra elegante */
  align-items: flex-start;
  /* Alinea arriba para que no se estire raro */
}

.card-left {
  flex: 0 0 300px;
}

.card-left img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.card-right {
  flex: 1;
}

.card-name {
  margin-top: 0;
  font-size: 2.2rem;
  color: #1a1a1a;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.card-item {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.card-item strong {
  color: #555;
  display: inline-block;
  width: 80px;
}

@media (max-width: 768px) {
  .card-presentacion {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-left {
    flex: 0 0 auto;
    width: 100%;
    max-width: 250px;
  }
}


/*==============GRUPOS DE INVESTIGADORES ==============*/
/*REVISAR: Es posible que tengamos que cambiar todo esto*/
.nav-underline .nav-link {
  color: #444;
  font-weight: 500;
  padding: 10px 20px;
}

.nav-underline .nav-link.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  background: #f9f9f9;
}

.tab-content {
  padding-top: 30px;
  min-height: 300px;
}

.integrantes .field__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* Ajuste para que cada integrante se vea como una tarjetita (opcional) */
.integrantes .field__item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* Responsivo: 2 columnas en tablets y 1 en móviles */
@media (max-width: 992px) {
  .integrantes .field__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .integrantes .field__items {
    grid-template-columns: 1fr;
  }
}

/* Espaciado de los bloques de la izquierda */
.info-block {
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
  /* Una línea sutil entre datos */
}

.info-block:last-child {
  border-bottom: none;
}

.info-block h5 {
  color: var(--primary-color) !important;
  /* Usamos tu color corporativo */
  font-size: 0.85rem;
}

/* Ajuste de la columna derecha para que no se pegue al borde */
.ps-md-5 {
  padding-left: 3rem !important;
}

/* Forzar que el campo de texto de descripción sea legible */
.descripcion-content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #444;
}

/* Estilo para el enlace web si quieres que parezca un botón */
.web-link a,
.col-md-4 .field--name-field-pagina-web a {
  display: inline-block;
  background-color: var(--primary-color);
  color: white !important;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.web-link a:hover {
  opacity: 0.8;
}


/*==============COHORTES==============*/

/* Contenedor Grid base */
.grid-4-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  align-items: start;
}

/* El separador horizontal */
.separador-seccion {
  border: 0;
  border-top: 2px solid var(--primary-color);
  margin: 40px 0 20px 0;
  clear: both;
}

.titulo-muestras {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #333;
}

/* Estilo de los campos para que no se rompan */
.grid-4-cols .field {
  display: block;
  word-wrap: break-word;
}

.grid-4-cols .field__label {
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 4px;
}

/* Responsive: 2 columnas en tablets, 1 en móvil */
@media (max-width: 1024px) {
  .grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4-cols {
    grid-template-columns: 1fr;
  }
}


.boton-solicitar {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff !important;
  /* Texto blanco */
  padding: 8px;
  /* Espacio interno para darle tamaño de botón */
  font-size: 14px;
  /* Tamaño de letra estilizado */
  font-weight: 500;
  text-decoration: none !important;
  /* Quita el subrayado típico de los enlaces */
  border-radius: 6px;
  /* Bordes suavemente redondeados */
  transition: all 0.2s ease;
  /* Transición suave para el hover */
  text-align: center;
}

/* Efecto al pasar el ratón (Hover) */
.boton-solicitar:hover {
  transform: translateY(-2px);
  /* Pequeño efecto flotante hacia arriba */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Sombra sutil al flotar */
}

/*==============NOTICAS==============*/

.node__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
}

.field--name-field-tags {
  clear: both;
  display: block;
  width: 100%;
}

.field--name-field-tags ul {
  list-style: none;
  padding: 0;
  /* margin: 0; */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field--name-field-tags li {
  background-color: var(--primary-color);
  border-radius: 8px !important;
  padding: 4px 12px !important;
  display: inline-block;
}

.view-tag {
  background-color: var(--primary-color);
  border-radius: 8px !important;
  padding: 4px 12px !important;
  display: inline-block !important;
  color: var(--secondary-color) !important;
  align-self: flex-start;
}

.field--name-field-tags li a,
.field--name-field-tags li {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}


.field--name-field-imagen img,
.field--name-field-imagen-final img {
  border-radius: 8px;
  object-fit: cover;
}

.field--name-field-imagen {
  margin: 0 !important;
}


/*=============    ============
               MAPA
  =============    ============*/

/* .ccaa circle {
  cursor: pointer;
  transition: opacity 0.2s, fill 0.2s;
}
.ccaa:hover circle {
  opacity: 1 !important;
}
.ccaa circle.active {
  fill: #6b0000;
  opacity: 1 !important;
} */

.ccaa-region {
  cursor: pointer;
  transition: fill 0.2s ease;
}

.ccaa-region:hover {
  fill: var(--primary-color) !important;
}

.ccaa-region.active {
  fill: var(--primary-color) !important;
}

.grupos-rht svg {
  width: 100%;
  height: auto;
}



/*POPUP*/
.modal {
  display: none;
  /* 👈 SOLO aquí */

  position: fixed;
  inset: 0;
  z-index: 9999;

  background: rgba(32, 44, 66, 0.85);

  align-items: center;
  justify-content: center;
}

/* tarjeta */
.modal-contenido {
  background: #f5f5f5;
  width: 600px;
  max-width: 90%;
  padding: 40px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* botón cerrar */
.cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

/* título */
.modal-contenido h3 {
  color: #d21c0d;
  margin-bottom: 20px;
}

/* texto descripción */
.modal-contenido p {
  color: #475569;
  font-size: 16px;
  margin-bottom: 25px;
}

/* lista */
.modal-contenido .persona {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid #e2e8f0;
}

/* icono */
.modal-contenido .persona::before {
  content: "\f0f0";
  /* fa-user-doctor */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;

  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  font-size: 15px;
  color: #64748b;
  width: 18px;
  text-align: center;
}

/* #servicios .card-icon i.icono-ia::before,
#servicios .card-icon i.icono-omicas::before,
#servicios .card-icon i.icono-modelos::before,
#servicios .card-icon i.icono-imagen::before,
#colaboradores-actuales .card-icon i.icono-industria::before,
#colaboradores-actuales .card-icon i.icono-biotech::before,
#colaboradores-actuales .card-icon i.icono-hospital::before,
#colaboradores-actuales .card-icon i.icono-universidad::before {
  font-family: initial !important;
}

#servicios .card-icon i.icono-ia::before {
  content: "🤖" !important;
}

#servicios .card-icon i.icono-omicas::before {
  content: "🧬" !important;
}

#servicios .card-icon i.icono-modelos::before {
  content: "🧪" !important;
}

#servicios .card-icon i.icono-imagen::before {
  content: "🔬" !important;
}

#colaboradores-actuales .card-icon i.icono-industria::before {
  content: "🏢" !important;
}

#colaboradores-actuales .card-icon i.icono-biotech::before {
  content: "💻" !important;
}

#colaboradores-actuales .card-icon i.icono-hospital::before {
  content: "🏥" !important;
}

#colaboradores-actuales .card-icon i.icono-universidad::before {
  content: "🎓" !important;
} */


.icono-cohorte::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f0c0"; /* users */
  margin-right: 8px;
}

.icono-biomarcadores::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f471"; /* dna */
  margin-right: 8px;
}




.servicios-tag ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.servicios-tag[open] ul {
  max-height: 500px;
  opacity: 1;
}


.servicios-tag li {
  background: #f1f4f8;
  border: 1px solid #e3e8ee;
  border-radius: 999px;
  padding: 8px 16px;
  line-height: 1;
}

.servicios-tag li p {
  margin: 0 !important;
  padding: 0;
  font-size: 0.95rem;
  color: #6b7280;
}


.servicios-tag summary {
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  color: #666;
}

.servicios-tag summary::after {
  content: "\25BC";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.servicios-tag[open] summary::after {
  transform: rotate(180deg);
}

/* Ocultar la flecha nativa */
.servicios-tag summary {
  list-style: none;
}

.servicios-tag summary::-webkit-details-marker {
  display: none;
}

.servicios-tag summary::marker {
  content: "";
  display: none;
}

.tarjet-details{
  margin-bottom:30px;
}

#servicios .field--name-field-tarjeta .cta-card,
#colaboradores-actuales .field--name-field-tarjeta .cta-card
 {
  height: auto;
}

/*======== WEBFORM ========*/
.line { width: 50px; height: 4px; background: var(--primary-color); margin: 15px auto; }

body.page-node-4767 #form {
  background: #f3f6fa;
  box-shadow: 0 80px 0 100vmax #f3f6fa;
  clip-path: inset(0 -100vmax -80px);
}

body.page-node-4767 #form .colab#catalogo-activo {
  background: #f3f6fa;
  box-sizing: border-box;
  box-shadow: 0 0 0 100vmax #f3f6fa;
  clip-path: inset(0 -100vmax);
  left: auto;
  margin: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 58px 20px 12px;
  right: auto;
  width: 100%;
}

body.page-node-4767 #form .colab#catalogo-activo .section-header h2 {
  color: #111827;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  /* font-weight: 800; */
  letter-spacing: 0;
  margin: 0;
}

body.page-node-4767 #form .colab#catalogo-activo .section-header {
  margin: 0 auto;
  max-width: 1080px;
}

body.page-node-4767 #form .colab#catalogo-activo .section-header p {
  color: #64748b !important;
  font-size: 1.05rem;
  /* font-weight: 500; */
  line-height: 1.55;
  margin: 18px auto 0 !important;
  max-width: 980px;
}

body.page-node-4767 #form .colab#catalogo-activo .line {
  height: 4px;
  margin: 18px auto 0;
  width: 50px;
}

body.page-node-4767 #block-ricors-rei-webform {
  background: #f3f6fa;
  box-shadow: 0 0 0 100vmax #f3f6fa;
  clip-path: inset(0 -100vmax);
  margin-top: -52px;
  padding: 44px 20px 82px;
}

.webform-submission-propuesta-de-colaboracion-form {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  box-sizing: border-box;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
  font-family: var(--fuente-principal);
  font-weight: 600;
  margin: 0 auto;
  max-width: 1080px;
  padding: clamp(32px, 5vw, 58px);
  width: 100%;
}

.webform-submission-propuesta-de-colaboracion-form .mb-3 {
  margin-bottom: 0 !important;
}

.webform-submission-propuesta-de-colaboracion-form .form-item-institucion-entidad-solicitante,
.webform-submission-propuesta-de-colaboracion-form .form-item-activo-o-servicio-de-interes,
.webform-submission-propuesta-de-colaboracion-form .form-item-motivo-de-la-solicitud-breve-descripcion-del-proyecto,
.webform-submission-propuesta-de-colaboracion-form .webform-flexbox {
  margin-bottom: 38px !important;
}

.webform-submission-propuesta-de-colaboracion-form label {
  margin-bottom: 12px;
}

.webform-submission-propuesta-de-colaboracion-form .form-control,
.webform-submission-propuesta-de-colaboracion-form .form-select {
  background-color: #fff;
  border: 1px solid #dce5f0;
  border-radius: 7px;
  box-sizing: border-box;
  box-shadow: none;
  color: #253347;
  font-size: 1rem;
  min-height: 50px;
  padding: 12px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.webform-submission-propuesta-de-colaboracion-form .form-control:focus,
.webform-submission-propuesta-de-colaboracion-form .form-select:focus {
  border-color: #c9150d;
  box-shadow: 0 0 0 3px rgba(201, 21, 13, 0.12);
  outline: none;
}

.webform-submission-propuesta-de-colaboracion-form textarea.form-control {
  min-height: 132px;
  resize: vertical;
}

.webform-submission-propuesta-de-colaboracion-form .webform-flexbox {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.webform-submission-propuesta-de-colaboracion-form .webform-flex,
.webform-submission-propuesta-de-colaboracion-form .webform-flex--container {
  display: block;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.webform-submission-propuesta-de-colaboracion-form .form-actions {
  margin-top: 10px !important;
}

.webform-submission-propuesta-de-colaboracion-form .form-item-privacy-acceptance {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  margin: 8px 0 36px !important;
}

.webform-submission-propuesta-de-colaboracion-form .form-item-privacy-acceptance input[type="checkbox"] {
  flex: 0 0 auto;
  height: 18px;
  margin-top: 3px;
  width: 18px;
}

.webform-submission-propuesta-de-colaboracion-form .form-item-privacy-acceptance label {
  color: #64748b;
  /* font-size: 1rem;
  font-weight: 600; */
  line-height: 1.45;
  margin: 0;
}

.webform-submission-propuesta-de-colaboracion-form .form-item-privacy-acceptance a {
  color: #d10f08;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.webform-submission-propuesta-de-colaboracion-form .webform-button--submit {
  align-items: center;
  background: #d80f07;
  border: 0;
  border-radius: 7px;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.25;
  min-height: 56px;
  padding: 14px 18px;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  width: 100%;
}

.webform-submission-propuesta-de-colaboracion-form .webform-button--submit:hover,
.webform-submission-propuesta-de-colaboracion-form .webform-button--submit:focus {
  background: #b90d06;
  color: #fff;
}

@media (max-width: 767px) {
  body.page-node-4767 #form .colab#catalogo-activo {
    margin-top: 0;
    padding: 42px 18px 10px;
  }

  body.page-node-4767 #block-ricors-rei-webform {
    margin-top: -32px;
    padding: 34px 16px 56px;
  }

  .webform-submission-propuesta-de-colaboracion-form {
    padding: 28px 20px;
  }

  .webform-submission-propuesta-de-colaboracion-form .webform-flexbox {
    gap: 30px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  body.page-node-4767 #form .colab#catalogo-activo {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.page-node-4767 #form .colab#catalogo-activo .section-header h2 {
    font-size: clamp(1.65rem, 9vw, 2rem);
    line-height: 1.15;
  }

  body.page-node-4767 #form .colab#catalogo-activo .section-header p {
    font-size: .98rem;
  }

  body.page-node-4767 #block-ricors-rei-webform {
    padding-left: 12px;
    padding-right: 12px;
  }

  .webform-submission-propuesta-de-colaboracion-form {
    border-radius: 10px;
    padding: 24px 16px;
  }

  .webform-submission-propuesta-de-colaboracion-form .form-item-institucion-entidad-solicitante,
  .webform-submission-propuesta-de-colaboracion-form .form-item-activo-o-servicio-de-interes,
  .webform-submission-propuesta-de-colaboracion-form .form-item-motivo-de-la-solicitud-breve-descripcion-del-proyecto,
  .webform-submission-propuesta-de-colaboracion-form .webform-flexbox {
    margin-bottom: 30px !important;
  }

  .webform-submission-propuesta-de-colaboracion-form label {
    font-size: .95rem;
  }

  .webform-submission-propuesta-de-colaboracion-form .form-control,
  .webform-submission-propuesta-de-colaboracion-form .form-select {
    font-size: .96rem;
    min-height: 48px;
    padding: 11px 13px;
  }

  .webform-submission-propuesta-de-colaboracion-form .form-item-privacy-acceptance {
    gap: 10px;
    margin-bottom: 30px !important;
  }

  .webform-submission-propuesta-de-colaboracion-form .form-item-privacy-acceptance label {
    font-size: .92rem;
  }

  .webform-submission-propuesta-de-colaboracion-form .webform-button--submit {
    font-size: .9rem;
    min-height: 52px;
    padding-left: 12px;
    padding-right: 12px;
  }
}


.guide-body h4 a {
  color: #000;
  text-decoration: none;
}


/*=======         =======
          BUSQUEDA
  =======         =======*/

#edit-help-link{
  display: none;
}

#search-form #edit-submit{
  width: 100px;
}

#edit-basic{
  margin-bottom: 2rem !important;
}

.node_search-results em{
  display: none;
}

/*=======         =======
      BUSQUEDA - PAGINA DE RESULTADOS
  =======         =======*/

.path-search .block-ricors-rei-content {
  max-width: 1136px;
  margin: 0 auto 5% !important;
  padding: 38px 15px 0;
}

.path-search h1.title {
  color: var(--primary-color, #c9140b);
  font-family: var(--fuente-principal);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.path-search h1.title::after {
  content: "Encuentra contenidos, comunicaciones y recursos de la red";
  display: block;
  color: #5f6874;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  margin-top: .55rem;
}

.path-search #search-form + h2 {
  color: var(--primary-color, #c9140b);
  font-family: var(--fuente-principal);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 1rem;
}

.path-search #search-form + h2::after {
  content: "Resultados encontrados para la búsqueda realizada";
  display: block;
  color: #5f6874;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  margin-top: .55rem;
}

.path-search #search-form {
  background: #fff;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 1.4rem 0 2rem;
  padding: 20px;
}

.path-search #search-form #edit-basic {
  display: flex;
  flex: 1 1 100%;
  gap: 12px;
  align-items: flex-end;
  margin: 0 !important;
}

.path-search #search-form .form-item,
.path-search #search-form .form-actions {
  margin: 0 !important;
}

.path-search #search-form .form-item {
  flex: 1 1 auto;
}

.path-search #search-form label {
  color: #303844;
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.path-search #search-form input[type="search"],
.path-search #search-form input[type="text"] {
  border: 1px solid #ccd3dd;
  border-radius: 6px;
  color: #1f2937;
  font-size: 1rem;
  min-height: 46px;
  padding: 10px 14px;
  width: 100%;
}

.path-search #search-form input[type="search"]:focus,
.path-search #search-form input[type="text"]:focus {
  border-color: var(--primary-color, #c9140b);
  box-shadow: 0 0 0 3px rgba(201, 20, 11, .14);
  outline: none;
}

.path-search #search-form #edit-submit {
  align-items: center;
  background: var(--primary-color, #c9140b);
  border: 1px solid var(--primary-color, #c9140b);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  width: auto;
}

.path-search #search-form #edit-submit:hover,
.path-search #search-form #edit-submit:focus {
  background: #a91009;
  border-color: #a91009;
}

.rei-search-results-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
}

.rei-search-results-list__item {
  background: transparent;
  border: 0;
  display: block;
  padding: 0;
}

.rei-search-empty {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .055);
  display: flex;
  gap: 16px;
  margin: 0 0 3rem;
  padding: 22px;
}

.rei-search-empty__icon {
  align-items: center;
  background: #f7e9e7;
  border-radius: 50%;
  color: var(--primary-color, #c9140b);
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.rei-search-empty__title {
  color: var(--primary-color, #c9140b);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
}

.rei-search-empty__text,
.rei-search-empty__hint {
  color: #303844;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.rei-search-empty__hint {
  color: #667085;
  margin-top: 4px;
}

.rei-search-empty__text em {
  font-style: normal;
}

.path-search .highlighted .container {
  max-width: 1136px;
}

.path-search .alert-danger,
.path-search .messages--error {
  background: #fff5f4;
  border: 1px solid #f1c7c3;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .06);
  color: #8a1f16;
  margin: 18px auto 0;
  max-width: 1136px;
  padding: 16px 20px;
}

.path-search .alert-danger h2,
.path-search .messages--error h2 {
  color: #8a1f16;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.path-search .alert-danger p,
.path-search .messages--error p {
  margin: 0;
}

.rei-search-result-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .055);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 22px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rei-search-result-card:hover {
  border-color: rgba(201, 20, 11, .38);
  box-shadow: 0 14px 30px rgba(17, 24, 39, .09);
  transform: translateY(-1px);
}

.rei-search-result-card__meta {
  color: #8a321d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.rei-search-result-card__title {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.rei-search-result-card__title a {
  color: var(--primary-color, #c9140b);
  text-decoration: none;
}

.rei-search-result-card__title a:hover,
.rei-search-result-card__title a:focus {
  text-decoration: underline;
}

.rei-search-result-card__snippet {
  color: #303844;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.rei-search-result-card__snippet strong {
  color: #111827;
  font-weight: 800;
}

.rei-search-result-card__info {
  display: none;
}

.rei-search-result-card__arrow {
  align-items: center;
  background: #f7e9e7;
  border-radius: 50%;
  color: var(--primary-color, #c9140b);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
  width: 42px;
}

.rei-search-result-card:hover .rei-search-result-card__arrow,
.rei-search-result-card__arrow:focus {
  background: var(--primary-color, #c9140b);
  color: #fff;
}

@media (max-width: 640px) {
  .path-search .block-ricors-rei-content {
    padding-top: 26px;
  }

  .path-search #search-form,
  .path-search #search-form #edit-basic,
  .rei-search-result-card,
  .rei-search-empty {
    display: block;
  }

  .path-search #search-form #edit-submit {
    margin-top: 12px;
    width: 100%;
  }

  .rei-search-result-card__arrow {
    margin-top: 16px;
  }

  .rei-search-empty__icon {
    margin-bottom: 14px;
  }
}

/*=========           =========
      Políticas de privacidad
  =========           ========= */

.privacy-content {
    color: #222;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 16px;
    line-height: 26px;
}

.privacy-content p {
    margin: 0;
    padding-bottom: 25px;
    text-align: justify;
}

.privacy-content h2 {
    margin: 55px 0 0;
    padding: 30px 0;
    border-top: 4px solid #c71000;
    color: #c71000;
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    line-height: 38px;
    font-weight: 800;
}

.privacy-content a {
    color: #c71000;
    text-decoration: underline;
    font-weight: 600;
}

.privacy-content strong {
    font-weight: 700;
}


/*==========CONTACTO=========*/
#block-ricors-rei-webform-2 {
  background-color: var(--primary-color);
  padding: 40px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}


#edit-contacto-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.politcapriv{
  color: var(--secondary-color);
}

#edit-contacto-block #edit-actions{  
  display: flex !important;
  justify-content: flex-end !important;
}

#edit-contacto-block .form-item-name,
#edit-contacto-block  .form-item-email,
#edit-contacto-block  .form-item-message{
  margin-bottom: 1rem !important;
}

#block-ricors-rei-webform-2 .button--primary {
  border-color: #ffffff;
  width: auto;
}

#block-ricors-rei-webform-2 .content,
#block-ricors-rei-webform-2 .block-content {
  max-width: 1200px; /* o el ancho que use tu tema */
  margin: 0 auto;
  padding: 0 20px;
}


.contact-form {
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
  margin-top: 5rem;
  background-color: var(--primary-color);
}

.contact-form h2 {
  color: #fff;
  margin-bottom: 20px;
}

.contact-form p {
  color: #fff;
  margin-bottom: 0;
}

/*COOKIES*/
#sliding-popup {
  font-family: var(--fuente-principal) !important;
  font-size: 15px !important;
}
#sliding-popup div{
  font-size: 14px !important;
}

/* Texto del banner */
#sliding-popup .popup-content {
  font-family: var(--fuente-principal) !important;
  font-size: 15px !important;
  line-height: 1.5;
}

#sliding-popup .agree-button,
#sliding-popup .decline-button {
  padding: 6px 12px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  border-radius: 4px !important;
}

/* Aceptar */
#sliding-popup .agree-button {
  border: 2px solid #ffd200 !important;
}

/* Rechazar */
#sliding-popup .decline-button {
  border: 1px solid #ced4da !important;
}