/* Race portraits on the home page. Native scrolling also works without JS. */
.home-races { background: var(--stone-950); }
.race-carousel { position: relative; }
.race-carousel-controls { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 18px; }
.race-carousel-controls[hidden] { display: none; }
.race-carousel-controls button {
  width: 44px; height: 44px; border: 1px solid var(--gold-light);
  border-radius: 50%; background: var(--stone-900); color: var(--gold-light);
  font-size: 24px; cursor: pointer;
}
.race-carousel-controls button:disabled { opacity: .3; cursor: default; }
.race-carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  list-style: none; margin: 0; padding: 8px 4px 22px;
  scrollbar-width: thin; scrollbar-color: var(--gold-light) var(--stone-900);
}
.race-carousel-slide { flex: 0 0 calc((100% - 80px) / 5); scroll-snap-align: start; }
.race-face-card {
  display: block; overflow: hidden; border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 12px; background: var(--stone-900); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.race-face-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.race-face-name {
  display: block; padding: 16px 8px; text-align: center; color: var(--gold-light);
  font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 700;
}
.race-face-card:hover { border-color: var(--gold-light); transform: translateY(-4px); }
.race-face-card:focus-visible, .race-carousel-controls button:focus-visible,
.race-carousel-track:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.home-races-cta { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 900px) { .race-carousel-slide { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 540px) {
  .race-carousel-track { gap: 14px; }
  .race-carousel-slide { flex-basis: 65%; }
}
@media (prefers-reduced-motion: reduce) { .race-face-card { transition: none; } }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--stone-950), var(--stone-900), var(--stone-950));
}

/* Rayas diagonales del hero original */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.orb-a {
  top: 80px;
  left: 40px;
  width: 128px;
  height: 128px;
  background: rgba(248, 183, 0, 0.1);
}

.orb-b {
  bottom: 80px;
  right: 40px;
  width: 160px;
  height: 160px;
  background: rgba(68, 64, 60, 0.1);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.badge-alpha {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(248, 183, 0, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 28px;
  box-shadow: 0 0 24px rgba(248, 183, 0, 0.2);
}


.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-bright);
  margin-bottom: 24px;
  text-shadow: var(--text-shadow);
}

.hero-title-highlight {
  color: var(--gold-primary);
  font-size: 1.35em;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--gold-primary);
  color: var(--stone-950);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  color: var(--stone-950);
  background: var(--gold-dark);
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(248, 183, 0, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  border: 2px solid var(--stone-600);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--stone-800);
  border-color: var(--gold-primary);
  color: var(--text-bright);
}

.download-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.download-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Key Specs Ticker */
.specs-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 20px auto 0;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 8px 12px;
}

.spec-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(248, 183, 0, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold-primary);
}

.spec-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
}

.spec-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section {
  padding: 90px 0;
  position: relative;
}

/* Degradados alternos entre secciones, como en el original */
.section:nth-of-type(even) { background: linear-gradient(to bottom, var(--stone-950), var(--stone-900)); }
.section:nth-of-type(odd) { background: linear-gradient(to bottom, var(--stone-900), var(--stone-950)); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: var(--text-shadow);
}

.section-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* =========================================================
   SHOWCASE DE CLASES (SIGNATURE ELEMENT)
   ========================================================= */
.classes-container {
  background: rgba(28, 25, 23, 0.5);
  border: 1px solid var(--stone-800);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.classes-container::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(248, 183, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.class-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.class-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  cursor: var(--cursor-hand);
  color: var(--text-muted);
  transition: all 0.25s ease;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.class-tab-btn .tab-icon {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.class-tab-btn:hover {
  border-color: var(--border-glow);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.class-tab-btn.active {
  background: linear-gradient(180deg, rgba(248, 183, 0, 0.16) 0%, var(--bg-surface-elevated) 100%);
  border-color: var(--gold-primary);
  color: var(--text-bright);
  box-shadow: 0 0 24px rgba(248, 183, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.class-tab-btn .tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.class-tab-btn:hover .tab-icon,
.class-tab-btn.active .tab-icon {
  opacity: 1;
}

.class-tab-btn.active .tab-icon {
  box-shadow: 0 0 18px rgba(248, 183, 0, 0.45);
}

.class-display-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.class-info-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.class-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
}

.class-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-shadow: var(--text-shadow);
  line-height: 1.1;
}

.class-lore {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.6;
}

.equipment-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.equipment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-bright);
}

.equipment-pill span {
  color: var(--gold-light);
}

/* Stat meters */
.stat-meters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-deep);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-mono);
  color: var(--gold-light);
  font-weight: 700;
}

.stat-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-hp { background: linear-gradient(90deg, #ef4444, #f87171); }
.fill-mana { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.fill-str { background: linear-gradient(90deg, #d97706, #fbbf24); }
.fill-agi { background: linear-gradient(90deg, #059669, #34d399); }
.fill-int { background: linear-gradient(90deg, #7c3aed, #a78bfa); }

.races-announcement {
  margin-top: 36px;
  padding: 18px 24px;
  background: rgba(248, 183, 0, 0.05);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.races-announcement-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.races-announcement-text strong {
  color: var(--gold-light);
}

.race-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.race-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* =========================================================
   CARRUSEL DE RAZAS
   ========================================================= */
.race-lore {
  margin-top: 40px;
  display: grid;
  gap: 14px;
}

.race-lore-chapter {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  scroll-margin-top: 100px;
}

.race-lore-chapter summary {
  padding: 20px 24px;
  color: var(--gold-light);
  font-weight: 700;
  cursor: var(--cursor-hand);
}

.race-lore-chapter[open] {
  border-color: var(--gold-primary);
}

.race-lore-chapter summary:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 4px;
}

.race-lore-body {
  padding: 0 24px 24px;
  max-width: 80ch;
  color: var(--text-main);
  line-height: 1.75;
}

.race-lore-body p + p {
  margin-top: 16px;
}

.race-carousel {
  position: relative;
  background: rgba(28, 25, 23, 0.5);
  border: 1px solid var(--stone-800);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  touch-action: pan-y;
  user-select: none;
}

.race-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}

.race-art {
  background: linear-gradient(135deg, rgba(41, 37, 36, 0.3), rgba(0, 0, 0, 0.3));
}

.race-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

.race-info {
  padding: 48px 72px 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.race-status {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.race-status.live {
  color: var(--life-green);
}

.race-name {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-primary);
  text-shadow: var(--text-shadow);
}

.race-capital {
  display: inline-flex;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(41, 37, 36, 0.8);
  border: 1px solid rgba(248, 183, 0, 0.3);
  border-radius: var(--radius-full);
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.race-desc {
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 1.6;
}

.race-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--stone-700);
  color: var(--gold-primary);
  cursor: var(--cursor-hand);
  backdrop-filter: blur(4px);
  transform: translateY(-50%);
  transition: all 0.2s ease;
}

.race-nav:hover {
  background: var(--gold-primary);
  color: #000;
  transform: translateY(-50%) scale(1.1);
}

.race-prev { left: 16px; }
.race-next { right: 16px; }

.race-dots {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.race-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(87, 83, 78, 0.5);
  cursor: var(--cursor-hand);
  transition: all 0.3s ease;
}

.race-dot:hover { background: #a8a29e; }

.race-dot.active {
  width: 32px;
  background: var(--gold-primary);
}

/* =========================================================
   TARJETAS DE LORE Y CLASES
   ========================================================= */
.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.lore-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.lore-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.lore-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(248, 183, 0, 0.3);
  display: grid;
  place-items: center;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.lore-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-bright);
}

.lore-card-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Tarjetas de clase en talentos.php: emblema a todo el ancho, nombre y texto pegados */
.class-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.class-card {
  padding: 14px 14px 20px;
  gap: 14px;
  text-align: center;
}

.class-icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: block;
}

.class-card .lore-card-desc {
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* =========================================================
   CONTROLES Y GAMEPLAY
   ========================================================= */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.control-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  transition: all 0.25s ease;
}

.control-card:hover {
  border-color: var(--gold-primary);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

/* Keycaps 3D */
.keycap-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.keycap {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  background: linear-gradient(180deg, var(--stone-700) 0%, var(--stone-800) 100%);
  border: 1px solid var(--stone-600);
  border-bottom: 3px solid var(--stone-950);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.15s ease;
}

.keycap-mouse {
  min-width: 52px;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.control-card:hover .keycap {
  color: #fff;
  border-color: var(--gold-primary);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(248, 183, 0, 0.35);
}

.control-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 100px;
}

.control-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
}

.control-details {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================
   PASOS PARA JUGAR (ONBOARDING)
   ========================================================= */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

/* Círculos numerados alternos del original */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 2px solid #d97706;
  color: var(--stone-950);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.step-card:nth-child(2) .step-number { background: linear-gradient(135deg, var(--stone-600), var(--stone-700)); border-color: var(--stone-500); color: var(--text-bright); }
.step-card:nth-child(3) .step-number { background: linear-gradient(135deg, #b45309, #92400e); border-color: #d97706; color: #fef3c7; }
.step-card:nth-child(4) .step-number { background: linear-gradient(135deg, var(--stone-700), var(--stone-800)); border-color: var(--stone-600); color: var(--text-main); }

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Callout Note */
.alpha-note-banner {
  margin-top: 40px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.3), rgba(28, 25, 23, 0.5));
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.alpha-note-icon {
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.alpha-note-content {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.65;
}

.alpha-note-content strong {
  color: #fff;
}

/* =========================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================= */
.faq-wrapper {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(248, 183, 0, 0.35);
}

.faq-item.active {
  border-color: var(--gold-primary);
  background: var(--bg-surface-elevated);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: var(--cursor-hand);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--gold-light);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-panel {
  max-height: 400px;
  padding-bottom: 22px;
  transition: max-height 0.4s ease-in-out, padding 0.35s ease;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 900px) {
  .class-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .class-display-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .race-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .race-art {
    aspect-ratio: 3 / 2;
  }
  .race-info {
    padding: 24px 24px 64px;
    align-items: center;
    text-align: center;
  }
  /* Flechas centradas sobre la imagen (alto = ancho del contenedor / 1.5) */
  .race-nav {
    top: calc((100vw - 48px) / 3);
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  .classes-container {
    padding: 20px;
  }
}

