:root {
  --verde: #28a745;
}

/* Contenedor principal */
#filtro-container form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
}

#filtro-form div {
  display: flex;
  flex-direction: column;
}

/* Etiquetas */
#filtro-form label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}






/* Selects */
#filtro-form select {
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: #394A2D;
  transition: border-color 0.3s ease;

  /* Elimina la apariencia por defecto */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Ajusta el tamaño, bordes y otros estilos que necesites */
  padding: 10px 40px 10px 10px; /* Espacio suficiente a la derecha para el caret */
  border: 2px solid #DEE5D8;
  border-radius: 5px;
  background-color: white;
  transition: border-color 0.3s ease;

  /* Agregar la imagen del caret (puede ser un SVG o PNG) */
  background-image: url('../images/arrow-filter.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px; /* Ajusta según tu imagen */

}




#filtro-form select:focus {
  border-color: #0073aa;
  outline: none;
}

/* Botón de búsqueda */
#filtro-form .soluciones {
  grid-column: span 3;
  text-align: center;
  margin-top: 15px;
}

button#buscar {
  padding: 12px 20px;
  font-size: 16px;
  background-color: var(--verde);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button#buscar:hover {
  background-color: #679033;
  /* transform: scale(1.05); */
}

button#buscar:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Resultados */
#resultado strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

#resultado ul {
  list-style-type: none;
  padding: 0;
}

#resultado li {
  padding: 10px;
  margin-bottom: 5px;
}

#resultado li a {
  text-decoration: none;
  font-weight: bold;
  color: #0073aa;
}

#resultado li a:hover {
  color: #005f8d;
}

/* Responsive */
@media screen and (max-width: 768px) {
  #filtro-container form {
    grid-template-columns: 1fr;
  }
  #filtro-form .soluciones {
    grid-column: span 1;
  }
}


h2.titlefilter {
  font-size: 1.3rem;
  font-weight: 600;
  color: #394A2D;
  text-align: center;
  text-transform: uppercase;
  padding: 0 0 20px 0;
  background-image: url('../images/arrow-filter.svg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 30px 10px; /* Ajusta según tu imagen */
}


/* Layout de tarjetas en resultados */

#filtro-resultados {
  margin-top: 30px;
}

.soluciones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 20px;
}

.solucion-card {
  width: 280px;
  background: #fff;
  border: 0;
  padding: 0;
  text-align: center;
}

.solucion-image img {
  max-width: 100%;
  height: auto;
}

.solucion-title {
  margin-top: 10px;
  font-size: 1.2em;
  min-height: 40px;
}

.solucion-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: #7ca23f;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.solucion-link:hover {
  background: #679033;
}