@tailwind base;
@tailwind components;
@tailwind utilities;

/* =========================================================
   Ajedrez H8 · Sistema de Diseño Oficial (Brand Book)
   Paleta: Twilight Blue (#22368D) + Classic Linen (#F5F0EB) +
           Onyx Black (#2C2C2C) + Umber Brown (#8B7355)
   Tipografía: Kavivanar (Display) + Cormorant Garamond (Serif) + Inter (Sans)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Kavivanar&display=swap');

:root {
  /* Brand Book Color Palette */
  --twilight-blue: #22368D;
  --twilight-blue-light: #3148ab;
  --twilight-blue-dark: #162463;
  --twilight-glow: rgba(34, 54, 141, 0.35);

  --classic-linen: #F5F0EB;
  --classic-linen-muted: #e5ddd4;
  --classic-linen-dark: #d5c8ba;
  --classic-linen-glow: rgba(245, 240, 235, 0.12);

  --onyx-black: #2C2C2C;
  --onyx-dark: #1e1e1e;
  --onyx-deeper: #151515;
  --onyx-card: #262626;
  --onyx-card-hover: #2d2d2d;
  --onyx-surface-2: #333333;

  --umber-brown: #8B7355;
  --umber-brown-light: #a38b6d;
  --umber-brown-dark: #69543c;
  --umber-glow: rgba(139, 115, 85, 0.28);

  /* Functional Mappings */
  --bg: var(--onyx-deeper);
  --bg-subtle: var(--onyx-dark);
  --surface: var(--onyx-card);
  --surface-hover: var(--onyx-card-hover);
  --border: rgba(139, 115, 85, 0.22);
  --border-strong: rgba(245, 240, 235, 0.18);

  --ink: var(--classic-linen);
  --ink-soft: #d0c8c0;
  --ink-dim: #928a80;

  --board-light: #F5F0EB;
  --board-dark: #8B7355;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 35px 80px -20px rgba(0, 0, 0, 0.85);

  --font-display: 'Kavivanar', cursive, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Warm Lighting Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1300px 750px at 85% -10%, var(--twilight-glow), transparent 60%),
    radial-gradient(1000px 650px at 5% 100%, var(--umber-glow), transparent 55%),
    radial-gradient(800px 500px at 50% 50%, rgba(38, 38, 38, 0.8), transparent 70%),
    var(--bg);
  pointer-events: none;
}

/* Subtle Natural Texture Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

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

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

::selection {
  background: var(--twilight-blue);
  color: var(--classic-linen);
}

.container {
  width: min(100% - 44px, var(--wrap));
  margin-inline: auto;
}

/* ============================ TYPOGRAPHY & TAGS ============================ */
.font-display {
  font-family: var(--font-display);
}

.font-heading {
  font-family: var(--font-heading);
}

.font-sans {
  font-family: var(--font-sans);
}

.badge-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--classic-linen);
  background: rgba(34, 54, 141, 0.25);
  border: 1px solid rgba(34, 54, 141, 0.5);
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(34, 54, 141, 0.2);
}

/* ============================ BUTTONS ============================ */
.btn {
  --pad-y: 13px;
  --pad-x: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

/* ============================================================
   Dos diseños de botón intercalados POR ROL (adaptados al brand book H8):
   · Primario (.btn--blue / .btn--gold) = «Liquid Metal» — twilight metálico
     con un brillo que fluye (recreación en CSS del shader, sin WebGL).
   · Secundario (.btn--ghost) = «Glass» — translúcido con desenfoque.
   ============================================================ */

/* Primario · Liquid Metal (twilight) */
.btn--gold,
.btn--blue {
  color: var(--classic-linen);
  border: 1px solid rgba(245, 240, 235, 0.22);
  background-image: linear-gradient(105deg, #16214f 0%, #22368D 26%, #4a5fc4 50%, #22368D 74%, #16214f 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 8px 24px -6px var(--twilight-glow), inset 0 1px 0 rgba(255, 255, 255, 0.30), inset 0 -2px 6px rgba(0, 0, 0, 0.35);
  animation: h8-metal-flow 5.5s linear infinite;
}

.btn--gold:hover,
.btn--blue:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 240, 235, 0.45);
  box-shadow: 0 14px 32px -6px rgba(34, 54, 141, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  animation-duration: 2.1s;
}

@keyframes h8-metal-flow {
  to { background-position: -200% 50%; }
}

/* Secundario · Glass (translúcido con desenfoque) */
.btn--ghost {
  color: var(--classic-linen);
  background: rgba(245, 240, 235, 0.08);
  border: 1px solid rgba(245, 240, 235, 0.22);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 2px rgba(0, 0, 0, 0.2), 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(245, 240, 235, 0.16);
  border-color: var(--twilight-blue-light);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 10px 26px rgba(0, 0, 0, 0.3);
}

/* Linen Button (High-Contrast Light Button) */
.btn--linen {
  background: var(--classic-linen);
  color: var(--onyx-black);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn--linen:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.btn--sm {
  --pad-y: 9px;
  --pad-x: 18px;
  font-size: 0.86rem;
}

.btn--block {
  width: 100%;
}

/* ============================ NAVIGATION ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(30, 30, 30, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav__inner {
  width: min(100% - 44px, var(--wrap));
  margin-inline: auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

/* Crowned Brand Monogram in Nav */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.brand__logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(139, 115, 85, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(34, 54, 141, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.brand:hover .brand__logo-img {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 16px rgba(34, 54, 141, 0.5);
  border-color: rgba(245, 240, 235, 0.4);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: var(--classic-linen);
}

.brand__text em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--umber-brown-light);
  letter-spacing: 0.6px;
}

.nav__links {
  display: flex;
  gap: 22px;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--twilight-blue-light), var(--umber-brown-light));
  transition: width 0.28s var(--ease);
  border-radius: 2px;
}

.nav__links a:hover {
  color: var(--classic-linen);
}

.nav__links a:hover::after {
  width: 100%;
}

/* Subpáginas (multipágina): enlace activo + aire bajo la barra fija */
.nav__links a.is-active {
  color: var(--classic-linen);
}

.nav__links a.is-active::after {
  width: 100%;
}

main > .section:first-child {
  padding-top: 148px;
}

#filosofia-welcome-root {
  padding-top: 90px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.nav__toggle span {
  width: 26px;
  height: 2px;
  background: var(--classic-linen);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================ HERO SECTION ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}

/* Background image blend with dark vignette */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.95) 0%, rgba(21, 21, 21, 0.75) 50%, rgba(21, 21, 21, 0.85) 100%),
    url('../img/chess_hero.webp') center/cover no-repeat;
  filter: contrast(1.05) brightness(0.9);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(245, 240, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 235, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 75%);
}

.hero__glow {
  position: absolute;
  right: -5%;
  top: 12%;
  width: 680px;
  height: 680px;
  z-index: 0;
  background: radial-gradient(circle, var(--twilight-glow), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(100% - 44px, var(--wrap));
  margin-inline: auto;
  max-width: 720px;
}

.hero__badge-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero__logo-emblem {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(139, 115, 85, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 16px rgba(34, 54, 141, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero__logo-emblem:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 24px rgba(34, 54, 141, 0.6);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.5px;
  color: var(--classic-linen);
  margin-bottom: 0;
  padding: 8px 18px;
  border: 1px solid rgba(139, 115, 85, 0.4);
  border-radius: 999px;
  background: rgba(36, 36, 36, 0.65);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero__eyebrow::before {
  content: "♔";
  color: var(--umber-brown-light);
  font-size: 1.1rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.9rem, 6.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  color: var(--classic-linen);
}

.grad {
  font-family: var(--font-display);
  font-weight: 400;
  background: linear-gradient(120deg, #ffffff 0%, var(--classic-linen) 40%, var(--umber-brown-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__lead strong {
  color: var(--classic-linen);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 54px;
}

/* Metaphor tagline box */
.hero__slogan-box {
  margin-bottom: 40px;
  padding: 16px 22px;
  border-left: 3px solid var(--twilight-blue-light);
  background: rgba(34, 54, 141, 0.12);
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(6px);
}

.hero__slogan-box blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--classic-linen);
}

.hero__slogan-box p {
  font-size: 0.88rem;
  color: var(--umber-brown-light);
  margin-top: 4px;
}

.stats-band .hero__stats {
  margin-inline: auto;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 36px;
  list-style: none;
  max-width: 640px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero__stats li {
  display: flex;
  flex-direction: column;
}

.hero__stats .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--classic-linen);
  line-height: 1;
}

.hero__stats .num::after {
  content: "+";
  color: var(--twilight-blue-light);
}

.hero__stats small {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-top: 6px;
  max-width: 125px;
}

/* Tablero decorativo 3D rotado en el Hero */
.hero__board {
  position: absolute;
  right: -40px;
  top: 52%;
  transform: translateY(-50%) rotate(-7deg) rotateX(12deg);
  z-index: 1;
  width: min(44vw, 540px);
  aspect-ratio: 1;
  filter: drop-shadow(0 40px 90px rgba(0, 0, 0, 0.85));
  opacity: 0.92;
  transition: transform 0.6s var(--ease);
}

.hero__board:hover {
  transform: translateY(-52%) rotate(-5deg) rotateX(8deg) scale(1.02);
}

.hero__board-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border-radius: 18px;
  overflow: hidden;
  border: 10px solid #1a1510;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(139, 115, 85, 0.4);
}

.hero__board-inner .hc {
  display: grid;
  place-items: center;
}

.hero__board-inner .hc.light {
  background: var(--board-light);
}

.hero__board-inner .hc.dark {
  background: var(--board-dark);
}

.hero__board-inner .pc {
  width: 80%;
  height: 80%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  width: 28px;
  height: 44px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  transition: border-color 0.3s;
}

.hero__scroll:hover {
  border-color: var(--classic-linen);
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--twilight-blue-light);
  margin-top: 7px;
  animation: scrolldot 1.6s infinite;
}

@keyframes scrolldot {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
  }

  80% {
    opacity: 0;
    transform: translateY(13px);
  }

  100% {
    opacity: 0;
  }
}

/* ============================ SECTIONS COMMON ============================ */
.section {
  padding: 115px 0;
  position: relative;
}

.section__head {
  max-width: 740px;
  margin: 0 auto 64px;
  text-align: center;
}

.section__kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  color: var(--umber-brown-light);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.5px;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--classic-linen);
}

.section__sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* ============================ FILOSOFÍA Y VALORES ============================ */
.philosophy {
  background: linear-gradient(180deg, transparent, rgba(38, 38, 38, 0.4));
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% -30%, var(--twilight-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 54, 141, 0.5);
  box-shadow: var(--shadow);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar__icon {
  font-size: 2.2rem;
  color: var(--classic-linen);
  margin-bottom: 20px;
  line-height: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(34, 54, 141, 0.25);
  border: 1px solid rgba(34, 54, 141, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pillar h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--classic-linen);
}

.pillar p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Grid de los 5 valores oficiales de marca */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 50px;
}

.value-card {
  background: rgba(44, 44, 44, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--umber-brown-light);
  background: rgba(139, 115, 85, 0.12);
}

.value-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--classic-linen);
  margin-bottom: 4px;
}

.value-card span {
  font-size: 0.8rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Pull quote */
.pull {
  margin: 70px auto 0;
  max-width: 880px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  position: relative;
}

.pull p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.35;
  color: var(--classic-linen);
}

.pull cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--umber-brown-light);
  letter-spacing: 0.5px;
}

/* ============================ HERO 3D + SPOTLIGHT (Programas) ============================ */
.spotlight-hero-section {
  padding-bottom: 40px;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  height: clamp(430px, 56vh, 520px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(1100px 480px at 12% -10%, rgba(34, 54, 141, 0.22), transparent 55%),
    var(--onyx-deeper);
  box-shadow: var(--shadow-lg);
}

.spotlight {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 400px;
  height: 400px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245, 240, 235, 0.22), rgba(34, 54, 141, 0.12) 45%, transparent 72%);
  filter: blur(22px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  transform: translate(-500px, -500px);
  will-change: transform, opacity;
}

.spotlight-card__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  height: 100%;
}

.spotlight-card__content {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.spotlight-card__content .section__kicker {
  display: inline-block;
  margin-bottom: 0;
}

.spotlight-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.5px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  max-width: 12ch;
  background: linear-gradient(180deg, #ffffff, var(--classic-linen) 45%, var(--umber-brown-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spotlight-card__lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 32rem;
}

.spotlight-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.spotlight-card__scene {
  position: relative;
}

.spotlight-card__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 62% 50%, rgba(34, 54, 141, 0.28), transparent 62%);
}

.spotlight-card__scene spline-viewer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .spotlight-card {
    height: auto;
  }

  .spotlight-card__grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card__content {
    padding: 38px 28px;
  }

  .spotlight-card__title {
    max-width: none;
  }

  .spotlight-card__scene {
    height: 300px;
    order: -1;
  }
}

@media (max-width: 460px) {
  .spotlight-card__scene {
    display: none;
  }
}

/* ============================ PROGRAMAS ============================ */
.programs {
  background: var(--bg-subtle);
}

.programs .cards {
  perspective: 1300px;
  align-items: stretch;
}

/* Tarjeta de clase con tilt 3D */
.prog-card {
  --accent: var(--twilight-blue-light);
  position: relative;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}

.prog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
}

.prog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: radial-gradient(320px 130px at 50% 0%, var(--accent), transparent 72%);
  opacity: 0.16;
}

.prog-card--1 {
  --accent: #a58a5e;
}

.prog-card--2 {
  --accent: var(--twilight-blue-light);
}

.prog-card--3 {
  --accent: #6f9e6a;
}

.prog-card--4 {
  --accent: #c86b57;
}

.prog-card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prog-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  transform: translateZ(40px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245, 240, 235, 0.08);
  border: 1px solid rgba(245, 240, 235, 0.22);
  backdrop-filter: blur(6px);
  color: var(--classic-linen);
  transition: 0.2s;
}

.prog-card__arrow:hover {
  background: rgba(245, 240, 235, 0.18);
  transform: translateZ(40px) scale(1.08) rotate(3deg);
}

.prog-card__arrow svg {
  width: 18px;
  height: 18px;
}

.prog-card__head {
  padding-right: 44px;
}

.prog-card__date {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--accent);
  letter-spacing: 0.4px;
}

.prog-card__level {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--classic-linen);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.prog-card__level .ico {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.prog-card__blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.prog-block h4 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--classic-linen);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.prog-block h4 time {
  color: var(--ink-dim);
  font-weight: 500;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.prog-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prog-block li {
  position: relative;
  padding-left: 15px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.prog-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.prog-card__cta {
  transform: translateZ(28px);
  text-align: center;
  text-decoration: none;
  padding: 11px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--classic-linen);
  background: rgba(245, 240, 235, 0.08);
  border: 1px solid rgba(245, 240, 235, 0.18);
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}

.prog-card__cta:hover {
  background: rgba(245, 240, 235, 0.16);
  border-color: var(--accent);
}

/* Inversión mensual */
.pricing {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.pricing>.section__kicker {
  margin-bottom: 0;
}

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

.pricing__opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 26px;
  text-align: left;
}

.pricing__opt .ico {
  font-size: 1.7rem;
  color: var(--umber-brown-light);
}

.pricing__opt-txt strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  color: var(--classic-linen);
}

.pricing__opt-txt span {
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.pricing__price {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--classic-linen);
  white-space: nowrap;
}

.pricing__price small {
  font-size: 0.62rem;
  color: var(--ink-dim);
  font-weight: 500;
}

.pricing__opt--best {
  border-color: rgba(34, 54, 141, 0.6);
  background: linear-gradient(180deg, rgba(34, 54, 141, 0.16), var(--surface));
}

.pricing__badge {
  position: absolute;
  top: -11px;
  right: 16px;
  background: linear-gradient(135deg, var(--twilight-blue-light), var(--twilight-blue));
  color: var(--classic-linen);
  font-family: var(--font-display);
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px var(--twilight-glow);
}

.pricing__note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 640px;
}

.pricing__note strong {
  color: var(--classic-linen);
}

/* Detalles de las clases */
.prog-details {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.prog-details div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prog-details .ico {
  color: var(--twilight-blue-light);
}

@media (max-width: 560px) {
  .pricing__opt {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 115, 85, 0.5);
  box-shadow: var(--shadow);
}

/* Card Destacada */
.card--featured {
  border-color: rgba(34, 54, 141, 0.6);
  background: linear-gradient(180deg, rgba(34, 54, 141, 0.18), var(--surface));
  box-shadow: 0 10px 40px -10px var(--twilight-glow);
}

.card__ribbon {
  position: absolute;
  top: 18px;
  right: -36px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--twilight-blue-light), var(--twilight-blue));
  color: var(--classic-linen);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 42px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card__tag {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--umber-brown-light);
}

.card__age {
  font-size: 0.78rem;
  color: var(--ink-dim);
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--classic-linen);
}

.card>p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 22px;
  flex-grow: 1;
}

.card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.card__list li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
}

.card__list li::before {
  content: "♟";
  position: absolute;
  left: 0;
  color: var(--twilight-blue-light);
  font-size: 0.85rem;
  top: 1px;
}

/* ============================ HERO DE EXPANSIÓN (Torneos) ============================ */
.expand-hero {
  position: relative;
}

.expand-hero__track {
  position: relative;
  height: 240vh;
}

.expand-hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.expand-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(21, 21, 21, 0.5), rgba(21, 21, 21, 0.32) 42%, rgba(21, 21, 21, 0.64)),
    url('../img/torneos-bg.webp') center / cover no-repeat;
}

.expand-hero__media {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 400px;
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 240, 235, 0.08);
}

.expand-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.expand-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.25), transparent 40%, rgba(21, 21, 21, 0.45));
}

.expand-hero__title {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
}

.expand-hero__word {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -1px;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1;
  color: var(--classic-linen);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
}

.expand-hero__word--r {
  background: linear-gradient(120deg, var(--classic-linen), var(--umber-brown-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.expand-hero__hint {
  position: absolute;
  z-index: 3;
  bottom: 8%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.expand-hero__date {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--classic-linen);
  background: rgba(34, 54, 141, 0.35);
  border: 1px solid rgba(34, 54, 141, 0.5);
  padding: 5px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.expand-hero__scroll {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
}

.expand-hero__content {
  position: relative;
  z-index: 4;
  background: var(--bg);
}

.expand-cta {
  text-align: center;
  padding: 90px 0 100px;
  max-width: 720px;
}

.expand-cta .section__kicker {
  display: inline-block;
}

.expand-cta .btn {
  margin-top: 26px;
}

@media (max-width: 768px) {
  .expand-hero__track {
    height: 200vh;
  }

  .expand-cta {
    padding: 70px 0 80px;
  }
}

/* ============================ CONVOCATORIA ============================ */
.conv-hero {
  text-align: center;
  background: radial-gradient(1000px 520px at 50% -5%, var(--twilight-glow), transparent 60%);
}
.conv-hero .section__title { max-width: 20ch; margin-inline: auto; }
.conv-hero .section__sub { max-width: 44rem; margin-inline: auto; }
.conv-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 28px 0 20px; }
.conv-hero__org { max-width: 46rem; margin: 0 auto; color: var(--ink-dim); font-size: 0.86rem; line-height: 1.5; }

.conv-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; text-align: left; }
.conv-fact {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 4px;
}
.conv-fact__ico { font-size: 1.5rem; margin-bottom: 6px; }
.conv-fact strong { font-family: var(--font-heading); font-size: 1.02rem; color: var(--classic-linen); }
.conv-fact span:not(.conv-fact__ico) { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; }

.conv-body { padding-top: 0; }

/* Fondo animado (WebGL) para el formato de artículo — crónicas y convocatorias.
   El gradiente se monta en #conv-bg-root (capa z-0) y el contenido va encima (z-1). */
.conv-page { position: relative; }
.conv-page #conv-bg-root { position: fixed; inset: 0; z-index: 0; }
.conv-page .conv-hero,
.conv-page .conv-body { z-index: 1; }
.conv-block { max-width: 920px; margin: 0 auto 56px; }
.conv-block__title {
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--classic-linen); margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.conv-sub { font-family: var(--font-heading); font-size: 1.15rem; color: var(--classic-linen); margin-bottom: 10px; }
.conv-sub span { font-size: 0.82rem; color: var(--ink-dim); }
.conv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }

.conv-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.conv-list li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.conv-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--twilight-blue-light); }
.conv-list li strong { color: var(--classic-linen); font-weight: 600; }
.conv-list--plain li { padding-left: 0; }
.conv-list--plain li::before { display: none; }
.conv-list a { color: var(--twilight-blue-light); text-decoration: none; border-bottom: 1px solid transparent; }
.conv-list a:hover { border-bottom-color: currentColor; }

.conv-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }

.conv-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.conv-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
.conv-table th, .conv-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.conv-table thead th { background: rgba(34, 54, 141, 0.22); color: var(--classic-linen); font-family: var(--font-sans); font-weight: 600; font-size: 0.82rem; }
.conv-table thead th small { color: var(--ink-soft); font-weight: 400; }
.conv-table td { color: var(--ink-soft); }
.conv-table td:first-child { color: var(--classic-linen); font-weight: 600; white-space: nowrap; }
.conv-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.conv-table tbody tr:last-child td { border-bottom: 0; }
.conv-note { color: var(--ink-dim); font-size: 0.86rem; margin-top: 12px; line-height: 1.5; }
.conv-note strong { color: var(--ink-soft); }

.conv-acc {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.conv-acc summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  font-family: var(--font-heading); font-size: 1.08rem; color: var(--classic-linen);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.conv-acc summary::-webkit-details-marker { display: none; }
.conv-acc summary::after { content: "+"; color: var(--twilight-blue-light); font-size: 1.4rem; line-height: 1; transition: transform 0.25s; }
.conv-acc[open] summary::after { transform: rotate(45deg); }
.conv-acc summary:hover { background: var(--surface-hover); }
.conv-acc > .conv-list, .conv-acc > .conv-table-wrap { margin: 0 20px 20px; }
.conv-acc > .conv-table-wrap { margin-top: 4px; }

.conv-cta-band {
  max-width: 920px; margin: 0 auto 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(34, 54, 141, 0.28), var(--surface));
  border: 1px solid rgba(34, 54, 141, 0.5); border-radius: var(--radius-lg); padding: 30px 34px;
}
.conv-cta-band--final { background: linear-gradient(135deg, rgba(139, 115, 85, 0.22), var(--surface)); border-color: rgba(139, 115, 85, 0.45); }
.conv-cta-band h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--classic-linen); margin-bottom: 4px; }
.conv-cta-band p { color: var(--ink-soft); font-size: 0.96rem; }
.conv-cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .conv-facts { grid-template-columns: repeat(2, 1fr); }
  .conv-cols { grid-template-columns: 1fr; }
  .conv-cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) { .conv-facts { grid-template-columns: 1fr; } }

/* Banner destacado de torneo (sección Torneos) */
.tourney-feature {
  display: block; text-decoration: none; max-width: 840px; margin: 0 auto 44px;
  background: linear-gradient(135deg, rgba(34, 54, 141, 0.28), var(--surface));
  border: 1px solid rgba(34, 54, 141, 0.5); border-radius: var(--radius-lg); padding: 28px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.tourney-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--twilight-blue-light); }
.tourney-feature__badge {
  display: inline-block; font-family: var(--font-display); font-size: 0.78rem; color: var(--classic-linen);
  background: linear-gradient(135deg, var(--twilight-blue-light), var(--twilight-blue));
  padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
}
.tourney-feature__title { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--classic-linen); line-height: 1.15; margin-bottom: 8px; }
.tourney-feature__meta { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.tourney-feature__meta strong { color: var(--classic-linen); }
.tourney-feature__link { display: inline-block; margin-top: 14px; color: var(--twilight-blue-light); font-weight: 600; font-size: 0.92rem; }
.tourney-feature:hover .tourney-feature__link { color: var(--classic-linen); }

/* Banner de ranking con acceso por ritmo (reutiliza el botón de Programas) */
.tourney-feature--rating:hover { transform: none; box-shadow: none; border-color: rgba(34, 54, 141, 0.5); }
.rating-cta {
  --accent: var(--twilight-blue-light);
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px;
}
.rating-cta .prog-card__cta { flex: 1 1 130px; transform: none; }
@media (max-width: 520px) { .rating-cta .prog-card__cta { flex-basis: 100%; } }

/* ============================ TORNEOS Y EVENTOS ============================ */
.tournaments {
  background: linear-gradient(180deg, rgba(38, 38, 38, 0.4), transparent);
}

.timeline {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--twilight-blue-light), var(--umber-brown-light), transparent);
}

.timeline__item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 24px;
  padding: 20px 0;
}

.timeline__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--onyx-black);
  border: 2px solid var(--twilight-blue-light);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 14px var(--twilight-glow);
}

.timeline__dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--classic-linen);
}

.timeline__body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.timeline__item:hover .timeline__body {
  border-color: rgba(34, 54, 141, 0.5);
  transform: translateX(8px);
}

.timeline__body h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--classic-linen);
}

.timeline__body p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ============================ JUGAR / TABLERO INTERACTIVO ============================ */
.play {
  background: radial-gradient(1000px 600px at 50% 0%, var(--twilight-glow), transparent 65%);
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 44px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.game__boardwrap {
  position: relative;
  padding: 34px 34px 34px 38px;
  background: linear-gradient(180deg, var(--onyx-card), var(--onyx-dark));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.board {
  --sq: min(64px, 11.5vw);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 1;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 4px #1a1510, 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  user-select: none;
  touch-action: manipulation;
}

.sq {
  position: relative;
  display: grid;
  place-items: center;
  font-size: clamp(24px, 6.4vw, 44px);
  line-height: 1;
  cursor: default;
  transition: background 0.18s;
}

.sq.light {
  background: var(--board-light);
}

.sq.dark {
  background: var(--board-dark);
}

.sq .piece {
  cursor: grab;
  transition: transform 0.12s var(--ease);
  z-index: 2;
  width: 86%;
  height: 86%;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}

.sq .piece:active {
  cursor: grabbing;
}

.sq.pickable .piece:hover {
  transform: scale(1.08);
}

/* Drag & drop de piezas */
.sq .piece {
  touch-action: none;
}

/* gesto sobre pieza = arrastre, no scroll */
.sq .piece.dragging {
  opacity: 0;
}

/* se oculta el original mientras flota el fantasma */
.board.is-dragging,
.board.is-dragging .piece {
  cursor: grabbing;
}

.sq.drag-over {
  box-shadow: inset 0 0 0 4px rgba(245, 240, 235, 0.85);
}

.piece-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  display: grid;
  place-items: center;
  transform: scale(1.06);
  transform-origin: center;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.55));
  will-change: left, top;
}

.piece-ghost .pc {
  width: 100%;
  height: 100%;
}

/* SVG Staunton Chess Pieces Styling */
.pc {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.pc--w {
  --pf: #F5F0EB;
  --ps: #2C2C2C;
}

.pc--b {
  --pf: #2C2C2C;
  --ps: #F5F0EB;
}

.pc .fill {
  fill: var(--pf);
  stroke: var(--ps);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.pc .line {
  fill: none;
  stroke: var(--ps);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.pc .dot {
  fill: var(--ps);
  stroke: none;
}

/* Resaltados del tablero con Twilight Blue */
.sq.selected::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 54, 141, 0.55);
}

.sq.legal::after {
  content: "";
  position: absolute;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(34, 54, 141, 0.65);
  z-index: 1;
}

.sq.dark.legal::after {
  background: rgba(245, 240, 235, 0.65);
}

.sq.legal.capture::after {
  width: 82%;
  height: 82%;
  background: transparent;
  border-radius: 50%;
  border: 4px solid rgba(34, 54, 141, 0.7);
  box-sizing: border-box;
}

.sq.dark.legal.capture::after {
  border-color: rgba(245, 240, 235, 0.75);
}

.sq.lastmove::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(139, 115, 85, 0.35);
}

.sq.check::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(214, 80, 64, 0.8), transparent 75%);
}

/* Coordenadas del tablero */
.game__coords {
  position: absolute;
  color: var(--ink-dim);
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
}

.game__coords--files {
  left: 38px;
  right: 34px;
  bottom: 10px;
  display: flex;
  justify-content: space-around;
}

.game__coords--ranks {
  right: 14px;
  top: 34px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

/* Panel lateral del juego */
.game__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.game__mode {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.seg {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
}

.seg.is-active {
  background: linear-gradient(135deg, var(--twilight-blue-light), var(--twilight-blue));
  color: var(--classic-linen);
  box-shadow: 0 4px 14px var(--twilight-glow);
}

.game__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game__row label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.game__row select,
.field select,
.field input,
.field textarea {
  background: var(--surface);
  color: var(--classic-linen);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.game__row select {
  min-width: 150px;
}

.game__row select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--twilight-blue-light);
  box-shadow: 0 0 0 3px var(--twilight-glow);
}

.game__status {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.game__status.win {
  color: var(--twilight-blue-light);
  border-color: rgba(34, 54, 141, 0.6);
}

.game__status.check {
  color: #e88a7d;
}

.game__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 20px;
}

.game__captured {
  min-height: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.game__captured .cap {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.game__moves {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.86rem;
  display: grid;
  grid-template-columns: 28px 1fr 1fr;
  gap: 4px 8px;
  align-content: start;
}

.game__moves .mv-no {
  color: var(--ink-dim);
}

.game__moves .mv {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.game__moves .mv.current {
  color: var(--twilight-blue-light);
  font-weight: 700;
}

.game__controls {
  display: flex;
  gap: 10px;
}

.game__controls .btn {
  flex: 1;
}

.game__hint {
  font-size: 0.8rem;
  color: var(--ink-dim);
  text-align: center;
}

/* Promoción de Peón Overlay */
.promo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 21, 0.85);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 20;
  border-radius: var(--radius-lg);
}

/* Aviso de resultado de la partida (overlay sobre el tablero) */
.result-overlay {
  position: absolute;
  inset: 0;
  z-index: 21;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(21, 21, 21, 0.68);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  animation: result-in 0.25s ease;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 26px 30px;
  text-align: center;
  max-width: 88%;
  box-shadow: var(--shadow-lg);
}
.result-card__icon { font-size: 2.6rem; line-height: 1; margin-bottom: 4px; }
.result-card.is-win .result-card__icon { color: var(--twilight-blue-light); }
.result-card.is-draw .result-card__icon { color: var(--umber-brown-light); }
.result-card__head {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.7rem;
  line-height: 1.1; color: var(--ink); margin: 0 0 4px;
}
.result-card__sub { font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 18px; }
.result-card__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@keyframes result-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .result-overlay { animation: none; } }

.promo-box {
  background: var(--surface);
  border: 1px solid var(--twilight-blue-light);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}

.promo-box button {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--board-light);
  cursor: pointer;
  transition: 0.2s;
  display: grid;
  place-items: center;
}

.promo-box button .pc {
  width: 50px;
  height: 50px;
}

.promo-box button:hover {
  border-color: var(--twilight-blue-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* ============================ ANÁLISIS: BARRA DE EVAL ============================ */
.evalbar {
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 11px;
  width: 13px;
  border-radius: 7px;
  overflow: hidden;
  z-index: 4;
  background: var(--onyx-black);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}
.evalbar[hidden] { display: none; }

.evalbar__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(180deg, var(--classic-linen), var(--classic-linen-dark));
  transition: height 0.45s var(--ease);
}

.evalbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--twilight-blue-light);
  opacity: 0.7;
  z-index: 2;
}

.evalbar__num {
  position: absolute;
  top: -27px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--classic-linen);
  white-space: nowrap;
  letter-spacing: 0.2px;
  background: var(--onyx-black);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Botón para activar/desactivar la barra de evaluación */
.eval-toggle.is-active {
  background: linear-gradient(135deg, var(--twilight-blue-light), var(--twilight-blue));
  border-color: var(--twilight-blue-light);
  color: var(--classic-linen);
}

/* capa de flechas y círculos */
.anno {
  overflow: visible;
}

/* ============================ ANÁLISIS: REVISIÓN DE PARTIDA ============================ */
.review {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review__acc {
  text-align: center;
  min-width: 74px;
}

.review__accnum {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--classic-linen);
  line-height: 1;
}

.review__acc small {
  font-size: 0.66rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review__back {
  background: none;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: 0.2s;
}

.review__back:hover {
  border-color: var(--twilight-blue-light);
  color: var(--classic-linen);
}

.review__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

.rv {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  width: 100%;
  background: rgba(44, 44, 44, 0.5);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s, border-color 0.2s;
}

.rv:hover {
  background: var(--surface-hover);
}

.rv.is-active {
  border-color: var(--twilight-blue-light);
  background: rgba(34, 54, 141, 0.18);
}

.rv__line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rv__no {
  color: var(--ink-dim);
  font-size: 0.78rem;
  min-width: 22px;
  font-variant-numeric: tabular-nums;
}

.rv__san {
  color: var(--classic-linen);
  font-weight: 600;
  font-size: 0.92rem;
  min-width: 52px;
}

.rv__tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.rv__note {
  font-size: 0.76rem;
  color: var(--ink-dim);
  padding-left: 32px;
  line-height: 1.35;
}

/* clasificación — colores funcionales, desaturados para respetar el tono sobrio */
.rv--best {
  border-left-color: #6f9e6a;
}

.rv--best .rv__tag {
  color: #8bbf86;
}

.rv--good {
  border-left-color: var(--twilight-blue-light);
}

.rv--good .rv__tag {
  color: #7d92dd;
}

.rv--inacc {
  border-left-color: var(--umber-brown-light);
}

.rv--inacc .rv__tag {
  color: var(--umber-brown-light);
}

.rv--mistake {
  border-left-color: #cf8a3e;
}

.rv--mistake .rv__tag {
  color: #e0a45e;
}

.rv--blunder {
  border-left-color: #c0584a;
}

.rv--blunder .rv__tag {
  color: #e08575;
}

/* ============================ RANKING DE RATING ============================ */
.rating__loading { text-align: center; color: var(--ink-dim); padding: 40px 0; }
.rating__tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.rating { display: flex; flex-direction: column; align-items: center; }
.rating__tabs { align-self: center; }
.rating__tab {
  border: 0; background: transparent; color: var(--ink-soft); cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.92rem;
  padding: 9px 22px; border-radius: 999px; transition: 0.22s;
}
.rating__tab.is-active {
  background: linear-gradient(135deg, var(--twilight-blue-light), var(--twilight-blue));
  color: var(--classic-linen); box-shadow: 0 4px 14px var(--twilight-glow);
}
.rating__panels { width: 100%; max-width: 860px; }
.rating__panel { display: none; }
.rating__panel.is-active { display: block; }

.rating__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.rating__meta { color: var(--ink-dim); font-size: 0.9rem; }
.rating__meta strong { color: var(--ink-soft); }
.rating__search {
  display: flex; align-items: center; gap: 8px; flex: 1 1 280px; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.rating__search:focus-within { border-color: var(--twilight-blue-light); box-shadow: 0 0 0 3px var(--twilight-glow); }
.rating__search svg { width: 18px; height: 18px; color: var(--ink-dim); flex-shrink: 0; }
.rating__search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--classic-linen); font-family: var(--font-sans); font-size: 0.94rem; padding: 11px 0;
}
.rating__search input::placeholder { color: var(--ink-dim); }

.rating__toph { font-family: var(--font-heading); font-size: 1.2rem; color: var(--classic-linen); margin-bottom: 12px; }
.rating__rescount { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 10px; }
.rating__empty {
  color: var(--ink-soft); font-size: 0.95rem; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}

.rating__tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.rating__table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.rating__table th, .rating__table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.rating__table thead th { background: rgba(34, 54, 141, 0.22); color: var(--classic-linen); font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.rating__table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.rating__table tbody tr:last-child td { border-bottom: 0; }
.rating__table tbody tr:hover { background: rgba(34, 54, 141, 0.1); }
.rt-rank { width: 54px; }
.rt-rank__n {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 8px; font-weight: 700; font-size: 0.85rem; color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.05); font-variant-numeric: tabular-nums;
}
.rt-rank--1 { background: linear-gradient(135deg, #d9b45a, #a9781f); color: #241c07; }
.rt-rank--2 { background: linear-gradient(135deg, #cfd2d8, #9aa0aa); color: #23262b; }
.rt-rank--3 { background: linear-gradient(135deg, #cf9a6a, #8a5a34); color: #241708; }
.rt-name { color: var(--classic-linen); font-weight: 500; }
.rt-title {
  display: inline-block; margin-left: 6px; font-family: var(--font-display); font-size: 0.72rem;
  color: #241c07; background: linear-gradient(135deg, var(--classic-linen), var(--classic-linen-dark));
  padding: 1px 8px; border-radius: 999px; vertical-align: middle;
}
.rt-cat { color: var(--ink-dim); font-size: 0.86rem; white-space: nowrap; }
.rt-num { color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: right; }

@media (max-width: 560px) {
  .rating__bar { flex-direction: column; align-items: stretch; }
  .rating__search { max-width: none; }
}

/* ============================ NOTICIAS ============================ */
.news {
  background: linear-gradient(180deg, rgba(38, 38, 38, 0.3), transparent);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 54, 141, 0.5);
  box-shadow: var(--shadow);
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-card__tag {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--classic-linen);
  background: rgba(34, 54, 141, 0.28);
  border: 1px solid rgba(34, 54, 141, 0.45);
  padding: 4px 14px;
  border-radius: 999px;
}

.news-card__date {
  font-size: 0.78rem;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--classic-linen);
  line-height: 1.2;
}

.news-card__excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-card__more {
  display: inline-block;
  margin-top: 6px;
  color: var(--twilight-blue-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s;
}

.news-card--featured:hover .news-card__more {
  color: var(--classic-linen);
}

/* Nota destacada (ocupa toda la fila) */
.news-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  padding: 0;
  overflow: hidden;
  border-color: rgba(34, 54, 141, 0.5);
}

.news-card--featured:hover {
  transform: translateY(-4px);
}

.news-featured__body {
  flex: 1 1 62%;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.news-card--featured .news-card__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.news-card--featured .news-card__excerpt {
  font-size: 1.06rem;
}

.news-featured__art {
  flex: 0 0 38%;
  background: linear-gradient(135deg, rgba(34, 54, 141, 0.28), rgba(139, 115, 85, 0.20));
  border-left: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: clamp(6rem, 12vw, 10rem);
  color: rgba(245, 240, 235, 0.92);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

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

  .news-card--featured {
    flex-direction: column;
  }

  .news-featured__body {
    padding: 32px 28px;
  }

  .news-featured__art {
    flex-basis: auto;
    min-height: 140px;
    border-left: 0;
    border-top: 1px solid var(--border);
    font-size: 6rem;
  }
}

/* ============================ TIENDA ============================ */
.shop {
  background: linear-gradient(180deg, rgba(38, 38, 38, 0.3), transparent);
}

.shop__note {
  text-align: center;
  max-width: 640px;
  margin: -34px auto 44px;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.shop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 54, 141, 0.5);
  box-shadow: var(--shadow);
}

.shop-card__art {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: 5rem;
  color: rgba(245, 240, 235, 0.9);
  background: linear-gradient(135deg, rgba(34, 54, 141, 0.22), rgba(139, 115, 85, 0.18));
  border-bottom: 1px solid var(--border);
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.shop-card__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.shop-card__tag {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--umber-brown-light);
}

.shop-card__title {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--classic-linen);
  line-height: 1.2;
}

.shop-card__desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  flex-grow: 1;
}

.shop-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.shop-card__price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--classic-linen);
}

.shop-card__price small {
  font-size: 0.68rem;
  color: var(--ink-dim);
  font-weight: 500;
}

.shop-card__btn {
  text-decoration: none;
}

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

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

/* ============================ CAMPEONES (galería circular) ============================ */
.champions {
  overflow: hidden;
}

.champions__subtitle {
  font-family: var(--font-display);
  color: var(--umber-brown-light);
  font-size: 1.3rem;
}

.champs {
  --card-w: 260px;
  --card-h: 360px;
  position: relative;
  height: clamp(440px, 66vh, 600px);
  margin: 24px auto 0;
  perspective: 1500px;
  touch-action: pan-y;
  cursor: grab;
}

.champs.is-dragging {
  cursor: grabbing;
}

.champs__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--card-w);
  height: var(--card-h);
  transform-style: preserve-3d;
  will-change: transform;
}

.champ {
  position: absolute;
  inset: 0;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  opacity: 0.5;
  filter: saturate(0.7) brightness(0.68);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.champ.is-front {
  opacity: 1;
  filter: none;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(34, 54, 141, 0.55);
}

.champ__art {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.champ__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.champ__title {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--onyx-black);
  background: linear-gradient(135deg, var(--classic-linen), var(--classic-linen-dark));
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.champ__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 20%, transparent, rgba(0, 0, 0, 0.35));
}

.champ__mono {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 4.6rem;
  letter-spacing: 1px;
  color: rgba(245, 240, 235, 0.96);
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.champ__art--1 {
  background: linear-gradient(150deg, var(--twilight-blue-light), var(--twilight-blue-dark));
}

.champ__art--2 {
  background: linear-gradient(150deg, var(--umber-brown), var(--umber-brown-dark));
}

.champ__art--3 {
  background: linear-gradient(150deg, #34406e, var(--onyx-black));
}

.champ__art--4 {
  background: linear-gradient(150deg, var(--umber-brown-light), #4a3a28);
}

.champ__art--5 {
  background: linear-gradient(150deg, var(--twilight-blue), #2a2f4a);
}

.champ__info {
  padding: 15px 18px 18px;
  background: linear-gradient(0deg, rgba(21, 21, 21, 0.96), rgba(21, 21, 21, 0.72));
  border-top: 1px solid var(--border);
}

.champ__name {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--classic-linen);
  line-height: 1.15;
}

.champ__ach {
  font-size: 0.84rem;
  color: var(--umber-brown-light);
  margin-top: 3px;
}

.champ__year {
  font-size: 0.72rem;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

.champs__hint {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .champs {
    --card-w: 210px;
    --card-h: 300px;
  }

  .champ__mono {
    font-size: 3.8rem;
  }
}

/* ============================ VISOR DE PARTIDAS ============================ */
.viewer-section {
  background: radial-gradient(1000px 600px at 50% 0%, var(--twilight-glow), transparent 65%);
}

.viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.viewer__pick select {
  flex: 1;
  min-width: 0;
}

.viewer__meta {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.viewer__moves {
  max-height: 220px;
}

.viewer__moves .mv {
  cursor: pointer;
}

.viewer__moves .mv:hover {
  color: var(--classic-linen);
}

.viewer__nav {
  display: flex;
  gap: 8px;
}

.viewer__nav button {
  flex: 1;
  padding: 12px 0;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: 0.2s;
}

.viewer__nav button:hover {
  border-color: var(--twilight-blue-light);
  color: var(--classic-linen);
}

#vPlay {
  flex: 1.3;
  border-color: transparent;
  color: var(--classic-linen);
  background: linear-gradient(135deg, var(--twilight-blue-light), var(--twilight-blue));
}

.viewer__tools {
  display: flex;
  gap: 10px;
}

.viewer__tools .btn {
  flex: 1;
}

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

.viewer__load textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  background: var(--surface);
  color: var(--classic-linen);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.viewer__load textarea:focus {
  border-color: var(--twilight-blue-light);
  box-shadow: 0 0 0 3px var(--twilight-glow);
}

.viewer__loaderr {
  font-size: 0.82rem;
  color: #e88a7d;
  min-height: 18px;
}

@media (max-width: 980px) {
  .viewer {
    grid-template-columns: 1fr;
    max-width: 580px;
  }
}

/* ============================ PUZZLES TÁCTICOS ============================ */
.puzzles {
  background: radial-gradient(1000px 600px at 50% 100%, var(--umber-glow), transparent 65%);
}

.puzzle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 44px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.puzzle__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.puzzle__tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--classic-linen);
  background: linear-gradient(135deg, var(--twilight-blue-light), var(--twilight-blue));
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px var(--twilight-glow);
}

.puzzle__count {
  font-size: 0.88rem;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

.puzzle__prompt {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--classic-linen);
}

.puzzle__controls {
  display: flex;
  gap: 10px;
}

.puzzle__controls .btn {
  flex: 1;
}

.puzzle__score {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ============================ TESTIMONIOS ============================ */
.testimonials {
  background: linear-gradient(180deg, rgba(38, 38, 38, 0.3), transparent);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.quote::before {
  content: "”";
  position: absolute;
  top: 10px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  color: rgba(139, 115, 85, 0.25);
  line-height: 1;
}

.quote:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 115, 85, 0.5);
}

.quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--classic-linen);
  margin-bottom: 18px;
}

.quote figcaption {
  color: var(--umber-brown-light);
  font-family: var(--font-display);
  font-size: 0.96rem;
}

/* ---- Testimonios en columnas con auto-scroll (js/testimonials.js) ---- */
.tcols {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  max-height: 720px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}

.tcol {
  flex: 0 0 auto;
  width: min(340px, 84vw);
}

.tcol--2,
.tcol--3 {
  display: none;
}

.tcol__track {
  display: flex;
  flex-direction: column;
  animation: t-scroll 16s linear infinite;
  will-change: transform;
}

.tcols:hover .tcol__track {
  animation-play-state: paused;
}

@keyframes t-scroll {
  to { transform: translateY(-50%); }
}

.tcard {
  margin: 0 0 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.55);
}

.tcard__text {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.tcard__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.tcard__avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--classic-linen);
  background: linear-gradient(135deg, var(--twilight-blue-light), var(--umber-brown));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tcard__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.tcard__name {
  font-weight: 600;
  color: var(--classic-linen);
  letter-spacing: -0.01em;
}

.tcard__role {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

@media (min-width: 768px) {
  .tcol--2 { display: block; }
}

@media (min-width: 1024px) {
  .tcol--3 { display: block; }
}

/* ============================ CONTACTO Y REGISTRO ============================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact__info .section__title {
  text-align: left;
}

.contact__info .section__kicker {
  display: inline-block;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.contact__ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1.15rem;
  color: var(--twilight-blue-light);
}

.contact__form {
  background: linear-gradient(180deg, var(--onyx-card), var(--onyx-dark));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
}

.field textarea {
  resize: vertical;
}

/* Chips seleccionables (radio) para Nivel / Edad */
.field__label {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.chip span {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--classic-linen);
  background: rgba(245, 240, 235, 0.06);
  border: 1px solid var(--border-strong);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  user-select: none;
}

.chip:hover span {
  border-color: var(--twilight-blue-light);
  transform: translateY(-1px);
}

.chip input:checked + span {
  background: linear-gradient(135deg, var(--twilight-blue-light), var(--twilight-blue));
  border-color: var(--twilight-blue-light);
  color: #ffffff;
  box-shadow: 0 4px 14px -4px var(--twilight-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--twilight-blue-light);
  outline-offset: 2px;
}

.form__note {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 20px;
  color: var(--twilight-blue-light);
}

/* ============================ FOOTER ============================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 44px;
  background: var(--onyx-deeper);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer__logo-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(139, 115, 85, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.footer__brand p {
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__nav a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  transition: color 0.25s;
}

.footer__nav a:hover {
  color: var(--classic-linen);
}

.footer__copy {
  color: var(--ink-dim);
  font-size: 0.84rem;
  text-align: right;
}

/* ============================ REVEAL ANIMATIONS ============================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================ RESPONSIVE MEDIA QUERIES ============================ */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {

  .game,
  .puzzle {
    grid-template-columns: 1fr;
    max-width: 580px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__board {
    display: none;
  }

  .hero__content {
    max-width: none;
  }
}

/* El menú (varias secciones) colapsa a hamburguesa antes, en pantallas medianas */
@media (max-width: 1080px) {

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(16px);
    padding: 22px 26px 30px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open .nav__links a {
    padding: 12px 0;
    font-size: 1.08rem;
  }
}

@media (max-width: 860px) {

  .pillars,
  .quotes {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 20px;
  }

  .section {
    padding: 85px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer__brand,
  .footer__nav {
    justify-content: center;
  }

  .footer__copy {
    text-align: center;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   GALERÍA 3D DE BIENVENIDA (Filosofía) — componente "Shadway" (three.js)
   El componente fue generado con utilidades tipo Tailwind, pero este sitio
   NO carga Tailwind. Aquí definimos SOLO las clases que la galería usa,
   ACOTADAS a #filosofia-welcome-root para no afectar el resto del sitio.
   Sin esto, el contenedor no toma altura y el canvas se queda en 300×150
   (por eso las fotos se veían diminutas).
   ============================================================ */
#filosofia-welcome-root .relative { position: relative; }
#filosofia-welcome-root .absolute { position: absolute; }
#filosofia-welcome-root .inset-0 { inset: 0; }
#filosofia-welcome-root .bottom-6 { bottom: 1.5rem; }
#filosofia-welcome-root .left-0 { left: 0; }
#filosofia-welcome-root .right-0 { right: 0; }
#filosofia-welcome-root .z-10 { z-index: 10; }

#filosofia-welcome-root .w-full { width: 100%; }
#filosofia-welcome-root .h-full { height: 100%; }
#filosofia-welcome-root .h-\[85vh\] { height: 85vh; }
#filosofia-welcome-root .min-h-\[550px\] { min-height: 550px; }
#filosofia-welcome-root .max-h-\[900px\] { max-height: 900px; }
#filosofia-welcome-root .overflow-hidden { overflow: hidden; }
#filosofia-welcome-root .my-4 { margin-top: 1rem; margin-bottom: 1rem; }

#filosofia-welcome-root .bg-neutral-950 { background-color: #0a0a0a; }
#filosofia-welcome-root .rounded-2xl { border-radius: 1rem; }
#filosofia-welcome-root .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45); }
#filosofia-welcome-root .border { border-width: 1px; border-style: solid; }
#filosofia-welcome-root .border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
#filosofia-welcome-root canvas { display: block; }

#filosofia-welcome-root .pointer-events-none { pointer-events: none; }
#filosofia-welcome-root .flex { display: flex; }
#filosofia-welcome-root .flex-col { flex-direction: column; }
#filosofia-welcome-root .items-center { align-items: center; }
#filosofia-welcome-root .justify-center { justify-content: center; }
#filosofia-welcome-root .text-center { text-align: center; }
#filosofia-welcome-root .px-4 { padding-left: 1rem; padding-right: 1rem; }
#filosofia-welcome-root .mix-blend-exclusion { mix-blend-mode: exclusion; }
#filosofia-welcome-root .text-white { color: #fff; }

#filosofia-welcome-root .font-serif { font-family: var(--font-heading); }
#filosofia-welcome-root .font-sans { font-family: var(--font-sans); }
#filosofia-welcome-root .font-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }

#filosofia-welcome-root .text-xs { font-size: 0.75rem; line-height: 1rem; }
#filosofia-welcome-root .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
#filosofia-welcome-root .text-5xl { font-size: 3rem; line-height: 1; }
#filosofia-welcome-root .text-\[11px\] { font-size: 11px; }
#filosofia-welcome-root .text-\[10px\] { font-size: 10px; }
#filosofia-welcome-root .uppercase { text-transform: uppercase; }
#filosofia-welcome-root .italic { font-style: italic; }
#filosofia-welcome-root .tracking-\[0\.3em\] { letter-spacing: 0.3em; }
#filosofia-welcome-root .tracking-wider { letter-spacing: 0.05em; }
#filosofia-welcome-root .tracking-tight { letter-spacing: -0.025em; }
#filosofia-welcome-root .leading-relaxed { line-height: 1.625; }
#filosofia-welcome-root .font-light { font-weight: 300; }
#filosofia-welcome-root .font-medium { font-weight: 500; }
#filosofia-welcome-root .font-semibold { font-weight: 600; }
#filosofia-welcome-root .drop-shadow-md { filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.35)); }
#filosofia-welcome-root .text-neutral-300 { color: #d4d4d4; }
#filosofia-welcome-root .max-w-lg { max-width: 32rem; }
#filosofia-welcome-root .mb-3 { margin-bottom: 0.75rem; }
#filosofia-welcome-root .mt-1 { margin-top: 0.25rem; }
#filosofia-welcome-root .mt-4 { margin-top: 1rem; }
#filosofia-welcome-root .opacity-50 { opacity: 0.5; }
#filosofia-welcome-root .opacity-80 { opacity: 0.8; }
#filosofia-welcome-root .opacity-90 { opacity: 0.9; }

@media (min-width: 768px) {
  #filosofia-welcome-root .md\:text-8xl { font-size: 6rem; line-height: 1; }
  #filosofia-welcome-root .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

/* ============================ FIGURAS EN ARTÍCULOS (crónicas/convocatorias) ============================ */
.conv-figure {
  margin: 28px 0;
}
.conv-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.conv-figure figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ink-dim);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}
.conv-figure--lead img {
  max-height: 520px;
  object-fit: cover;
}
.conv-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.conv-figures .conv-figure {
  margin: 0;
}
@media (max-width: 640px) {
  .conv-figures {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TIENDA · CINEMATIC PRODUCT SHOWCASE (.tienda-cine)
   Bienvenida cinemática + heroes con reveal por scroll +
   galería horizontal. Todo scoped bajo .tienda-cine.
   ========================================================= */
.tienda-cine { position: relative; background: var(--bg); color: var(--ink); }
.tienda-cine *,
.tienda-cine *::before,
.tienda-cine *::after { box-sizing: border-box; }

/* ---------- INTRO / BIENVENIDA ---------- */
.tcine-intro {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(120px, 18vh, 200px) 20px clamp(80px, 12vh, 130px);
  overflow: hidden;
  isolation: isolate;
}
.tcine-intro__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 78% 62% at 50% -8%, var(--twilight-glow), transparent 68%),
    radial-gradient(ellipse 60% 50% at 50% 118%, var(--umber-glow), transparent 70%),
    var(--bg);
}
.tcine-intro__grid {
  position: absolute; inset: -40%; z-index: -1;
  background-image:
    linear-gradient(rgba(245,240,235,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,240,235,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 42%, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse 55% 55% at 50% 42%, #000 25%, transparent 72%);
  animation: tcine-drift 34s linear infinite;
  opacity: .9;
}
@keyframes tcine-drift { to { transform: translate3d(-54px, -54px, 0); } }
.tcine-intro__inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.tcine-intro__logo {
  width: clamp(64px, 9vw, 84px); height: clamp(64px, 9vw, 84px);
  display: block; margin: 0 auto 22px; border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px var(--border-strong);
}
.tcine-intro__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--umber-brown-light);
  padding: 7px 16px; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(245,240,235,.03); backdrop-filter: blur(4px);
}
.tcine-intro__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  line-height: 1.02; letter-spacing: -.01em;
  margin: 0 0 22px; color: var(--ink);
}
.tcine-intro__sub {
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.6; color: var(--ink-soft);
  max-width: 620px; margin: 0 auto;
}
.tcine-intro__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-top: 34px;
}
.tcine-intro__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-dim);
}
.tcine-intro__scroll span {
  width: 22px; height: 34px; border: 1.5px solid var(--border-strong); border-radius: 12px;
  position: relative;
}
.tcine-intro__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  border-radius: 3px; background: var(--umber-brown-light); transform: translateX(-50%);
  animation: tcine-wheel 1.8s ease-in-out infinite;
}
@keyframes tcine-wheel { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- HERO DESTACADO (reveal por scroll) ---------- */
.tcine-hero { position: relative; height: 220vh; }
.tcine-hero__sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: 1.08fr .92fr;
  align-items: center; gap: clamp(24px, 5vw, 72px);
  padding: 0 clamp(20px, 6vw, 96px);
  overflow: hidden;
}
.tcine-hero--reverse .tcine-hero__media { order: 2; }
.tcine-hero--reverse .tcine-hero__content { order: 1; }
.tcine-hero__media {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 0 0 1px var(--border-strong);
  background: var(--bg-subtle);
}
.tcine-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.tcine-hero__img--gray { filter: grayscale(1) contrast(.96) brightness(.82); }
.tcine-hero__img--color {
  filter: none;
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0);
  will-change: clip-path;
}
.tcine-hero__badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-family: var(--font-sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--classic-linen);
  padding: 6px 13px; border-radius: 999px;
  background: linear-gradient(135deg, var(--twilight-blue), var(--twilight-blue-light));
  box-shadow: 0 6px 18px var(--twilight-glow);
}
.tcine-hero__content { position: relative; max-width: 520px; }
.tcine-hero__num {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(3rem, 8vw, 6rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--border-strong);
  opacity: .5; margin-bottom: 6px;
}
.tcine-hero__eyebrow {
  display: block; font-family: var(--font-sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--umber-brown-light);
  margin-bottom: 14px;
}
.tcine-hero__title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.05;
  color: var(--ink); margin: 0 0 16px;
}
.tcine-hero__desc {
  font-family: var(--font-sans); font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.62; color: var(--ink-soft); margin: 0 0 26px;
}
.tcine-hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.tcine-hero__price {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.55rem; color: var(--ink);
}
.tcine-hero__price small { font-family: var(--font-sans); font-size: .7rem; color: var(--ink-dim); letter-spacing: .1em; }
.tcine-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Reveal escalonado (impulsado por JS via inline opacity/transform) */
.tcine-hero__content [data-step] { opacity: 0; transform: translateY(26px); }

/* ---------- GALERÍA HORIZONTAL (todos los productos) ---------- */
.tcine-gallery { position: relative; padding: clamp(64px, 11vh, 130px) 0 clamp(70px, 10vh, 110px); }
.tcine-gallery__head {
  max-width: 760px; margin: 0 auto clamp(34px, 5vh, 54px);
  padding: 0 clamp(20px, 6vw, 40px); text-align: center;
}
.tcine-gallery__eyebrow {
  display: inline-block; font-family: var(--font-sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--umber-brown-light); margin-bottom: 14px;
}
.tcine-gallery__title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.06; color: var(--ink); margin: 0 0 14px;
}
.tcine-gallery__sub { font-family: var(--font-sans); font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.tcine-gallery__scroller {
  display: flex; gap: clamp(16px, 2vw, 26px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 8px clamp(20px, 6vw, 96px) 30px;
  scrollbar-width: none; cursor: grab;
}
.tcine-gallery__scroller::-webkit-scrollbar { display: none; }
.tcine-gallery__scroller.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tcine-card {
  flex: 0 0 clamp(258px, 76vw, 328px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  opacity: 0; transform: translateY(34px);
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .7s ease, border-color .35s ease, box-shadow .35s ease;
}
.tcine-card.is-in { opacity: 1; transform: translateY(0); }
.tcine-card:hover { border-color: var(--border-strong); box-shadow: 0 22px 50px rgba(0,0,0,.5); }
.tcine-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-subtle); }
.tcine-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.tcine-card__img--gray { filter: grayscale(1) contrast(.96) brightness(.8); }
.tcine-card__img--color { clip-path: inset(0 0 100% 0); transition: clip-path .55s cubic-bezier(.22,1,.36,1); }
.tcine-card:hover .tcine-card__img--color { clip-path: inset(0 0 0 0); }
.tcine-card:hover .tcine-card__img { transform: scale(1.05); }
.tcine-card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-sans); font-size: .64rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--classic-linen);
  padding: 5px 11px; border-radius: 999px;
  background: rgba(21,21,21,.62); backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
}
.tcine-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.tcine-card__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.4rem; line-height: 1.15; color: var(--ink); margin: 0 0 6px; }
.tcine-card__desc { font-family: var(--font-sans); font-size: .9rem; line-height: 1.5; color: var(--ink-dim); margin: 0 0 16px; flex: 1; }
.tcine-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.tcine-card__price { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.tcine-card__price small { font-family: var(--font-sans); font-size: .62rem; color: var(--ink-dim); letter-spacing: .08em; }
.tcine-gallery__hint {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 6px; font-family: var(--font-sans); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim);
}
.tcine-gallery__track { width: min(220px, 60vw); height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.tcine-gallery__bar { display: block; height: 100%; width: 20%; border-radius: 3px; background: linear-gradient(90deg, var(--twilight-blue), var(--twilight-blue-light)); }

/* ---------- CTA FINAL (asesoría) ---------- */
.tcine-cta {
  position: relative; margin: 0 auto; max-width: 1080px;
  padding: clamp(40px, 6vw, 68px) clamp(24px, 6vw, 72px);
  border-radius: 26px; text-align: center;
  background: linear-gradient(135deg, var(--twilight-blue-dark), var(--twilight-blue) 55%, var(--twilight-blue-light));
  box-shadow: 0 30px 80px var(--twilight-glow); overflow: hidden;
}
.tcine-cta::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 85% 10%, rgba(245,240,235,.14), transparent 60%);
}
.tcine-cta > * { position: relative; z-index: 1; }
.tcine-cta__title { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; color: var(--classic-linen); margin: 0 0 12px; }
.tcine-cta__sub { font-family: var(--font-sans); font-size: 1.05rem; line-height: 1.6; color: rgba(245,240,235,.86); max-width: 560px; margin: 0 auto 26px; }
.tcine-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tcine-cta .btn--ghost { border-color: rgba(245,240,235,.5); color: var(--classic-linen); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .tcine-hero { height: auto; }
  .tcine-hero__sticky {
    position: relative; height: auto; min-height: auto;
    grid-template-columns: 1fr; gap: 26px;
    padding: clamp(56px, 10vh, 90px) clamp(20px, 6vw, 40px);
  }
  .tcine-hero--reverse .tcine-hero__media,
  .tcine-hero--reverse .tcine-hero__content { order: initial; }
  .tcine-hero__media { aspect-ratio: 16 / 11; }
  .tcine-hero__content { max-width: none; }
  /* En móvil no hay scroll-reveal: mostrar todo y color completo */
  .tcine-hero__img--color { clip-path: inset(0 0 0 0) !important; }
  .tcine-hero__content [data-step] { opacity: 1 !important; transform: none !important; }
  .tcine-hero__num { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tcine-intro__grid { animation: none; }
  .tcine-intro__scroll span::after { animation: none; }
  .tcine-hero__img--color { clip-path: inset(0 0 0 0) !important; }
  .tcine-hero__content [data-step] { opacity: 1 !important; transform: none !important; }
  .tcine-card { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   TIENDA · FICHA DE PRODUCTO (.prod-*)
   ========================================================= */
.prod-page { background: var(--bg); color: var(--ink); }
.prod-wrap { padding: clamp(96px, 14vh, 140px) 0 clamp(70px, 10vh, 110px); }
.prod-empty { padding: 160px 0; text-align: center; color: var(--ink-soft); }
.prod-empty a { color: var(--twilight-blue-light); }

.prod-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: .82rem; color: var(--ink-dim);
  margin-bottom: clamp(22px, 4vh, 38px);
}
.prod-crumb a { color: var(--umber-brown-light); text-decoration: none; }
.prod-crumb a:hover { color: var(--ink); }
.prod-crumb strong { color: var(--ink-soft); font-weight: 500; }
.prod-crumb span[aria-hidden] { color: var(--ink-dim); opacity: .6; }

.prod-layout {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
/* Galería */
.prod-gallery { position: sticky; top: 96px; }
.prod-gallery__main {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: 20px; overflow: hidden; background: var(--bg-subtle);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 0 1px var(--border-strong);
}
.prod-gallery__main img,
.prod-gallery__main video { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-gallery__thumbs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.prod-thumb {
  position: relative; width: 74px; height: 74px; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--bg-subtle); transition: border-color .25s ease, transform .25s ease;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.35) brightness(.92); transition: filter .25s ease; }
.prod-thumb:hover { transform: translateY(-2px); }
.prod-thumb:hover img { filter: none; }
.prod-thumb.is-active { border-color: var(--twilight-blue-light); box-shadow: 0 0 0 1px var(--twilight-blue-light); }
.prod-thumb.is-active img { filter: none; }
.prod-thumb__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .8rem; color: var(--classic-linen);
  background: rgba(21,21,21,.42);
}
/* Info */
.prod-info { max-width: 520px; }
.prod-info__eyebrow {
  display: inline-block; font-family: var(--font-sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--umber-brown-light); margin-bottom: 12px;
}
.prod-info__title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: 1.04; color: var(--ink); margin: 0 0 14px;
}
.prod-info__price {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.9rem; color: var(--ink); margin-bottom: 20px;
}
.prod-info__price small { font-family: var(--font-sans); font-size: .72rem; color: var(--ink-dim); letter-spacing: .1em; }
.prod-info__desc { font-family: var(--font-sans); font-size: 1.06rem; line-height: 1.64; color: var(--ink-soft); margin: 0 0 24px; }
.prod-info__meta { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; }
.prod-info__meta li {
  position: relative; padding-left: 28px;
  font-family: var(--font-sans); font-size: .96rem; color: var(--ink-soft); line-height: 1.4;
}
.prod-info__meta li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  background:
    linear-gradient(135deg, var(--twilight-blue), var(--twilight-blue-light));
}
.prod-info__meta li::after {
  content: ""; position: absolute; left: 5px; top: 7px; width: 6px; height: 3px;
  border-left: 2px solid var(--classic-linen); border-bottom: 2px solid var(--classic-linen);
  transform: rotate(-45deg);
}
.prod-info__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.prod-info__note { font-family: var(--font-sans); font-size: .84rem; line-height: 1.5; color: var(--ink-dim); margin: 0; }

/* Relacionados */
.prod-related { margin-top: clamp(56px, 9vh, 96px); }
.prod-related__title {
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--ink); margin: 0 0 24px; text-align: center;
}
.prod-related__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.prod-related__grid .tcine-card { flex: initial; }

@media (max-width: 860px) {
  .prod-layout { grid-template-columns: 1fr; gap: 28px; }
  .prod-gallery { position: static; top: auto; }
  .prod-info { max-width: none; }
}

/* =========================================================
   TIENDA · INTRO SCROLL HORIZONTAL (.thscroll)
   Sección pineada: la pista se desplaza en X con el scroll.
   overflow-x: clip recorta la pista ancha SIN romper el sticky.
   ========================================================= */
.thscroll { position: relative; background: var(--bg); color: var(--ink); overflow-x: clip; }
.thscroll *, .thscroll *::before, .thscroll *::after { box-sizing: border-box; }

.thscroll__header {
  position: relative; height: 84vh; min-height: 500px;
  display: grid; place-content: center; text-align: center;
  padding: 0 22px; overflow: hidden; isolation: isolate;
}
.thscroll__header-bg {
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 80% 60% at 50% -6%, var(--twilight-glow), transparent 68%), var(--bg);
}
.thscroll__header-grid {
  position: absolute; inset: -40%; z-index: -1;
  background-image:
    linear-gradient(rgba(245,240,235,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,240,235,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 40%, #000 22%, transparent 72%);
          mask-image: radial-gradient(ellipse 55% 55% at 50% 40%, #000 22%, transparent 72%);
  animation: tcine-drift 34s linear infinite;
}
.thscroll__eyebrow {
  display: inline-block; font-family: var(--font-sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--umber-brown-light); margin-bottom: 18px;
}
.thscroll__title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(2.5rem, 6.8vw, 4.9rem); line-height: 1.04;
  margin: 0 auto 18px; max-width: 16ch; color: var(--ink);
}
.thscroll__lead {
  font-family: var(--font-sans); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.6;
  color: var(--ink-soft); max-width: 560px; margin: 0 auto;
}
.thscroll__cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim);
}
.thscroll__cue span { width: 22px; height: 34px; border: 1.5px solid var(--border-strong); border-radius: 12px; position: relative; }
.thscroll__cue span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 3px;
  background: var(--umber-brown-light); transform: translateX(-50%); animation: tcine-wheel 1.8s ease-in-out infinite;
}

.thscroll__pin { position: relative; height: calc(100vh * 5); overflow-x: clip; }
.thscroll__track { position: sticky; top: 0; display: flex; width: max-content; height: 100vh; will-change: transform; }
.thscroll__panel {
  position: relative; width: 100vw; height: 100vh; overflow: hidden;
  display: grid; place-items: center; list-style: none;
}
.thscroll__panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 95% 55% at 50% 122%, rgba(0,0,0,.42), transparent 60%);
}
.thscroll__word {
  position: relative; z-index: 1;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(3.2rem, 19vw, 19rem); line-height: .9; letter-spacing: -.01em;
  color: var(--classic-linen); opacity: .93; white-space: nowrap; will-change: transform;
  text-shadow: 0 12px 46px rgba(0,0,0,.35);
}
.thscroll__img {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 2;
  width: clamp(250px, 33vw, 430px); height: auto; display: block;
  border-radius: 18px 18px 0 0; box-shadow: 0 -12px 64px rgba(0,0,0,.55);
}
.thscroll__cap {
  position: absolute; top: clamp(54px, 12vh, 116px); left: 50%; transform: translateX(-50%); z-index: 3;
  text-align: center; width: min(90%, 640px);
}
.thscroll__cap-eyebrow {
  display: block; font-family: var(--font-sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--classic-linen); opacity: .92; margin-bottom: 8px;
}
.thscroll__cap-sub {
  font-family: var(--font-heading); font-style: italic; font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  line-height: 1.3; color: var(--classic-linen); margin: 0;
}
.thscroll__panel--1 { background: linear-gradient(155deg, #1b2656, #22368D); }
.thscroll__panel--2 { background: linear-gradient(155deg, #2e2519, #6d5741); }
.thscroll__panel--3 { background: linear-gradient(155deg, #17171c, #2c2c2c); }
.thscroll__panel--4 { background: linear-gradient(155deg, #22368D, #3148ab); }
.thscroll__panel--5 { background: linear-gradient(155deg, #241d16, #4a3a29); }

/* Móvil: apila en vertical (sin pin ni desplazamiento horizontal) */
@media (max-width: 900px) {
  .thscroll__pin { height: auto; overflow-x: visible; }
  .thscroll__track { position: static; transform: none !important; width: 100%; flex-direction: column; height: auto; }
  .thscroll__panel { width: 100%; height: auto; min-height: 82vh; }
  .thscroll__word { transform: none !important; font-size: clamp(3rem, 17vw, 7rem); }
  .thscroll__img { width: clamp(210px, 58vw, 330px); }
}
@media (prefers-reduced-motion: reduce) {
  .thscroll__header-grid, .thscroll__cue span::after { animation: none; }
  .thscroll__pin { height: auto; overflow-x: visible; }
  .thscroll__track { position: static; transform: none !important; width: 100%; flex-direction: column; height: auto; }
  .thscroll__panel { width: 100%; height: auto; min-height: 82vh; }
  .thscroll__word { transform: none !important; }
}