/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    padding: 20px;
    background-color: #f5f5f5;
}
a{
    text-decoration: none;
    color: #0066cc;
    /* background-color: #666; */
    /* margin: 10px; */
}
/* Filtros */
/* Contenedor de filtros */
.hakiCheckbox{
    transform: scale(1.3);
}
#filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px; /* espacio entre columnas y filas */
  margin-bottom: 20px;
  align-items: center;
}

/* Labels dentro de filtros */
#filters label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 14px;
}

/* Selects y checkboxes */
#filters select,
#filters input[type="checkbox"] {
  margin-top: 5px;
  padding: 5px;
  font-size: 14px;
}

/* Contenedor especial para Haki */
#filterHakiContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#filterHakiContainer span {
  font-weight: bold;
  margin-right: 5px;
}

#filterHakiContainer label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  font-size: 14px;
}

/* Lista de personajes */
#lista {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
}

/* Card de cada personaje */
#lista li {
    flex: 1 1 250px; 
    min-width: 250px; 
    max-width: calc(33.333% - 10px); 
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}


#lista li:hover {
    transform: translateY(-5px);
}

/* Imagen del personaje */
#lista img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

/* Nombre y alias */
#lista li span.nombre {
    font-weight: bold;
    font-size: 16px;
}

#lista li span.alias {
    font-size: 12px;
    color: #666;
}

/* Total */
#total {
    margin-bottom: 15px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 1024px) {
    #lista li {
        max-width: calc(50% - 10px); /* 2 columnas máximo */
    }
}

@media (max-width: 600px) {
    #lista li {
        max-width: 100%; /* 1 columna en móviles */
        flex: 1 1 100%;
    }
}
