/* ==========================================================================
   MEDITO LAB · demo web v1
   Mindfulness + neurociencia + salud. Serio, no solemne.
   Tokens de marca: índigo del logo #494BE5 + paleta cálida (referencias de Sofía)
   ========================================================================== */

:root {
  /* --- color --- */
  --cream: #FBF6E6;
  --paper: #FFFDF6;
  --ink: #1B1A33;
  --ink-2: #4A4964;
  --muted: #6E6D85;
  --line: rgba(27, 26, 51, .12);

  --indigo: #494BE5;
  --indigo-deep: #2F31B8;
  --indigo-ink: #23247A;
  --lilac: #DEDDFB;
  --lilac-2: #EEEEFE;

  --orange: #FD561B;
  --orange-deep: #C2410C;
  --peach: #FBC6E7; /* tinte del rosa oficial #F793D3 */
  --pink: #F793D3;

  --yellow: #FFB404;
  --yellow-deep: #E89F00;

  --olive: #59B3F5; /* celeste oficial */
  --moss: #0F3A5F;
  --sage: #BDE0FB; /* tinte del celeste oficial #59B3F5 */
  --lavender: #E4C9EC; /* tinte de la lavanda oficial #D1A1DF */
  --violet: #9861E2;

  /* --- tipografía --- */
  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* --- escala --- */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;

  --w-page: 1200px;
  --w-text: 62ch;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 160ms; --t-base: 260ms; --t-slow: 520ms;

  --shadow-card: 0 1px 0 rgba(27,26,51,.06), 0 12px 32px -16px rgba(27,26,51,.25);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
}
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- utilidades ---------- */
.wrap { width: min(var(--w-page), 100% - 2 * var(--s-5)); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(var(--w-page), 100% - 2 * var(--s-7)); } }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.eyebrow--indigo::before { background: var(--indigo); }
.eyebrow--olive::before { background: var(--olive); }

.h-xl { font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.5; color: var(--ink-2); max-width: var(--w-text); }
.lead strong { color: var(--ink); font-weight: 600; }
.txt { max-width: var(--w-text); color: var(--ink-2); }
.txt p + p { margin-top: 1em; }
.txt strong { color: var(--ink); }
.hl { background: linear-gradient(transparent 55%, var(--yellow) 55%); padding: 0 .08em; }

.section { padding-block: clamp(var(--s-8), 9vw, var(--s-10)); position: relative; }
.section--tight { padding-block: clamp(var(--s-7), 6vw, var(--s-9)); }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(var(--s-6), 5vw, var(--s-8)); max-width: 820px; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr .8fr; gap: var(--s-7); } }

/* fondos de sección */
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-indigo { background: var(--indigo); color: #fff; }
.bg-yellow { background: var(--yellow); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-orange { background: #D13E0C; color: var(--cream); }
.bg-indigo .eyebrow, .bg-ink .eyebrow { color: rgba(255,255,255,.85); }
.bg-indigo .lead, .bg-ink .lead, .bg-indigo .txt, .bg-ink .txt { color: rgba(255,255,255,.88); }
.bg-indigo .lead strong, .bg-ink .lead strong, .bg-indigo .txt strong, .bg-ink .txt strong { color: #fff; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  touch-action: manipulation; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-base) var(--ease-spring); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(27,26,51,.45); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--indigo { --bg: var(--indigo); }
.btn--indigo:hover { background: var(--indigo-deep); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--yellow:hover { background: var(--yellow-deep); }
.btn--white { --bg: #fff; --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-white { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn--ghost-white:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: .85em 1.7em; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.link {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--orange);
}
.link svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease-spring); }
.link:hover svg { transform: translateX(3px); }

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .45em .9em; border-radius: var(--r-pill);
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
}
.chip--yellow { background: var(--yellow); box-shadow: none; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--cream) 92%, transparent); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 42px; height: 42px; transition: transform var(--t-slow) var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(30deg); }
.brand__type { height: 17px; width: auto; }
@media (max-width: 420px) { .brand__type { height: 15px; } .brand__mark { width: 38px; height: 38px; } }
.nav { display: none; gap: .25rem; }
.nav a {
  padding: .55rem .85rem; border-radius: var(--r-pill); font-weight: 500; font-size: .98rem;
  transition: background var(--t-fast);
}
.nav a:hover { background: var(--lilac); }
.nav a.is-active { background: var(--ink); color: #fff; }
.header__cta { display: none; }
.burger {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff;
}
.burger span { display: block; width: 20px; height: 2px; background: currentColor; margin: 2.5px 0; transition: transform var(--t-base), opacity var(--t-base); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}

/* menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--indigo); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: var(--s-6);
  transform: translateY(-102%); transition: transform var(--t-slow) var(--ease-out);
}
.menu.is-open { transform: none; }
.menu__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.menu__nav { display: grid; gap: .25rem; }
.menu__nav a { font-family: var(--f-display); font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; letter-spacing: -.03em; padding: .2em 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.menu__nav a:hover { color: var(--yellow); }
.menu__foot { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(var(--s-7), 6vw, var(--s-9)) clamp(var(--s-7), 6vw, var(--s-9)); overflow: hidden; position: relative; }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--s-8); } }
.hero__copy { display: grid; gap: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--indigo); }
.hero h1 .scribble { position: relative; display: inline-block; white-space: nowrap; }
.hero h1 .scribble svg { position: absolute; left: -2%; right: -2%; bottom: -.08em; width: 104%; height: .32em; }
.hero__note { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); display: flex; gap: .6em; align-items: baseline; }
.hero__note b { color: var(--ink); font-weight: 500; }

/* tarjeta "laboratorio" a la derecha del hero */
.lab {
  position: relative; aspect-ratio: 1 / 1.05; max-width: 560px; margin-inline: auto; width: 100%;
  border-radius: var(--r-xl); background: var(--indigo); color: #fff; overflow: hidden;
  isolation: isolate;
}
.lab__grid {
  position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}
.lab__neuron { position: absolute; left: 50%; top: 44%; width: 60%; transform: translate(-50%, -50%); animation: spin 90s linear infinite; }
.lab__sticker {
  position: absolute; padding: .55em .95em; border-radius: var(--r-pill);
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .03em;
  background: var(--yellow); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(0,0,0,.35);
  animation: float 6s ease-in-out infinite;
}
.lab__sticker--1 { left: 6%; top: 10%; animation-delay: -1s; }
.lab__sticker--2 { right: 6%; top: 22%; background: var(--peach); animation-delay: -3s; }
.lab__sticker--3 { left: 6%; top: 52%; background: #fff; animation-delay: -2s; }
.lab__sticker--4 { right: 6%; top: 44%; background: var(--sage); animation-delay: -4.5s; }
.lab__card {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: min(86%, 380px); padding: var(--s-4) var(--s-5);
  background: #fff; color: var(--ink); border-radius: var(--r-md);
  display: grid; gap: .35rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
}
.lab__card .eyebrow { font-size: .7rem; }
.lab__card p { font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.lab__card small { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

/* marquee de temas */
.marquee { overflow: hidden; border-block: 2px solid var(--ink); background: var(--yellow); padding: .9rem 0; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 1.2rem; padding-inline: 1.2rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap;
}
.marquee__item svg { width: 14px; height: 14px; color: var(--indigo); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- datos de respaldo (strip) ---------- */
.proof { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof__item {
  padding: var(--s-5); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-card);
  display: grid; gap: .3rem; align-content: start;
}
.proof__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1; color: var(--indigo); }
.proof__num small { font-size: .5em; letter-spacing: 0; color: var(--orange); }
.proof__label { font-size: .95rem; color: var(--ink-2); line-height: 1.35; }

/* ---------- no es / sí es ---------- */
.vs { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs__col { padding: clamp(var(--s-5), 4vw, var(--s-7)); border-radius: var(--r-lg); display: grid; gap: var(--s-4); align-content: start; }
.vs__col--no { background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.vs__col--si { background: var(--ink); color: #fff; }
.vs__title { display: flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.vs__title .badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; }
.vs__col--no .badge { background: var(--peach); color: var(--orange-deep); }
.vs__col--si .badge { background: var(--yellow); color: var(--ink); }
.vs__list { display: grid; gap: .8rem; }
.vs__list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; line-height: 1.45; }
.vs__list svg { width: 22px; height: 22px; margin-top: .1em; }
.vs__col--no li { color: var(--ink-2); }
.vs__col--no li s { color: var(--muted); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.vs__col--no svg { color: var(--orange); }
.vs__col--si svg { color: var(--yellow); }
.vs__col--si li { color: rgba(255,255,255,.88); }
.vs__col--si li b { color: #fff; }
.vs__foot { margin-top: var(--s-2); padding-top: var(--s-4); border-top: 2px dashed var(--line); font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: var(--ink); }

/* ---------- sofía ---------- */
.sofia { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .sofia { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); } }
.portrait { position: relative; margin: 0 0 var(--s-6); }
.portrait > picture img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); display: block; }
.portrait__tag {
  position: absolute; left: 14px; top: 14px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); padding: .45em .8em; border-radius: var(--r-pill);
}
.polaroid {
  position: absolute; right: -10px; bottom: -34px; width: 40%; padding: 8px 8px 0; background: #fff; border-radius: 6px;
  box-shadow: 0 18px 36px -18px rgba(27,26,51,.5); transform: rotate(4deg); transition: transform var(--t-base) var(--ease-spring);
  display: grid; gap: 0;
}
.polaroid:hover { transform: rotate(0) scale(1.03); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; display: block; }
.polaroid span { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .04em; color: var(--ink-2); text-align: center; padding: .5em 0 .6em; }
.sofia__side { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .sofia__side { position: sticky; top: 100px; } }
.sofia__body { display: grid; gap: var(--s-6); }
.quote-card {
  padding: var(--s-5); border-radius: var(--r-md); background: var(--yellow);
  font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em;
  position: relative;
}
.quote-card::before { content: "“"; position: absolute; top: -.35em; left: .35em; font-size: 4rem; line-height: 1; color: var(--indigo); font-weight: 800; opacity: .5; }
.quote-card cite { display: block; margin-top: .8em; font-family: var(--f-mono); font-style: normal; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* timeline */
.timeline { display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 9px; top: 12px; width: 2px; height: var(--tl-fill, 0px); background: linear-gradient(var(--indigo), var(--violet) 60%, var(--orange)); transition: height var(--t-base) var(--ease-out); }
.tl { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-4); padding-block: .9rem; position: relative; }
.tl__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--indigo); margin-top: .2em; position: relative; z-index: 1; transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-base) var(--ease-spring); }
.tl.is-on .tl__dot { background: var(--indigo); box-shadow: 0 0 0 4px var(--lilac); }
.tl--now .tl__dot { box-shadow: inset 0 0 0 2px var(--orange); }
.tl--now.is-on .tl__dot { background: var(--orange); box-shadow: 0 0 0 4px var(--peach); transform: scale(1.15); }
.tl__when { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep); }
.tl__what { font-weight: 600; margin-top: .15rem; }
.tl__detail { color: var(--ink-2); font-size: .95rem; margin-top: .1rem; }
.tl__detail a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.tl__detail a:hover { text-decoration-color: var(--indigo); }

/* maestros: fichas de biblioteca */
.teachers__hint { display: none; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; color: rgba(255,255,255,.75); margin-bottom: var(--s-3); }
.teachers { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .teachers { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.teacher {
  --card: var(--yellow);
  position: relative; padding: var(--s-5); border-radius: var(--r-lg); background: var(--card); color: var(--ink);
  display: grid; gap: .55rem; align-content: start;
  box-shadow: 0 18px 36px -22px rgba(0,0,0,.55);
  transform: rotate(var(--tilt, 0deg));
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base);
}
.teacher:nth-child(4n+1) { --tilt: -1.4deg; }
.teacher:nth-child(4n+2) { --tilt: 1.1deg; }
.teacher:nth-child(4n+3) { --tilt: -.8deg; }
.teacher:nth-child(4n+4) { --tilt: 1.5deg; }
.teacher:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 28px 44px -22px rgba(0,0,0,.6); }
.teacher--yellow { --card: var(--yellow); }
.teacher--peach { --card: var(--peach); }
.teacher--lilac { --card: var(--lavender); }
.teacher--sage { --card: var(--sage); }
.teacher__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.teacher__ini {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--card);
  font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.04em;
  transform: rotate(-6deg); transition: transform var(--t-base) var(--ease-spring);
}
.teacher:hover .teacher__ini { transform: rotate(6deg) scale(1.06); }
.teacher__num { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.teacher__name { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.025em; line-height: 1.05; }
.teacher__tag {
  justify-self: start; padding: .3em .7em; border-radius: var(--r-pill);
  background: var(--paper); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.teacher__what { font-size: .92rem; color: var(--ink-2); line-height: 1.4; }
.teacher__ig {
  margin-top: .4rem; padding-top: .7rem; border-top: 2px dashed rgba(27,26,51,.25);
  font-family: var(--f-mono); font-size: .74rem; color: var(--indigo-deep); display: inline-flex; align-items: center; gap: .4em;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--t-fast);
  align-self: end;
}
.teacher__ig svg { width: 13px; height: 13px; }
a.teacher__ig:hover { text-decoration-color: var(--indigo-deep); }
.teacher__ig--off { color: var(--ink-2); }
@media (max-width: 639px) {
  .teachers__hint { display: block; }
  .teachers {
    display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px var(--s-4);
    margin-inline: calc(-1 * var(--s-5)); padding-inline: var(--s-5); scrollbar-width: none;
  }
  .teachers::-webkit-scrollbar { display: none; }
  .teacher { flex: 0 0 78%; scroll-snap-align: start; }
}
.schools { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--s-5); }
.schools .chip { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); transition: background var(--t-fast); }
a.schools .chip:hover, .schools a.chip:hover { background: #fff; color: var(--indigo); }

/* ---------- enfoque / laboratorio ---------- */
.pillars { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  padding: clamp(var(--s-5), 3vw, var(--s-6)); border-radius: var(--r-lg); display: grid; gap: var(--s-3); align-content: start;
  min-height: 300px; position: relative; overflow: hidden;
  transition: transform var(--t-base) var(--ease-out);
}
.pillar:hover { transform: translateY(-4px); }
.pillar--yellow { background: var(--yellow); }
.pillar--lilac { background: var(--lavender); }
.pillar--peach { background: var(--peach); }
.pillar__num { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; color: var(--ink-2); }
.pillar__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.5rem; }
.pillar p { color: var(--ink-2); font-size: .98rem; }
.pillar__foot { margin-top: auto; font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); letter-spacing: .04em; }

.formula {
  margin-top: var(--s-6); padding: clamp(var(--s-5), 3vw, var(--s-6)); border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-card);
  display: grid; gap: var(--s-4);
}
.formula { justify-items: center; }
.formula__eq { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: -.03em; display: flex; flex-wrap: wrap; gap: .4em .6em; align-items: center; justify-content: center; }
.formula__eq span { padding: .15em .5em; border-radius: 12px; }
.formula__eq .a { background: var(--yellow); }
.formula__eq .b { background: var(--lavender); }
.formula__eq .c { background: var(--peach); }
.formula__eq .r { background: var(--ink); color: #fff; }

/* ---------- salud ---------- */
.case { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .case { grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: center; } }
.case__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: var(--s-5); }
.stat { padding: var(--s-4); border-radius: var(--r-md); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }
.stat__n { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1; color: var(--yellow); }
.stat__l { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: .3rem; line-height: 1.3; }
.case__visual { display: grid; gap: var(--s-5); }

/* electrocardiograma */
.ecg { margin: 0; position: relative; border-radius: var(--r-lg); background: var(--indigo); padding: var(--s-4) var(--s-5) var(--s-4); overflow: hidden; isolation: isolate; }
.ecg__grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px); background-size: 22px 22px; }
.ecg__head, .ecg__foot { position: relative; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.ecg__foot { margin: .2rem 0 0; font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; text-transform: none; color: #fff; justify-content: flex-start; gap: .6rem; }
.ecg__arrow { color: var(--yellow); }
.ecg__svg { position: relative; display: block; width: 100%; height: 150px; margin: .4rem 0; overflow: visible; }
.ecg__line { fill: none; stroke: var(--yellow); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.ecg.is-in .ecg__line { animation: ecg-draw 2.6s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
.ecg__pulse { fill: var(--yellow); opacity: 0; }
.ecg.is-in .ecg__pulse { animation: ecg-pulse 1.6s ease-in-out 2.9s infinite; }
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }
@keyframes ecg-pulse { 0%, 100% { opacity: 1; r: 6; } 50% { opacity: .35; r: 9; } }

/* entrada de evento */
.ticket {
  background: var(--paper); color: var(--ink); border-radius: var(--r-md); padding: var(--s-5);
  display: grid; gap: .6rem; position: relative;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.5); transform: rotate(-1.2deg); transition: transform var(--t-base) var(--ease-spring);
}
.ticket:hover { transform: rotate(0); }
.ticket__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.ticket__row--end { align-items: flex-end; margin-top: .4rem; }
.ticket__k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.ticket__date { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1; }
.ticket__date small { font-size: .4em; letter-spacing: 0; color: var(--orange); vertical-align: middle; margin-left: .3em; }
.ticket__tear { position: relative; height: 0; border-top: 2px dashed rgba(27,26,51,.25); margin: .5rem calc(-1 * var(--s-5)); }
.ticket__tear::before, .ticket__tear::after { content: ""; position: absolute; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); }
.ticket__tear::before { left: -13px; } .ticket__tear::after { right: -13px; }
.ticket p { color: var(--ink-2); font-size: .95rem; }
.ticket__bars { width: 90px; height: 28px; color: var(--ink); flex: none; opacity: .8; }

/* carpetas de programas */
.programs { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 720px) { .programs { grid-template-columns: repeat(3, 1fr); } }
.program {
  position: relative; margin-top: 1.6rem; padding: var(--s-5); border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
  background: var(--paper); color: var(--ink); display: grid; gap: .4rem; align-content: start;
  transition: transform var(--t-base) var(--ease-out);
}
.program:hover { transform: translateY(-4px); }
.program__tab {
  position: absolute; left: 0; bottom: 100%; padding: .45em .9em .35em; border-radius: 12px 12px 0 0;
  background: var(--peach); color: var(--ink); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.program--base .program__tab { background: var(--yellow); }
.program--base { border-top-right-radius: var(--r-md); }
.program__t { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.15; }
.program__d { font-size: .92rem; color: var(--ink-2); }

/* salud: nombre del programa, foto y temario */
.case__name { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; margin-top: var(--s-4); }
.case__name-sub { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; color: rgba(255,255,255,.8); }
.case__photo { margin: 0; position: relative; }
.case__photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-md); display: block; }
.case__photo figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.94); color: var(--ink); padding: .45em .8em; border-radius: var(--r-pill); }
.syllabus { margin-top: var(--s-7); display: grid; gap: var(--s-4); }
.syllabus__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.syllabus__list li { display: inline-flex; align-items: center; gap: .6em; padding: .55em 1em .55em .6em; border-radius: var(--r-pill); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); font-weight: 500; font-size: .95rem; }
.syllabus__list b { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; background: var(--yellow); color: var(--ink); border-radius: var(--r-pill); padding: .25em .6em; }

/* ---------- prácticas de bolsillo ---------- */
.pockets { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .pockets { grid-template-columns: repeat(3, 1fr); } }
.pocket { --card: var(--yellow); padding: clamp(var(--s-5), 3vw, var(--s-6)); border-radius: var(--r-lg); background: var(--card); display: grid; gap: var(--s-3); align-content: start; transition: transform var(--t-base) var(--ease-out); }
.pocket:hover { transform: translateY(-4px); }
.pocket--peach { --card: var(--peach); } .pocket--sage { --card: var(--sage); }
.pocket__time { justify-self: start; display: inline-flex; align-items: center; gap: .45em; padding: .4em .85em .4em .6em; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.pocket__time svg { width: 15px; height: 15px; }
.pocket h3 { font-size: 1.45rem; }
.pocket p { color: var(--ink-2); font-size: .98rem; }
.pocket p em { color: var(--ink); font-style: italic; }
.pocket__foot { margin-top: auto; padding-top: var(--s-3); border-top: 2px dashed rgba(27,26,51,.22); font-family: var(--f-mono); font-size: .76rem; color: var(--ink); }
.pockets__src { margin-top: var(--s-5); font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }

/* ---------- preguntas ---------- */
.faq { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: start; } .faq__head { position: sticky; top: 100px; } }
.faq__pic { display: block; margin-top: var(--s-6); max-width: 240px; }
.faq__pic img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); transform: rotate(-3deg); box-shadow: var(--shadow-card); }
@media (max-width: 959px) { .faq__pic { display: none; } }
.faq__list { display: grid; gap: var(--s-3); }
.faq__item { border-radius: var(--r-md); background: var(--cream); transition: background var(--t-fast); }
.faq__item[open] { background: var(--lilac-2); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); min-height: 56px; font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1.2; border-radius: var(--r-md); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 22px; height: 22px; flex: none; padding: 6px; box-sizing: content-box; border-radius: 50%; background: var(--ink); color: #fff; transition: transform var(--t-base) var(--ease-spring), background var(--t-fast); }
.faq__item[open] summary svg { transform: rotate(45deg); background: var(--indigo); }
.faq__item p { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); max-width: 62ch; }

/* ---------- propuestas ---------- */
.offers { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .offers { grid-template-columns: repeat(3, 1fr); } }
.offer {
  padding: clamp(var(--s-5), 3vw, var(--s-6)); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-card);
  display: grid; gap: var(--s-3); align-content: start; position: relative;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.offer:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(27,26,51,.06), 0 24px 40px -20px rgba(27,26,51,.35); }
.offer__who { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.offer h3 { font-size: 1.45rem; }
.offer p { color: var(--ink-2); font-size: .98rem; }
.offer ul { display: grid; gap: .35rem; font-size: .92rem; color: var(--ink-2); }
.offer ul li { display: flex; gap: .5em; align-items: baseline; }
.offer ul li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); flex: none; transform: translateY(-2px); }
.offer__status { margin-top: auto; padding-top: var(--s-3); }
.offer--soon::after {
  content: "en definición"; position: absolute; top: 16px; right: 16px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--yellow); padding: .4em .7em; border-radius: var(--r-pill);
}
.note-box {
  margin-top: var(--s-6); padding: var(--s-5); border-radius: var(--r-md); background: var(--lilac);
  display: grid; gap: var(--s-3);
}
@media (min-width: 800px) { .note-box { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-6); } }
.note-box p { color: var(--ink-2); max-width: 60ch; }
.note-box p b { color: var(--ink); }

/* ---------- blog ---------- */
.posts { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post {
  display: grid; gap: var(--s-3); border-radius: var(--r-lg); background: var(--paper); overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.post:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(27,26,51,.06), 0 24px 40px -20px rgba(27,26,51,.35); }
.post__cover { aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; overflow: hidden; }
.post__cover--a { background: var(--yellow); }
.post__cover--b { background: var(--lavender); }
.post__cover--c { background: var(--peach); }
.post__cover--d { background: var(--sage); }
.post__cover--e { background: var(--indigo); }
.post__cover--f { background: var(--ink); }
.post__cover svg { width: 42%; height: auto; opacity: .9; transition: transform var(--t-slow) var(--ease-out); }
.post:hover .post__cover svg { transform: rotate(12deg) scale(1.05); }
.post__body { padding: 0 var(--s-5) var(--s-5); display: grid; gap: .5rem; }
.post__meta { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post__meta span { white-space: nowrap; }
.post__meta .tag { color: var(--orange-deep); }
.bg-yellow .post__meta .tag { color: var(--ink); }
.post h3, .post .post__t { font-size: 1.3rem; line-height: 1.15; }
.post p { color: var(--ink-2); font-size: .95rem; }
.post .link { margin-top: .3rem; font-size: .95rem; }

.post--feature { grid-column: 1 / -1; }
@media (min-width: 900px) { .post--feature { grid-template-columns: 1.1fr 1fr; align-items: center; } .post--feature .post__cover { aspect-ratio: auto; height: 100%; min-height: 320px; } .post--feature .post__body { padding: var(--s-6); } }
.post--feature h3, .post--feature .post__t { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s-6); }
.blog-filters .chip { cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.blog-filters .chip:hover { background: var(--lilac); box-shadow: none; }
.blog-filters .chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- manifiesto ---------- */
.manifesto { text-align: center; display: grid; gap: var(--s-5); justify-items: center; }
.manifesto p { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.6rem); letter-spacing: -.025em; line-height: 1.15; max-width: 22ch; }
.manifesto p em { font-style: normal; color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .12em; text-underline-offset: .12em; }
.manifesto cite { font-family: var(--f-mono); font-style: normal; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: .5em 1em; border-radius: var(--r-pill); }
.manifesto__neuron { width: 84px; opacity: .95; animation: spin 60s linear infinite; }
@keyframes spin-plain { to { transform: rotate(360deg); } }
.manifesto__neuron { animation: spin-plain 60s linear infinite; }

/* ---------- contacto: correspondencia del laboratorio ---------- */
.contact { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); align-items: start; } }
.contact__ways { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.way {
  --card: var(--yellow);
  display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-md);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-card);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.way:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(27,26,51,.06), 0 24px 40px -20px rgba(27,26,51,.35); }
.way--yellow { --card: var(--yellow); } .way--peach { --card: var(--peach); } .way--lilac { --card: var(--lavender); }
.way__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--ink); color: var(--card); }
.way__icon svg { width: 22px; height: 22px; }
.way__txt { display: grid; gap: .1rem; flex: 1; }
.way__t { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.way__d { font-size: .86rem; color: var(--ink-2); }
.way__arrow { width: 22px; height: 22px; flex: none; transition: transform var(--t-base) var(--ease-spring); }
.way:hover .way__arrow { transform: translateX(4px); }

.form {
  position: relative; padding: clamp(var(--s-5), 3vw, var(--s-6)); border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-card);
  display: grid; gap: var(--s-5);
}
.form__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.form__k { display: block; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.form__k--sub { color: var(--muted); margin-top: .3rem; letter-spacing: .06em; text-transform: none; }
.stamp {
  flex: none; width: 74px; padding: 6px; border-radius: 6px; background: var(--lilac);
  border: 3px dotted var(--paper); outline: 2px solid var(--lilac); display: grid; justify-items: center; gap: 2px;
  transform: rotate(6deg);
}
.stamp img { width: 38px; height: 38px; }
.stamp__t { font-family: var(--f-mono); font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo-ink); }
.form__fields { display: grid; gap: var(--s-4); }
.field { display: grid; gap: .45rem; }
.field label, .field__l { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.field label small, .field__l small { font-family: var(--f-body); font-size: .8rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); width: 100%; min-height: 52px; padding: .8em 1em;
  border-radius: 14px; border: 2px solid var(--line); background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231B1A33' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.8em; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px var(--lilac); }
.field .help, .form__foot .help { font-size: .82rem; color: var(--muted); }
.field .error { display: none; font-size: .85rem; color: #B42318; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B42318; }
.field.is-invalid .error { display: block; }
.form__row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.topics { display: flex; flex-wrap: wrap; gap: .5rem; }
.topics label {
  display: inline-flex; align-items: center; gap: .45em; padding: .5em .9em; border-radius: var(--r-pill);
  background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: .92rem; font-weight: 500;
  font-family: var(--f-body); letter-spacing: 0; text-transform: none;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease-spring);
}
.topics label:hover { background: var(--lilac-2); }
.topics input { accent-color: var(--indigo); width: 16px; height: 16px; margin: 0; }
.topics label:has(input:checked) { background: var(--ink); color: #fff; box-shadow: none; }
.form__foot { display: grid; gap: var(--s-3); padding-top: var(--s-2); }
@media (min-width: 640px) { .form__foot { grid-template-columns: auto 1fr; align-items: center; gap: var(--s-4); } }
.form__ok { display: none; padding: var(--s-5); border-radius: var(--r-md); background: var(--sage); color: var(--moss); }
.form__ok.is-visible { display: grid; gap: .3rem; }
.form.is-sent .form__fields { display: none; }
.form__error { display: none; padding: var(--s-4); border-radius: var(--r-sm); background: #FDE7E4; color: #8A1C12; font-size: .92rem; }
.form__error.is-visible { display: block; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.footer { padding-block: var(--s-8) var(--s-6); }
.footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { display: grid; gap: var(--s-4); }
.footer__brand p { color: rgba(255,255,255,.72); max-width: 40ch; font-size: .95rem; }
.footer .footer__h { font-family: var(--f-mono); font-weight: 500; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: var(--s-3); }
.footer ul { display: grid; gap: .4rem; }
.footer ul a { color: rgba(255,255,255,.85); }
.footer ul a:hover { color: var(--yellow); }
.footer__bottom { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-family: var(--f-mono); font-size: .74rem; color: rgba(255,255,255,.55); }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* whatsapp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
  transition: transform var(--t-fast) var(--ease-spring);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- página interior (blog / nota) ---------- */
.page-head { padding-block: clamp(var(--s-7), 6vw, var(--s-9)) clamp(var(--s-6), 4vw, var(--s-7)); }
.page-head .h-xl { max-width: 14ch; }
.crumbs { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: .6em; margin-bottom: var(--s-5); }
.crumbs a:hover { color: var(--indigo); }

.article { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); } }
.article__body { max-width: 68ch; font-size: 1.1rem; line-height: 1.7; color: var(--ink-2); display: grid; gap: 1.2em; }
.article__body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); margin-top: .6em; }
.article__body h3 { font-size: 1.25rem; color: var(--ink); margin-top: .3em; }
.article__body strong { color: var(--ink); }
.article__body ul { list-style: disc; padding-left: 1.3em; display: grid; gap: .4em; }
.article__body ol { padding-left: 1.3em; display: grid; gap: .5em; }
.article__body blockquote { margin: 0; padding: var(--s-5); border-radius: var(--r-md); background: var(--yellow); color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
.article__body .ref { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); padding: var(--s-4); border-radius: var(--r-sm); background: var(--lilac-2); }
.practice {
  padding: var(--s-5); border-radius: var(--r-lg); background: var(--indigo); color: #fff; display: grid; gap: var(--s-3);
}
.practice .eyebrow { color: rgba(255,255,255,.8); }
.practice ol { padding-left: 1.2em; display: grid; gap: .5em; color: rgba(255,255,255,.9); }
.practice__time { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.aside { display: grid; gap: var(--s-4); }
@media (min-width: 1000px) { .aside { position: sticky; top: 100px; } }
.aside__card { padding: var(--s-5); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-card); display: grid; gap: .6rem; }
.aside__card p { font-size: .92rem; color: var(--ink-2); }
.author { display: flex; gap: var(--s-3); align-items: center; }
.author__pic { width: 54px; height: 54px; border-radius: 50%; flex: none; object-fit: cover; }
.author__n { font-weight: 700; }
.author__r { font-size: .82rem; color: var(--muted); }
.share { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 80ms; } .rv-d2 { transition-delay: 160ms; } .rv-d3 { transition-delay: 240ms; } .rv-d4 { transition-delay: 320ms; }

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

/* ---------- ajustes mobile ---------- */
@media (max-width: 599px) {
  .lab { aspect-ratio: auto; padding: 230px var(--s-4) var(--s-4); }
  .lab__neuron { top: 125px; width: 58%; }
  .lab__sticker--1 { left: 5%; top: 18px; }
  .lab__sticker--2 { right: 5%; top: 48px; }
  .lab__sticker--3 { left: 5%; top: 178px; }
  .lab__sticker--4 { right: 5%; top: 150px; }
  .lab__card { position: static; transform: none; width: 100%; }
  .proof__item { padding: var(--s-4); }
  .proof__label { font-size: .86rem; }
  .case__stats { grid-template-columns: 1fr 1fr 1fr; gap: var(--s-2); }
  .stat { padding: var(--s-3); }
  .formula__eq { font-size: 1.25rem; }
}
