/* Contenedor  */
.views-exposed-form {
  position: relative;
  max-width: 150px; 
  margin-left: auto;
  margin-right: 20px; 
  margin-bottom:20px;
  transition: max-width 0.3s ease; 
}
.views-exposed-form.filter-open {
  max-width: 250px; 
}
/* Botón Filtrar */
.filter-toggle-btn {
  width: 100%;
  padding: 8px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}
.filter-toggle-btn:hover {
  background: #f5f5f5;
}
.filter-toggle-btn::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'%3E%3C/polygon%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s;
}
/* Contenedor de filtros  */
.filter-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 99;
  margin-top: -1px;
  min-width: 250px; 
}
.filter-content.show {
  display: block;
}
/* Fieldsets*/
.views-exposed-form fieldset {
  border: none;
  border-bottom: 1px solid #e5e5e5;
  padding: 0;
  margin: 0;
  background: white;
}
.views-exposed-form fieldset:last-of-type {
  border-bottom: none;
}
.views-exposed-form fieldset legend {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  background: white;
  position: relative;
  user-select: none;
  border-bottom: 1px solid #f0f0f0;
  cursor: default;
}
/* Contenido del fieldset */
.fieldset-wrapper {
  padding: 8px 12px 12px 12px;
  display: block;
}
/* Radio buttons - Categorías  */
#edit-field-categoria-target-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#edit-field-categoria-target-id .form-item {
  width: 100%;
  margin: 0;
  padding: 3px 0;
}
/* Radio buttons - Años  */
#edit-field-fecha-de-creacion-value {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
}
#edit-field-fecha-de-creacion-value .form-item {
  margin: 0;
  padding: 3px 0;
}
/*#edit-field-fecha-de-creacion-value .form-item:first-child {*/
/*  grid-column: span 2;*/
/*}*/
/* Radio buttons generales */
.form-item.js-form-type-radio {
  display: flex;
  align-items: center;
}

.form-radio {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #999;
  border-radius: 3px; 
  margin-right: 6px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  background-color: white;
  transition: all 0.2s ease;
}

.form-radio:hover {
  border-color: #666;
}

.form-radio:checked {
  background-color: #3c48ee; 
  border-color: #797F89;
}

.form-radio:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 1px;
}

.form-item label {
  cursor: pointer;
  font-size: 13px;
  font-weight: normal;
  margin: 0;
  line-height: 1.3;
}
.views-exposed-form .fieldset-legend {
  display: block;
}