/* ==========================================================
   1. DEFINIR NUESTRA FUENTE ROBOTO (SELF-HOSTED)
   ========================================================== */
@font-face {
  font-family: 'Roboto-Infoguias'; /* <-- Le damos un nombre ÚNICO */
  font-style: normal;
  font-weight: 400; /* Peso Regular */
  src: url('../font/Roboto-Regular.ttf') format('truetype');
  font-display: swap; /* Mejora la carga */
}

@font-face {
  font-family: 'Roboto-Infoguias';
  font-style: normal;
  font-weight: 600;
  
  src: url('../font/Roboto-SemiBold.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Roboto-Infoguias';
  font-style: normal;
  font-weight: 700;
  src: url('../font/Roboto-Bold.ttf') format('truetype');
  font-display: swap;
}


.ue_infoguias{
  padding-bottom: 50px;

}

a , span, h1, h2 ,h3 {
  font-family: 'Roboto-Infoguias' !important;

}
/* === ESTILOS DE LAS CARDS === */
.ue_container_article_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  /* padding: 20px; */
  box-sizing: border-box;
}

.ue_card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  background-color: #f3f4f9;
  border: 1px solid #e0e1e6;
  border-radius: 8px;
  /* padding: 20px; */
  box-sizing: border-box;
  width: 100%;
  min-height: 174px;
}

.ue_article_img {
  flex: 0 0 40%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
  ;
}

.ue_article_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 6px 0 0 6px;
  ;
}

.ue_article_title h2 {
  margin: 0 0 5px 0;
  line-height: 20px;
}

.ue_article_title h2 a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 18px;
}

.ue_article_title span {
  font-size: 14px;
  color: #555;
}

/* === HEADER GENERAL (título, buscador y paginación) === */
.ue_infoguias_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 0;
}

.ue_infoguias_header_title {
  flex: 1 1 auto;
  text-align: left;
}

.ue_infoguias_header_title h1 {
  margin: 0;
}

/* === SEARCH BAR === */
.search-bar-container {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 100%;
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  opacity: 0.5;
}

.search-input {
  width: 100%;
  font-size: 16px;
  border: none;
  outline: none;
  background-color: white !important;
}

.search-input::placeholder {
  color: #b0b0b0;
  font-weight: 400;
}

/* === PAGINACIÓN === */
.pagination-container {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
  color: #333;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination-button {
  background-color: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  position: relative;
}

.pagination-button img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.pagination-button:hover:not(:disabled) {
  background-color: #f0f0f0;
}

.pagination-button:hover:not(:disabled) img {
  opacity: 1;
}

.pagination-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-input {
  width: 35px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px;
  font-size: 1em;
  -moz-appearance: textfield;
  background-color: #e5332a !important;
  color: white !important;
}

.pagination-input::-webkit-outer-spin-button,
.pagination-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pagination-input:hover,
.pagination-input:focus {
  border: 1px solid #999;
  outline: none;
}

.pagination-total {
  margin: 0 4px;
  font-size: 0.9em;
  color: #555;
}

/* Tooltip */
.pagination-button::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10;
}

.pagination-button:hover:not(:disabled)::after {
  opacity: 1;
  visibility: visible;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .ue_container_article_list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ue_infoguias_header {
    /* flex-direction: column; */
    align-items: stretch;
  }

  .ue_infoguias_header_title {
    text-align: center;
  }

  .search-bar-container {
    max-width: 100%;
  }

  .pagination-container {
    justify-content: center;
  }


}

@media (max-width: 600px) {
  .ue_container_article_list {
    grid-template-columns: 1fr;
  }
}

/* === HEADER RESPONSIVE (LA SOLUCIÓN) === */

/* === FIX AUTOCOMPLETAR DEL NAVEGADOR === */
/* (Poner al final de infoguias-style.css) */

.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus,
.search-input:-webkit-autofill:active {

  /* 1. El truco:
       Crea una sombra interna gigante del color que TÚ quieres.
       Esto "tapa" el color amarillo/azul del navegador.
       Cambia 'white' por el color que desees. */
  box-shadow: 0 0 0 100px white inset !important;

  /* 2. Opcional: El navegador a veces también cambia el color del texto.
       Esto lo fuerza a ser negro (o el color que elijas). */
  -webkit-text-fill-color: #333 !important;

  /* 3. Opcional: Evita que el texto se ponga en negrita (en Safari) */
  font-weight: 400 !important;
}