[data-drupal-selector="edit-categoria-novedades-arl"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

#views-exposed-form-ultimas-novedades-arl-block-1 .form-actions,
#views-exposed-form-ultimas-novedades-arl-block-1 input[type="submit"],
#views-exposed-form-ultimas-novedades-arl-block-1 button[type="submit"] {
  display: none !important;
  visibility: hidden !important;
}

.novedades-arl-header {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 16px;
  margin-bottom: 16px;
}

.novedades-arl-header .productos-filtro-toggle {
    display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: #007C96;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
}

.novedades-arl-header .productos-filtro-toggle svg {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.novedades-arl-header .productos-filtro-toggle span {
  display: inline-block;
  line-height: 100%;
  text-decoration: underline;
}

.novedades-arl-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: #0f6b52;
  border-radius: 2px;
}

.novedades-arl-ver-todos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content; 
  height: 40px; 
  min-height: 32px; 
  padding: 5px 8px 6px 8px; 
  gap: 8px; 
  border-radius: 100px; 
  border: 1px solid #003e2f; 
  background: rgba(255, 255, 255, 0.2); 
  color: #003e2f; 
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 12px; 
  line-height: 18px; 
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.3s ease-out, border-color 0.3s ease-out;
}

.arl-tt .gva-alfa-title__heading {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.72rem !important;
  letter-spacing: -0.78px !important;
}
.arl-tt .gva-alfa-title::before {
  width: 0.375rem !important;
  height: 1.375rem !important;
  border-radius: 6.25rem !important;
}

.novedades-arl-ver-todos-btn:hover,
.novedades-arl-ver-todos-btn:visited,
.novedades-arl-ver-todos-btn:visited:hover {
  color: #003e2f !important;
}

.novedades-arl-ver-todos-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #009B76;
}

.novedades-arl-ver-todos-btn:active {
  background: #EBF7F4;
  border-color: #003e2f;
}

.custom-select2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-select2-tag {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(115, 166, 162, 1); 
  background: rgba(255, 255, 255, 1); 
  color: rgba(38, 38, 38, 1); 
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
  box-sizing: border-box;
}

.custom-select2-tag span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select2-tag span.remove-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  font-size: 0;
  cursor: pointer;
}

.custom-select2-tag span.remove-tag::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 6L18 18M18 6L6 18' stroke='%23007A94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.custom-select2-tag .remove-tag:hover {
  opacity: 0.6;
}

.novedades-arl-ver-todos-btn[aria-disabled="true"],
.novedades-arl-ver-todos-btn.is-disabled {
  opacity: 0.2;
  background: #ffffff;
  border-color: #003e2f;
  pointer-events: none;
  cursor: not-allowed;
}

.novedades-arl-grid {
  display: grid;
  grid-template-columns: 2.05fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
}

.novedades-arl-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 160px;
  text-decoration: none;
  color: inherit;
}

.novedades-arl-card--destacada {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 344px;
}

/* ===== Overlay base (mismo patrón que "Últimas novedades") ===== */
.novedades-arl-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 20px 12px 20px;
}

/* Caja grande (destacada) — #F4F9EB */
.novedades-arl-card--destacada .novedades-arl-overlay {
  background: linear-gradient(
    to top,
    rgba(244, 249, 235, 1) 0%,
    rgba(244, 249, 235, 0.9) 18%,
    rgba(244, 249, 235, 0.45) 32%,
    rgba(244, 249, 235, 0.1) 50%
  );
}

/* Caja 1 — arriba-izquierda, #FFFBEB */
.novedades-arl-card:nth-child(2) .novedades-arl-overlay {
  background: linear-gradient(
    to top,
    rgba(255, 251, 235, 1) 0%,
    rgba(255, 251, 235, 0.9) 32%,
    rgba(255, 251, 235, 0.45) 52%,
    rgba(255, 251, 235, 0.1) 72%
  );
}

/* Caja 2 — arriba-derecha, #EBF6F9 */
.novedades-arl-card:nth-child(3) .novedades-arl-overlay {
  background: linear-gradient(
    to top,
    rgba(235, 246, 249, 1) 0%,
    rgba(235, 246, 249, 0.9) 32%,
    rgba(235, 246, 249, 0.45) 52%,
    rgba(235, 246, 249, 0.1) 72%
  );
}

/* Caja 3 — abajo-izquierda, #EBF2F1 */
.novedades-arl-card:nth-child(4) .novedades-arl-overlay {
  background: linear-gradient(
    to top,
    rgba(235, 242, 241, 1) 0%,
    rgba(235, 242, 241, 0.9) 32%,
    rgba(235, 242, 241, 0.45) 52%,
    rgba(235, 242, 241, 0.1) 72%
  );
}

/* Caja 4 — abajo-derecha, #F3EDF5 */
.novedades-arl-card:nth-child(5) .novedades-arl-overlay {
  background: linear-gradient(
    to top,
    rgba(243, 237, 245, 1) 0%,
    rgba(243, 237, 245, 0.9) 32%,
    rgba(243, 237, 245, 0.45) 52%,
    rgba(243, 237, 245, 0.1) 72%
  );
}

/* ===== Título — Roboto 700, #004953 ===== */
.novedades-arl-titulo {
  margin: 0 0 4px 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 100%;
  color: #004953;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.novedades-arl-card--destacada .novedades-arl-titulo {
  font-size: 18px;
}

/* ===== Link — Roboto 500, underline, #007C96 ===== */
.novedades-arl-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #007C96;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
  text-decoration: underline;
  width: fit-content;
  margin-left: 8px;
}

.novedades-arl-link-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.novedades-arl-link-icono svg path {
  fill: #007C96;
}

/* Tablet */
@media (max-width: 900px) and (min-width: 768px) {
  .novedades-arl-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .novedades-arl-card--destacada {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 280px;
  }
}

@media (max-width: 1279.98px) {
  .bb-container.container:has(.novedades-arl-grid) {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
    .novedades-arl-header {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0 !important;
    position: static !important; 
  }
  
  .novedades-arl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    gap: 16px;
  }
  .novedades-arl-card--destacada {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
  }
  .novedades-arl-card {
    min-height: 180px;
  }
  .novedades-arl-titulo {
            font-size: 16px;
        line-height: 19.55px;
  }
  
    .novedades-arl-link {
    font-size: 14px;
    gap: 4px;
  }
  
    .novedades-arl-link-icono {
    width: 12px;
    height: 12px;
  }
  
  .novedades-arl-card--destacada .novedades-arl-titulo {
    font-size: 16px;
  }
}

/* RWAF-67: foco visible al navegar con teclado (faltaba por completo aquí) */
.novedades-arl-card:focus-visible {
  outline: 2px solid #1b2538 !important;
  outline-offset: 2px !important;
}

.novedades-arl-ver-todos-btn:focus-visible {
  outline: 2px solid #1b2538 !important;
  outline-offset: 2px !important;
}

.novedades-arl-header .productos-filtro-toggle:focus-visible {
  outline: 2px solid #1b2538 !important;
  outline-offset: 2px !important;
}