/* ===============================
   CATEGORÍAS
================================ */
.categorias-heroes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: #111;
}

.categorias-heroes .btn-cat {
  background: #222;
  color: #ccc;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.2s;
}

.categorias-heroes .btn-cat.active,
.categorias-heroes .btn-cat:hover {
  background: var(--acento);
  color: #fff;
}


.all-carousels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.carousel-title {
  margin-left: 145px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  width: calc(260px * 4 + 16px * 3);
  margin: 0 auto;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .card-hero {
  flex: 0 0 260px;
}



/* ===============================
   CONTENEDOR GENERAL
================================ */
.contenedor-heroes {
  width: 92%;
  max-width: 1140px;
  margin: 1.5rem auto 1rem;
}

/* ===============================
   GRID DE HEROES
================================ */
.grid-heroes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ===============================
   CARD HEROE
================================ */
.card-hero {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 13px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-hero:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
}

/* ===============================
   THUMB HEROE (NOMBRE + NIVEL)
================================ */
.hero-thumb {
  position: relative;
  width: 100%;
}

.hero-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.hero-name {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,.65);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
}

.hero-level {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.65);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: .85rem;
}

/* ===============================
   DETALLE HEROE
================================ */
.hidden {
  display: none;
}

.detalle-heroe {
  margin-top: 2rem;
  background: #0f0f10;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  animation: fadeIn .25s ease;
}

.detalle-top {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}

/* ===============================
   CARD GRANDE
================================ */
.hero-card-grande {
  width: 260px;
  text-align: center;
}

.nombre-grande {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

/* ===============================
   IMAGEN SWITCH
================================ */
.img-switcher {
  position: relative;
}

.img-detalle {
  width: 260px;
  height: 300px;
  border-radius: 8px;
  display: none;
}

.img-detalle.active {
  display: block;
}

/* ===============================
   BOTONES HABILIDAD / ESTRELLAS
================================ */
.switch-btns {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .6rem;
}

.switch-btns button {
  background: #222;
  color: #ccc;
  border: none;
  padding: .45rem .9rem;
  border-radius: 6px;
  cursor: pointer;
}

.switch-btns button.active,
.switch-btns button:hover {
  background: var(--acento);
  color: #fff;
}

/* ===============================
   SKILL HOTSPOTS (BOTONES 1–4)
================================ */
.skill-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.skill-hotspots button {
  pointer-events: auto;
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3a3a3a;
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  border: 2px solid #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 rgba(255, 215, 0, 0);
}

.skill-hotspots button:nth-child(1) { top: 20%; left: 10%; }
.skill-hotspots button:nth-child(2) { top: 20%; right: 15%; }
.skill-hotspots button:nth-child(3) { bottom: 30%; left: 10%; }
.skill-hotspots button:nth-child(4) { bottom: 29%; right: 15%; }

.skill-hotspots button:hover {
  background: #555;
  transform: scale(1.08);
}

.skill-hotspots button.active {
  background: gold;
  color: #000;
  border-color: #ffcc00;
  box-shadow:
    0 0 6px rgba(255, 215, 0, 0.9),
    0 0 12px rgba(255, 215, 0, 0.6),
    0 0 18px rgba(255, 215, 0, 0.4);
  transform: scale(1.15);
}

/* ===============================
   INFO DERECHA
================================ */
.info-derecha {
  flex: 1;
  padding-top: 1.5rem;
}

.info-derecha h3 {
  margin-left: 105px;
  margin-bottom: 2.3rem;
  color: var(--acento);
  font-weight: 700;
}

.info-derecha strong {
  display: block;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 0.9rem;
}

.info-derecha p {
  color: var(--muted);
  line-height: 1.6;
}

/* ===============================
   ANIMACIÓN
================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------- */
/*  SECCIÓN DE EQUIPAMIENTO   */
/* -------------------------- */

.equipamiento {
  margin-top: 3rem;
  padding: 1rem;
  background: #111;
  border-radius: 10px;
}

.titulo-equipamiento {
  text-align: center;
  font-size: 1.8rem;
  color: var(--acento);
  margin-bottom: 1.2rem;
}

.filtros-equip {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.btn-equip {
  background: #222;
  color: #ccc;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 6px;
}

.btn-equip.active,
.btn-equip:hover {
  background: var(--acento);
  color: #fff;
}

.hidden {
  display: none !important;
}

.grid-equip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card-equip {
  background: #1a1a1a;
  padding: 4px;
  border-radius: 10px;
  text-align: center;
  transition: .2s;
  cursor: pointer;
  width: 90%;
}

.card-equip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.card-equip h4 {
  margin: 0.5rem 0;
}

.card-equip .tipo {
  color: #bdbdbd;
  font-size: 0.9rem;
}

.card-equip .desc {
  color: var(--acento);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.card-equip:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}

/* ===============================
   CARRUSEL ARMADURAS EXCLUSIVAS
================================ */

.equip-exclusive-carousel {
  margin-bottom: 2rem;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
}

.equip-carousel-title {
  margin-bottom: 0.8rem;
  color: var(--acento);
  font-size: 1.3rem;
  text-align: center;
}

.equip-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.equip-carousel-track::-webkit-scrollbar {
  display: none;
}

.equip-carousel-track .card-equip {
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 280px;
}

/* ===============================
   COLUMNA DE 4 CARDS CON CARRUSELES
================================ */

.equip-class-column {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  overflow: hidden;
  margin: 0 auto 2rem auto;
}

.equip-class-card {
  background: #1a1a1a;
  padding: 0.1rem;
  border-radius: 12px;
}

.equip-class-card h4 {
  text-align: center;
  color: var(--acento);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.equip-class-carousel {
  overflow: hidden;
}

.equip-class-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.equip-class-track::-webkit-scrollbar {
  display: none;
}

.equip-class-track .card-equip {
  flex: 0 0 calc(100% - 8px);
  min-width: calc(100% - 8px);
}

/* ===============================
   RESPONSIVE
================================ */
/* ===============================
   RESPONSIVE (LEGACY - DEPRECATED)
   ⚠️ Usar heroes-responsive.css para mobile
================================ */

@media (max-width: 980px) {
  .grid-heroes { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .img-detalle { 
    width: 180px; 
    height: 260px; 
  }
  
  .card-hero { 
    min-height: auto; /* ✅ CAMBIO CRÍTICO */
  }
}

@media (max-width: 520px) {
  .grid-heroes { 
    grid-template-columns: 1fr; 
  }
  
  .detalle-top { 
    flex-direction: column; 
    align-items: center; 
  }
  
  .img-detalle { 
    width: 80%; 
    height: auto; 
  }
}

/* ===============================
   RESPONSIVE HEROES - MOBILE FIRST
================================ */

/* Tablets y menores - 768px */
@media (max-width: 768px) {
  
  /* Categorías apiladas verticalmente */
  .categorias-heroes {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem;
  }
  
  .categorias-heroes .btn-cat {
    flex: 1 1 calc(50% - 0.5rem);
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Grid de héroes a 2 columnas */
  .grid-heroes {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  /* Cards más pequeñas */
  .card-hero {
    padding: 8px;
    min-height: auto; /* ✅ QUITA EL MIN-HEIGHT FIJO */
  }
  
  .hero-thumb img {
    height: 180px;
  }
  
  .hero-name {
    font-size: 0.85rem;
    padding: 3px 8px;
  }
  
  .hero-level {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
  
  /* Carrusel responsive */
  .carousel-track {
    width: 100%;
    gap: 12px;
  }
  
  .carousel-track .card-hero {
    flex: 0 0 180px;
  }
  
  .carousel-title {
    margin-left: 1rem;
    font-size: 1.2rem;
  }
  
  /* Detalle del héroe */
  .detalle-top {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-card-grande {
    width: 100%;
    max-width: 280px;
  }
  
  .img-detalle {
    width: 100%;
    max-width: 280px;
    height: auto;
  }
  
  .info-derecha h3 {
    margin-left: 0;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  /* Equipamiento */
  .grid-equip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .equip-class-column {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filtros-equip {
    flex-wrap: wrap;
  }
  
  .btn-equip {
    flex: 1 1 calc(50% - 0.5rem);
    font-size: 0.85rem;
  }
}

/* Móviles - 520px y menores */
@media (max-width: 520px) {
  
  /* Categorías en columna */
  .categorias-heroes {
    flex-direction: column;
  }
  
  .categorias-heroes .btn-cat {
    width: 100%;
  }
  
  /* Grid de héroes a 1 columna */
  .grid-heroes {
    grid-template-columns: 1fr;
  }
  
  .card-hero {
    max-width: 100%;
  }
  
  .hero-thumb img {
    height: 220px;
  }
  
  /* Equipamiento 1 columna */
  .grid-equip {
    grid-template-columns: 1fr;
  }
  
  .equip-class-column {
    grid-template-columns: 1fr;
  }
  
  .btn-equip {
    width: 100%;
  }
}

/* Móviles muy pequeños - 360px */
@media (max-width: 360px) {
  .hero-thumb img {
    height: 180px;
  }
  
  .hero-name {
    font-size: 0.75rem;
  }
}