/* CHARACTER CARDS */
.chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.auxiliary-heroes {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}
.auxiliary-heroes .ccard {
  flex: 1 1 240px;
  max-width: 340px;
}

@media(max-width:540px) {
  .chars-grid {
    grid-template-columns: 1fr;
  }
}

.ccard {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.ccard:hover {
  transform: translateY(-10px);
}

.hero-c {
  background: linear-gradient(145deg, rgba(255, 107, 26, .1), rgba(26, 77, 255, .07));
  border: 1.5px solid rgba(255, 215, 0, .2);
}

.hero-c:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 55px rgba(255, 215, 0, .18);
}

.villain-c {
  background: linear-gradient(145deg, rgba(255, 0, 0, .08), rgba(80, 0, 0, .15));
  border: 1.5px solid rgba(255, 60, 60, .2);
}

.villain-c:hover {
  border-color: #FF4444;
  box-shadow: 0 20px 55px rgba(255, 0, 0, .18);
}

.cimg-wrap {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .04), transparent 70%);
}

.cimg {
  height: 90%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform .3s;
}

.hero-c:hover .cimg {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(255, 215, 0, .5);
}

.villain-c:hover .cimg {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 18px rgba(255, 0, 0, .5);
  animation: glowR .8s ease-in-out infinite;
}

.cinfo {
  padding: 16px;
}

.cname {
  font-family: 'Bangers', Impact, 'Arial Black', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.hero-c .cname {
  color: var(--gold);
}

.villain-c .cname {
  color: #FF8080;
}

.crole {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.hero-c .crole {
  background: rgba(255, 215, 0, .1);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, .25);
}

.villain-c .crole {
  background: rgba(255, 60, 60, .1);
  color: #FF8080;
  border: 1px solid rgba(255, 60, 60, .25);
}

.cdesc {
  color: rgba(255, 255, 255, .58);
  font-size: .88rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.cpoder {
  background: rgba(255, 255, 255, .05);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .75);
  border-left: 3px solid;
}

.hero-c .cpoder {
  border-color: var(--gold);
}

.villain-c .cpoder {
  border-color: #FF4444;
}

.cpoder strong {
  display: block;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
  opacity: .7;
}

/* Hero cards — fondo uniforme */
.hero-c {
  background: linear-gradient(145deg, rgba(255, 107, 26, .08), rgba(26, 77, 255, .06)) !important;
  border: 1.5px solid rgba(255, 215, 0, .18) !important;
}

/* Villain cards — fondo uniforme */
.villain-c {
  background: linear-gradient(145deg, rgba(180, 0, 0, .1), rgba(60, 0, 80, .12)) !important;
  border: 1.5px solid rgba(255, 60, 60, .18) !important;
}


/* === FEATURED CARDS (Dr. Titán y Lord Caries) === */
.ccard.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

@media(max-width:560px) {
  .ccard.featured {
    grid-template-columns: 1fr;
  }

  .ccard.featured .cimg-wrap {
    height: 220px;
  }
}

.ccard.featured .cimg-wrap {
  height: auto;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ccard.featured .cimg {
  height: 90%;
  max-height: 280px;
}

.ccard.featured .cinfo {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ccard.featured .cname {
  font-size: clamp(2rem, 5vw, 3rem);
}

.ccard.featured .cdesc {
  font-size: .92rem;
}

/* Featured hero (Dr. Titán) — azul celeste */
.hero-c.featured {
  border: 2px solid rgba(100, 200, 255, .55) !important;
  box-shadow: 0 0 50px rgba(80, 180, 255, .22), 0 0 100px rgba(26, 107, 255, .1) !important;
  background: linear-gradient(135deg, rgba(26, 107, 255, .12), rgba(80, 200, 255, .08)) !important;
}

.hero-c.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, #64C8FF, #1A6BFF, #00D4FF, #64C8FF);
  background-size: 400% 400%;
  animation: shimmer 3s linear infinite;
  z-index: -1;
  filter: blur(3px);
  opacity: .65;
}

.hero-c.featured .cname {
  color: #64C8FF;
  text-shadow: 0 0 20px rgba(100, 200, 255, .6);
}

.hero-c.featured .crole {
  background: rgba(100, 200, 255, .12);
  color: #64C8FF;
  border-color: rgba(100, 200, 255, .3);
}

.hero-c.featured .cpoder {
  border-left-color: #64C8FF;
}

.hero-c.featured .cpoder strong {
  color: #64C8FF;
}

.hero-c.featured .cimg-wrap {
  background: radial-gradient(ellipse at center, rgba(100, 200, 255, .12), transparent 70%);
}

.hero-c.featured:hover .cimg {
  filter: drop-shadow(0 0 22px rgba(100, 200, 255, .6)) !important;
  transform: scale(1.05);
}

/* Featured villain (Lord Caries) — fuego naranja/rojo */
.villain-c.featured {
  border: 2px solid rgba(255, 140, 0, .55) !important;
  box-shadow: 0 0 50px rgba(255, 100, 0, .22), 0 0 100px rgba(180, 0, 0, .1) !important;
  background: linear-gradient(135deg, rgba(255, 100, 0, .12), rgba(180, 0, 0, .12)) !important;
}

.villain-c.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, #FF8C00, #FF4400, #8B0000, #FF8C00);
  background-size: 400% 400%;
  animation: shimmer 3s linear infinite;
  z-index: -1;
  filter: blur(3px);
  opacity: .65;
}

.villain-c.featured .cname {
  color: #FF8C00;
  text-shadow: 0 0 20px rgba(255, 140, 0, .6);
}

.villain-c.featured .crole {
  background: rgba(255, 140, 0, .12);
  color: #FF8C00;
  border-color: rgba(255, 140, 0, .3);
}

.villain-c.featured .cpoder {
  border-left-color: #FF4400;
}

.villain-c.featured .cpoder strong {
  color: #FF8C00;
}

.villain-c.featured .cimg-wrap {
  background: radial-gradient(ellipse at center, rgba(255, 100, 0, .12), transparent 70%);
}

.villain-c.featured:hover .cimg {
  filter: drop-shadow(0 0 22px rgba(255, 140, 0, .6)) !important;
  transform: scale(1.05);
}

/* Featured hero (Sofia Sonrisa) — Rosa/Morado */
.hero-c.featured.sofia-card {
  border: 2px solid rgba(255, 77, 166, .55) !important;
  box-shadow: 0 0 50px rgba(255, 77, 166, .22), 0 0 100px rgba(155, 48, 255, .1) !important;
  background: linear-gradient(135deg, rgba(255, 77, 166, .12), rgba(155, 48, 255, .08)) !important;
}

.hero-c.featured.sofia-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, #FF4DA6, #FF80CC, #9B30FF, #FF4DA6);
  background-size: 400% 400%;
  animation: shimmer 3s linear infinite;
  z-index: -1;
  filter: blur(3px);
  opacity: .65;
}

.hero-c.featured.sofia-card .cname {
  color: #FF4DA6;
  text-shadow: 0 0 20px rgba(255, 77, 166, .6);
}

.hero-c.featured.sofia-card .crole {
  background: rgba(255, 77, 166, .12);
  color: #FF4DA6;
  border-color: rgba(255, 77, 166, .3);
}

.hero-c.featured.sofia-card .cpoder {
  border-left-color: #FF4DA6;
}

.hero-c.featured.sofia-card .cpoder strong {
  color: #FF4DA6;
}

.hero-c.featured.sofia-card .cimg-wrap {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(255, 77, 166, .12), transparent 70%);

}

.hero-c.featured.sofia-card:hover .cimg {
  filter: drop-shadow(0 0 22px rgba(255, 77, 166, .6)) !important;
  transform: scale(1.05);
}

/* Star decorations */
.star-deco {
  position: absolute;
  font-size: 1.3rem;
  z-index: 3;
  opacity: 0;
  animation: starPop .5s ease forwards, float 3s ease-in-out .6s infinite;
}

.star-deco:nth-child(1) {
  top: 10%;
  left: 8%;
  animation-delay: .1s, .6s;
}

.star-deco:nth-child(2) {
  top: 6%;
  right: 12%;
  animation-delay: .25s, .9s;
}

.star-deco:nth-child(3) {
  top: 18%;
  right: 7%;
  animation-delay: .4s, 1.2s;
}

/* LORD CARIES — Villano Supremo Detail Section */
.lord-section {
  margin-bottom: 50px;
  position: relative;
}

.lord-card {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 100, 0, .12), rgba(120, 0, 0, .2), rgba(80, 0, 100, .12));
  border: 2px solid rgba(255, 140, 0, .5);
  box-shadow: 0 0 60px rgba(255, 100, 0, .25), 0 0 120px rgba(255, 50, 0, .1), inset 0 0 40px rgba(0, 0, 0, .3);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  position: relative;
}

@media(max-width:640px) {
  .lord-card {
    grid-template-columns: 1fr;
  }
}

.lord-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, #FF8C00, #FF4400, #8B0000, #4B0082, #FF8C00);
  background-size: 400% 400%;
  animation: shimmer 3s linear infinite;
  z-index: -1;
  filter: blur(3px);
  opacity: .8;
}

.lord-img-wrap {
  background: radial-gradient(ellipse at center, rgba(255, 100, 0, .15), transparent 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 10px 0;
  position: relative;
  min-height: 300px;
}

.lord-img {
  width: 85%;
  object-fit: contain;
  max-height: 320px;
  filter: drop-shadow(0 0 30px rgba(255, 100, 0, .6)) drop-shadow(0 0 60px rgba(255, 50, 0, .3));
  animation: floatR 3s ease-in-out infinite;
}

.lord-glow-eyes {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 12px;
  background: radial-gradient(ellipse at center, #FF8C00, transparent);
  filter: blur(8px);
  animation: glowO 1s ease-in-out infinite;
  pointer-events: none;
}

.lord-info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lord-crown {
  font-size: 2rem;
  margin-bottom: 8px;
}

.lord-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 140, 0, .2), rgba(139, 0, 0, .3));
  color: #FF8C00;
  border: 1px solid rgba(255, 140, 0, .4);
  margin-bottom: 10px;
}

.lord-name {
  font-family: 'Bangers', Impact, 'Arial Black', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(255, 100, 0, .8), 3px 3px 0 rgba(139, 0, 0, .9);
}

.lord-title {
  font-family: 'Boogaloo', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: .95rem;
  letter-spacing: 2px;
  color: #FF8C00;
  margin-bottom: 14px;
}

.lord-desc {
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
  font-size: .9rem;
  margin-bottom: 14px;
}

.lord-frase {
  background: linear-gradient(135deg, rgba(255, 140, 0, .1), rgba(139, 0, 0, .15));
  border-left: 3px solid #FF8C00;
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  font-family: 'Boogaloo', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: .92rem;
  color: rgba(255, 220, 180, .9);
  line-height: 1.5;
  margin-bottom: 14px;
  font-style: italic;
}

.lord-poder {
  background: rgba(0, 0, 0, .3);
  border-radius: 12px;
  padding: 10px 14px;
  border-left: 3px solid #FF4400;
  font-size: .82rem;
  color: rgba(255, 255, 255, .75);
}

.lord-poder strong {
  display: block;
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FF8C00;
  margin-bottom: 3px;
}

.generals-label {
  text-align: center;
  margin: 30px 0 16px;
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 100, 0, .7);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.generals-label::before,
.generals-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 100, 0, .4), transparent);
}

/* DR. TITÁN — Leader Badge/Card */
.titan-leader-card {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 215, 0, .1), rgba(255, 107, 26, .1), rgba(26, 77, 255, .08));
  border: 2px solid rgba(255, 215, 0, .5);
  box-shadow: 0 0 60px rgba(255, 215, 0, .2), 0 0 120px rgba(255, 107, 26, .1), inset 0 0 40px rgba(0, 0, 0, .3);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  position: relative;
  margin-bottom: 30px;
}

@media(max-width:640px) {
  .titan-leader-card {
    grid-template-columns: 1fr;
  }
}

.titan-leader-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, #FFD700, #FF6B1A, #1A4DFF, #FFD700);
  background-size: 400% 400%;
  animation: shimmer 3s linear infinite;
  z-index: -1;
  filter: blur(3px);
  opacity: .7;
}

.titan-leader-img-wrap {
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, .12), transparent 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 10px 0;
  position: relative;
  min-height: 280px;
}

.titan-leader-img {
  width: 90%;
  object-fit: contain;
  max-height: 320px;
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, .6)) drop-shadow(0 0 50px rgba(255, 107, 26, .4));
  animation: float 3.5s ease-in-out infinite;
}

.titan-leader-info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.titan-leader-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, .15), rgba(255, 107, 26, .15));
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, .4);
  margin-bottom: 10px;
}

.titan-leader-name {
  font-family: 'Bangers', Impact, 'Arial Black', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(255, 215, 0, .7), 3px 3px 0 rgba(204, 100, 0, .9);
}

.titan-leader-title {
  font-family: 'Boogaloo', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: .95rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 14px;
}

.titan-leader-desc {
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
  font-size: .9rem;
  margin-bottom: 14px;
}

.titan-leader-lema {
  background: linear-gradient(135deg, rgba(255, 215, 0, .1), rgba(255, 107, 26, .1));
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  font-family: 'Boogaloo', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: .92rem;
  color: rgba(255, 240, 180, .9);
  line-height: 1.5;
  margin-bottom: 14px;
  font-style: italic;
}

.titan-leader-poder {
  background: rgba(0, 0, 0, .3);
  border-radius: 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  font-size: .82rem;
  color: rgba(255, 255, 255, .75);
}

.titan-leader-poder strong {
  display: block;
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

/* ===== GALERÍA DE PERSONAJES — Model Sheets ===== */
#galeria {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #06040A, #0D0A14 50%, #06040A);
  padding: 70px 0 80px;
}

#galeria::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--kids-purple), var(--orange), var(--kids-yellow), transparent);
}

.galeria-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 40px);
}

/* Tabs héroes / villanos */
.galeria-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}

.gtab {
  font-family: 'Bangers', Impact, 'Arial Black', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  padding: 10px 28px;
  border-radius: 30px;
  cursor: pointer;
  border: 2px solid;
  transition: all .25s;
  background: transparent;
}

.gtab-heroes {
  color: var(--gold);
  border-color: rgba(255, 215, 0, .35);
}

.gtab-heroes.active,
.gtab-heroes:hover {
  background: rgba(255, 215, 0, .12);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, .2);
}

.gtab-villains {
  color: #FF8080;
  border-color: rgba(255, 60, 60, .35);
}

.gtab-villains.active,
.gtab-villains:hover {
  background: rgba(255, 60, 60, .1);
  border-color: #FF4444;
  box-shadow: 0 0 20px rgba(255, 0, 0, .15);
}

.gtab-all {
  color: rgba(255, 255, 255, .6);
  border-color: rgba(255, 255, 255, .2);
}

.gtab-all.active,
.gtab-all:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .5);
}

/* Grid de fichas */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}

.gsheet {
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}

.gsheet:hover {
  transform: translateY(-8px) scale(1.02);
}

.gsheet-hero {
  border: 1.5px solid rgba(255, 215, 0, .2);
  background: rgba(255, 215, 0, .03);
}

.gsheet-hero:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 50px rgba(255, 215, 0, .18);
}

.gsheet-villain {
  border: 1.5px solid rgba(255, 60, 60, .2);
  background: rgba(255, 0, 0, .04);
}

.gsheet-villain:hover {
  border-color: #FF4444;
  box-shadow: 0 16px 50px rgba(255, 0, 0, .15);
}

.gsheet-villain-boss {
  border: 2px solid rgba(255, 140, 0, .35);
  background: rgba(255, 100, 0, .05);
}

.gsheet-villain-boss:hover {
  border-color: #FF8C00;
  box-shadow: 0 16px 50px rgba(255, 140, 0, .2);
}

.gsheet img {
  width: 100%;
  display: block;
  transition: transform .4s;
}

.gsheet:hover img {
  transform: scale(1.04);
}

.gsheet-label {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
}

.gsheet-name {
  font-family: 'Bangers', Impact, 'Arial Black', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.gsheet-hero .gsheet-name {
  color: var(--gold);
}

.gsheet-villain .gsheet-name {
  color: #FF8080;
}

.gsheet-villain-boss .gsheet-name {
  color: #FF8C00;
}

.gsheet-tag {
  font-family: 'Oswald', sans-serif;
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
}

.gsheet-hero .gsheet-tag {
  background: rgba(255, 215, 0, .1);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, .25);
}

.gsheet-villain .gsheet-tag {
  background: rgba(255, 60, 60, .1);
  color: #FF8080;
  border: 1px solid rgba(255, 60, 60, .25);
}

.gsheet-villain-boss .gsheet-tag {
  background: rgba(255, 140, 0, .12);
  color: #FF8C00;
  border: 1px solid rgba(255, 140, 0, .3);
}