/* ==========================================================================
   Prismatic Vault — Design System
   ========================================================================== */

:root {
  --violet: #7B2FF7;
  --cyan: #00E5FF;
  --magenta: #FF2E9F;
  --gold: #FFD23F;
  --navy-deep: #0B0B1A;
  --navy: #12122A;
  --text-light: #F5F5FF;
  --text-dark: #171727;
  --text-muted: #6B6B85;

  --gradient-brand: linear-gradient(115deg, var(--violet) 0%, var(--cyan) 50%, var(--magenta) 100%);
  --gradient-brand-soft: linear-gradient(115deg, rgba(123,47,247,0.15) 0%, rgba(0,229,255,0.15) 50%, rgba(255,46,159,0.15) 100%);
  --gradient-hero: linear-gradient(160deg, var(--navy-deep) 0%, #1B1440 100%);
  --gradient-btn: linear-gradient(100deg, var(--violet) 0%, var(--magenta) 100%);
  --gradient-btn-hover: linear-gradient(100deg, var(--cyan) 0%, var(--magenta) 100%);

  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #FFFFFF;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--dark {
  background: var(--navy);
  color: var(--text-light);
}

.section--light {
  background: #FAFAFD;
  color: var(--text-dark);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--magenta);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-subtitle {
  max-width: 640px;
  font-size: 1.05rem;
  opacity: 0.85;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(123, 47, 247, 0.35);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(245, 245, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 8px 20px rgba(255, 210, 63, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 210, 63, 0.4);
}

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(245, 245, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 12px 0;
}

.brand-logo img {
  height: 100%;
  max-height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-light);
  opacity: 0.75;
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text-light);
  opacity: 1;
}

.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--text-light);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger span:nth-child(1) { width: 26px; }
.hamburger span:nth-child(2) { width: 20px; margin-left: auto; }
.hamburger span:nth-child(3) { width: 26px; }

.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); width: 26px; }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 26px; }

@media (max-width: 860px) {
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(245, 245, 255, 0.08);
    padding: 8px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(245, 245, 255, 0.08); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--navy-deep);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  aspect-ratio: 2000 / 900;
}

/* Hero carousel — banners de imagen.
   Los slides se apilan con position:absolute + opacity (nunca display:none):
   varios navegadores móviles no cargan imágenes dentro de elementos ocultos
   con display:none, lo que dejaba los banners 2-8 sin descargar. */
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 245, 255, 0.08);
  border: 1px solid rgba(245, 245, 255, 0.18);
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hero-arrow:hover { background: rgba(245, 245, 255, 0.18); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 245, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  background: var(--cyan);
  width: 22px;
  border-radius: 4px;
}

@media (min-width: 860px) {
  .hero-slide .container { text-align: left; align-items: flex-start; }
  .hero-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .hero-arrow { width: 34px; height: 34px; font-size: 1rem; }
  .hero-arrow.prev { left: 8px; }
  .hero-arrow.next { right: 8px; }
}

/* --------------------------------------------------------------------------
   Cards grid
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #17172E;
  border: 1px solid rgba(245, 245, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.35);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.card-thumb {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--gradient-brand);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card p {
  opacity: 0.8;
  font-size: 0.98rem;
}

/* Light variant used on white sections */
.card--light {
  background: #FFFFFF;
  border: 1px solid #ECECF4;
  box-shadow: 0 4px 20px rgba(20, 20, 50, 0.05);
}

.card--light:hover {
  border-color: var(--cyan);
}

.card--light p { opacity: 1; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Productos — tiles glass 3D
   -------------------------------------------------------------------------- */

.prod-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .prod-grid { grid-template-columns: repeat(4, 1fr); }
}

.prod-tile {
  position: relative;
  padding: 28px 14px 20px;
  border-radius: 18px;
  text-align: center;
  overflow: hidden;
  background: rgba(245, 245, 255, 0.04);
  border: 1px solid rgba(245, 245, 255, 0.09);
  backdrop-filter: blur(3px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.prod-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background: radial-gradient(circle at 50% 78%, var(--tile-glow, rgba(123, 47, 247, 0.35)), transparent 45%);
}

.prod-tile:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(245, 245, 255, 0.07);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.prod-tile:hover::before { opacity: 1; }

.prod-tile-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--gradient-brand);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prod-tile:hover .prod-tile-icon { transform: translateY(-4px) scale(1.08); }

.prod-tile-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.prod-tile h3 {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text-light);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.prod-tile:hover h3 { opacity: 1; }

.prod-tile-bar {
  position: relative;
  z-index: 1;
  height: 2px;
  width: 0;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--gradient-brand);
  transition: width 0.4s ease;
}

.prod-tile:hover .prod-tile-bar { width: 60%; }

/* --------------------------------------------------------------------------
   Banda destacada / callout
   -------------------------------------------------------------------------- */

.callout {
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  padding: 48px 32px;
  text-align: center;
  color: #FFFFFF;
}

.callout h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 12px;
}

.callout p {
  max-width: 560px;
  margin: 0 auto 24px;
  opacity: 0.95;
}

/* --------------------------------------------------------------------------
   Social band
   -------------------------------------------------------------------------- */

.social-band {
  text-align: center;
}

.social-band h2 { margin-bottom: 28px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--text-light);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245, 245, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img { height: 40px; width: auto; }

.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 245, 255, 0.06);
  transition: transform 0.18s ease, background 0.18s ease;
}

.footer-links svg { width: 20px; height: 20px; fill: var(--text-light); }

.footer-links a:hover {
  background: var(--gradient-brand);
  transform: translateY(-2px);
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Floating shop button
   -------------------------------------------------------------------------- */

.shop-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(123, 47, 247, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: shop-pulse 2.6s ease-in-out infinite;
}

.shop-float svg { width: 28px; height: 28px; fill: #FFFFFF; }

.shop-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(123, 47, 247, 0.55);
}

@keyframes shop-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(123, 47, 247, 0.45); }
  50% { box-shadow: 0 10px 28px rgba(123, 47, 247, 0.75), 0 0 0 8px rgba(123, 47, 247, 0.12); }
}

/* --------------------------------------------------------------------------
   Page header (Tienda / Guía)
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--gradient-hero);
  color: var(--text-light);
  padding: 56px 0 64px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 14px; }

.page-hero p {
  max-width: 620px;
  margin: 0 auto;
  opacity: 0.85;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Rarity guide (Guía TCG)
   -------------------------------------------------------------------------- */

.rarity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rarity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid #ECECF4;
}

.rarity-index {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-muted);
  width: 28px;
  flex-shrink: 0;
}

.rarity-name { font-weight: 600; font-family: var(--font-heading); font-size: 1.05rem; }

.rarity-row.is-prismatic {
  background: var(--gradient-brand);
  border: none;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(123, 47, 247, 0.3);
}

.rarity-row.is-prismatic .rarity-index { color: rgba(255,255,255,0.7); }

.rarity-row.is-prismatic .rarity-name::after {
  content: '★ Nombre de la marca';
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* Glossary */
.glossary-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .glossary-grid { grid-template-columns: repeat(2, 1fr); }
}

.glossary-item {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid #ECECF4;
}

.glossary-item dt {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 4px;
}

.glossary-item dd { color: var(--text-muted); font-size: 0.95rem; }

/* Content blocks used in Guía TCG */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-bottom: 16px; }
.prose p { margin-bottom: 16px; opacity: 0.85; }
.prose p:last-child { margin-bottom: 0; }
.prose + .prose { margin-top: 56px; }

/* --------------------------------------------------------------------------
   Quiénes somos — historia editorial
   -------------------------------------------------------------------------- */

.story {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.story p {
  margin-bottom: 22px;
  color: var(--text-dark);
  opacity: 0.85;
}

.story-lede {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  opacity: 1 !important;
  margin-bottom: 32px !important;
  color: var(--text-dark);
}

.story-beat {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--violet);
  opacity: 1 !important;
  margin: 36px 0 !important;
}

.story-list {
  text-align: center;
  margin: 36px 0;
}

.story-list p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text-dark);
  opacity: 0.9;
  margin-bottom: 6px;
}

.story-quote {
  position: relative;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--text-dark);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 40px 0 !important;
  padding: 0 12px;
}

.story-closing {
  text-align: center;
  font-style: italic;
  font-size: 1.1rem !important;
  line-height: 1.7;
  color: var(--text-muted) !important;
  opacity: 1 !important;
  margin-top: 36px !important;
}

.story-final {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 36px 0 8px !important;
}

/* Nuestra Promesa */
.promise-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: #17172E;
  border: 1px solid rgba(255, 210, 63, 0.3);
  border-radius: var(--radius-md);
  padding: 48px 36px;
}

.promise-card .eyebrow { color: var(--gold); }

.promise-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 24px;
}

.promise-card p {
  color: var(--text-light);
  opacity: 0.85;
  margin-bottom: 18px;
  line-height: 1.75;
}

.promise-card .story-beat { color: var(--gold); }
.promise-card .story-list p { color: var(--text-light); opacity: 0.95; }

@media (max-width: 640px) {
  .promise-card { padding: 36px 22px; }
}

/* --------------------------------------------------------------------------
   Expansiones
   -------------------------------------------------------------------------- */

.exp-hero {
  text-align: center;
  padding: 60px 24px 32px;
  background: radial-gradient(ellipse at 50% 0%, rgba(123, 47, 247, 0.25), transparent 60%), var(--navy-deep);
}

.exp-wordmark {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #FFFFFF 0%, #9C96BE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.exp-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.7;
}

.exp-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.exp-status::before,
.exp-status::after {
  content: '';
  width: 34px;
  height: 1px;
  background: rgba(245, 245, 255, 0.25);
}

.set-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .set-grid { grid-template-columns: repeat(3, 1fr); }
}

.set-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 24px 16px 20px;
  text-align: center;
  background: #17172E;
  border: 1px solid rgba(245, 245, 255, 0.09);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.set-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, var(--set-glow, var(--violet)) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.set-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 245, 255, 0.25);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.set-tile:hover::before { opacity: 0.28; }

.set-code {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  opacity: 0.5;
  text-align: left;
}

.set-logo {
  position: relative;
  z-index: 1;
  height: 64px;
  margin: 12px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.set-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.set-tile:hover .set-logo img { transform: scale(1.08); }

.set-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.set-tile:hover .set-name { opacity: 1; }

/* Cards carousel — "Cartas más importantes" */
.cards-carousel-wrap { position: relative; }

.cards-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 14px;
  scrollbar-width: none;
}

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

.card-tile {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 160px;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #17172E, #0E0E20);
  border: 1px solid rgba(245, 245, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, border-color 0.3s ease;
}

.card-tile:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(0, 229, 255, 0.5);
}

.card-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-tile:hover img { transform: scale(1.06); }

.card-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background: linear-gradient(120deg, transparent 30%, rgba(123, 47, 247, 0.5) 42%, rgba(0, 229, 255, 0.5) 50%, rgba(255, 46, 159, 0.5) 58%, transparent 70%);
  background-size: 220% 220%;
  mix-blend-mode: color-dodge;
  animation: holo-sweep 2.6s linear infinite;
}

.card-tile:hover::after { opacity: 0.55; }

@keyframes holo-sweep {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.carousel-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 245, 255, 0.08);
  border: 1px solid rgba(245, 245, 255, 0.16);
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s ease;
}

.carousel-nav button:hover { background: rgba(245, 245, 255, 0.18); }

/* Compact timeline */
.timeline { max-width: 760px; margin: 0 auto; }

.era { margin-bottom: 26px; }

.era-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(245, 245, 255, 0.1);
}

.era-rows { display: grid; gap: 2px; }

.era-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 4px;
  font-size: 0.88rem;
  color: var(--text-light);
  opacity: 0.75;
  border-bottom: 1px dashed rgba(245, 245, 255, 0.08);
}

.era-row span:last-child {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  opacity: 0.7;
}

.timeline-note {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.55;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .callout { padding: 36px 22px; }
}

/* --------------------------------------------------------------------------
   Guía TCG — Academia (Fase 1: Docs 4.1–4.10)
   -------------------------------------------------------------------------- */

/* Hero split (texto + Guardián Prismático) */
.page-hero--split { text-align: left; }

.page-hero--split .container {
  display: flex;
  flex-direction: column-reverse;
  gap: 36px;
  align-items: center;
}

.page-hero--split h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin: 0 0 16px;
}

.page-hero--split .hero-copy p {
  max-width: 560px;
  margin: 0 0 14px;
  opacity: 0.85;
}

.page-hero--split .hero-copy p:last-child { margin-bottom: 0; }

.page-hero--split .hero-visual {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.page-hero--split .hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
}

@media (min-width: 860px) {
  .page-hero--split .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .page-hero--split .hero-copy { flex: 1 1 480px; }
  .page-hero--split .hero-visual { flex: 1 1 380px; margin: 0; }
}

/* Bienvenido Coleccionista */
.welcome-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.welcome-copy p { margin-bottom: 16px; opacity: 0.85; }
.welcome-copy p:last-child { margin-bottom: 0; }

.welcome-visual img {
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

@media (min-width: 860px) {
  .welcome-grid { flex-direction: row; gap: 56px; }
  .welcome-copy { flex: 1 1 55%; }
  .welcome-visual { flex: 1 1 45%; }
}

/* .story-quote reused outside "Quiénes somos" — safe on dark backgrounds
   because the gradient text-clip replaces the fallback color. Give it room
   when it follows a grid instead of prose. */
.guide-section .story-quote { margin-top: 48px !important; }

/* Enlace secundario hacia Productos / Expansiones */
.guide-more { text-align: center; margin: 40px 0 0; }

/* Anatomía de una carta — hotspots */
.anatomy-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-top: 8px;
}

.anatomy-card {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 420 / 585;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.anatomy-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: none;
  background: var(--navy-deep);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 0 0 2px var(--gradient-brand, var(--cyan)), 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hotspot:hover { transform: scale(1.12); }

.hotspot.is-active {
  background: var(--gradient-brand);
  color: #fff;
}

.hotspot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.anatomy-panels {
  width: 100%;
  max-width: 420px;
}

.anatomy-panel {
  display: none;
  background: #FFFFFF;
  border: 1px solid #ECECF4;
  border-radius: var(--radius-sm);
  padding: 24px 26px;
}

.anatomy-panel.is-active { display: block; }

.anatomy-panel-index {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--violet);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.anatomy-panel h3 { font-size: 1.15rem; margin-bottom: 8px; }
.anatomy-panel p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

@media (min-width: 860px) {
  .anatomy-wrap { flex-direction: row; align-items: flex-start; justify-content: center; gap: 56px; }
}
