/* ===== SECCIÓN DE HABILIDADES ÉPICA - VERSIÓN UNIFICADA ===== */
#seccion-habilidades-activas {
  background: rgba(20, 20, 30, 0.8); /* Igual que .genshin-section */
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(100, 150, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

/* Borde superior idéntico al de personajes */
#seccion-habilidades-activas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff9c34, #ff3d3d, #a162e8, #5a9cf8, #47cfff);
  z-index: 1;
}

/* Título idéntico al section-title */
#seccion-habilidades-activas h2 {
  font-family: 'GenshinFont', sans-serif;
  color: #ffeb3b;
  text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
  letter-spacing: 1px;
  margin: 0 0 15px 0;
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
}


/* Tarjetas de habilidades idénticas a personaje-card */
.habilidad-box {
  background: linear-gradient(145deg, #2a2a3a, #1e1e2a);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}

/* Efecto shine idéntico */
.habilidad-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.habilidad-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 215, 0, 0.3);
}

.habilidad-box:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

/* Contenido adaptado */
.habilidad-contenido {
  background: rgba(26, 26, 37, 0.6); /* Similar a personaje-wrapper */
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Efecto vision al final (idéntico) */
.habilidad-box::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #ff9c34, #ff3d3d, #a162e8, #5a9cf8, #47cfff);
  margin-top: 15px;
  border-radius: 3px;
  animation: vision-glow 4s infinite alternate;
}

/* Tablas unificadas */
.table {
  background: rgba(26, 26, 37, 0.7) !important;
  color: #fff !important;
  border-radius: 8px;
  overflow: hidden;
  border-collapse: separate;
}

.table th {
  background: rgba(255, 215, 0, 0.2) !important;
  color: #ffeb3b !important;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1px;
  border: none !important;
}

.table td {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  vertical-align: middle;
}

/* Responsive idéntico */
@media (min-width: 576px) {
  #seccion-habilidades-activas h2 { font-size: 1.9rem; }
}

@media (min-width: 768px) {
  #seccion-habilidades-activas h2 { font-size: 2rem; }
  .habilidad-contenido { min-height: 250px; }
}

@media (max-width: 768px) {
  #seccion-habilidades-activas {
    max-height: 80vh; /* puedes ajustar */
    overflow-y: auto;
    scroll-behavior: smooth;
  }
}
