/* ============================================================
   recursos.ismaelcalero.com — Biblioteca de recursos
   Mismo sistema que ismaelcalero.com:
   navy #000080 · esmeralda #51C878 · tinta #111 · menta #F1FEF7
   lima #E5F83A = SIEMPRE «reservar 1ª sesión» (un color, un significado)
   contorno = llamada gratis de dudas · verde WhatsApp = escribir
   Tipos: Montserrat (display) · Google Sans (cuerpo)
   ============================================================ */

@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url('../fonts/GoogleSans-VariableFont_GRAD_opsz_wght.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../fonts/Caveat-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #000080; --navy-950: #000033; --navy-900: #00004d; --navy-700: #0a0a8f; --navy-500: #1a1aa6;
  --navy-300: #6f6fce; --navy-100: #d9d9f2; --navy-050: #eeeefb;
  --emerald: #51C878; --emerald-700: #2f9e5c; --emerald-300: #8fdcaa; --emerald-100: #d3f1de; --emerald-050: #eafaf0;
  --lime: #E5F83A; --lime-text: #697408; --emerald-text: #218050;
  --ink: #111111; --mint: #F1FEF7;
  --wa: #0F7D70;
  --bg: var(--mint); --surface: #fff; --surface-sunk: #f2f2f5;
  --fg1: #111; --fg2: #4b4b53; --fg3: #6e6e78;
  --border: #e3e3e8; --border-strong: #b9b9c0;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Google Sans', system-ui, sans-serif;
  --font-script: 'Caveat', 'Segoe Script', cursive;
  --shadow-sm: 0 2px 8px rgba(17,17,17,.06);
  --shadow-md: 0 10px 30px rgba(17,17,17,.08);
  --shadow-lg: 0 24px 60px rgba(17,17,17,.14);
  --shadow-navy: 0 18px 44px rgba(0,0,128,.22);
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --topbar-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.65; color: var(--fg1);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; color: inherit; }
b, strong { font-weight: 700; }
::selection { background: var(--lime); color: var(--ink); }
mark { background: linear-gradient(transparent 58%, rgba(229,248,58,.6) 58%); color: inherit; padding: 0 .06em; }
[id] { scroll-margin-top: calc(var(--topbar-h) + 20px); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; position: relative; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -64px; left: 16px; z-index: 400; background: var(--navy); color: #fff; font-weight: 700;
  padding: 12px 18px; border-radius: 0 0 12px 12px; text-decoration: none; transition: top .2s; }
.skip-link:focus-visible { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, label:focus-within {
  outline: 3px solid var(--navy-500); outline-offset: 2px; border-radius: 8px; }
.on-dark a:focus-visible, .on-dark button:focus-visible, .on-dark input:focus-visible { outline-color: var(--lime); }

/* film grain de la casa */
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- Tipografía utilitaria --------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--emerald-text); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--emerald-300); }
.h-xl { font-size: clamp(42px, 7.4vw, 96px); font-weight: 900; letter-spacing: -.035em; line-height: .98; }
.h-lg { font-size: clamp(32px, 4.6vw, 58px); font-weight: 850; letter-spacing: -.03em; line-height: 1.04; }
.h-md { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--fg2); max-width: 60ch; }
.on-dark .lead { color: rgba(241,254,247,.78); }
.script { font-family: var(--font-script); font-weight: 700; font-size: 1.25em; color: var(--emerald-text); letter-spacing: 0; }
.on-dark .script { color: var(--lime); }
.muted { color: var(--fg3); }
.small { font-size: 14.5px; }

/* ---- Botones ------------------------------------------------ */
.btn { --bh: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh);
  padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-display); font-weight: 800;
  font-size: 16px; letter-spacing: -.005em; text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12.5px; opacity: .8; letter-spacing: 0; }
.btn .btn-2l { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 28px rgba(229,248,58,.35); }
.btn-lime:hover { box-shadow: 0 16px 40px rgba(229,248,58,.5); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: var(--shadow-navy); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-sm { --bh: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
/* brillo que cruza el botón (micro-interacción de la marca) */
.btn-lime::after, .btn-navy::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transition: none; }
.btn-lime:hover::after, .btn-navy:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Barra superior ---------------------------------------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--topbar-h); display: flex; align-items: center;
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s, color .35s; color: #fff; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 1320px; }
.topbar.is-solid, .page-resource .topbar { background: rgba(241,254,247,.82); color: var(--ink);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgba(17,17,17,.07); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display);
  font-weight: 900; letter-spacing: .02em; font-size: 15px; line-height: 1; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span small { display: block; font-weight: 600; font-family: var(--font-body); letter-spacing: .06em; font-size: 11.5px;
  opacity: .7; margin-top: 3px; text-transform: uppercase; }
.topbar-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  cursor: pointer; color: inherit; font-family: var(--font-body); }
.topbar.is-solid .topbar-status, .page-resource .topbar-status { background: #fff; border-color: var(--border); }
.topbar-status svg { width: 15px; height: 15px; }
html.unlocked .topbar-status { cursor: default; }
html.unlocked .topbar-status .st-lock { display: none; }
html:not(.unlocked) .topbar-status .st-open { display: none; }
.topbar-ctas { display: flex; align-items: center; gap: 10px; }
.topbar .btn-wa-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--wa);
  color: #fff; transition: transform .3s var(--ease-out); }
.topbar .btn-wa-ico:hover { transform: scale(1.08); }
.topbar .btn-wa-ico svg { width: 21px; height: 21px; }
.read-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; transform-origin: 0 50%;
  transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--emerald), var(--lime)); }

/* ---- HERO (biblioteca) -------------------------------------- */
.hero { position: relative; min-height: clamp(640px, 100svh, 980px); display: flex; align-items: center; color: #fff;
  background: radial-gradient(120% 90% at 80% 10%, #11119b 0%, var(--navy) 38%, var(--navy-950) 100%); overflow: hidden;
  padding: calc(var(--topbar-h) + 40px) 0 120px; isolation: isolate; }
.hero canvas.neurons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before { content: ""; position: absolute; inset: auto -10% -30% -10%; height: 60%; z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, rgba(81,200,120,.28), transparent 70%); filter: blur(10px); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; z-index: -1;
  background: linear-gradient(transparent, rgba(0,0,51,.55)); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 26px; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); opacity: 0;
  transition: transform 1.1s var(--ease-out), opacity .8s var(--ease); transition-delay: calc(var(--d) * 70ms + 150ms); }
html.ready .hero h1 .w > span { transform: none; opacity: 1; }
.hero h1 .hl { color: var(--lime); }
.hero h1 .stroke { -webkit-text-stroke: 2px rgba(255,255,255,.85); color: transparent; }
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms); }
html.ready .fade-up { opacity: 1; transform: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: rgba(241,254,247,.75); list-style: none; padding: 0; margin: 0; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--emerald-300); }

/* pila de tarjetas flotantes del hero */
.hero-stack { position: relative; height: 470px; perspective: 1200px; }
.hs-card { position: absolute; width: 300px; border-radius: 22px; padding: 22px; color: var(--ink);
  background: rgba(255,255,255,.97); box-shadow: 0 30px 70px rgba(0,0,30,.45); transform-style: preserve-3d;
  transition: transform 1.2s var(--ease-out), opacity 1s var(--ease); opacity: 0; }
html.ready .hs-card { opacity: 1; }
.hs-card .hs-type { font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--emerald-text); }
.hs-card h3 { font-size: 21px; font-weight: 850; letter-spacing: -.02em; margin: 8px 0 10px; }
.hs-card p { font-size: 14px; color: var(--fg2); margin: 0; line-height: 1.5; }
.hs-card .hs-art { height: 92px; border-radius: 14px; margin-bottom: 14px; overflow: hidden; position: relative; }
.hs-1 { top: 0; left: 2%; transform: rotate(-7deg) translateY(30px); z-index: 1; }
.hs-2 { top: 70px; right: -6%; transform: rotate(6deg) translateY(30px); z-index: 2; }
.hs-3 { top: 255px; left: 14%; transform: rotate(-2deg) translateY(30px); z-index: 3; }
html.ready .hs-1 { transform: rotate(-7deg); transition-delay: .5s; }
html.ready .hs-2 { transform: rotate(6deg); transition-delay: .65s; }
html.ready .hs-3 { transform: rotate(-2deg); transition-delay: .8s; }
.hs-lock { position: absolute; top: -14px; right: -14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--lime); box-shadow: 0 10px 24px rgba(0,0,80,.4); border: 3px solid #fff; }
.hs-lock svg { width: 20px; height: 20px; }
html.unlocked .hs-lock { background: var(--emerald); color: var(--navy-900); }
.float-y { animation: floaty 7s ease-in-out infinite; }
.float-y.d2 { animation-delay: -2.4s; } .float-y.d3 { animation-delay: -4.8s; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 30px; translate: -50% 0; display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; font-weight: 700; }
.scroll-cue i { width: 22px; height: 36px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 3px; background: currentColor;
  translate: -50% 0; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---- Cinta (marquee) --------------------------------------- */
.ribbon { background: var(--lime); color: var(--ink); overflow: hidden; border-block: 1px solid rgba(0,0,0,.08); position: relative; z-index: 2;
  transform: rotate(-1.2deg) scale(1.02); margin-top: -26px; }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon-track span { font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: -.01em; padding: 15px 0;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; }
.ribbon-track span::after { content: "✦"; color: var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Secciones genéricas ----------------------------------- */
.section { padding: 120px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head .lead { margin: 16px 0 0; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease-out);
  transition-delay: calc(var(--rd, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal, html.reduce .reveal { opacity: 1; transform: none; }

/* ¿Por dónde empiezo? */
.picker { display: flex; flex-wrap: wrap; gap: 10px; }
.picker button { font: inherit; font-size: 15px; font-weight: 600; padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border-strong); background: #fff; color: var(--ink); transition: all .25s var(--ease); }
.picker button:hover { border-color: var(--navy); }
.picker button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-navy); }
.picker-out { min-height: 28px; margin-top: 16px; font-size: 16px; color: var(--fg2); }
.picker-out b { color: var(--navy); }

/* ---- Rejilla de recursos ------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.rcard { grid-column: span 4; position: relative; border-radius: 26px; background: #fff; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .3s, outline-color .3s;
  transform-style: preserve-3d; isolation: isolate; outline: 3px solid transparent; outline-offset: 3px; }
.rcard.wide { grid-column: span 6; }
.rcard:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.rcard.is-pick { outline-color: var(--lime); box-shadow: 0 0 0 8px rgba(229,248,58,.25), var(--shadow-lg); }
.rcard::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(81,200,120,.13), transparent 45%); }
.rcard:hover::after { opacity: 1; }
.rcard-art { position: relative; height: 230px; overflow: hidden; isolation: isolate; }
.rcard-art svg.art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease-out), filter .9s var(--ease); }
.rcard:hover .rcard-art svg.art { transform: scale(1.06); }
.rcard-num { position: absolute; top: 16px; left: 18px; z-index: 2; font-family: var(--font-display); font-weight: 900; font-size: 13px;
  letter-spacing: .08em; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--navy); }
.rcard-badge { position: absolute; top: 16px; right: 18px; z-index: 2; font-size: 12.5px; font-weight: 700; padding: 6px 12px;
  border-radius: 999px; background: var(--emerald); color: var(--navy-900); display: inline-flex; gap: 6px; align-items: center; }
.rcard-badge svg { width: 14px; height: 14px; }
.rcard-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.rcard-type { font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--emerald-text); }
.rcard h3 { font-size: 24px; font-weight: 850; letter-spacing: -.02em; margin: 10px 0 10px; line-height: 1.12; }
.rcard p { font-size: 15.5px; color: var(--fg2); margin: 0 0 20px; line-height: 1.55; }
.rcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--fg3); }
.rcard-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-family: var(--font-display); color: var(--navy); font-size: 14.5px; }
.rcard-go svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.rcard:hover .rcard-go svg { transform: translateX(5px); }
/* candado */
.rcard-lock { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.lock-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(0,0,77,.86);
  color: #fff; font-weight: 700; font-size: 14px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 14px 30px rgba(0,0,50,.35); transition: transform .5s var(--spring), opacity .4s; }
.lock-chip .lk { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--navy-900); display: grid; place-items: center; }
.lock-chip .lk svg { width: 17px; height: 17px; }
.rcard:hover .lock-chip { transform: scale(1.06); }
.rcard[data-locked] .rcard-art svg.art { filter: blur(9px) saturate(.75); transform: scale(1.12); }
html.unlocked .rcard[data-locked] .rcard-art svg.art { filter: none; transform: none; }
html.unlocked .rcard[data-locked]:hover .rcard-art svg.art { transform: scale(1.06); }
html.unlocked .rcard-lock { display: none; }
.rcard.just-unlocked .lock-chip { animation: chipOut .9s var(--ease-out) forwards; }
@keyframes chipOut { 30% { transform: scale(1.15); } 100% { transform: scale(.4) translateY(-40px); opacity: 0; } }
.rcard-lockline { display: none; }
html:not(.unlocked) .rcard[data-locked] .rcard-lockline { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; }
html:not(.unlocked) .rcard[data-locked] .rcard-lockline svg { width: 14px; height: 14px; }
html:not(.unlocked) .rcard[data-locked] .rcard-time { display: none; }
/* tarjeta «pídeme un recurso» */
.rcard-ask { grid-column: span 12; background: var(--navy); color: #fff; border: none; padding: 30px 34px; flex-direction: row; align-items: center; gap: 26px; }
.rcard-ask .ask-ic { width: 64px; height: 64px; flex: none; border-radius: 20px; display: grid; place-items: center; background: var(--lime); color: var(--navy-900); }
.rcard-ask .ask-ic svg { width: 30px; height: 30px; }
.rcard-ask .ask-txt { flex: 1; }
.rcard-ask p { margin: 0; }
.rcard-ask .rcard-go { flex: none; padding: 14px 20px; border-radius: 999px; border: 1.5px solid rgba(229,248,58,.5); }
@media (max-width: 720px) { .rcard-ask { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 24px; } }
.rcard-ask h3 { color: #fff; font-size: 26px; }
.rcard-ask p { color: rgba(241,254,247,.78); }
.rcard-ask .rcard-go { color: var(--lime); }

/* Arte generativo de las tarjetas */
.art-bg-navy { background: linear-gradient(140deg, #000080, #00004d); }
.art-bg-mint { background: linear-gradient(140deg, #eafaf0, #d3f1de); }
.art-bg-lime { background: linear-gradient(140deg, #f7fdc9, #E5F83A); }
.art-bg-ink { background: linear-gradient(140deg, #1b1b2e, #0b0b18); }
.art .spin { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite; }
.art .spin-r { transform-box: fill-box; transform-origin: center; animation: spin 34s linear infinite reverse; }
.art .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-in-out infinite; }
.art .dash { stroke-dasharray: 6 10; animation: dash 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -64; } }

/* ---- Bloque CTA (aparece varias veces) ---------------------- */
.cta { position: relative; border-radius: 32px; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(90% 120% at 0% 0%, #1515a8 0%, var(--navy) 45%, var(--navy-950) 100%); padding: 56px; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(81,200,120,.35), transparent); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cta-q { font-family: var(--font-display); font-weight: 850; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 18px; }
.cta-q em { font-style: normal; color: var(--lime); }
.cta-sub { color: rgba(241,254,247,.78); font-size: 17px; margin: 0; }
.cta-opts { display: grid; gap: 14px; }
.cta-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 22px;
  text-decoration: none; transition: transform .45s var(--ease-out), box-shadow .45s, background-color .3s; position: relative; overflow: hidden; }
.cta-opt:hover { transform: translateY(-3px); }
.cta-opt .ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; }
.cta-opt .ic svg { width: 24px; height: 24px; }
.cta-opt .t { font-family: var(--font-display); font-weight: 850; font-size: 18px; letter-spacing: -.01em; line-height: 1.2; display: block; }
.cta-opt .s { display: block; font-size: 14px; margin-top: 3px; line-height: 1.4; }
.cta-opt .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--ease-out); }
.cta-opt .go svg { width: 18px; height: 18px; }
.cta-opt:hover .go { transform: translateX(4px) rotate(-45deg); }
.cta-opt--buy { background: var(--lime); color: var(--ink); box-shadow: 0 14px 36px rgba(229,248,58,.28); }
.cta-opt--buy .ic { background: var(--ink); color: var(--lime); }
.cta-opt--buy .s { color: #2c2c10; }
.cta-opt--buy .go { background: var(--ink); color: var(--lime); }
.cta-opt--call { background: rgba(255,255,255,.06); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.cta-opt--call:hover { background: rgba(255,255,255,.12); }
.cta-opt--call .ic { background: rgba(255,255,255,.12); color: #fff; }
.cta-opt--call .s { color: rgba(241,254,247,.72); }
.cta-opt--call .go { background: rgba(255,255,255,.14); color: #fff; }
.cta-tag { position: absolute; top: 12px; right: 64px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--ink); color: var(--lime); }
.cta-wa { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; margin-top: 6px; opacity: .9; }
.cta-wa svg { width: 20px; height: 20px; color: #25D366; }
.cta-wa:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.cta-note { margin-top: 22px; font-size: 13.5px; color: rgba(241,254,247,.6); display: flex; gap: 8px; align-items: flex-start; }
.cta-note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.cta--compact { padding: 40px; border-radius: 26px; }
.cta--compact .cta-grid { grid-template-columns: 1fr; gap: 26px; }
.cta--compact .cta-opts { grid-template-columns: 1fr 1fr; }

/* ---- Sobre mí ----------------------------------------------- */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.about-photo { position: relative; aspect-ratio: 1; }
.about-photo picture, .about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 14s ease-in-out infinite; box-shadow: var(--shadow-lg); }
@keyframes morph { 0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; } 50% { border-radius: 58% 42% 40% 60% / 55% 38% 62% 45%; } }
.about-photo .sticker { position: absolute; right: -10px; bottom: 26px; background: var(--lime); color: var(--ink); font-family: var(--font-script);
  font-size: 24px; padding: 8px 16px; border-radius: 14px; transform: rotate(-6deg); box-shadow: var(--shadow-md); }
.creds { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.creds li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; padding: 14px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; }
.creds svg { width: 22px; height: 22px; color: var(--emerald-text); flex: none; }

/* ---- Pie ---------------------------------------------------- */
.footer { background: var(--navy-950); color: rgba(241,254,247,.7); padding: 64px 0 120px; font-size: 14.5px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer a { color: rgba(241,254,247,.85); text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer .disc { flex-basis: 100%; font-size: 13px; color: rgba(241,254,247,.5); max-width: 80ch; }

/* ---- Barra CTA móvil (fija) -------------------------------- */
.mobile-cta { display: none; }

/* ============================================================
   MODAL DE DESBLOQUEO
   ============================================================ */
.gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.gate.open { visibility: visible; pointer-events: auto; }
.gate-backdrop { position: absolute; inset: 0; background: rgba(0,0,40,.55); -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  opacity: 0; transition: opacity .5s var(--ease), backdrop-filter .6s var(--ease), -webkit-backdrop-filter .6s var(--ease); }
.gate.open .gate-backdrop { opacity: 1; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.gate-panel { position: relative; width: min(520px, 100%); max-height: calc(100svh - 40px); overflow: auto; overscroll-behavior: contain;
  border-radius: 30px; background: #fff; color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,40,.5);
  transform-origin: var(--ox, 50%) var(--oy, 50%); }
.gate-panel.anim-in { animation: gateIn .75s var(--ease-out) both; }
.gate-panel.anim-out { animation: gateOut .45s var(--ease) both; }
@keyframes gateIn { 0% { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(.18); border-radius: 60px; filter: blur(8px); }
  60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; } }
@keyframes gateOut { to { opacity: 0; transform: translateY(24px) scale(.94); } }
.gate-top { position: relative; padding: 38px 36px 26px; text-align: center; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, #1818ad, var(--navy) 50%, var(--navy-950)); }
.gate-top canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate-top h2 { position: relative; font-size: 27px; font-weight: 900; letter-spacing: -.025em; margin: 16px 0 8px; }
.gate-top p { position: relative; margin: 0 auto; max-width: 36ch; color: rgba(241,254,247,.8); font-size: 15.5px; line-height: 1.5; }
.gate-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .2s, transform .3s var(--ease-out); }
.gate-close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }
.gate-close svg { width: 18px; height: 18px; }
/* el candado animado */
.biglock { position: relative; width: 84px; height: 96px; margin: 0 auto; }
.biglock .ring { position: absolute; inset: -18px; border-radius: 50%; border: 1.5px solid rgba(229,248,58,.35); animation: ringp 2.6s ease-out infinite; }
.biglock .ring.r2 { animation-delay: 1.3s; }
@keyframes ringp { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.biglock svg { position: relative; width: 84px; height: 96px; overflow: visible; }
.biglock .shackle { transform-box: fill-box; transform-origin: 85% 100%; transition: transform .7s var(--spring); }
.biglock .body { transition: fill .4s; }
.gate.opening .biglock .shackle { transform: translateY(-14px) rotate(-28deg); }
.gate.opening .biglock .body { fill: var(--emerald); }
.gate.opening .biglock .ring { border-color: rgba(81,200,120,.6); }
.gate-panel.anim-in .biglock { animation: lockDrop .9s var(--spring) .15s both; }
@keyframes lockDrop { from { transform: translateY(-30px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.gate-perks { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.gate-perks li { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.16); }
.gate-form { padding: 26px 32px 30px; display: grid; gap: 14px; }
.field { position: relative; display: block; }
.field input { width: 100%; height: 60px; padding: 22px 16px 6px 48px; border-radius: 16px; border: 1.5px solid var(--border-strong); background: #fff;
  font: inherit; font-size: 16.5px; color: var(--ink); transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none; }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0,0,128,.1); }
.field .lbl { position: absolute; left: 48px; top: 19px; font-size: 16px; color: var(--fg3); pointer-events: none;
  transition: all .25s var(--ease); transform-origin: 0 0; }
.field input:focus + .lbl, .field input:not(:placeholder-shown) + .lbl { top: 9px; font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.field .fi { position: absolute; left: 16px; top: 19px; width: 20px; height: 20px; color: var(--fg3); transition: color .25s; }
.field input:focus ~ .fi { color: var(--navy); }
.field .opt { position: absolute; right: 14px; top: 20px; font-size: 12px; color: var(--fg3); font-weight: 600; }
.field.ok .fi { color: var(--emerald-text); }
.field.bad input { border-color: #c2410c; }
.gate-form .stag { opacity: 0; transform: translateY(14px); }
.gate-panel.anim-in .gate-form .stag { animation: stagIn .6s var(--ease-out) both; animation-delay: calc(var(--s) * 70ms + 280ms); }
@keyframes stagIn { to { opacity: 1; transform: none; } }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--fg2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.consent a { color: var(--navy); font-weight: 600; }
.gate-err { min-height: 0; color: #b42318; font-size: 14px; font-weight: 600; margin: 0; }
.gate-err:empty { display: none; }
.gate-submit { --bh: 60px; font-size: 17px; }
.gate-submit .spin { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(17,17,17,.25); border-top-color: var(--ink); border-radius: 50%;
  animation: spin .8s linear infinite; }
.gate-submit.loading .spin { display: block; }
.gate-submit.loading .txt { opacity: .6; }
.gate-trust { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--fg3); margin: 0; text-align: center; }
.gate-trust svg { width: 14px; height: 14px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* éxito */
.gate-done { display: none; padding: 30px 32px 34px; text-align: center; }
.gate.done .gate-form { display: none; }
.gate.done .gate-done { display: block; animation: stagIn .6s var(--ease-out) both; }
.gate-done h3 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 8px; }
.gate-done p { color: var(--fg2); font-size: 16px; margin: 0 0 20px; }
.gate-done .unl-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; text-align: left; }
.gate-done .unl-list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--emerald-050);
  font-weight: 600; font-size: 15px; opacity: 0; transform: translateX(-12px); animation: stagIn .5s var(--ease-out) forwards;
  animation-delay: calc(var(--s) * 120ms + 200ms); }
.gate-done .unl-list svg { width: 20px; height: 20px; color: var(--emerald-text); flex: none; }

/* explosión de partículas al desbloquear */
.burst { position: fixed; inset: 0; z-index: 320; pointer-events: none; }

/* ============================================================
   PÁGINA DE RECURSO
   ============================================================ */
.page-resource { background: var(--bg); }
.r-hero { padding: calc(var(--topbar-h) + 70px) 0 70px; position: relative; overflow: hidden; }
.r-hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -240px; top: -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(81,200,120,.22), transparent); z-index: 0; }
.r-hero::after { content: ""; position: absolute; width: 520px; height: 520px; left: -220px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,128,.10), transparent); z-index: 0; }
.r-hero .wrap { z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--fg3); margin-bottom: 26px; }
.crumbs a { color: var(--navy); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crumbs a svg { width: 16px; height: 16px; }
.r-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.r-hero h1 { margin: 0 0 22px; }
.r-hero h1 .hl { color: var(--navy); background: linear-gradient(transparent 62%, var(--lime) 62%); }
.r-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.r-facts li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 8px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); }
.r-facts svg { width: 16px; height: 16px; color: var(--emerald-text); }
.r-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.r-cover { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(2deg);
  transition: transform .8s var(--ease-out); }
.r-cover:hover { transform: rotate(0) scale(1.02); }
.r-cover svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.r-cover .r-cover-t { position: absolute; left: 26px; right: 26px; bottom: 24px; color: #fff; font-family: var(--font-display); }
.r-cover .r-cover-t small { font-weight: 800; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.r-cover .r-cover-t b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1.02; margin-top: 8px; }
.r-cover.light .r-cover-t { color: var(--navy-900); }
.r-takeaways { margin: 0 0 30px; padding: 0; list-style: none; display: grid; gap: 10px; }
.r-takeaways li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.r-takeaways li svg { width: 22px; height: 22px; flex: none; color: var(--emerald-text); margin-top: 2px; }

/* vídeo (listo para cuando Ismael grabe) */
.r-video { display: none; }
.r-video.has-video { display: block; margin: 0 0 40px; }
.r-video .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--navy-950); box-shadow: var(--shadow-lg); }
.r-video iframe, .r-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* layout con índice lateral */
.r-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding: 30px 0 90px; align-items: start; }
.r-toc { position: sticky; top: calc(var(--topbar-h) + 26px); font-size: 14.5px; }
.r-toc h4 { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg3); margin: 0 0 14px; font-weight: 800; }
.r-toc ol { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 2px; counter-reset: t; }
.r-toc a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 8px 10px; border-radius: 10px; color: var(--fg2); text-decoration: none;
  line-height: 1.35; transition: background .25s, color .25s; }
.r-toc a span { font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--fg3); padding-top: 2px; }
.r-toc a:hover { background: #fff; color: var(--ink); }
.r-toc a.active { background: var(--navy); color: #fff; }
.r-toc a.active span { color: var(--lime); }
.r-toc .lockdot { margin-left: 6px; }
.r-toc .toc-cta { padding: 18px; border-radius: 18px; background: var(--navy); color: #fff; }
.r-toc .toc-cta p { font-size: 14px; color: rgba(241,254,247,.82); margin: 0 0 12px; line-height: 1.45; }
.r-toc .toc-cta b { color: #fff; display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 6px; line-height: 1.25; }
.r-toc .toc-cta .btn { width: 100%; --bh: 46px; font-size: 14px; padding: 0 14px; }
.r-toc .toc-cta a.mini { display: block; text-align: center; margin-top: 10px; color: rgba(241,254,247,.85); font-size: 13.5px; }

/* contenido */
.r-content { max-width: 760px; min-width: 0; }
.chapter { padding: 0 0 70px; position: relative; }
.chapter + .chapter { padding-top: 10px; }
.ch-num { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--emerald-text); margin-bottom: 14px; }
.ch-num i { font-style: normal; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--lime);
  letter-spacing: 0; font-size: 15px; }
.chapter h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; letter-spacing: -.03em; margin: 0 0 20px; line-height: 1.08; }
.chapter h3 { font-size: 21px; font-weight: 850; letter-spacing: -.015em; margin: 34px 0 12px; }
.chapter p, .chapter li { font-size: 18px; line-height: 1.7; color: #2a2a31; }
.chapter ul, .chapter ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.chapter li { margin-bottom: .45em; }
.chapter .say { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; line-height: 1.25;
  color: var(--navy); border-left: 4px solid var(--lime); padding: 6px 0 6px 22px; margin: 30px 0; }
/* cerebro: cuadro de neurociencia */
.brain { position: relative; margin: 30px 0; padding: 26px 28px 24px 28px; border-radius: 22px; background: var(--navy); color: rgba(241,254,247,.9);
  overflow: hidden; isolation: isolate; }
.brain::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(81,200,120,.35), transparent); }
.brain .b-h { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 900; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.brain .b-h svg { width: 28px; height: 28px; }
.brain p, .brain li { color: rgba(241,254,247,.9); font-size: 16.5px; line-height: 1.65; }
.brain p:last-child { margin-bottom: 0; }
.brain b { color: #fff; }
.brain .src { font-size: 13px; color: rgba(241,254,247,.55); margin-top: 10px; }
.note { margin: 26px 0; padding: 18px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--border); font-size: 16px; color: var(--fg2); }
.note b { color: var(--ink); }
.note.warn { background: #fff7ed; border-color: #fed7aa; }
/* tablas */
.table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 22px 0 28px; font-size: 16px; background: #fff; border-radius: 18px;
  overflow: hidden; border: 1px solid var(--border); }
.table th { text-align: left; font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3);
  background: var(--surface-sunk); padding: 13px 16px; }
.table td { padding: 14px 16px; border-top: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.table td:first-child { color: var(--fg2); }
.table td:last-child { font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* comparación antes / después */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.versus > div { padding: 20px 22px; border-radius: 20px; font-size: 16px; line-height: 1.5; }
.versus h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; font-weight: 900; }
.versus ul { margin: 0; padding-left: 1.1em; }
.versus li { font-size: 16px; margin-bottom: .35em; }
.versus .no { background: #fff; border: 1px solid var(--border); }
.versus .no h4 { color: var(--fg3); }
.versus .yes { background: var(--emerald-050); border: 1px solid var(--emerald-100); }
.versus .yes h4 { color: var(--emerald-text); }
/* pasos */
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; border-radius: 18px; background: #fff; border: 1px solid var(--border); margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 15px; }
.steps li b { display: block; color: var(--ink); margin-bottom: 2px; }
/* ejercicios */
.exercise { margin: 30px 0; padding: 26px; border-radius: 24px; background: #fff; border: 1.5px dashed var(--emerald-300); position: relative; }
.exercise .ex-h { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--emerald-text); margin-bottom: 6px; }
.exercise .ex-h svg { width: 20px; height: 20px; }
.exercise h3 { margin: 0 0 6px; }
.exercise > p { font-size: 16px; color: var(--fg2); }
.exercise label.q { display: block; font-weight: 700; font-size: 15.5px; margin: 18px 0 8px; color: var(--ink); }
.exercise textarea, .exercise input[type=text] { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border);
  font: inherit; font-size: 16.5px; line-height: 1.5; resize: vertical; background: var(--surface-sunk); color: var(--ink); transition: border-color .2s, background .2s; }
.exercise textarea:focus, .exercise input[type=text]:focus { outline: none; border-color: var(--navy); background: #fff; }
.exercise .ex-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--fg3); }
.exercise .ex-foot svg { width: 15px; height: 15px; }
.saved-flash { color: var(--emerald-text); font-weight: 700; opacity: 0; transition: opacity .3s; }
.saved-flash.on { opacity: 1; }
/* constructor de frases (si-entonces / límite) */
.builder-out { margin-top: 18px; padding: 20px 22px; border-radius: 18px; background: var(--navy); color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 20px; line-height: 1.35; letter-spacing: -.01em; }
.builder-out .ph { color: rgba(255,255,255,.4); }
.builder-out .fill { color: var(--lime); }
.builder-out small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 13px; color: rgba(241,254,247,.6); margin-bottom: 6px; letter-spacing: 0; }
.copy-btn { margin-top: 12px; }
/* chips de frases para copiar */
.phrases { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.phrase { font: inherit; font-size: 16px; font-weight: 600; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--border);
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); transition: all .25s var(--ease); text-align: left; }
.phrase small { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--fg3); }
.phrase:hover { border-color: var(--navy); transform: translateY(-2px); }
.phrase.copied { background: var(--emerald-050); border-color: var(--emerald); }
/* registro de días */
.tracker { margin: 26px 0; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--border); }
.tracker-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tracker-h b { font-family: var(--font-display); font-size: 18px; }
.tracker-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--fg3); }
.tracker-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tracker-legend i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { aspect-ratio: 1; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-sunk); cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--fg3); font-weight: 700;
  transition: all .3s var(--spring); position: relative; }
.day b { font-family: var(--font-display); font-size: 15px; color: var(--ink); line-height: 1; }
.day:hover { border-color: var(--navy); transform: translateY(-2px); }
.day[data-s="h"] { background: var(--emerald); border-color: var(--emerald); color: var(--navy-900); }
.day[data-s="m"] { background: var(--lime); border-color: #c9db24; color: var(--ink); }
.day[data-s="n"] { background: #fff; border-color: #f0a58f; color: #b42318; }
.day[data-s="h"] b, .day[data-s="m"] b { color: var(--ink); }
.day.pop { animation: dayPop .45s var(--spring); }
@keyframes dayPop { 50% { transform: scale(1.14); } }
.tracker-sum { margin-top: 16px; font-size: 15px; color: var(--fg2); }
.tracker-sum b { color: var(--navy); }
/* checklist de 7 días (protocolo) */
.plan7 { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.plan7 li { margin: 0; }
.p7 { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: #fff;
  border: 1.5px solid var(--border); cursor: pointer; transition: all .35s var(--ease); width: 100%; font: inherit; text-align: left; color: var(--ink); }
.p7:hover { border-color: var(--navy); }
.p7 .d { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--navy-050); color: var(--navy);
  font-family: var(--font-display); font-weight: 900; font-size: 13px; line-height: 1.05; text-align: center; }
.p7 .t { font-weight: 800; font-family: var(--font-display); font-size: 17px; letter-spacing: -.01em; display: block; line-height: 1.25; }
.p7 .s { font-size: 15px; color: var(--fg2); display: block; margin-top: 3px; line-height: 1.45; }
.p7 .ck { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; transition: all .35s var(--spring); }
.p7 .ck svg { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: all .35s var(--spring); }
.p7[aria-pressed="true"] { background: var(--emerald-050); border-color: var(--emerald); }
.p7[aria-pressed="true"] .d { background: var(--emerald); color: var(--navy-900); }
.p7[aria-pressed="true"] .ck { background: var(--emerald); border-color: var(--emerald); color: var(--navy-900); }
.p7[aria-pressed="true"] .ck svg { opacity: 1; transform: none; }
.meter { height: 12px; border-radius: 999px; background: var(--surface-sunk); overflow: hidden; margin: 14px 0 8px; }
.meter i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--emerald), var(--lime));
  transition: width .8s var(--ease-out); }
/* fuentes */
.sources { font-size: 14.5px; color: var(--fg2); }
.sources ol { padding-left: 1.3em; }
.sources li { font-size: 14.5px; line-height: 1.55; margin-bottom: .7em; color: var(--fg2); }
.sources a { color: var(--navy); word-break: break-word; }

/* ---- Contenido bloqueado ----------------------------------- */
.locked-zone { position: relative; }
html:not(.unlocked) .locked-zone > .lz-content { filter: blur(7px); user-select: none; pointer-events: none; max-height: 1100px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 0%, #000 30%, transparent 92%); mask-image: linear-gradient(#000 0%, #000 30%, transparent 92%); }
.lz-content { transition: filter 1.2s var(--ease); }
.lz-gate { display: none; }
html:not(.unlocked) .lz-gate { display: block; position: absolute; left: 0; right: 0; top: 140px; z-index: 5; }
.lz-card { max-width: 560px; margin: 0 auto; padding: 36px 34px; border-radius: 28px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, #1818ad, var(--navy) 50%, var(--navy-950)); box-shadow: 0 30px 80px rgba(0,0,60,.35); isolation: isolate; }
.lz-card::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(229,248,58,.7) 80%, transparent 90%); animation: rot 5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rot { to { --ang: 360deg; } }
.lz-card .lk { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--lime); color: var(--navy-900);
  animation: wobble 3.4s ease-in-out infinite; }
.lz-card .lk svg { width: 30px; height: 30px; }
@keyframes wobble { 0%,80%,100% { transform: rotate(0); } 84% { transform: rotate(-12deg); } 88% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } 96% { transform: rotate(3deg); } }
.lz-card h3 { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; }
.lz-card p { color: rgba(241,254,247,.82); font-size: 16px; margin: 0 0 22px; }
.lz-card .btn { margin: 0 auto; }
.lz-card .lz-small { font-size: 13px; color: rgba(241,254,247,.6); margin: 14px 0 0; }
html:not(.unlocked) .no-locked { display: none !important; }

/* navegación entre recursos */
.r-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 0; }
.r-next a { display: block; padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--border); text-decoration: none;
  transition: transform .4s var(--ease-out), box-shadow .4s; }
.r-next a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.r-next small { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--fg3); font-family: var(--font-display); }
.r-next b { display: block; font-family: var(--font-display); font-size: 19px; letter-spacing: -.015em; margin-top: 6px; color: var(--navy); line-height: 1.25; }
.r-next .nx { text-align: right; }
.r-counter { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--fg3); letter-spacing: .1em; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 350; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 13px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); transition: all .4s var(--ease-out); }
.toast.on { opacity: 1; translate: -50% 0; }

/* ---- Responsive -------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stack { display: none; }
  .rcard, .rcard.wide { grid-column: span 6; }
  .cta-grid { grid-template-columns: 1fr; gap: 30px; }
  .r-layout { grid-template-columns: 1fr; gap: 0; }
  .r-toc { display: none; }
  .about { grid-template-columns: 300px 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .r-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .r-cover { max-width: 380px; aspect-ratio: 16 / 11; transform: rotate(0); }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  .topbar-status .st-txt { display: none; }
}
@media (max-width: 720px) {
  :root { --topbar-h: 60px; }
  body { font-size: 17px; }
  .wrap, .wrap-narrow { padding: 0 18px; }
  .section { padding: 84px 0; }
  .rcard, .rcard.wide { grid-column: span 12; }
  .rcard-art { height: 190px; }
  .cta { padding: 34px 22px; border-radius: 26px; }
  .cta--compact .cta-opts { grid-template-columns: 1fr; }
  .cta-opt { grid-template-columns: auto 1fr; padding: 18px; }
  .cta-opt .go { display: none; }
  .cta-tag { right: 14px; top: 10px; }
  .topbar .topbar-ctas .btn { display: none; }
  .brand span small { display: none; }
  .hero { padding-bottom: 100px; }
  .hero-ctas .btn { width: 100%; }
  .creds { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .r-next { grid-template-columns: 1fr; }
  .chapter p, .chapter li { font-size: 17px; }
  .exercise { padding: 20px 18px; }
  .days { gap: 5px; }
  .day { border-radius: 10px; font-size: 10px; }
  .day b { font-size: 13px; }
  .p7 { grid-template-columns: 44px 1fr auto; gap: 12px; padding: 14px; }
  .p7 .d { width: 44px; height: 44px; }
  .gate { padding: 10px; align-items: end; }
  .gate-panel { border-radius: 26px; max-height: calc(100svh - 20px); }
  .gate-top { padding: 30px 22px 22px; }
  .gate-form, .gate-done { padding: 22px 20px 24px; }
  .lz-card { padding: 30px 22px; }
  html:not(.unlocked) .lz-gate { top: 80px; }
  .r-actions .btn { flex: 1 1 auto; }
  .footer { padding-bottom: 130px; }
  /* barra fija móvil: siempre una llamada a la acción a mano */
  .mobile-cta { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 90; gap: 8px; padding: 8px; border-radius: 22px;
    background: rgba(0,0,51,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0,0,40,.4);
    transform: translateY(140%); transition: transform .5s var(--ease-out); padding-bottom: calc(8px + env(safe-area-inset-bottom) * .5); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { --bh: 50px; flex: 1; padding: 0 12px; font-size: 14.5px; }
  .mobile-cta .mc-wa { flex: 0 0 50px; padding: 0; background: var(--wa); color: #fff; }
}
@media (max-width: 380px) {
  .h-xl { font-size: 38px; }
  .day small { display: none; }
}

/* ---- Movimiento reducido ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero h1 .w > span, .fade-up, .hs-card { opacity: 1 !important; transform: none !important; }
}

/* ---- Imprimir / Guardar como PDF --------------------------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; font-size: 12pt; }
  body::after, .topbar, .mobile-cta, .r-toc, .r-actions, .gate, .toast, .r-next, .cta, .no-print, .footer, .lz-gate, .r-hero::before, .r-hero::after, .copy-btn, .ex-foot { display: none !important; }
  .r-hero { padding: 0 0 10mm; }
  .r-hero-grid { grid-template-columns: 1fr; }
  .r-cover { display: none; }
  .r-layout { display: block; padding: 0; }
  .chapter { break-inside: auto; padding-bottom: 8mm; }
  .chapter h2 { break-after: avoid; }
  .brain, .exercise, .tracker, .note, .versus > div, .steps li, .table { break-inside: avoid; }
  .brain { background: #eeeefb !important; color: #111 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .brain p, .brain li, .brain b { color: #111 !important; }
  .brain .b-h { color: #000080 !important; }
  .exercise textarea, .exercise input[type=text] { min-height: 22mm; border: 1px solid #999; background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html:not(.unlocked) .locked-zone { display: none !important; }
  .print-only { display: block !important; }
  a { text-decoration: none; }
}
.print-only { display: none; }

/* estado de la barra y elementos que dependen del desbloqueo */
.st-lock, .st-open { display: inline-flex; align-items: center; gap: 8px; }
html.unlocked .topbar-status .st-lock, html:not(.unlocked) .topbar-status .st-open { display: none; }
html.unlocked .no-unl-hide, html.unlocked .no-unl { display: none !important; }
html:not(.unlocked) .only-unl { display: none !important; }
.versus.v3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .versus.v3 { grid-template-columns: 1fr; } }
/* modal en pantallas bajas (portátiles de 13") */
@media (max-height: 860px) and (min-width: 721px) {
  .gate-top { padding: 26px 32px 20px; }
  .biglock { transform: scale(.78); margin: -10px auto -14px; }
  .gate-panel.anim-in .biglock { animation: none; }
  .gate-top h2 { margin-top: 8px; }
  .gate-form { gap: 11px; padding-top: 20px; }
  .field input { height: 54px; padding-top: 19px; }
  .field .lbl, .field .fi { top: 16px; }
  .field .opt { top: 17px; }
}
