/* =============================================================================
   WEREF · sistema de diseño de las páginas públicas (home, guías de reglas, pilares)
   Se carga DESPUÉS de landing.css (que es un extracto generado de styles.css).
   Todo lo que se ve en la home se define aquí; lo que viene de landing.css se limita
   al test, el modal de acceso y el banner de cookies.
   ============================================================================= */

/* 1 · TOKENS ------------------------------------------------------------------ */
:root{
  /* color: oscuro casi negro + amarillo + naranja (la tarjeta roja, con moderación) */
  --w-ink:#0F1013;
  --w-pitch:#14161B;
  --w-pitch-2:#1C1F26;
  --w-paper:#F6F4EE;
  --w-white:#FFFFFF;
  --w-line:#DAD6CB;
  --w-line-dark:rgba(255,255,255,.14);
  --w-text:#17181C;
  --w-text-2:#46474E;          /* cuerpo sobre claro: contraste > 8:1 */
  --w-on-dark:#F4F2EA;
  --w-on-dark-2:#B9BCC6;       /* cuerpo sobre oscuro: contraste > 9:1 */
  --w-yellow:#FFC83D;
  --w-yellow-ink:#1A1400;
  --w-orange:#FF6A2B;
  --w-red:#E23B2E;

  /* tipografía */
  --w-font-head:'Oswald',system-ui,sans-serif;
  --w-font-body:'Work Sans',system-ui,sans-serif;
  --w-font-mono:'JetBrains Mono',ui-monospace,monospace;
  --w-fs-body:clamp(1.0625rem,.35vw + 1rem,1.1875rem);   /* 17–19 px */
  --w-fs-lead:clamp(1.1875rem,.9vw + .95rem,1.4375rem);
  --w-fs-h1:clamp(2.5rem,4.5vw,4.4rem);
  --w-fs-h2:clamp(2.1rem,4.4vw,3.9rem);                  /* 34–62 px */
  --w-fs-h3:clamp(1.3rem,1.2vw + 1rem,1.6rem);
  --w-fs-small:.9375rem;

  /* espaciado */
  --w-s1:.25rem; --w-s2:.5rem; --w-s3:.75rem; --w-s4:1rem; --w-s5:1.5rem;
  --w-s6:2rem; --w-s7:3rem; --w-s8:4.5rem; --w-s9:6.5rem; --w-s10:8.5rem;
  --w-sec:clamp(4rem,9vw,8rem);

  /* forma y profundidad */
  --w-r-sm:6px; --w-r-md:12px; --w-r-lg:20px;
  --w-sh-card:6px 6px 0 var(--w-ink);
  --w-sh-soft:0 24px 60px -24px rgba(15,16,19,.35);

  /* maqueta */
  --w-wrap:1280px;
  --w-gut:clamp(1.25rem,4vw,3.5rem);
}

/* 2 · BASE -------------------------------------------------------------------- */
body.hm{margin:0; background:var(--w-paper); color:var(--w-text); font:400 var(--w-fs-body)/1.65 var(--w-font-body); -webkit-font-smoothing:antialiased; overflow-x:clip;}
.hm *{box-sizing:border-box;}
.hm h1,.hm h2,.hm h3{font-family:var(--w-font-head); font-weight:700; margin:0; letter-spacing:.005em;}
.hm a{color:inherit;}
.hm :focus-visible{outline:3px solid var(--w-yellow); outline-offset:3px;}
.sh-wrap{width:100%; max-width:calc(var(--w-wrap) + 2 * var(--w-gut)); margin-inline:auto; padding-inline:var(--w-gut);}
.hm-sec{padding-block:var(--w-sec); position:relative;}
.hm-dark{background:var(--w-pitch); color:var(--w-on-dark);}
.hm-paper{background:var(--w-paper);}
.hm-white{background:var(--w-white); border-block:1px solid var(--w-line);}
.hm-dark .hm-sub, .hm-dark p{color:var(--w-on-dark-2);}

/* titulares: marcador de "tarjeta" y composición alterna */
.hm-sec h2, .hm-cta h2{font-size:var(--w-fs-h2); line-height:1.02; text-transform:uppercase; text-wrap:balance;}
.hm-sec h2::before{content:''; display:block; width:.55em; height:.78em; margin-bottom:.45em; background:var(--w-yellow); border-radius:5px; transform:rotate(-9deg); box-shadow:.38em .12em 0 -.02em var(--w-ink);}
.hm-dark h2::before{box-shadow:.38em .12em 0 -.02em var(--w-red);}
.hm-sub{margin:0; font-size:var(--w-fs-lead); line-height:1.5; color:var(--w-text-2); max-width:34rem;}
.hm-head{display:grid; gap:var(--w-s5); margin-bottom:var(--w-s7);}
.hm-head-split{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); align-items:end; gap:var(--w-s6) var(--w-s8);}
.hm-more{margin:var(--w-s7) 0 0;}
.saas-highlight,.cta-highlight,.hm-hl{color:var(--w-yellow);}

/* 3 · BOTONES ------------------------------------------------------------------ */
.hm .btn{display:inline-flex; align-items:center; justify-content:center; gap:.5em; min-height:52px; padding:.9rem 1.6rem; border-radius:var(--w-r-md); border:2px solid transparent; font:700 1.0625rem/1 var(--w-font-body); letter-spacing:.01em; text-decoration:none; cursor:pointer; transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease; filter:none;}
.hm .btn:hover{filter:none; transform:translate(-2px,-2px);}
.hm .btn:active{transform:translate(0,0);}
.hm .btn-yellow{background:var(--w-yellow); color:var(--w-yellow-ink); border-color:var(--w-ink); box-shadow:4px 4px 0 var(--w-ink);}
.hm .btn-yellow:hover{box-shadow:7px 7px 0 var(--w-ink);}
.hm-dark .btn-yellow, .hm-hero .btn-yellow, .sh-nav .btn-yellow{border-color:var(--w-yellow); box-shadow:4px 4px 0 rgba(255,255,255,.22);}
.hm-dark .btn-yellow:hover, .hm-hero .btn-yellow:hover, .sh-nav .btn-yellow:hover{box-shadow:7px 7px 0 rgba(255,255,255,.3);}
.hm .btn-line,.hm .btn-secondary{background:transparent; color:var(--w-text); border-color:var(--w-ink);}
.hm-dark .btn-line,.hm-hero .btn-line,.sh-nav .btn-line,.hm-dark .btn-secondary,.hm-hero .btn-secondary{color:var(--w-on-dark); border-color:rgba(255,255,255,.42);}
.hm .btn-line:hover,.hm .btn-secondary:hover{background:rgba(127,127,127,.12);}
.hm .btn-ink{background:var(--w-ink); color:#fff; border-color:var(--w-ink); box-shadow:5px 5px 0 rgba(255,255,255,.45);}
.hm .btn-ink:hover{box-shadow:8px 8px 0 rgba(255,255,255,.55);}
.hm .btn-primary{background:var(--w-ink); color:#fff; border-color:var(--w-ink);}
.hm .btn-ghost{background:transparent; color:var(--w-text); border-color:var(--w-line);}
.hm .btn-sm{min-height:44px; padding:.65rem 1.1rem; font-size:.95rem;}
.hm .cookie-banner .btn{min-height:44px; padding:.6rem 1.1rem; font-size:.95rem;}

/* 4 · NAV compartida ------------------------------------------------------------ */
.sh-nav{position:sticky; top:0; z-index:50; background:var(--w-ink); color:var(--w-on-dark); border-bottom:1px solid var(--w-line-dark);}
.sh-nav-in{display:flex; align-items:center; gap:var(--w-s6); min-height:68px;}
.sh-brand{display:flex; align-items:center; gap:.65rem; font:700 1.35rem/1 var(--w-font-head); letter-spacing:.04em; text-decoration:none; color:#fff;}
.sh-brand .mark{width:34px; height:34px; display:block;}
.sh-links{display:flex; gap:var(--w-s6); margin-left:var(--w-s5);}
.sh-links a{color:var(--w-on-dark-2); text-decoration:none; font-weight:600; font-size:var(--w-fs-small); padding-block:.4rem; border-bottom:2px solid transparent;}
.sh-links a:hover{color:#fff; border-bottom-color:var(--w-yellow);}
.sh-actions{margin-left:auto; display:flex; align-items:center; gap:.6rem;}
.sh-social{display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; color:var(--w-on-dark-2); border-radius:var(--w-r-md);}
.sh-social:hover{color:var(--w-yellow);}
.sh-social svg{width:20px; height:20px;}

/* 5 · HERO ---------------------------------------------------------------------- */
.hm-hero{position:relative; background:var(--w-pitch); color:var(--w-on-dark); padding-top:clamp(3rem,6vw,5.5rem); padding-bottom:0; margin-bottom:0; z-index:2; overflow-x:clip; overflow-clip-margin:0;}
.hm-field{position:absolute; inset:0; width:100%; height:100%; opacity:.075; pointer-events:none;}
.hm-hero-in{position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--w-s6); align-items:center;}
.hm-badge{display:inline-flex; align-items:center; gap:.65rem; margin:0 0 var(--w-s5); padding:.45rem .95rem; border:1px solid var(--w-line-dark); border-radius:999px; font:600 .8125rem/1 var(--w-font-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--w-on-dark);}
.hm-dot{width:9px; height:9px; border-radius:50%; background:#3DDC84; box-shadow:0 0 0 4px rgba(61,220,132,.2);}
.hm-hero h1{font-size:var(--w-fs-h1); line-height:.98; text-transform:uppercase; text-wrap:balance; color:#fff;}
.hm-hero h1 br{display:none;}
.hm-lead{margin:var(--w-s5) 0 0; max-width:33rem; font-size:var(--w-fs-lead); line-height:1.5; color:var(--w-on-dark-2);}
.hm-btns{display:flex; flex-wrap:wrap; gap:var(--w-s4); margin-top:var(--w-s6);}
.hm-proof{margin:var(--w-s5) 0 0; font-size:var(--w-fs-small); color:var(--w-on-dark-2); display:flex; flex-wrap:wrap; gap:.5rem .8rem; align-items:center;}
.hm-stars{color:var(--w-yellow); letter-spacing:.18em;}
.hm-stats{display:flex; flex-wrap:wrap; margin-top:var(--w-s7); padding-top:var(--w-s5); border-top:1px solid var(--w-line-dark);}
.hm-stat{padding:0 var(--w-s6); border-left:1px solid var(--w-line-dark); display:flex; flex-direction:column; gap:.25rem;}
.hm-stat:first-child{padding-left:0; border-left:0;}
.hm-stat .num{font:700 clamp(2.4rem,4vw,3.6rem)/1 var(--w-font-head); color:#fff; white-space:nowrap;}
.hm-stat .lbl{font:600 .75rem/1.2 var(--w-font-mono); text-transform:uppercase; letter-spacing:.12em; color:var(--w-on-dark-2);}
.hm-hero-visual{position:relative; margin-right:calc(-1 * (var(--w-gut) + 5vw)); margin-bottom:calc(-1 * clamp(3rem,9vw,9rem)); align-self:end; padding-top:2rem;}
.hm-card{position:absolute; width:clamp(46px,6vw,84px); aspect-ratio:3/4; border-radius:10px; z-index:0;}
.hm-card-y{background:var(--w-yellow); left:-3%; top:2%; transform:rotate(-14deg);}
.hm-card-r{background:var(--w-red); left:-8.5%; top:10%; transform:rotate(-24deg); opacity:.95;}

/* maqueta de la app (tamaños en em: se escala sola) */
.mock{position:relative; z-index:1; font-size:clamp(9.5px,1.02vw,14.8px); background:var(--w-paper); border-radius:1.1em; overflow:hidden; color:var(--w-text); transform:rotate(-2.4deg); transform-origin:50% 100%; box-shadow:0 3em 6em -1.5em rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1);}
.mock-bar{display:flex; align-items:center; gap:.5em; padding:.85em 1.1em; background:var(--w-ink);}
.mock-bar i{width:.8em; height:.8em; border-radius:50%; background:rgba(255,255,255,.22);}
.mock-bar span{margin:0 auto; padding:.2em 2em; border-radius:2em; background:rgba(255,255,255,.08); color:rgba(255,255,255,.65); font:500 .8em var(--w-font-mono);}
.mock-body{display:grid; grid-template-columns:11.5em minmax(0,1fr); min-height:31em;}
.mock-side{background:var(--w-ink); padding:1.2em .9em; display:flex; flex-direction:column; gap:.3em;}
.mock-brand{display:flex; align-items:center; gap:.55em; margin:0 .5em 1.3em; font:700 1.1em var(--w-font-head); letter-spacing:.05em; color:#fff;}
.mock-brand b{width:1.4em; height:1.4em; border-radius:.35em; background:linear-gradient(135deg,var(--w-orange),var(--w-yellow));}
.mock-nav{padding:.7em .8em; border-radius:.6em; font:600 .88em var(--w-font-body); color:rgba(255,255,255,.62);}
.mock-nav.on{background:rgba(255,200,61,.16); color:#fff; box-shadow:inset 0 0 0 1px rgba(255,200,61,.5);}
.mock-main{padding:1.2em; display:flex; flex-direction:column; gap:1em; min-width:0;}
.mock-hello{display:flex; align-items:center; justify-content:space-between; gap:1em; background:var(--w-pitch); color:#fff; border-radius:.9em; padding:1.3em 1.4em;}
.mock-hello small{display:block; font:600 .68em var(--w-font-mono); letter-spacing:.14em; color:rgba(255,255,255,.6);}
.mock-hello b{display:block; margin:.3em 0; font:700 1.65em/1.05 var(--w-font-head); text-transform:uppercase;}
.mock-hello span{display:block; font-size:.78em; color:rgba(255,255,255,.7);}
.mock-btns{display:flex; gap:.5em; margin-top:.9em;}
.mock-btns i{font-style:normal; padding:.55em 1em; border-radius:.55em; font:700 .8em var(--w-font-body); background:rgba(255,255,255,.12);}
.mock-btns i.y{background:var(--w-yellow); color:var(--w-yellow-ink);}
.mock-ring{flex:none; width:6em; height:6em; border-radius:50%; background:conic-gradient(var(--w-yellow) 42%, rgba(255,255,255,.16) 0); display:grid; place-items:center; position:relative;}
.mock-ring::before{content:''; position:absolute; inset:.6em; border-radius:50%; background:var(--w-pitch);}
.mock-ring b{position:relative; margin:0; font-size:1.25em;}
.mock-kpis{display:grid; grid-template-columns:repeat(4,1fr); gap:.7em;}
.mock-kpis div{background:#fff; border:1px solid var(--w-line); border-radius:.8em; padding:.8em .9em;}
.mock-kpis b{display:block; font:700 1.5em var(--w-font-head);}
.mock-kpis span{font:600 .7em var(--w-font-mono); text-transform:uppercase; letter-spacing:.06em; color:var(--w-text-2);}
.mock-laws{display:grid; grid-template-columns:repeat(4,1fr); gap:.7em;}
.mock-laws div{background:#fff; border:1px solid var(--w-line); border-radius:.8em; padding:.8em .9em; display:flex; flex-direction:column; gap:.3em;}
.mock-laws b{font:700 1.6em/1 var(--w-font-head);}
.mock-laws span{font:600 .76em/1.25 var(--w-font-body); min-height:2.5em;}
.mock-laws i{display:block; height:.35em; border-radius:1em; background:linear-gradient(90deg,var(--w-orange),var(--w-yellow));}
.mock-laws .red{background:var(--w-red); border-color:transparent; color:#fff;}
.mock-laws .gold{background:var(--w-yellow); border-color:transparent; color:var(--w-yellow-ink);}
.mock-laws .red i,.mock-laws .gold i{background:rgba(255,255,255,.85);}

/* 6 · TEST (hoja de examen) -------------------------------------------------------- */
.hm-quiz{padding-top:calc(var(--w-sec) + clamp(2rem,8vw,8rem)); background:var(--w-paper);}
.hm-quiz-intro{display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:var(--w-s8); align-items:center;}
.hm-quiz-copy p{margin:var(--w-s5) 0 var(--w-s5); max-width:30rem; color:var(--w-text-2); font-size:var(--w-fs-lead);}
.quiz-meta{display:flex; flex-wrap:wrap; gap:.6rem; margin:0 0 var(--w-s6); justify-content:flex-start;}
.quiz-meta-item{display:inline-flex; align-items:center; gap:.5rem; padding:.45rem .8rem; border:2px solid var(--w-ink); border-radius:var(--w-r-sm); font:700 .85rem/1 var(--w-font-mono); text-transform:uppercase; letter-spacing:.04em; color:var(--w-ink);}
.quiz-meta-item svg{width:16px; height:16px;}
.hm-quiz .quiz-segmented{display:inline-flex; margin:0 0 var(--w-s4); padding:4px; background:var(--w-white); border:2px solid var(--w-ink); border-radius:var(--w-r-md); gap:4px;}
.hm-quiz .quiz-seg-btn{padding:.7rem 1.6rem; border-radius:8px; font:700 1rem var(--w-font-body); color:var(--w-text-2); background:transparent;}
.hm-quiz .quiz-seg-btn.active{background:var(--w-ink); color:#fff; box-shadow:none;}
.hm-quiz .quiz-mode-desc{margin:0 0 var(--w-s6); max-width:28rem; font-size:var(--w-fs-small); color:var(--w-text-2);}
.hm-quiz .btn-quiz-cta{display:inline-flex; width:auto; max-width:none; margin:0; height:auto; min-height:56px; padding-inline:2rem; font-size:1.125rem; border-radius:var(--w-r-md); box-shadow:4px 4px 0 var(--w-ink);}
.hm-sheet{background:var(--w-white); border:2px solid var(--w-ink); border-radius:var(--w-r-lg); box-shadow:10px 10px 0 var(--w-ink); overflow:hidden; transform:rotate(1.4deg);}
.hm-sheet-bar{display:flex; justify-content:space-between; align-items:center; padding:.8rem 1.25rem; background:var(--w-ink); color:#fff; font:600 .8125rem/1 var(--w-font-mono); letter-spacing:.1em; text-transform:uppercase;}
.hm-sheet-bar b{color:var(--w-yellow);}
.hm-sheet-body{padding:clamp(1.25rem,2.4vw,2rem);}
.hm-sheet-q{margin:0 0 var(--w-s5); font:600 clamp(1.2rem,1.6vw,1.5rem)/1.35 var(--w-font-body); color:var(--w-text);}
.hm-sheet ol{list-style:none; margin:0; padding:0; display:grid; gap:.7rem;}
.hm-sheet li{display:flex; align-items:center; gap:.9rem; padding:.8rem 1rem; border:2px solid var(--w-line); border-radius:var(--w-r-md); font-weight:500; color:var(--w-text);}
.hm-sheet li b{flex:none; width:2.1rem; height:2.1rem; display:grid; place-items:center; border-radius:8px; background:var(--w-paper); font:700 1rem var(--w-font-mono);}
.hm-sheet li.on{border-color:var(--w-ink); background:var(--w-yellow);}
.hm-sheet li.on b{background:var(--w-ink); color:var(--w-yellow);}
.hm-sheet-foot{padding:.85rem 1.25rem; border-top:2px solid var(--w-ink); font:600 .75rem/1 var(--w-font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--w-text-2);}

/* test en juego: la misma hoja de examen */
.hm-quiz #quiz-play, .hm-quiz #quiz-result{max-width:860px; margin-inline:auto; background:var(--w-white); border:2px solid var(--w-ink); border-radius:var(--w-r-lg); box-shadow:10px 10px 0 var(--w-ink); padding:0 0 var(--w-s6); overflow:hidden; text-align:left;}
.hm-quiz .quiz-topbar-landing{display:flex; justify-content:space-between; margin:0 0 var(--w-s5); padding:.85rem 1.5rem; background:var(--w-ink); color:#fff; border-radius:0; font:600 .8125rem/1 var(--w-font-mono); letter-spacing:.1em; text-transform:uppercase;}
.hm-quiz .quiz-topbar-landing .score{color:var(--w-yellow);}
.hm-quiz #quiz-tag{margin:0 1.5rem .6rem; font:600 .75rem/1.2 var(--w-font-mono) !important; letter-spacing:.1em !important; color:var(--w-text-2) !important; text-align:left !important; text-transform:uppercase;}
.hm-quiz .qtext{margin:0 1.5rem var(--w-s5); text-align:left; font:600 clamp(1.2rem,1.8vw,1.5rem)/1.35 var(--w-font-body); color:var(--w-text);}
.hm-quiz #quiz-options{padding-inline:1.5rem; display:grid; gap:.7rem;}
.hm-quiz .option{display:flex; align-items:flex-start; gap:.9rem; margin:0; padding:.85rem 1rem; border:2px solid var(--w-line); border-radius:var(--w-r-md); background:var(--w-white); font:500 1.0625rem/1.4 var(--w-font-body); color:var(--w-text);}
.hm-quiz button.option:hover:not(:disabled){border-color:var(--w-ink); background:#FFF8E3;}
.hm-quiz .option .letter{flex:none; width:2.1rem; height:2.1rem; display:grid; place-items:center; margin:0; border-radius:8px; background:var(--w-paper); font:700 1rem var(--w-font-mono); color:var(--w-ink);}
.hm-quiz .option.correct{border-color:#1E8F5E; background:#E9F7EF;}
.hm-quiz .option.correct .letter{background:#1E8F5E; color:#fff;}
.hm-quiz .option.incorrect{border-color:var(--w-red); background:#FDECEA;}
.hm-quiz .option.incorrect .letter{background:var(--w-red); color:#fff;}
.hm-quiz .option.selected{border-color:var(--w-ink); background:var(--w-yellow);}
.hm-quiz #quiz-feedback, .hm-quiz #quiz-next-wrap{margin-inline:1.5rem;}
.hm-quiz .card-feedback{border-radius:var(--w-r-md); font-size:1rem;}
.hm-quiz .card-feedback .msg{font-size:1rem;}
.hm-quiz #quiz-result{padding:var(--w-s7) clamp(1.25rem,4vw,3rem) var(--w-s7);}
.hm-quiz .result-hero{border:2px solid var(--w-ink); box-shadow:none; background:var(--w-yellow); border-radius:var(--w-r-md);}
.hm-quiz .result-hero .big{font-size:clamp(3.5rem,8vw,5.5rem); color:var(--w-ink);}
.hm-quiz .result-hero .label{color:var(--w-yellow-ink); font-size:1rem;}
.hm-quiz #quiz-result p{color:var(--w-text-2) !important; font-size:1.0625rem !important;}
.hm-quiz .quiz-review-item{border:2px solid var(--w-line); border-radius:var(--w-r-md); background:var(--w-paper);}
.hm-quiz .quiz-review-q{font-size:1.0625rem;}

/* 7 · FUNCIONES (bento) --------------------------------------------------------------- */
.bento{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:var(--w-s4);}
.bento-card{position:relative; display:flex; flex-direction:column; gap:var(--w-s3); text-align:left; padding:clamp(1.25rem,2.2vw,2rem); background:var(--w-pitch-2); color:var(--w-on-dark); border:1px solid var(--w-line-dark); border-radius:var(--w-r-lg); font:inherit; cursor:pointer; overflow:hidden; transition:transform .15s ease, border-color .15s ease;}
.bento-card:hover{transform:translateY(-4px); border-color:var(--w-yellow);}
.bento-card h3{font-size:var(--w-fs-h3); text-transform:uppercase; line-height:1.1;}
.bento-card p{margin:0; color:var(--w-on-dark-2); font-size:1.0625rem; line-height:1.5; max-width:26rem;}
.bento-ic{width:44px; height:44px; display:grid; place-items:center; color:var(--w-yellow); margin-bottom:var(--w-s2);}
.bento-ic svg{width:34px; height:34px;}
.saas-card-link{margin-top:auto; padding-top:var(--w-s4); font:700 .95rem var(--w-font-body); color:var(--w-yellow); display:inline-flex; gap:.4rem; align-items:center;}
.bento-xl{grid-column:span 6; min-height:25rem;}
.bento-xl:first-child{grid-column:span 7;}
.bento-xl:nth-child(2){grid-column:span 5;}
.bento-sm{grid-column:span 3; min-height:15rem;}
.bento-rules{background:var(--w-yellow); color:var(--w-yellow-ink); border-color:var(--w-yellow);}
.bento-rules:hover{border-color:var(--w-ink);}
.bento-rules .bento-ic,.bento-rules .saas-card-link{color:var(--w-ink);}
.bento-rules p{color:#3A2E00;}
.bento-mini{margin-top:var(--w-s4); display:grid; gap:.55rem;}
.bm-row{display:grid; grid-template-columns:2.4rem minmax(0,1fr) 5rem; align-items:center; gap:.8rem; padding:.6rem .8rem; background:rgba(15,16,19,.09); border-radius:var(--w-r-sm); font:600 .95rem var(--w-font-body);}
.bm-row b{font:700 1.5rem/1 var(--w-font-head);}
.bm-row i{display:block; height:.5rem; border-radius:1rem; background:rgba(15,16,19,.18); position:relative; overflow:hidden;}
.bm-row i::after{content:''; position:absolute; inset:0 auto 0 0; width:var(--p); background:var(--w-ink); border-radius:1rem;}
.bm-rank{margin-top:var(--w-s4); display:flex; align-items:baseline; gap:1rem; flex-wrap:wrap;}
.bm-rank b{font:700 clamp(3.5rem,6vw,5.5rem)/1 var(--w-font-head); color:var(--w-yellow);}
.bm-rank span{font:600 1rem var(--w-font-mono); letter-spacing:.06em; color:#fff;}
.bm-bar{height:.6rem; border-radius:1rem; background:rgba(255,255,255,.14); overflow:hidden;}
.bm-bar::after{content:''; display:block; height:100%; width:64%; background:var(--w-yellow);}
.bm-lbl{font:600 .85rem var(--w-font-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--w-on-dark-2);}

/* 8 · ASÍ FUNCIONA --------------------------------------------------------------------- */
.steps{list-style:none; margin:var(--w-s7) 0 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--w-s7); position:relative; counter-reset:step;}
.steps::before{content:''; position:absolute; left:0; right:0; top:clamp(2.4rem,4vw,3.4rem); border-top:3px dashed var(--w-ink); opacity:.28; z-index:0;}
.steps li{position:relative; z-index:1;}
.step-n{display:inline-block; padding-right:1.2rem; background:var(--w-paper); font:700 clamp(4.5rem,8vw,7rem)/1 var(--w-font-head); color:var(--w-ink);}
.steps li:nth-child(1) .step-n{color:var(--w-yellow); -webkit-text-stroke:2px var(--w-ink);}
.steps h3{margin:var(--w-s4) 0 var(--w-s2); font-size:var(--w-fs-h3); text-transform:uppercase;}
.steps p{margin:0; color:var(--w-text-2); max-width:22rem;}

/* 9 · LAS 17 REGLAS (dorsales) ---------------------------------------------------------- */
.jerseys{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:var(--w-s3);}
.jerseys a{display:flex; flex-direction:column; justify-content:space-between; gap:var(--w-s4); min-height:11.5rem; padding:1.1rem 1.15rem 1.25rem; border:1px solid var(--w-line-dark); border-radius:var(--w-r-md); background:var(--w-pitch-2); color:var(--w-on-dark); text-decoration:none; transition:background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;}
.jerseys .j-n{font:700 clamp(3rem,4.6vw,4.4rem)/.9 var(--w-font-head); color:var(--w-yellow); -webkit-text-stroke:0;}
.jerseys .j-t{font:600 1rem/1.3 var(--w-font-body);}
.jerseys a:hover{background:var(--w-yellow); color:var(--w-yellow-ink); border-color:var(--w-yellow); transform:translateY(-4px) rotate(-1deg);}
.jerseys a:hover .j-n{color:var(--w-ink);}
.jerseys li:nth-child(17){grid-column:span 2;}

/* 10 · GUÍAS ----------------------------------------------------------------------------- */
.guides{list-style:none; margin:0; padding:0; border-top:2px solid var(--w-ink);}
.guides a{display:grid; grid-template-columns:7rem minmax(0,1.1fr) minmax(0,1fr) auto; gap:var(--w-s5); align-items:center; padding:1.6rem 0; border-bottom:2px solid var(--w-ink); text-decoration:none; color:var(--w-text); transition:padding .15s ease, background .15s ease;}
.guides a:hover{background:var(--w-yellow); padding-inline:1.25rem;}
.g-cat{font:700 .8125rem/1 var(--w-font-mono); letter-spacing:.1em; text-transform:uppercase;}
.g-t{font:700 clamp(1.5rem,2.6vw,2.4rem)/1.05 var(--w-font-head); text-transform:uppercase;}
.g-d{color:var(--w-text-2);}
.guides a:hover .g-d{color:var(--w-yellow-ink);}
.g-m{display:inline-flex; align-items:center; gap:.7rem; font:600 .875rem var(--w-font-mono); white-space:nowrap;}
.g-m svg{width:34px; height:34px;}

/* 11 · FAQ ---------------------------------------------------------------------------------- */
.hm-faq-grid{display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:var(--w-s8); align-items:start;}
.hm-faq-head{position:sticky; top:96px;}
.hm-faq-head .hm-sub{margin-top:var(--w-s4);}
.hm .faq-list{display:flex; flex-direction:column; gap:0; border-top:2px solid var(--w-ink);}
.hm .faq-item{background:transparent; border:0; border-bottom:2px solid var(--w-ink); border-radius:0; padding:0;}
.hm .faq-item summary{padding:1.35rem 3rem 1.35rem 0; font:700 1.1875rem/1.3 var(--w-font-body); color:var(--w-text);}
.hm .faq-item summary::after{content:''; right:0; width:1.6rem; height:1.6rem; background:var(--w-yellow); border:2px solid var(--w-ink); border-radius:6px; transform:translateY(-50%); font:0/0 var(--w-font-body);}
.hm .faq-item[open] summary::after{content:''; background:var(--w-ink);}
.hm .faq-item p{margin:0 0 1.5rem; max-width:40rem; color:var(--w-text-2); font:400 1.0625rem/1.65 var(--w-font-body);}

/* 12 · CTA final ------------------------------------------------------------------------------- */
.hm-cta{background:var(--w-yellow); color:var(--w-yellow-ink); padding-block:var(--w-sec); overflow:hidden; position:relative;}
.hm-cta-in{display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:var(--w-s7); align-items:center;}
.hm-cta h2{font-size:clamp(2.4rem,5.4vw,4.75rem); line-height:1.12; color:var(--w-ink);}
.hm-cta .cta-highlight{color:var(--w-ink); background:linear-gradient(transparent 13%,var(--w-white) 13%,var(--w-white) 87%,transparent 87%); padding:0 .2em; box-decoration-break:clone; -webkit-box-decoration-break:clone;}
.hm-cta .cta-sub{margin:var(--w-s5) 0 var(--w-s6); font-size:var(--w-fs-lead); color:var(--w-yellow-ink); max-width:30rem;}
.cta-benefits{display:flex; flex-wrap:wrap; gap:var(--w-s5) var(--w-s7); margin-top:var(--w-s7);}
.cta-benefit{display:flex; gap:.8rem; align-items:flex-start; max-width:14rem;}
.cta-benefit-icon{flex:none; width:36px; height:36px; border-radius:10px; background:var(--w-ink); color:var(--w-yellow); display:flex; align-items:center; justify-content:center;}
.cta-benefit-icon svg{width:20px; height:20px; color:var(--w-yellow);}
.cta-benefit-title{font:700 1.05rem var(--w-font-body); color:var(--w-ink);}
.cta-benefit-desc{font-size:.95rem; color:#3A2E00;}
.hm-cta-art{position:relative; min-height:22rem;}
.hm-cta-art .card-r,.hm-cta-art .card-d{position:absolute; border-radius:clamp(14px,2vw,26px);}
.hm-cta-art .card-r{width:min(62%,15rem); aspect-ratio:3/4; background:var(--w-red); right:8%; top:6%; transform:rotate(14deg); box-shadow:10px 10px 0 var(--w-ink);}
.hm-cta-art .card-d{width:min(62%,15rem); aspect-ratio:3/4; background:var(--w-ink); right:42%; top:22%; transform:rotate(-12deg);}

/* 13 · FOOTER compartido --------------------------------------------------------------------------- */
.sh-foot{background:var(--w-ink); color:var(--w-on-dark); padding-block:var(--w-s8) var(--w-s6);}
.sh-foot-top{display:grid; grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr)); gap:var(--w-s7); padding-bottom:var(--w-s7); border-bottom:1px solid var(--w-line-dark);}
.sh-foot .sh-brand{font-size:1.6rem;}
.sh-foot-tag{margin:var(--w-s4) 0; max-width:22rem; color:var(--w-on-dark-2); font-size:var(--w-fs-small);}
.sh-foot-social{display:flex; gap:.4rem;}
.sh-foot-social a{display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; border:1px solid var(--w-line-dark); border-radius:var(--w-r-md); color:var(--w-on-dark);}
.sh-foot-social a:hover{border-color:var(--w-yellow); color:var(--w-yellow);}
.sh-foot-social svg{width:20px; height:20px;}
.sh-foot-col{display:flex; flex-direction:column; gap:.55rem;}
.sh-foot-h{margin:0 0 var(--w-s2); font:700 .8125rem/1 var(--w-font-mono); letter-spacing:.14em; text-transform:uppercase; color:var(--w-yellow);}
.sh-foot-col a{color:var(--w-on-dark-2); text-decoration:none; font-size:var(--w-fs-small);}
.sh-foot-col a:hover{color:#fff; text-decoration:underline; text-decoration-color:var(--w-yellow);}
.sh-foot-bottom{display:flex; flex-wrap:wrap; justify-content:space-between; gap:var(--w-s3); padding-top:var(--w-s5); font-size:.875rem; color:var(--w-on-dark-2);}

/* 14 · PÁGINAS INTERNAS (guías de reglas y pilares): mismo lenguaje ----------------------------------- */
body.pg .pg-main{max-width:calc(820px + 2 * var(--w-gut)); padding:var(--w-s7) var(--w-gut) var(--w-s9);}
body.pg .pg-head h1{font-size:clamp(2.2rem,5vw,3.8rem); line-height:1; text-transform:uppercase; color:var(--w-ink); margin:var(--w-s4) 0 var(--w-s5);}
body.pg .pg-kicker{font:700 .8125rem/1 var(--w-font-mono); letter-spacing:.12em; color:var(--w-text);}
body.pg .pg-kicker::before{content:''; display:inline-block; width:.65em; height:.9em; margin-right:.6em; vertical-align:-.1em; background:var(--w-yellow); border-radius:3px; transform:rotate(-9deg);}
body.pg .pg-article{font-size:var(--w-fs-body); line-height:1.7; color:var(--w-text);}
body.pg .pg-article h2{font-size:clamp(1.7rem,3vw,2.3rem); text-transform:uppercase; line-height:1.05; margin-top:var(--w-s8);}
body.pg .pg-article p, body.pg .pg-article li{color:var(--w-text);}
body.pg .pg-q{border:2px solid var(--w-ink); border-radius:var(--w-r-md); background:var(--w-white);}
body.pg .pg-q-a summary{color:var(--w-text);}
body.pg .pg-cta{background:var(--w-yellow); color:var(--w-yellow-ink); border:2px solid var(--w-ink); border-radius:var(--w-r-lg); box-shadow:var(--w-sh-card);}
body.pg .pg-cta h2{color:var(--w-ink); font-size:clamp(1.8rem,3.4vw,2.6rem);}
body.pg .pg-cta p{color:var(--w-yellow-ink);}
body.pg .pg-cta .btn-secondary{background:transparent; color:var(--w-ink); border-color:var(--w-ink);}
body.pg .pg-cta .btn-yellow{background:var(--w-ink); color:#fff; border-color:var(--w-ink); box-shadow:4px 4px 0 rgba(255,255,255,.5);}
body.pg .pg-crumbs, body.pg .pg-note{color:var(--w-text-2);}
body.pg .pg-rules li a, body.pg .pg-rules li.pg-soon{border:2px solid var(--w-ink); border-radius:var(--w-r-md);}
body.pg .pg-rule-n{background:var(--w-yellow); color:var(--w-ink); font-size:1.2rem; border-radius:8px; width:2.6rem; height:2.6rem;}
body.pg .pg-pager a{border:2px solid var(--w-ink); border-radius:var(--w-r-md);}

/* 15 · RESPONSIVE ------------------------------------------------------------------------------------- */
@media (max-width:1100px){
  .hm-hero-in{grid-template-columns:minmax(0,1fr);}
  .hm-hero-visual{margin-right:calc(-1 * var(--w-gut)); margin-left:clamp(0rem,8vw,6rem); margin-bottom:calc(-1 * clamp(2rem,10vw,6rem));}
  .jerseys{grid-template-columns:repeat(4,minmax(0,1fr));}
  .jerseys li:nth-child(17){grid-column:auto;}
  .bento-sm{grid-column:span 6;}
  .bento-xl,.bento-xl:first-child,.bento-xl:nth-child(2){grid-column:span 12;}
  .sh-foot-top{grid-template-columns:repeat(3,minmax(0,1fr));}
  .sh-foot-top > :first-child{grid-column:1 / -1;}
}
@media (max-width:900px){
  .hm-head-split,.hm-quiz-intro,.hm-faq-grid,.hm-cta-in{grid-template-columns:minmax(0,1fr);}
  .hm-faq-head{position:static;}
  .hm-sheet{transform:none; box-shadow:6px 6px 0 var(--w-ink);}
  .steps{grid-template-columns:minmax(0,1fr); gap:var(--w-s6);}
  .steps::before{left:2rem; right:auto; top:0; bottom:0; border-top:0; border-left:3px dashed var(--w-ink);}
  .step-n{padding:0 0 .4rem; background:var(--w-paper);}
  .guides a{grid-template-columns:minmax(0,1fr) auto; row-gap:.5rem;}
  .g-d{grid-column:1 / -1; grid-row:3;}
  .g-cat{grid-column:1 / -1;}
  .hm-cta-art{min-height:14rem;}
  .sh-links{display:none;}
}
@media (max-width:640px){
  .sh-social{display:none;}
  .sh-nav-in{gap:var(--w-s3);}
  .hm .btn{width:100%;}
  .sh-actions .btn,.hm-quiz .btn-quiz-cta{width:auto;}
  .sh-actions .btn{white-space:nowrap; padding-inline:.85rem; font-size:.875rem;}
  .hm-badge{font-size:.7rem; line-height:1.35; letter-spacing:.04em; padding:.5rem .85rem;}
  .hm-cta .btn,.hm-hero .hm-btns .btn{width:100%;}
  .hm-stats{flex-wrap:nowrap;}
  .hm-stat{padding:0 .75rem;}
  .hm-stat .lbl{font-size:.625rem; letter-spacing:.06em;}
  .hm-stat .num{font-size:1.9rem;}
  .jerseys{grid-template-columns:repeat(2,minmax(0,1fr));}
  .jerseys a{min-height:9.5rem;}
  .bento-sm{grid-column:span 12; min-height:0;}
  .bento-xl{min-height:0;}
  .bm-row{grid-template-columns:2rem minmax(0,1fr) 3.5rem;}
  .sh-foot-top{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hm-card{display:none;}
}
@media (prefers-reduced-motion:reduce){ .hm *{transition:none !important; animation:none !important;} }
@media (max-width:400px){
  .sh-nav-in{gap:.5rem;}
  .sh-brand{font-size:1.05rem; gap:.4rem;}
  .sh-actions{gap:.4rem;}
  .sh-actions .btn{padding-inline:.65rem; font-size:.8125rem;}
}

/* Enlace "Configurar cookies" del pie y banner de consentimiento (se usan en todas las páginas) */
.sh-foot-link{padding:0; margin:0; background:none; border:0; font:inherit; font-size:var(--w-fs-small); color:var(--w-on-dark-2); text-align:left; cursor:pointer; text-decoration:underline; text-decoration-color:var(--w-yellow); text-underline-offset:.2em;}
.sh-foot-link:hover{color:#fff;}
.ck{position:fixed; left:0; right:0; bottom:0; z-index:90; padding:.9rem var(--w-gut) calc(.9rem + env(safe-area-inset-bottom)); background:var(--w-white); color:var(--w-text); border-top:3px solid var(--w-ink); box-shadow:0 -10px 30px -12px rgba(15,16,19,.35);}
.ck[hidden]{display:none;}
.ck-in{display:flex; align-items:center; gap:var(--w-s5); max-width:var(--w-wrap); margin-inline:auto;}
.ck-main{flex:1; min-width:0;}
.ck-t{margin:0 0 .15rem; font:700 .75rem/1.2 'JetBrains Mono',ui-monospace,monospace; letter-spacing:.14em; text-transform:uppercase;}
.ck-d{margin:0; font-size:.9rem; line-height:1.5; color:var(--w-text);}
.ck-d a{color:var(--w-ink); text-decoration:underline; text-decoration-color:var(--w-yellow); text-decoration-thickness:.16em;}
.ck-conf{margin-top:.7rem; display:grid; gap:.4rem; max-width:26rem;}
.ck-row{display:flex; justify-content:space-between; align-items:center; gap:1rem; margin:0; padding:.5rem .7rem; border:1px solid var(--w-line); border-radius:8px; font-size:.9rem;}
.ck-row input{width:1.3rem; height:1.3rem; accent-color:var(--w-ink);}
.ck-actions{display:flex; gap:.6rem; flex:none;}
.ck-btn{padding:.7rem 1.1rem; font:700 .9rem/1 var(--w-font-body, 'Work Sans', sans-serif); color:var(--w-ink); background:var(--w-white); border:2px solid var(--w-ink); border-radius:10px; cursor:pointer; white-space:nowrap; transition:background .12s;}
.ck-btn:hover{background:var(--w-yellow);}
.ck-btn:focus-visible{outline:3px solid var(--w-yellow); outline-offset:2px;}
@media (max-width:760px){ .ck-in{flex-direction:column; align-items:stretch; gap:.8rem;} .ck-actions{display:grid; grid-template-columns:repeat(3,1fr);} .ck-btn{padding:.75rem .4rem; white-space:normal;} }
.ck label,.ck strong{text-transform:none; letter-spacing:0; font-family:var(--w-font-body, "Work Sans", sans-serif); font-size:.9rem; font-weight:700; color:var(--w-text); margin:0;}
.ck .ck-row span{font-size:.875rem; color:var(--w-text-2);}
.ck-conf[hidden]{display:none !important;}
