/* =========================================================
   Glaucus Canarias CF · hoja de estilos
   Identidad: papel claro + tinta negra + oro del escudo.
   ========================================================= */

:root {
  --paper:     #F7F4EC;
  --paper-2:   #EFE9DA;
  --card:      #FFFDF8;
  --ink:       #151411;
  --ink-2:     #3B3830;
  --muted:     #6E685A;
  --line:      rgba(21, 20, 17, .12);
  --line-2:    rgba(21, 20, 17, .22);
  --gold:      #EBCB52;   /* relleno: botones, marcas, puntos (oro del escudo) */
  --gold-hi:   #F6E39A;   /* brillo del metal */
  --gold-soft: #F7EDC4;
  --gold-deep: #7A6618;   /* texto dorado sobre papel (contraste AA) */

  --f-display: "Poppins", system-ui, sans-serif;   /* redonda, limpia y alegre */
  --f-serif:   "Poppins", system-ui, sans-serif;   /* los acentos (<em>) van en su cursiva */
  --f-body:    "Poppins", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 1px 0 rgba(21,20,17,.04), 0 12px 30px -18px rgba(21,20,17,.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 700; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 500; }
button { font: inherit; color: inherit; }

/* Titulares y cifras */
h1, h2, h3, .sec__num, .hero__facts b, .brand__text b, .foot__brand b, .shout, .call b,
.person__mono, .comp__cats b, .match__date b, .match__score, .scorers__n, .loop__core p,
.carta__quote, .gate h1, .adm-tablehead h2, .adm-top__brand b, .adm-cat b {
  font-family: var(--f-display);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--ink  { background: var(--ink); color: var(--paper); }
.btn--ink:hover { box-shadow: 0 10px 22px -12px rgba(21,20,17,.7); }
.btn--gold { background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%); color: var(--ink); }
.btn--gold:hover { box-shadow: 0 10px 22px -10px rgba(190,160,50,.85); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Textos comunes ---------- */
.eyebrow, .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 .9rem;
}
.kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-2); }
.kicker__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, .86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__crest { width: 42px; height: 46px; object-fit: cover; border-radius: 6px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-size: 1.15rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.brand__text span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-2);
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 2px no-repeat;
  padding-bottom: 2px; transition: background-size .25s ease, color .2s;
}
.menu a:not(.btn):hover, .menu a.is-active { color: var(--ink); background-size: 100% 2px; }

.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { top: 20.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero__title { margin: .4rem 0 1.4rem; line-height: 1; font-family: var(--f-display); }
.hero__l1, .hero__l2 {
  display: block; font-weight: 800;
  font-size: clamp(2.8rem, 6.4vw, 6rem); letter-spacing: -.04em;
}
.hero__l2 { position: relative; display: inline-block; color: var(--ink); isolation: isolate; }
.hero__l2::after {           /* la "grieta" dorada que rompe el molde */
  content: ""; position: absolute; left: -2%; right: -3%; top: 52%; height: .12em;
  background: var(--gold); transform: rotate(-3deg) scaleX(0); transform-origin: left;
  animation: crack .9s .5s cubic-bezier(.7,0,.2,1) forwards; z-index: -1;
}
@keyframes crack { to { transform: rotate(-3deg) scaleX(1); } }
.hero__l3 {
  display: block; margin-top: 1.1rem; max-width: 22ch;
  font-family: var(--f-body); font-weight: 500; font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.25; letter-spacing: -.01em; text-transform: none; color: var(--ink-2);
}
.hero__l3 em { color: var(--ink); }
.hero__sub { max-width: 52ch; color: var(--ink-2); margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.molde { margin: 0; position: relative; }
.molde svg { width: 100%; height: auto; overflow: visible; }
.molde .frame { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: .35; }
.molde .crackline { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 460; stroke-dashoffset: 460; transition: stroke-dashoffset 1s ease .2s; }
.molde .p { fill: var(--ink); transition: transform 1.1s cubic-bezier(.6,-.2,.2,1.2), opacity .6s; transform-box: fill-box; transform-origin: center; }
.molde .p.is-gold { fill: var(--gold); }
.molde.is-broken .crackline { stroke-dashoffset: 0; }
.molde__cap { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.molde__cap .is-gold { color: var(--gold-deep); }

.hero__strip { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-block: 1px solid var(--line); background: var(--card); }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__facts > div { display: flex; align-items: center; gap: .9rem; padding: 1.3rem 1rem; border-left: 1px solid var(--line); }
.hero__facts > div:first-child { border-left: 0; padding-left: 0; }
.hero__facts b { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.hero__facts span { font-size: .82rem; line-height: 1.35; color: var(--muted); }

/* ---------- Carta ---------- */
.carta { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.carta__grid { display: grid; grid-template-columns: 150px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; max-width: 980px; }
.carta__crest { width: 150px; border-radius: 10px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.carta__quote { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.carta__firma { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(4rem, 9vw, 7rem) 0; }
.sec--tint { background: var(--paper-2); }
.sec__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 2.5rem); margin-bottom: clamp(2.2rem, 5vw, 3.5rem); align-items: start; }
.sec__num {
  font-weight: 800; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: .9;
}
.sec__title {
  margin: 0 0 .9rem; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; font-weight: 700;
  letter-spacing: -.025em;
}
.sec__title em { font-weight: 500; letter-spacing: -.02em; color: var(--gold-deep); }
.sec__sub { margin: 0; max-width: 60ch; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- 01 · Versus ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tabla comparativa: la columna Glaucus va siempre marcada en oro */
.vtable { --vcols: 210px minmax(0, 1fr) minmax(0, 1.25fr); }
.vtable__head, .vrow { display: grid; grid-template-columns: var(--vcols); }
.vtable__head > span { display: flex; align-items: flex-end; gap: .7rem; padding: 1rem 1.3rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.vtable__t { color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.vtable__corner { border-bottom: 1.5px solid var(--ink); }
.vtable__g {
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 70%); color: var(--ink);
  border: 1.5px solid var(--ink); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  align-items: center !important; line-height: 1.15;
}
.vtable__g img { width: 38px; height: 42px; object-fit: cover; border-radius: 6px; flex: none; }
.vtable__g small { display: block; margin-top: .2rem; font-size: .68rem; letter-spacing: .12em; color: var(--ink-2); }
.vrow > span { padding: 1.15rem 1.3rem; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: .7rem; }
.vrow__k { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-left: 0 !important; }
.vrow__t { color: var(--muted); font-size: 1.02rem; line-height: 1.35; }
.vrow__g {
  background: var(--gold-soft); border-inline: 1.5px solid var(--ink); border-bottom-color: rgba(122,102,24,.25) !important;
  font-weight: 700; font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.3; letter-spacing: -.01em;
}
.vrow__g i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-size: .72rem; }
.vrow:last-child .vrow__g { border-bottom: 1.5px solid var(--ink) !important; border-radius: 0 0 var(--radius) var(--radius); }
.vrow:last-child > span { border-bottom-color: transparent; }
.versus__close { margin: 2rem 0 0; font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 46ch; }

/* ---------- 02 · Bucle ---------- */
.loop { position: relative; }
.loop__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 16rem; counter-reset: s; }
.lstep { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow); position: relative; }
.lstep h3 { margin: .6rem 0 .4rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.lstep p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.lstep__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .95rem; }
.lstep:nth-child(2) .lstep__n { background: var(--gold); color: var(--ink); }
.loop__core { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; transform: translate(-50%, -50%); display: grid; place-items: center; text-align: center; }
.loop__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.loop__ring circle { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.loop__core p { position: relative; margin: 0; font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.loop__core em { font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }

.mentor { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(3rem, 7vw, 5rem); align-items: center; }
.mentor__title { margin: 0 0 .8rem; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.mentor__copy > p:last-child { color: var(--ink-2); margin: 0; }
.mentor__bubbles { display: grid; gap: .9rem; }
.bubble { margin: 0; justify-self: start; background: var(--card); border: 1.5px solid var(--ink); border-radius: 20px 20px 20px 4px; padding: .9rem 1.3rem; font-size: 1.15rem; font-weight: 600; box-shadow: 4px 4px 0 var(--ink); }
.bubble--alt { justify-self: end; background: var(--gold); border-radius: 20px 20px 4px 20px; box-shadow: -4px 4px 0 var(--ink); }

/* ---------- 03 · Sesión ---------- */
.session__bar { display: flex; gap: 6px; height: 64px; }
.sbar {
  flex: var(--w) 1 0; border: 1.5px solid var(--ink); border-radius: 10px; cursor: pointer;
  background: var(--card); display: flex; align-items: flex-end; padding: .5rem .7rem;
  font-weight: 700; font-size: .9rem; transition: background .25s, color .25s, transform .2s;
}
.sbar:hover { transform: translateY(-3px); }
.sbar[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.sbar--4[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.session__scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin: .4rem 2px 1.6rem; font-weight: 600; }
.session__panels { min-height: 210px; }
.spanel { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; animation: fadeUp .45s ease both; }
.spanel:has(.pitch) { grid-template-columns: 1.1fr .9fr; column-gap: 2.5rem; align-items: center; }
.spanel:has(.pitch) > :not(.pitch) { grid-column: 1; }
.spanel .pitch { grid-column: 2; grid-row: 1 / span 3; }
[hidden], .spanel[hidden] { display: none !important; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.spanel__time { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.spanel h3 { margin: .2rem 0 .5rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.spanel p { margin: 0; max-width: 58ch; color: var(--ink-2); font-size: 1.05rem; }
.shout { display: block; margin-top: .6rem; font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pitch { width: 100%; max-width: 420px; background: #EAF1E4; border-radius: 10px; }
.pitch rect, .pitch line { fill: none; stroke: #7C9A72; stroke-width: 1.5; }
.pitch .lane { stroke-dasharray: 4 5; }
.pitch .goal { fill: var(--ink); stroke: none; }
.pitch .me { fill: var(--gold); stroke: var(--ink); stroke-width: 1.5; }
.pitch .mate { fill: var(--ink); }
.pitch .rival { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.pitch .run { fill: none; stroke: var(--gold-deep); stroke-width: 2; stroke-dasharray: 5 5; }

.reto { display: flex; gap: 1.2rem; margin-top: 2.5rem; background: var(--gold-soft); border-radius: var(--radius); padding: 1.5rem 1.7rem; border: 1px solid rgba(122,102,24,.25); }
.reto > i { font-size: 1.5rem; color: var(--gold-deep); margin-top: .2rem; }
.reto h3 { margin: 0 0 .3rem; font-size: 1.15rem; font-weight: 700; }
.reto p { margin: 0; color: var(--ink-2); }

/* ---------- 04 · Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.3rem; box-shadow: var(--shadow); transition: transform .25s ease; }
.pillar:hover { transform: translateY(-4px); }
.pillar > i { font-size: 1.4rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); color: var(--ink); }
.pillar h3 { margin: 1rem 0 .4rem; font-size: 1.08rem; line-height: 1.2; font-weight: 700; }
.pillar p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.pillar--gold { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pillar--gold > i { background: var(--gold); color: var(--ink); }
.pillar--gold p { color: rgba(247,244,236,.78); }

/* ---------- 05 · Etapas ---------- */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.stage { padding: 2rem 1.8rem 2.2rem; border-left: 1.5px solid var(--ink); position: relative; }
.stage:first-child { border-left: 0; }
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--gold); transform-origin: left; }
.stage:nth-child(1)::before { transform: scaleX(.34); }
.stage:nth-child(2)::before { transform: scaleX(.67); }
.stage__age { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stage h3 { margin: .3rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.stage__motto { margin: 0; font-size: 1.2rem; line-height: 1.3; }

.cats { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.cats__label { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cats__list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.cats__list li { padding: .45rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: .9rem; background: var(--card); }

.kpis { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: 280px 1fr; gap: 2rem; padding-top: 2rem; border-top: 1.5px solid var(--ink); }
.kpis__title { margin: 0; font-size: 1.4rem; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.kpis ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.kpis li { display: flex; gap: 1rem; align-items: flex-start; font-size: 1.05rem; color: var(--ink-2); }
.kpis li i { color: var(--gold-deep); width: 22px; margin-top: .3rem; text-align: center; }
.kpis li b { color: var(--ink); }

/* ---------- Valores ---------- */
.values { background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 40%, var(--gold) 70%, #D9B843 100%); padding: clamp(3.5rem, 8vw, 6rem) 0; overflow: hidden; }
.values__intro { margin-top: 0; margin-bottom: 1.5rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.values__list { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(1rem, 3vw, 2.5rem); max-width: 1400px; margin-inline: auto; }
.values__list li {
  font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: -.02em;
  font-size: clamp(2.3rem, 7.5vw, 6.2rem);
}
.values__list li:nth-child(even) { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.values__outro { margin-top: 2rem; margin-bottom: 0; text-align: center; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 60ch; }
.values__outro i { font-family: var(--f-serif); }

/* ---------- El club ---------- */
.people { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.person { grid-column: span 2; display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.person:not(.person--lead) { align-items: center; }
.person--lead { grid-column: span 3; padding: 1.7rem; }
.person__mono { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 800; letter-spacing: .04em; }
.person--lead .person__mono { width: 72px; height: 72px; font-size: 1.3rem; background: var(--gold); color: var(--ink); }
.person h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.person--lead h3 { font-size: 1.45rem; }
.person p { margin: .4rem 0 0; color: var(--ink-2); font-size: .97rem; }

.place { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); }
.place__title { margin: 0 0 .2rem; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.place__copy p:not(.eyebrow) { margin: 0 0 1.2rem; color: var(--ink-2); }
.place__art svg { width: 100%; height: auto; }
.place__art rect, .place__art line, .place__art circle { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .5; }
.place__art .dot { fill: var(--gold); stroke: none; opacity: 1; r: 7; }

/* ---------- Inscripción ---------- */
.join { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.join__copy { position: sticky; top: 100px; }
.join__copy .sec__sub { margin-bottom: 2rem; }
.call { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; padding: 1rem 1.4rem; border-radius: var(--radius); background: var(--card); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
.call:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.call i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); }
.call small { display: block; color: var(--muted); font-size: .8rem; }
.call b { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.3rem, 3.5vw, 2.2rem); box-shadow: var(--shadow); display: grid; gap: 1.3rem; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .9rem; }
.form legend { padding: 0; margin-bottom: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > span { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 10px; padding: .8rem .9rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px var(--gold-soft); }
.field.is-invalid input, .field.is-invalid select { border-color: #B3261E; }
.hint { margin: -.2rem 0 0; font-size: .88rem; color: var(--gold-deep); font-weight: 600; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check.is-invalid span { color: #B3261E; }
.form__msg { margin: 0; padding: .9rem 1rem; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.form__msg.is-ok { background: var(--gold-soft); color: var(--ink); }
.form__msg.is-err { background: #F9E3E1; color: #8C1D18; }

/* ---------- Pie ---------- */
.foot { border-top: 1.5px solid var(--ink); padding-top: 3rem; background: var(--paper); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.foot__brand { display: flex; gap: 1rem; align-items: flex-start; }
.foot__crest { width: 64px; border-radius: 8px; }
.foot__brand b { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.foot__brand p { margin: .3rem 0 0; color: var(--ink-2); max-width: 34ch; }
.foot__col { display: grid; gap: .5rem; align-content: start; }
.foot__col h4 { margin: 0 0 .3rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.foot__col a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.foot__col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.foot__col i { width: 18px; color: var(--gold-deep); }
.foot__social:empty { display: none; }
.foot__social { display: flex; gap: .6rem; margin-top: .4rem; }
.foot__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink); }
.foot__social a i { width: auto; color: var(--ink); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-block: 1.2rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.foot__bottom a { color: var(--muted); }

/* ---------- Competición por categorías ---------- */
.comp { display: grid; gap: 1.2rem; }
.comp__demo { margin: 0; justify-self: start; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: var(--gold-soft); border: 1px dashed var(--gold-deep); color: var(--gold-deep); font-size: .82rem; font-weight: 600; }
.comp__cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .6rem; }
.comp__cats button {
  font: inherit; cursor: pointer; text-align: left; padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); transition: border-color .2s, background .2s, transform .2s;
}
.comp__cats button:hover { border-color: var(--ink); transform: translateY(-2px); }
.comp__cats b { display: block; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.comp__cats small { display: block; color: var(--muted); font-size: .78rem; margin-top: .1rem; }
.comp__cats button[aria-selected="true"] { background: linear-gradient(160deg, var(--gold-hi), var(--gold) 70%); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.comp__cats button[aria-selected="true"] small { color: var(--ink-2); }

.comp__next { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; padding: 1rem 1.3rem; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.comp__next-k { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.comp__next-v { font-size: 1.1rem; }
.comp__next-v em { color: var(--gold-hi); margin-inline: .2rem; }
.comp__next-w { margin-left: auto; font-size: .9rem; color: rgba(247,244,236,.78); display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem .5rem; }
.comp__next-w i { color: var(--gold); }
.comp__next-w i + i, .comp__next-w i:nth-of-type(2) { margin-left: .5rem; }

.comp__views { display: flex; gap: .3rem; border-bottom: 1.5px solid var(--ink); }
.comp__views button {
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; background: none; border: 0; color: var(--muted);
  padding: .8rem 1rem; border-bottom: 3px solid transparent; margin-bottom: -1.5px; display: inline-flex; align-items: center; gap: .5rem;
}
.comp__views button:hover { color: var(--ink); }
.comp__views button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.comp__views button[aria-selected="true"] i { color: var(--gold-deep); }
.comp__views .sm { display: none; }

.comp__body { min-height: 180px; }
.matches { display: grid; gap: .7rem; }
.match {
  display: grid; grid-template-columns: 64px 1fr; grid-template-areas: "d t" "d m"; gap: .4rem 1.2rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow);
}
.match__date { grid-area: d; text-align: center; line-height: 1; border-right: 1px solid var(--line); padding-right: 1rem; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.match__date small { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.match__date b { font-size: 1.7rem; font-weight: 800; margin: .15rem 0; }
.match__date span { font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--gold-deep); }
.match__teams { grid-area: t; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 1rem; }
.match__team { display: flex; align-items: center; gap: .6rem; font-weight: 600; min-width: 0; }
.match__team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match__teams > .match__team:last-child { flex-direction: row-reverse; text-align: right; }
.match__team.is-us { font-weight: 700; }
.crest { width: 30px; height: 33px; object-fit: contain; flex: none; }
.crest--rival { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line-2); font-size: .8rem; font-weight: 700; color: var(--muted); }
.match__score { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; padding: .2rem .8rem; border-radius: 10px; background: var(--paper-2); white-space: nowrap; }
.match__score i { font-style: normal; color: var(--muted); margin-inline: .3rem; font-weight: 400; }
.match__time { font-weight: 700; padding: .35rem .8rem; border-radius: 10px; background: var(--gold-soft); border: 1px solid rgba(122,102,24,.25); white-space: nowrap; font-size: .95rem; }
.match__meta { grid-area: m; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; font-size: .8rem; color: var(--muted); }
.match__meta i { color: var(--gold-deep); margin-right: .2rem; }

.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.standings { width: 100%; border-collapse: collapse; font-size: .95rem; }
.standings th { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: .8rem .5rem; border-bottom: 1.5px solid var(--ink); }
.standings td { padding: .7rem .5rem; text-align: center; border-bottom: 1px solid var(--line); }
.standings tr:last-child td { border-bottom: 0; }
.standings th.l, .standings td.l { text-align: left; }
.standings th:first-child, .standings td:first-child { padding-left: 1.1rem; width: 2.5rem; font-weight: 700; }
.standings th:last-child, .standings td:last-child { padding-right: 1.1rem; }
.standings__team { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.standings__team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings .crest, .standings .crest--rival { width: 24px; height: 26px; font-size: .7rem; }
.standings .crest--rival { height: 24px; }
.standings tr.is-us td { background: var(--gold-soft); font-weight: 700; }
.standings tr.is-us td:first-child { box-shadow: inset 4px 0 0 var(--gold); }

.scorers { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: g; }
.scorers li { counter-increment: g; display: grid; grid-template-columns: 2rem minmax(0, 14rem) 1fr auto; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1.1rem; }
.scorers li::before { content: counter(g); font-weight: 700; color: var(--muted); }
.scorers__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorers__bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.scorers__bar span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.scorers__n { font-weight: 800; font-size: 1.2rem; }
.scorers__n small { font-size: .72rem; font-weight: 600; color: var(--muted); margin-left: .3rem; }
.scorers__note { margin: 1rem 0 0; color: var(--ink-2); font-size: .95rem; display: flex; align-items: center; gap: .6rem; }
.scorers__note i { color: var(--gold-deep); }

.comp__empty { display: flex; align-items: center; gap: 1.1rem; padding: 1.6rem 1.5rem; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--card); }
.comp__empty > i { font-size: 1.5rem; color: var(--gold-deep); width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); }
.comp__empty p { margin: 0; color: var(--muted); }
.comp__empty b { display: block; color: var(--ink); margin-bottom: .15rem; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Páginas legales ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 1.5rem; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal .pendiente { background: var(--gold-soft); padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .loop__steps { gap: 1.2rem 12rem; }
  .loop__core { width: 190px; height: 190px; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1.5px solid var(--ink); padding: .5rem var(--gutter) 1.2rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .menu a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; background: none; }
  .menu .btn { margin-top: 1rem; }

  .hero__grid { grid-template-columns: 1fr; }
  .molde { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hero__facts > div:nth-child(-n+2) { border-top: 0; }
  .hero__facts > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }

  .loop__steps { grid-template-columns: 1fr; gap: 1rem; }
  .loop__core { position: relative; left: auto; top: auto; transform: none; margin: 1.5rem auto 0; width: 200px; height: 200px; }
  .mentor { grid-template-columns: 1fr; }
  .spanel:has(.pitch) { grid-template-columns: 1fr; }
  .spanel .pitch { grid-column: 1; grid-row: auto; margin-top: 1.2rem; }
  .stages { grid-template-columns: 1fr; }
  .stage { border-left: 0; border-top: 1.5px solid var(--ink); }
  .stage:first-child { border-top: 0; }
  .kpis { grid-template-columns: 1fr; gap: 1.2rem; }
  .people { grid-template-columns: 1fr 1fr; }
  .person, .person--lead { grid-column: span 1; }
  .person--lead { grid-column: span 2; }
  .place { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; }
  .join__copy { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .sec__head { grid-template-columns: 1fr; gap: .6rem; }
  .sec__num { font-size: 2.6rem; }
  .carta__grid { grid-template-columns: 1fr; }
  .carta__crest { width: 96px; }
  .vtable { --vcols: minmax(0, .85fr) minmax(0, 1.15fr); }
  .vtable__corner { display: none !important; }
  .vtable__head > span { padding: .8rem .8rem; font-size: .66rem; letter-spacing: .08em; }
  .vtable__g img { width: 28px; height: 31px; }
  .vtable__g small { font-size: .6rem; }
  .vrow__k { grid-column: 1 / -1; padding: 1rem 0 .1rem !important; border-bottom: 0 !important; font-size: .7rem; }
  .vrow > .vrow__t, .vrow > .vrow__g { padding: .4rem .8rem .9rem; font-size: .92rem; align-items: flex-start; }
  .vrow__g { font-size: .95rem !important; }
  .vrow__g i { width: 20px; height: 20px; font-size: .6rem; margin-top: .1rem; }
  /* la etiqueta ocupa toda la fila: se pinta la columna dorada por detrás para que no se corte */
  .vrow__k {
    padding-right: 58% !important;
    background: linear-gradient(to right, transparent 42.5%, var(--ink) 42.5%, var(--ink) calc(42.5% + 1.5px),
      var(--gold-soft) calc(42.5% + 1.5px), var(--gold-soft) calc(100% - 1.5px), var(--ink) calc(100% - 1.5px));
  }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar--gold { grid-column: 1 / -1; }
  .session__bar { height: 54px; gap: 4px; }
  .sbar { padding: .4rem .3rem; font-size: .68rem; white-space: nowrap; letter-spacing: -.02em; min-width: 3.3rem; }
  .loop__core { width: 210px; height: 210px; }
  .loop__core p { font-size: 1rem; padding-inline: 1.4rem; }
  .people { grid-template-columns: 1fr; }
  .person, .person--lead { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; }
  .bubble { font-size: 1.02rem; }
  .reto { flex-direction: column; gap: .6rem; }
  .foot__grid { grid-template-columns: 1fr; }
  .values__list li:nth-child(even) { -webkit-text-stroke-width: 1.5px; }

  /* competición: las categorías se deslizan en una fila; la página no se desborda */
  .comp__cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .4rem; scrollbar-width: none; }
  .comp__cats::-webkit-scrollbar { display: none; }
  .comp__cats button { flex: none; scroll-snap-align: start; padding: .7rem .9rem; }
  .comp__next { padding: .9rem 1rem; }
  .comp__next-w { margin-left: 0; }
  .comp__views { gap: 0; }
  .comp__views button { flex: 1; justify-content: center; flex-direction: column; gap: .25rem; padding: .7rem .2rem; font-size: .78rem; }
  .comp__views .lg { display: none; }
  .comp__views .sm { display: inline; }
  .match { grid-template-columns: 50px minmax(0, 1fr); gap: .5rem .8rem; padding: .85rem .9rem; }
  .match__date { padding-right: .7rem; }
  .match__date b { font-size: 1.35rem; }
  .match__teams { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: .5rem; font-size: .88rem; }
  .match__team { flex-direction: column; text-align: center; gap: .3rem; }
  .match__teams > .match__team:last-child { flex-direction: column; text-align: center; }
  .match__team > span:last-child { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .match__score { font-size: 1.2rem; padding: .2rem .5rem; }
  .match__time { font-size: .82rem; padding: .3rem .5rem; }
  .match__meta { font-size: .74rem; }
  .standings { font-size: .86rem; }
  .standings .opt { display: none; }
  .standings th, .standings td { padding-inline: .3rem; }
  .standings th:first-child, .standings td:first-child { padding-left: .7rem; width: 1.8rem; }
  .standings th:last-child, .standings td:last-child { padding-right: .7rem; }
  .standings .crest, .standings .crest--rival { display: none; }
  .scorers li { grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: .7rem; padding: .7rem .9rem; }
  .scorers__bar { grid-column: 2 / -1; grid-row: 2; }
  .comp__empty { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
