@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,300,0,0&display=swap');


.servicios-wrapper {
  padding: 10px 0;
}

.servicios-title {
  font-weight: 700;
  margin-bottom: 16px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.servicios-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}

.servicios-image-wrap {
  flex: 0 0 45%;
  overflow: hidden;
}

.servicios-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.servicios-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 8px;
  gap: 12px;
}

.servicios-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.servicios-titulo {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 108%;
  letter-spacing: 0;
  color: #1C2A2E;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.servicios-descripcion {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
  color: #1C2A2E;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.servicios-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 32px;
  min-height: 32px;
  padding: 5px 8px 6px 8px;
  gap: 8px;
  border-radius: 100px;
  border: 1px solid rgba(0, 62, 47, 1); 
  background: rgba(255, 255, 255, 0.2);
  color: rgba(0, 62, 47, 1); 
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  align-self: flex-start;
  box-sizing: border-box;
  transition: background 0.3s ease-out, border-color 0.3s ease-out;
}

.servicios-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(0, 155, 118, 1); /* #009B76 */
}

.servicios-btn:active {
  background: rgba(235, 247, 244, 1); /* #EBF7F4 */
  border-color: rgba(0, 62, 47, 1);
}

.servicios-btn[aria-disabled="true"],
.servicios-btn.is-disabled {
  opacity: 0.2;
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 62, 47, 1);
  pointer-events: none;
  cursor: not-allowed;
}

.servicios-btn:hover,
.servicios-btn:visited,
.servicios-btn:visited:hover {
  color: rgba(0, 62, 47, 1) !important;
}

@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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



@media (max-width: 767px) {
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .servicios-card {
    flex-direction: row;
    width: 100%;
    height: 168px;
    border-radius: 18px;
    background: #fff;
  }

  .servicios-image-wrap {
    flex: 0 0 120px;
    width: 120px;
    height: 168px;
  }

  .servicios-content {
    flex: 1;
    width: auto;
    height: 168px;
    justify-content: space-between;
    padding: 16px 8px;
    gap: 0;
  }

  .servicios-text {
    width: auto;
    gap: 10px;
  }

  .servicios-titulo {
    width: auto;
    font-size: 16px;
    font-weight: 800;
    line-height: 17.25px;
    -webkit-line-clamp: 2;
  }

  .servicios-descripcion {
    width: auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 17.25px;
    -webkit-line-clamp: 3;
  }

.servicios-btn {
  width: fit-content;
  height: 32px;
  min-height: 32px;
  padding: 5px 8px 6px 8px;
  gap: 8px;
  border-radius: 100px;
  border: 1px solid rgba(0, 62, 47, 1); 
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: rgba(0, 62, 47, 1);
  align-self: flex-start;
}
}

/* Filtro expuesto de la categoría de servicios */
[data-drupal-selector="edit-categoria-servicios-para-ti-arl"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.servicios-filtro-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 0 0 12px auto;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #007A94;
  font-weight: 600;
  font-size: 14px;
}

.servicios-filtro-toggle svg {
  flex-shrink: 0;
}

.servicios-filtro-toggle:hover {
  opacity: 0.75;
}

.custom-select2-container {
  font-family: sans-serif;
  width: 100%;
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.custom-select2-container.is-visible {
  display: flex;
}

.custom-select2-trigger-wrap {
  position: relative;
  flex-shrink: 0;
}

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

.custom-select2-tag {
  background-color: #f0f7f6;
  border: 1px solid #004d40;
  color: #004d40;
  padding: 6px 12px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.custom-select2-tag span.remove-tag {
  cursor: pointer;
  font-weight: bold;
  color: #004d40;
}

.custom-select2-trigger {
  padding: 10px 15px;
  border: 1px solid #004d40;
  border-radius: 20px;
  background-color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  min-width: 140px;
  color: #004d40;
  font-weight: 500;
}

.custom-select2-trigger::after {
  content: ' ⌃';
  font-size: 0.8em;
  margin-left: 8px;
  transform: rotate(180deg);
  display: inline-block;
}

.custom-select2-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 248px;
  padding: 8px;
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(115, 166, 162, 1);
  border-radius: 8px;
  box-shadow: 0 20px 46px 0 rgba(12, 59, 46, 0.15);
  box-sizing: border-box;
  z-index: 100;
  margin-top: 5px;
}

.custom-select2-dropdown.open {
  display: block;
}

.custom-select2-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  color: rgba(38, 38, 38, 1);
  cursor: pointer;
  box-sizing: border-box;
}

.custom-select2-option:hover {
  background-color: #f5f5f5;
}

.custom-select2-option.selected {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  background-color: rgba(209, 237, 230, 1);
  color: rgba(38, 38, 38, 1);
}

.custom-select2-option.selected::after {
  content: 'check';
  font-family: 'Material Symbols Rounded';
  font-weight: 300;
  font-style: normal;
  font-size: 24px;
  line-height: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 122, 148, 1);
  letter-spacing: 0;
  text-align: center;
}

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