/* Contenedor del formulario */
#form-filtres {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin: 0 auto 2rem auto;
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
  font-family: "Open Sans", sans-serif;
}

/* Etiquetas */
#form-filtres label {
  margin-bottom: 0 !important;
  display: flex;
  color: #333;
}
#form-filtres input[type="text"] {
  gap: 2rem;
  padding: 10px;
}

/* Inputs y selects */
#form-filtres input[type="text"],
#form-filtres input[type="date"],
#form-filtres select {
    flex-basis: 300px;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

#form-filtres input[type="text"]:focus,
#form-filtres input[type="date"]:focus,
#form-filtres select:focus {
  border-color: #da1f1c;
  background-color: #fff;
  outline: none;
}

.cercadorParaules {
  flex-grow: 1;
}



/* ESTILOS CARD */
.tallers-grid {
display: grid;
  grid-template-columns: repeat(2, auto);
gap: 20px;
margin-top: 2rem;
}

.taller-list-item {
background: #fff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
transition: transform 0.3s ease;
position: relative;
}

.taller-list-item:hover {
transform: scale(1.02);
}

.categoria-icono{
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 100;
}

.categoria-icono img {
    max-width: 30px;
}

.taller-info {
  display: flex;
  z-index: 101;

}
.taller-header {
position: relative;

}

.taller-image img {
  max-width: 100px;
margin:10px;
  height: auto;
  width: 100%;
  object-fit: scale-down;
  border-radius: 10px;
}


.taller-title h3 {
    text-transform: uppercase;
    margin-top: 10px;
    padding: 5px;
    padding-bottom: 0px;
    background: #f7f7f7;
font-size: 1.1rem;
font-weight: bold;
color: #333;
}

.taller-casal {
    text-transform: uppercase;
    margin-top: 10px;
    padding: 5px;
    padding-bottom: 0px;
    font-weight: bold;
    font-size: 1rem;
    color: #E02B20;
}

.taller-body {
padding: 0 1rem 0.5rem;
}

.taller-content p {
padding: 0;
margin: 0;
font-size: 0.9rem;
color: #555;
}

.taller-buttons {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 1rem;
gap: 10px;
}

.taller-button {
flex: 1;
text-align: center;
padding: 0.5rem;
background: #E02B20;
color: white;
text-decoration: none;
border-radius: 6px;
transition: background 0.2s ease;
font-size: 12px !important;
}

.taller-button:hover {
background: #d14d47;
}

@media (max-width: 768px) {
.tallers-grid {
  grid-template-columns: 1fr;
}

#form-filtres select {
  font-size: 0.8rem;
}
}

/* ESTILOS PAGINACIÓN*/    
.paginacion {
margin: 1em 0;
text-align: center;
}
.pagina-btn {
margin: 0 5px;
padding: 0.3em 0.6em;
border: none;
background: #ccc;
cursor: pointer;
border-radius: 4px;
}
.pagina-btn.activa {
background: #333;
color: #fff;
}


/* ESTILOS PAGINACIÓN */
#cargandoTallers {
text-align: center;
font-weight: bold;
padding: 1em;
background-color: #fff3cd;
color: #856404;
border: 1px solid #ffeeba;
border-radius: 4px;
margin-bottom: 1em;
}

#avisoHorari {
text-align: center;
font-weight: bold;
padding: 1em;
background-color: #fff3cd;
color: #856404;
border: 1px solid #ffeeba;
border-radius: 4px;
margin-bottom: 1em;
}