/* Poppins, alojada en el propio tema (assets/fonts/, licencia OFL): sin Google Fonts. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-italic.woff2") format("woff2"); }

/* =========================================================
   GM Àlvar Alonso — web
   Paleta y tipografía del reporte «Dominando el Àlvaritmo»
   ========================================================= */
:root {
  --navy-900: #081d35;
  --navy-800: #0c2a49;
  --navy-700: #0d2a4a;
  --navy-600: #1d3a5e;
  --navy-500: #2b4f6e;
  --gold: #c9a961;
  --gold-light: #e8c77e;
  --cream: #f8f5ee;
  --cream-2: #f8f4ed;
  --ink: #1a1a1a;
  --grey: #6b7785;
  --line: rgba(201, 169, 97, .28);
  --sq: clamp(64px, 9vw, 132px);           /* lado de las casillas del fondo */
  --radius: 4px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--cream);
  background-color: var(--navy-900);
  /* tablero oscuro de fondo, como la cuadrícula de la referencia */
  background-image:
    conic-gradient(var(--navy-800) 0 25%, var(--navy-900) 0 50%, var(--navy-800) 0 75%, var(--navy-900) 0);
  background-size: calc(var(--sq) * 2) calc(var(--sq) * 2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
.contenedor { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Barra superior ---------- */
.franja-oro { height: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
.topbar {
  background: #000;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.topbar .contenedor { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 12px; }
.topbar__pieza { width: 22px; height: 22px; }
.redes { display: flex; gap: 6px; align-items: center; }
.redes a {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  background: var(--gold); color: var(--navy-900);
  border-radius: 2px; transition: background .2s, transform .2s;
}
.redes a:hover { background: var(--gold-light); transform: translateY(-2px); }
.redes svg { width: 15px; height: 15px; fill: currentColor; }
.topbar__txt { color: var(--gold); opacity: .85; }

/* ---------- Marca ---------- */
.marca {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 34px 0 26px; text-align: center;
}
.marca__avatar {
  width: 86px; height: 86px; border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(201,169,97,.12);
}
.marca__nombre {
  display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: .14em; text-transform: uppercase;
}
.marca__nombre .rey { display: block; background-size: cover; width: 1.25em; height: 1.25em; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.marca__pre { font-size: 11px; letter-spacing: .5em; color: var(--gold); text-transform: uppercase; }
.marca__lema { font-style: italic; color: var(--gold-light); font-size: 15px; }

/* ---------- Navegación con ventanucos ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 29, 53, .94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nav__lista {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.nav__item { position: relative; border-left: 1px solid var(--line); }
.nav__item:last-child { border-right: 1px solid var(--line); }
.nav__boton {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 10px;
  background: none; border: 0; color: var(--cream);
  font: 600 13px/1 "Poppins", sans-serif; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: background .25s, color .25s;
}
.nav__mas {
  display: grid; place-items: center; width: 16px; height: 16px;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 13px; line-height: 1; transition: transform .35s var(--ease), background .25s;
}
.nav__item:hover .nav__boton,
.nav__item.abierto .nav__boton { background: var(--gold); color: var(--navy-900); }
.nav__item:hover .nav__mas,
.nav__item.abierto .nav__mas { border-color: var(--navy-900); color: var(--navy-900); transform: rotate(45deg); }

/* El ventanuco: se abre como una contraventana desde arriba */
.ventanuco {
  position: absolute; top: 100%; left: -1px;
  width: min(640px, 92vw);
  display: grid; grid-template-columns: 220px 1fr;
  box-shadow: var(--shadow);
  clip-path: inset(0 0 100% 0);
  opacity: 0; visibility: hidden;
  transition: clip-path .5s var(--ease), opacity .3s, visibility 0s .5s;
  z-index: 60;
}
.nav__item:nth-child(4) .ventanuco,
.nav__item:nth-child(5) .ventanuco { left: auto; right: -1px; }
.nav__item.abierto .ventanuco {
  clip-path: inset(0 0 0 0);
  opacity: 1; visibility: visible;
  transition: clip-path .55s var(--ease), opacity .2s, visibility 0s;
}
.ventanuco__lista {
  background: var(--cream); color: var(--ink);
  list-style: none; margin: 0; padding: 18px 20px;
  font-size: 13px;
}
.ventanuco__lista li { opacity: 0; transform: translateY(-6px); transition: .35s var(--ease); }
.nav__item.abierto .ventanuco__lista li { opacity: 1; transform: none; }
.nav__item.abierto .ventanuco__lista li:nth-child(2) { transition-delay: .06s; }
.nav__item.abierto .ventanuco__lista li:nth-child(3) { transition-delay: .12s; }
.nav__item.abierto .ventanuco__lista li:nth-child(4) { transition-delay: .18s; }
.nav__item.abierto .ventanuco__lista li:nth-child(5) { transition-delay: .24s; }
.ventanuco__lista a {
  display: flex; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid #e7dfcd; transition: color .2s, padding .2s;
}
.ventanuco__lista a::before { content: "·"; color: var(--gold); font-weight: 700; }
.ventanuco__lista a:hover { color: var(--navy-500); padding-left: 4px; }
.ventanuco__visual {
  position: relative; overflow: hidden;
  background: var(--navy-600);
  min-height: 190px; padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.ventanuco__visual h4 { font-size: 18px; color: var(--gold-light); }
.ventanuco__visual p { font-size: 13px; margin: 6px 0 0; color: #d9e0e8; }
.ventanuco__visual .v-cifra { font-size: 38px; font-weight: 700; color: var(--cream); line-height: 1; }
.ventanuco__visual .tb-mini { position: absolute; top: 16px; right: 16px; width: 120px; opacity: .95; }
.ventanuco__visual img.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.ventanuco__visual > *:not(img) { position: relative; }

.nav__hamburguesa { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 26px 0 0; }
.hero__panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 54px);
  background:
    radial-gradient(1200px 500px at 90% 0%, rgba(201,169,97,.16), transparent 60%),
    linear-gradient(135deg, var(--navy-600), var(--navy-800));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero__panel::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero__etiqueta { color: var(--gold); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; margin: 14px 0 16px;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__sub { font-size: clamp(15px, 1.5vw, 18px); color: #d4dbe4; max-width: 34em; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 2px;
  font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.boton--oro { background: var(--gold); color: var(--navy-900); }
.boton--oro:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,169,97,.3); }
.boton--linea { border: 1px solid var(--gold); color: var(--gold-light); }
.boton--linea:hover { background: rgba(201,169,97,.12); transform: translateY(-2px); }
.hero__datos { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero__datos strong { display: block; font-size: 26px; color: var(--cream); line-height: 1.1; }
.hero__datos span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

.hero__tablero { position: relative; }
.hero__tablero .tb { box-shadow: 0 24px 60px rgba(0,0,0,.55); border: 8px solid var(--navy-900); outline: 1px solid var(--gold); }
.hero__avatar {
  position: absolute; right: -14px; bottom: -18px; width: 30%;
  border-radius: 50%; border: 4px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.hero__jugada {
  position: absolute; left: 12px; top: -14px;
  background: var(--gold); color: var(--navy-900);
  font: 700 13px/1 "Poppins"; letter-spacing: .06em;
  padding: 8px 12px; border-radius: 2px; box-shadow: 0 6px 16px rgba(0,0,0,.35);
  min-width: 170px; z-index: 5;
}
.hero__jugada small { display: block; font-weight: 500; font-size: 10px; letter-spacing: .2em; opacity: .75; margin-bottom: 3px; }

/* ---------- Tablero ---------- */
.tb {
  position: relative; width: 100%; aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  user-select: none;
}
.tb .c { background: #f1e6cc; position: relative; }
.tb .c.o { background: var(--gold); }
.tb .c.ult { box-shadow: inset 0 0 0 999px rgba(43, 79, 110, .38); }
.tb .coord { position: absolute; font-size: 9px; font-weight: 600; color: var(--navy-700); opacity: .75; }
.tb .coord.f { right: 3px; bottom: 1px; }
.tb .coord.r { left: 3px; top: 1px; }
.tb .pz {
  position: absolute; width: 12.5%; height: 12.5%;
  background-size: cover;
  transition: transform .6s var(--ease), opacity .3s;
  will-change: transform;
  z-index: 2;
}
.tb .pz.fuera { opacity: 0; }

/* ---------- Tira de logros (los «ventanucos» con fecha) ---------- */
.logros { margin-top: 0; }
.logros__tira {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  /* Solo scroll horizontal: con overflow-x:auto el navegador pone el vertical
     en «auto» por su cuenta, y cualquier píxel de más (zoom, otra fuente, la
     puerta girando en 3D) sacaba una barra vertical (01/10/2026, Rodrigo). */
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  border: 1px solid var(--line); border-top: 0;
  background: rgba(8,29,53,.85);
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.logro {
  position: relative; scroll-snap-align: start;
  border-right: 1px solid var(--line);
  perspective: 900px;
  min-height: 220px;
}
.logro:last-child { border-right: 0; }
.logro__interior {
  position: absolute; inset: 0;
  padding: 16px 18px;
  background: var(--cream); color: var(--navy-700);
  display: flex; flex-direction: column; justify-content: center;
  font-size: 13px; line-height: 1.45;
}
.logro__interior strong { display: block; font-size: 15px; margin-bottom: 6px; color: var(--navy-800); }
.logro__interior .fuente { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-top: 8px; }
/* la puerta del ventanuco, que gira sobre su bisagra izquierda */
.logro__puerta {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  transform-origin: left center;
  transition: transform .8s var(--ease), box-shadow .8s;
  backface-visibility: hidden;
  z-index: 2;
  cursor: pointer;
}
.logro:hover .logro__puerta,
.logro.abierto .logro__puerta,
.logro:focus-within .logro__puerta { transform: rotateY(-105deg); box-shadow: 30px 0 40px rgba(0,0,0,.4); }
.logro__cab { display: flex; align-items: center; gap: 12px; }
.logro__icono {
  flex: 0 0 56px; height: 56px; display: grid; place-items: center;
  background: var(--navy-500); border: 1px solid var(--line);
}
.logro__icono .pz { position: static; width: 42px; height: 42px; display: block; background-size: cover; }
.logro__cuando { line-height: 1.05; }
.logro__cuando small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
.logro__cuando b { white-space: nowrap; font-size: 24px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.logro__titulo { margin-top: auto; font-size: 13.5px; color: #d6dde6; line-height: 1.4; }
.logro__abrir { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.logros__pie {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.logros__flechas { display: flex; gap: 6px; }
.logros__flechas button {
  width: 34px; height: 34px; background: transparent; color: var(--gold);
  border: 1px solid var(--gold); cursor: pointer; font-size: 16px; transition: background .2s, color .2s;
}
.logros__flechas button:hover { background: var(--gold); color: var(--navy-900); }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.seccion--crema { background: var(--cream); color: var(--ink); }
.seccion--navy { background: var(--navy-700); }
.seccion__num { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.seccion__titulo {
  font-size: clamp(28px, 4vw, 46px); font-weight: 700; margin: 10px 0 18px;
  padding-bottom: 16px; border-bottom: 1px solid var(--gold);
  max-width: 900px;
}
.seccion--crema .seccion__titulo { color: var(--navy-700); }
.seccion__intro { font-size: 17px; max-width: 760px; color: inherit; opacity: .85; }

/* Sobre mí */
.bio { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.bio__foto { position: relative; }
.bio__foto img { border-radius: 50%; border: 5px solid var(--gold); box-shadow: 0 20px 50px rgba(13,42,74,.35); }
.bio__sello {
  position: absolute; right: 0; bottom: 8%;
  background: var(--navy-700); color: var(--gold-light);
  font-weight: 800; font-size: 22px; letter-spacing: .1em;
  padding: 10px 16px; border: 2px solid var(--gold);
}
.bio__texto p { font-size: 16.5px; color: #2d3440; }
.bio__texto strong { color: var(--navy-700); }
.fichas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: #e2d7bd; border: 1px solid #e2d7bd; margin-top: 26px; }
.ficha { background: #fff; padding: 16px; }
.ficha span { display: block; font-size: 10.5px; letter-spacing: .16em; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.ficha b { font-size: 20px; color: var(--navy-700); }

/* Cifras */
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.cifra {
  background: var(--navy-800); padding: clamp(22px, 3vw, 36px);
  position: relative; overflow: hidden;
}
.cifra::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  background: conic-gradient(rgba(201,169,97,.08) 0 25%, transparent 0 50%, rgba(201,169,97,.08) 0 75%, transparent 0);
  background-size: 55px 55px;
}
.cifra__etq { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.cifra__num { display: block; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; color: var(--cream); line-height: 1.1; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.cifra__nota { font-size: 13px; color: #aebccb; }

.graficas { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 24px; }
.panel { background: var(--navy-800); border: 1px solid var(--line); padding: 26px; }
.panel h3 { font-size: 17px; margin-bottom: 4px; }
.panel .sub { font-size: 12.5px; color: #aebccb; margin-bottom: 18px; }
.barras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; height: 220px; }
.barra { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.barra__valor { font-size: 13px; font-weight: 700; color: var(--cream); }
.barra__col {
  width: 100%; max-width: 70px; height: 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: 3px 3px 0 0;
  transition: height 1.2s var(--ease);
}
.barra--pico .barra__col { box-shadow: 0 0 24px rgba(232,199,126,.45); }
.barra__mes { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.fuentes { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fuentes li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13.5px; }
.fuentes .pista { grid-column: 1 / -1; height: 8px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
.fuentes .pista i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 4px; transition: width 1.2s var(--ease); }
.fuentes b { color: var(--gold-light); }
.destacados { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.destacado { border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; }
.destacado b { display: block; font-size: 22px; color: var(--gold-light); }
.destacado span { font-size: 14px; color: #c9d3de; }

/* Top vídeos */
.videos { margin-top: 30px; display: grid; gap: 12px; }
.video {
  display: grid; grid-template-columns: 64px 1fr repeat(3, 110px); align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e6dcc4; padding: 14px 18px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.video:hover { transform: translateX(6px); box-shadow: -6px 10px 30px rgba(13,42,74,.12); border-color: var(--gold); }
.video__pos { font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1; }
.video__titulo { font-weight: 600; color: var(--navy-700); font-size: 15px; line-height: 1.35; }
.video__tag { display: inline-block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: var(--navy-700); color: var(--gold-light); padding: 3px 7px; margin-top: 6px; }
.video__dato { text-align: right; }
.video__dato b { display: block; color: var(--navy-700); font-size: 18px; }
.video__dato span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }

/* Aperturas */
.aperturas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 36px; }
.apertura {
  background: var(--navy-800); border: 1px solid var(--line);
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.apertura:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.apertura h3 { font-size: 16px; color: var(--gold-light); }
.apertura code { font: 500 11.5px/1.4 "Poppins"; color: #aebccb; }
.apertura p { font-size: 13px; color: #d3dbe4; margin: 0; }

/* Faustino */
.faustino { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.faustino__cita {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.35; color: var(--cream);
  border-left: 4px solid var(--gold); padding-left: 22px; margin: 0 0 22px;
}
.faustino__lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.faustino__lista li { background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.faustino__lista b { font-size: 22px; color: var(--gold); min-width: 90px; }
.faustino__lista span { font-size: 14px; color: #d3dbe4; }

/* Series */
.series { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e2d7bd; border: 1px solid #e2d7bd; margin-top: 36px; }
.serie { background: #fff; padding: 22px 18px; position: relative; overflow: hidden; }
.serie::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--c); }
.serie__dia { font-size: 11px; letter-spacing: .2em; font-weight: 600; text-transform: uppercase; color: var(--grey); }
.serie h3 { font-size: 17px; color: var(--navy-700); margin: 6px 0 8px; }
.serie p { font-size: 13px; color: #454d59; margin: 0; }
.serie__ej { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e2d7bd; font-size: 11.5px; font-style: italic; color: var(--navy-500); }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.contacto__tarjetas { display: grid; gap: 14px; margin-top: 24px; }
.tarjeta { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 16px 18px; }
.tarjeta__ico { flex: 0 0 44px; height: 44px; display: grid; place-items: center; background: var(--gold); color: var(--navy-900); font-size: 20px; }
.tarjeta h3 { font-size: 16px; margin-bottom: 2px; }
.tarjeta p { font-size: 13.5px; color: #c9d3de; margin: 0; }
.formulario { background: var(--cream); color: var(--ink); padding: clamp(22px, 3vw, 36px); border-top: 5px solid var(--gold); }
.formulario h3 { color: var(--navy-700); font-size: 22px; margin-bottom: 16px; }
.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--navy-500); }
.campo input, .campo select, .campo textarea {
  font: 400 15px "Poppins"; padding: 12px 14px;
  border: 1px solid #d9ceb4; background: #fff; color: var(--ink); border-radius: 2px;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.formulario .boton { border: 0; cursor: pointer; width: 100%; justify-content: center; }

/* Pie */
.pie { background: #000; padding: 40px 0 26px; font-size: 13px; color: #9aa7b6; }
.pie__fila { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pie__marca { display: flex; align-items: center; gap: 12px; color: var(--cream); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pie__marca img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); }
.pie__legal { border-top: 1px solid #1c2a3a; margin-top: 24px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.pie__legal a { color: var(--gold); }

/* Aparición al hacer scroll */
.revela { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.revela.visto { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .aperturas { grid-template-columns: repeat(3, 1fr); }
  .series { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero__panel { grid-template-columns: 1fr; }
  .hero__tablero { max-width: 460px; margin-inline: auto; width: 100%; }
  .bio, .faustino, .contacto, .graficas { grid-template-columns: 1fr; }
  .bio__foto { max-width: 300px; margin-inline: auto; }
  .cifras { grid-template-columns: repeat(2, 1fr); }
  .destacados { grid-template-columns: 1fr; }
  .video { grid-template-columns: 44px 1fr 90px; }
  .video__dato:nth-of-type(n+2) { display: none; }

  /* menú móvil: los ventanucos se abren en acordeón */
  .nav__hamburguesa {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: none; border: 0; color: var(--cream); padding: 14px 16px;
    font: 600 13px "Poppins"; letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  }
  .nav__lista { display: none; grid-template-columns: 1fr; }
  .nav.movil-abierto .nav__lista { display: grid; }
  .nav__item { border-left: 0; border-top: 1px solid var(--line); }
  .nav__item:last-child { border-right: 0; }
  .nav__boton { justify-content: space-between; padding: 14px 16px; }
  .ventanuco, .nav__item:nth-child(4) .ventanuco, .nav__item:nth-child(5) .ventanuco {
    position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none;
    display: none;
  }
  .nav__item.abierto .ventanuco { display: grid; }
  .ventanuco__visual { min-height: 150px; }
}
@media (max-width: 600px) {
  .cifras { grid-template-columns: 1fr; }
  .aperturas, .series { grid-template-columns: 1fr 1fr; }
  .hero__datos { gap: 18px; }
  .logros__tira { grid-auto-columns: 78%; }
  .marca__nombre { gap: 8px; letter-spacing: .08em; }
}
@media (max-width: 420px) {
  .aperturas, .series { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .revela { opacity: 1; transform: none; }
}

/* Detalles añadidos */
.red-pz { display: block; width: 18px; height: 18px; background-size: cover; }
.bio__foto img { aspect-ratio: 1; object-fit: cover; object-position: center 22%; }
.pie .creditos { flex-basis: 100%; font-size: 11px; opacity: .7; }
@media (max-width: 600px) {
  .topbar__txt { display: none; }
  .topbar .contenedor { justify-content: center; }
}

/* =========================================================
   Añadidos del tema de WordPress
   ========================================================= */
.saltar { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--navy-900); padding: 10px 16px; font-weight: 700; }
.saltar:focus { left: 8px; }
.marca__enlace { display: block; border-radius: 50%; }
.marca__enlace:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.contenedor--texto { width: min(820px, 100% - 32px); }

/* Formulario */
.campo--trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #454d59; margin: 4px 0 16px; line-height: 1.45; cursor: pointer; }
.casilla input { margin-top: 3px; accent-color: var(--navy-700); width: 16px; height: 16px; flex: none; }
.casilla a { color: var(--navy-500); text-decoration: underline; }
.formulario__aviso { padding: 12px 14px; border-radius: 2px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.formulario__aviso--bien { background: #dcfce7; color: #14532d; border-left: 4px solid #22c55e; }
.formulario__aviso--mal { background: #fee2e2; color: #7f1d1d; border-left: 4px solid #ef4444; }

/* Pie: páginas legales */
.pie__paginas { display: flex; gap: 16px; }
.pie__paginas a { color: #9aa7b6; }
.pie__paginas a:hover { color: var(--gold); }

/* Páginas legales y sueltas */
.pagina-legal h2 { font-size: 20px; color: var(--navy-700); margin: 34px 0 10px; }
.pagina-legal p, .pagina-legal li { font-size: 16px; color: #2d3440; }
.pagina-legal ul { padding-left: 20px; }
.pagina-legal a { color: var(--navy-500); text-decoration: underline; }
.pagina-legal .prosa img { height: auto; }
.legal__fecha { margin-top: 40px; font-size: 13px !important; color: var(--grey) !important; }
.aviso-admin { background: #fee2e2; border: 2px solid #ef4444; color: #7f1d1d; padding: 14px 16px; font-size: 14px !important; }
.listado { list-style: none; padding: 0 !important; }
.listado a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e2d7bd; text-decoration: none !important; }
.pagina-404 { min-height: 50vh; }

/* La barra de administración de WordPress no debe tapar el menú fijo */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* Formulario de clases: dos campos por fila en escritorio */
.campos-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .campos-2 { grid-template-columns: 1fr; } }
.campo textarea::placeholder, .campo input::placeholder { color: #9aa3ad; }

/* Secciones sobre el tablero de fondo: menos aire entre ellas, y si van
   seguidas, sin doble hueco (01/10/2026, Rodrigo) */
.seccion:not(.seccion--crema):not(.seccion--navy):not(.seccion--blanca) { padding: clamp(40px, 5.5vw, 72px) 0; }
.seccion:not(.seccion--crema):not(.seccion--navy):not(.seccion--blanca) + .seccion:not(.seccion--crema):not(.seccion--navy):not(.seccion--blanca) { padding-top: 0; }

/* La tira de logros: el texto de cada ventanuco nunca estira la casilla */
.logro__interior, .logro__puerta { overflow: hidden; }

/* ---------- Tira de logros en el móvil: como las del blog y las aperturas ----------
   A sangre (hasta los bordes), casillas sueltas con hueco entre ellas, se
   asoma la siguiente y sin las flechas: en el móvil se desliza con el dedo
   (01/10/2026, Rodrigo). */
@media (max-width: 600px) {
  .logros__tira {
    grid-auto-columns: 78%;
    gap: 14px;
    border: 0; background: transparent;
    margin-inline: -16px;
    padding: 12px 16px 14px;
    scroll-padding-inline: 16px;
  }
  .logro { border: 1px solid var(--line); border-top: 3px solid var(--gold); background: var(--navy-800); }
  .logro:last-child { border-right: 1px solid var(--line); }
  .logros__flechas { display: none; }
  .logros__pie { padding-top: 4px; }
}

/* ---------- Cifras del canal en el móvil: tira horizontal como las otras ----------
   (logros, aperturas y blog): a sangre, tarjetas sueltas, se asoma la siguiente
   y sin scroll vertical (01/10/2026, Rodrigo). */
@media (max-width: 600px) {
  .cifras {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    background: transparent; border: 0;
    overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: -16px;
    padding: 6px 16px 14px;
    scroll-padding-inline: 16px;
    scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
  }
  .cifra { scroll-snap-align: start; border: 1px solid var(--line); border-top: 3px solid var(--gold); }
  .cifra__num { white-space: nowrap; }   /* «1.076.502» nunca en dos líneas, ni en móviles de 320 px */
}

/* ---------- El logo real (01/10/2026): «GM Àlvar Alonso», blanco con sombra ---------- */
.marca { gap: 12px; padding: 30px 0 24px; }
.marca__logo { display: flex; align-items: center; justify-content: center; gap: 24px; }
.marca__logo-img { display: block; width: min(340px, 78vw); height: auto; }
/* La foto del favicon (con su aro dorado) junto al logo, solo en el ordenador */
.marca__foto { display: block; width: 128px; height: 128px; flex: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
@media (max-width: 900px) { .marca__foto { display: none; } }
.marca__logo:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.pie__marca { display: block; }
.pie__marca img { display: block; width: 170px; height: auto; border: 0; border-radius: 0; }

/* ---------- Pestañas de los dos formularios (02/10/2026) ---------- */
.pestanas { display: grid; grid-template-columns: 1fr 1fr; }
.pestanas [role=tab] {
  background: transparent; color: #c9d3de; cursor: pointer;
  border: 1px solid var(--line); border-bottom: 0;
  padding: 14px 10px; font: 700 12.5px/1.2 "Poppins", sans-serif; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.pestanas [role=tab]:hover { color: var(--cream); background: rgba(201, 169, 97, .1); }
.pestanas [role=tab][aria-selected=true] { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.pestanas [role=tab]:focus-visible { outline: 3px solid var(--gold-light); outline-offset: -3px; }
.contacto__formularios [role=tabpanel] { scroll-margin-top: 70px; }
.formulario__intro { margin: -8px 0 16px; font-size: 14px; color: #454d59; }

/* =========================================================
   Hero: las mejores partidas de Àlvar (02/10/2026)
   Negras arriba a la derecha, blancas abajo a la izquierda, el torneo y la
   ronda en el rótulo (una línea) con la jugada debajo, y dos flechas muy
   pálidas a los lados para pasar de partida.
   ========================================================= */
.hero__avatar { display: none; }   /* la foto que flotaba delante del tablero, fuera */
.hero__marco { position: relative; }
.hero__jugador {
  display: flex; align-items: center; gap: 8px; margin: 0;
  min-height: 34px; font-size: 14.5px; font-weight: 600; color: var(--cream);
  line-height: 1.2;
}
.hero__jugador--negras { justify-content: flex-end; padding-bottom: 10px; }
.hero__jugador--blancas { justify-content: flex-start; padding-top: 12px; }
.hero__jugador b {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--navy-900);
  background: var(--gold); padding: 3px 6px; border-radius: 2px;
}
.hero__jugador small { font-size: 12px; font-weight: 500; color: #aebccb; }
.hero__jugador::before {
  content: ""; width: 13px; height: 13px; border-radius: 50%; flex: none;
  border: 1px solid var(--gold);
}
.hero__jugador--negras::before { order: 9; background: var(--navy-900); }
.hero__jugador--blancas::before { background: #fff; }

/* El rótulo del torneo, más arriba para que tape menos las piezas */
.hero__marco .hero__jugada { top: -44px; left: 10px; min-width: 0; max-width: calc(100% - 20px); }
.hero__jugada small {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.hero__jugada > span { display: block; font-size: 15px; }   /* la jugada; solo el hijo directo, no las piezas de la ronda */

/* Las flechas: muy pálidas a los lados; se encienden al pasar por encima */
.hero__flecha {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 30px; height: 64px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--gold-light); opacity: .28;
  font: 300 46px/1 "Poppins", sans-serif;
  transition: opacity .25s, transform .25s;
}
.hero__flecha--ant { left: -38px; }
.hero__flecha--sig { right: -38px; }
.hero__flecha:hover, .hero__flecha:focus-visible { opacity: .95; }
.hero__flecha--ant:hover { transform: translate(-3px, -50%); }
.hero__flecha--sig:hover { transform: translate(3px, -50%); }
.hero__flecha:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Piezas que cambian (coronación) o se van (al paso, capturas) */
.tb .pz.sale { opacity: 0; }

@media (max-width: 600px) {
  /* En el móvil no hay hueco a los lados: las flechas, sobre el borde del tablero */
  .hero__flecha { width: 26px; height: 52px; font-size: 38px; opacity: .45; background: rgba(8, 29, 53, .55); border-radius: 3px; }
  .hero__flecha--ant { left: 2px; }
  .hero__flecha--sig { right: 2px; }
  .hero__jugador { font-size: 13.5px; }
}
/* El rótulo (izquierda) y las negras (derecha) comparten la fila de arriba:
   cada uno en su mitad, para que un torneo o un nombre largos no se pisen */
.hero__marco .hero__jugada { max-width: 58%; }
.hero__jugador--negras { padding-left: 60%; text-align: right; flex-wrap: wrap; row-gap: 2px; }
.hero__jugada small { letter-spacing: .08em; }
.hero__jugada small span { display: inline; font-size: inherit; }
.hero__jugada .ronda-corta { display: none; }
@media (max-width: 600px) {
  .hero__jugada .ronda-larga { display: none; }
  .hero__jugada .ronda-corta { display: inline; }
  .hero__marco .hero__jugada { max-width: 64%; padding: 7px 9px; }
  .hero__jugada small { font-size: 9px; letter-spacing: .05em; }
  .hero__jugador--negras { padding-left: 66%; font-size: 12.5px; }
}
@media (max-width: 600px) { .hero__jugador small { display: none; } }
/* Móviles muy estrechos (<360 px): no caben el rótulo y las negras en la
   misma fila. Las negras suben por encima del rótulo, y el rótulo usa todo el ancho. */
@media (max-width: 359px) {
  .hero__jugador--negras { padding-left: 0; padding-bottom: 50px; }
  .hero__marco .hero__jugada { max-width: calc(100% - 20px); }
}
