/* ===================================================================
   yeira.io — marketing site
   Direction: evolved Yeira brand. Warm editorial + playful geometry.
   Motif: "bloques" — the product builds courses from blocks; the site
   builds itself from tiles. Coral on warm paper, Gilroy display.
   =================================================================== */

@font-face { font-family: 'Gilroy'; src: url('/marketing/fonts/gilroy-light-webfont.woff') format('woff'); font-weight: 300; font-display: optional; }
@font-face { font-family: 'Gilroy'; src: url('/marketing/fonts/gilroy-semibold-webfont.woff2') format('woff2'), url('/marketing/fonts/gilroy-semibold-webfont.woff') format('woff'); font-weight: 600; font-display: optional; }
@font-face { font-family: 'Gilroy'; src: url('/marketing/fonts/gilroy-bold-webfont.woff2') format('woff2'); font-weight: 700; font-display: optional; }
@font-face { font-family: 'Gilroy'; src: url('/marketing/fonts/gilroy-black-webfont.woff') format('woff'); font-weight: 900; font-display: optional; }

:root {
  --coral: #f77a56;
  --coral-deep: #e85c36;
  --coral-soft: #fde4db;
  --red: #ff2759;
  --yellow: #ffba12;
  --cream: #ffeaa0;
  --pink: #ff6cc4;
  --blush: #f2dad5;
  --ink: #211d1c;
  --ink-soft: #5d5450;
  --paper: #fdf9f5;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --display: 'Gilroy', 'Rubik', sans-serif;
  --body: 'Rubik', sans-serif;
  --shadow-tile: 0 2px 0 rgba(33,29,28,.06), 0 16px 40px -18px rgba(33,29,28,.22);
  --ease-pop: cubic-bezier(.22,1.2,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* warm grain over everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: var(--cream); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ============================== nav ============================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(33,29,28,.07);
}
.nav-inner {
  display: flex; align-items: center; gap: 36px;
  height: 76px;
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }
/* specificity guard: .nav-links a outranks .btn for color */
.nav-links a.btn, .nav-links a.btn:hover,
.foot-links a.btn { color: #fff; }
/* CSS-only mobile menu (checkbox hack) — hidden on desktop */
.nav-toggle { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.nav-burger { display: none; }
.btn {
  font-family: var(--display); font-weight: 700;
  display: inline-block; text-decoration: none;
  background: var(--coral); color: #fff;
  padding: .85rem 1.7rem; border: none; cursor: pointer;
  border-radius: 999px; font-size: 1rem; letter-spacing: .01em;
  box-shadow: 0 3px 0 var(--coral-deep);
  transition: transform .16s var(--ease-pop), box-shadow .16s, background .16s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--coral-deep); background: var(--coral-deep); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--coral-deep); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(33,29,28,.16);
}
.btn--ghost:hover { background: rgba(33,29,28,.05); box-shadow: inset 0 0 0 2px rgba(33,29,28,.3); transform: none; }
.btn--big { padding: 1.05rem 2.2rem; font-size: 1.1rem; }
.btn--ink { background: var(--ink); box-shadow: 0 3px 0 #000; }
.btn--ink:hover { background: #000; box-shadow: 0 5px 0 #000; }

/* ============================== hero ============================== */
.hero { position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
/* grid items default to min-width:auto (=min-content); without this the builder
   column expands to its content and overflows the wrap (clipped by overflow-x). */
.hero-grid > * { min-width: 0; }
.builder { max-width: 100%; }
.kicker {
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.kicker::before { content: ''; width: 26px; height: 3px; background: var(--coral); border-radius: 2px; }
.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.02; letter-spacing: -.015em;
  margin-bottom: 22px;
  text-wrap: balance; /* no single-word orphan lines */
}
.hl {
  position: relative; white-space: nowrap;
}
.hl::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em;
  height: .34em; background: var(--cream); z-index: -1;
  border-radius: 4px; transform: skewX(-8deg);
}
/* Hero headline highlight holds a long phrase and must wrap (esp. on mobile):
   swap the single skewed bar for a per-line marker so nothing overflows/clips. */
.hero h1 .hl {
  white-space: normal; padding: 0 .05em; border-radius: 3px;
  background-image: linear-gradient(transparent 56%, var(--cream) 56%, var(--cream) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero h1 .hl::after { display: none; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 33rem; margin-bottom: 32px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; }
.hero-note strong { color: var(--ink); }

/* social proof bar under the hero CTAs — the 5-second trust signal */
.hero-proof {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 18px;
  border-top: 1.5px dashed rgba(33,29,28,.16);
}
.hero-proof span { font-size: .85rem; color: var(--ink-soft); }
.hero-proof b {
  font-family: var(--display); font-weight: 900; font-size: 1.05rem;
  color: var(--coral-deep); margin-right: 3px;
}

/* hero load-in */
.hero [data-stagger] { opacity: 0; transform: translateY(18px); animation: rise .7s var(--ease-pop) forwards; }
.hero [data-stagger="1"] { animation-delay: .05s; }
.hero [data-stagger="2"] { animation-delay: .15s; }
.hero [data-stagger="3"] { animation-delay: .25s; }
.hero [data-stagger="4"] { animation-delay: .35s; }
.hero [data-stagger="5"] { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* the builder canvas — blocks assembling into a course */
.builder {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tile);
  padding: 26px;
  transform: rotate(1.4deg);
}
/* the AI prompt line atop the builder: promise → blocks, at a glance */
.builder-prompt {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1.5px solid rgba(33,29,28,.1);
  border-radius: 999px; padding: 8px 8px 8px 16px;
  font-size: .84rem; color: var(--ink-soft); margin-bottom: 14px;
  opacity: 0; animation: rise .6s var(--ease-pop) .3s forwards;
}
.bp-send {
  margin-left: auto; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--coral); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  box-shadow: 0 2px 0 var(--coral-deep);
}
.builder-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
}
.builder-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.builder-tag {
  margin-left: auto; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  background: var(--coral-soft); color: var(--coral-deep);
  padding: .25rem .7rem; border-radius: 999px; text-transform: uppercase;
}
.bloque {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper);
  border: 1.5px solid rgba(33,29,28,.08);
  border-radius: var(--radius-sm);
  padding: 13px 16px; margin-bottom: 10px;
  opacity: 0; transform: translateX(26px) scale(.97);
  animation: snap .55s var(--ease-pop) forwards;
}
/* prompt + head are children 1-2, so bloques are 3-8 */
.bloque:nth-child(3) { animation-delay: .45s; }
.bloque:nth-child(4) { animation-delay: .65s; }
.bloque:nth-child(5) { animation-delay: .85s; }
.bloque:nth-child(6) { animation-delay: 1.05s; }
.bloque:nth-child(7) { animation-delay: 1.25s; }
.bloque:nth-child(8) { animation-delay: 1.45s; }
@keyframes snap { to { opacity: 1; transform: none; } }
.bloque .bicon {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px; display: grid; place-items: center;
}
.bloque .bicon svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bloque b { font-family: var(--display); font-weight: 700; font-size: .95rem; display: block; line-height: 1.25; }
.bloque small { color: var(--ink-soft); font-size: .8rem; }
.bloque .state {
  margin-left: auto; font-size: .72rem; font-weight: 600;
  padding: .2rem .6rem; border-radius: 999px;
}
.st-done { background: #e5f5e8; color: #1c7c3c; }
.st-live { background: var(--cream); color: #8a6400; }

/* floating accents behind the builder */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; }
.shape--ring {
  width: 130px; height: 130px; right: 2%; top: 2%;
  border: 14px solid var(--cream); background: transparent;
  animation: drift 9s ease-in-out infinite;
}
.shape--dot { width: 26px; height: 26px; background: var(--pink); right: 44%; top: 8%; animation: drift 7s ease-in-out infinite reverse; }
/* (the coral pill accent was removed: anchored to the hero's bottom edge it
   collided with the marquee band on short-hero viewports) */
@keyframes drift { 50% { transform: translateY(-14px) rotate(4deg); } }

/* ============================ marquee ============================ */
.marquee {
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  background: var(--cream);
  overflow: hidden; white-space: nowrap;
  padding: 13px 0;
  margin: 30px 0 0;
}
.marquee-track {
  display: inline-block;
  animation: scroll 36s linear infinite;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: .04em;
}
.marquee span { margin: 0 18px; }
.marquee i { font-style: normal; color: var(--coral-deep); margin: 0 4px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* =========================== sections =========================== */
section { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.06;
  letter-spacing: -.01em; margin: 14px 0 16px;
  text-wrap: balance;
}
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; text-wrap: pretty; }

/* scroll reveals */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s var(--ease-pop); }
.rv.in { opacity: 1; transform: none; }

/* =========================== bento grid ========================== */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.tile {
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--white);
  box-shadow: var(--shadow-tile);
  position: relative; overflow: hidden;
  transition: transform .22s var(--ease-pop), box-shadow .22s;
  grid-column: span 4;
}
.tile:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: 0 2px 0 rgba(33,29,28,.06), 0 26px 50px -20px rgba(33,29,28,.3); }
.tile--wide { grid-column: span 8; }
.tile--tall { grid-row: span 2; }
.tile--blush { background: var(--blush); }
.tile--cream { background: var(--cream); }
.tile--coral { background: var(--coral-soft); }
.tile--ink { background: var(--ink); color: var(--paper); }
.tile--ink .tdesc { color: rgba(253,249,245,.72); }
.tile h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.22rem;
  margin: 18px 0 8px; line-height: 1.2;
}
.tdesc { color: var(--ink-soft); font-size: .95rem; }
.ticon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(33,29,28,.06);
}
.tile--ink .ticon { background: rgba(253,249,245,.12); }
.ticon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile .chip {
  position: absolute; top: 24px; right: 24px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 999px;
  background: var(--ink); color: var(--paper);
}
.chip--y { background: var(--yellow); color: var(--ink); }
.chip--p { background: var(--pink); color: #fff; }
.chip--r { background: var(--red); color: #fff; }

/* big number list inside wide tile */
.minilist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-top: 16px; }
.minilist li {
  list-style: none; font-size: .92rem; color: var(--ink-soft);
  display: flex; gap: 9px; align-items: baseline;
}
.minilist li::before { content: '✶'; color: var(--coral); font-size: .8rem; }

/* ======================= cómo funciona (3 pasos) ====================== */
.how { padding-top: 72px; }
.how-grid .tile { display: flex; flex-direction: column; }
.how-num {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1;
  color: var(--coral);
}
/* dashed tail after each step number: reads as a sequence, on-brand motif */
.how-num::after { content: ''; flex: 1; border-top: 2px dashed rgba(33,29,28,.16); }
.how-grid .tile:last-child .how-num::after { display: none; }
.how-num + h3 { margin-top: 18px; }
/* chips pinned to the bottom of steps 1 & 3 (Claude/ChatGPT/Codex, domain/Stripe/PayPal) */
.how-chips { margin-top: auto; padding-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.how-chips span {
  font-size: .72rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper); border: 1.5px solid rgba(33,29,28,.1);
  padding: .25rem .7rem; border-radius: 999px;
}
/* mini chat mock inside step 2 — the AI promise made visible */
.chat { margin-top: 18px; display: grid; gap: 10px; }
.chat p { margin: 0; font-size: .85rem; line-height: 1.45; }
.chat-msg {
  background: var(--white); border: 1.5px solid rgba(33,29,28,.12);
  border-radius: 14px 14px 14px 4px; padding: 11px 14px;
  box-shadow: 0 2px 0 rgba(33,29,28,.05);
}
.chat-reply {
  justify-self: end; text-align: left;
  background: var(--ink); color: var(--paper);
  border-radius: 14px 14px 4px 14px; padding: 10px 14px;
  font-weight: 600;
}

/* ============================== faq =============================== */
.faq { padding-bottom: 72px; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details {
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-tile);
}
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  padding: 20px 24px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.faq-list summary:hover { background: var(--paper); }
.faq-list details[open] summary { color: var(--coral-deep); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; margin-left: auto; flex: none;
  font-size: 1.5rem; line-height: 1; color: var(--coral-deep);
  transition: transform .2s var(--ease-pop);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--ink-soft); font-size: .95rem; }

/* =========================== showcase =========================== */
.showcase { padding-top: 0; }
.showcase-stage {
  position: relative;
  min-height: 560px;
}
.browser {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 3px 0 rgba(33,29,28,.08), 0 40px 80px -30px rgba(33,29,28,.35);
  border: 1.5px solid rgba(33,29,28,.1);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--paper);
  border-bottom: 1.5px solid rgba(33,29,28,.08);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; }
.browser-bar i:nth-child(1) { background: var(--red); }
.browser-bar i:nth-child(2) { background: var(--yellow); }
.browser-bar i:nth-child(3) { background: #35c06f; }
.browser-bar span {
  margin-left: 10px; font-size: .72rem; color: var(--ink-soft);
  background: var(--white); border-radius: 6px; padding: .15rem .8rem;
  border: 1px solid rgba(33,29,28,.08);
}
.shot-main { width: 72%; }
.shot-a { position: absolute; right: 0; top: 8%; width: 40%; transform: rotate(2deg); z-index: 2; }
.shot-b { position: absolute; right: 7%; bottom: -4%; width: 34%; transform: rotate(-2.5deg); z-index: 3; }
.shot-a .browser, .shot-b .browser { transition: transform .25s var(--ease-pop); }
.shot-a:hover .browser, .shot-b:hover .browser { transform: translateY(-6px); }
@media (max-width: 920px) {
  .showcase-stage { min-height: 0; }
  .shot-main { width: 100%; }
  .shot-a, .shot-b { position: static; width: 100%; transform: none; margin-top: 18px; }
}

/* ============================ pricing ============================ */
.pricing { background: var(--blush); border-radius: 40px; margin: 0 16px; }
.pricing .wrap { max-width: 880px; }
.price-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-tile);
  padding: 44px 48px;
}
.toggle {
  display: inline-flex; background: var(--paper); border-radius: 999px;
  padding: 5px; gap: 4px; margin-bottom: 34px;
  border: 1.5px solid rgba(33,29,28,.1);
}
.toggle button {
  font-family: var(--display); font-weight: 700; font-size: .92rem;
  border: none; background: transparent; color: var(--ink-soft);
  padding: .55rem 1.3rem; border-radius: 999px; cursor: pointer;
  transition: all .18s;
}
.toggle button.on { background: var(--ink); color: var(--paper); }
.toggle .save {
  font-size: .7rem; font-weight: 600; color: var(--coral-deep);
  background: var(--coral-soft); padding: .1rem .5rem; border-radius: 999px; margin-left: 6px;
}
.seats-read {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px;
  font-family: var(--display);
}
.seats-num { font-weight: 900; font-size: clamp(3rem, 7vw, 4.6rem); letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.seats-lbl { font-weight: 600; font-size: 1.1rem; color: var(--ink-soft); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 10px; border-radius: 999px;
  background: linear-gradient(to right, var(--coral) 0%, var(--coral) var(--fill, 20%), #efe4dc var(--fill, 20%), #efe4dc 100%);
  outline: none; margin: 26px 0 8px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--coral);
  box-shadow: 0 4px 12px rgba(232,92,54,.4);
  cursor: grab;
  transition: transform .15s var(--ease-pop);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--coral);
  cursor: grab;
}
.range-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-soft); margin-bottom: 16px; }
.price-big {
  margin-left: auto; text-align: right;
  font-weight: 900; font-size: clamp(2.4rem, 5.5vw, 3.8rem); letter-spacing: -.02em;
  color: var(--coral-deep); line-height: 1;
}
.price-big small {
  display: block; font-family: var(--body); font-weight: 600;
  font-size: .8rem; letter-spacing: 0; color: var(--ink-soft); margin-top: 6px;
}
.tiers { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tier {
  flex: 1; min-width: 104px; text-align: center; padding: 10px 8px;
  border: 1.5px solid rgba(33,29,28,.12); border-radius: 14px;
  transition: border-color .2s, background .2s; text-decoration: none;
}
.tier b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.tier i { font-style: normal; font-size: .72rem; color: var(--ink-soft); }
.tier.on { border-color: var(--coral); background: var(--coral-soft); }
.tier.on b { color: var(--coral-deep); }
.tier--sales { border-style: dashed; }
.tier--sales b { color: var(--ink-soft); }
.price-line { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.price-note { font-size: .85rem; color: var(--ink-soft); }
.price-policy {
  margin-top: 26px; padding-top: 22px; border-top: 1.5px dashed rgba(33,29,28,.14);
  font-size: .85rem; color: var(--ink-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.price-policy li { list-style: none; display: flex; gap: 8px; }
.price-policy li::before { content: '·'; color: var(--coral-deep); font-weight: 900; }

/* ============================= proof ============================= */
.proof { padding: 72px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.stat {
  padding: 36px 20px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-tile);
  transition: transform .22s var(--ease-pop), box-shadow .22s;
}
.stat:hover { transform: translateY(-5px); box-shadow: 0 2px 0 rgba(33,29,28,.06), 0 26px 50px -20px rgba(33,29,28,.3); }
.stat b {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.2rem); display: block; line-height: 1;
  margin-bottom: 8px;
}
.stat:nth-child(1) b { color: var(--coral-deep); }
.stat:nth-child(2) b { color: var(--red); }
.stat:nth-child(3) b { color: var(--ink); }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* ====================== academias en vivo ======================= */
.sites { padding-top: 0; }
.site-card { display: flex; flex-direction: column; padding: 0; text-decoration: none; color: inherit; }
/* browser frame goes flush inside the tile (frame chrome kept: dots + url) */
.site-card .browser {
  border-radius: 0; box-shadow: none; border: none;
  border-bottom: 1.5px solid rgba(33,29,28,.08);
}
.site-shot img { aspect-ratio: 16/10; width: 100%; object-fit: cover; object-position: top; transition: transform .35s var(--ease-pop); }
.site-card:hover .site-shot img { transform: scale(1.03); }
.site-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.site-body h3 { margin: 0 0 6px; }
.site-meta { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mchip {
  font-size: .72rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper); border: 1.5px solid rgba(33,29,28,.1);
  padding: .2rem .65rem; border-radius: 999px;
}
.mchip--y { background: var(--cream); border-color: transparent; color: #8a6400; }
.site-link { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--coral-deep); white-space: nowrap; }
.site-card:hover .site-link { text-decoration: underline; }

/* ============================== cta ============================== */
.cta-band {
  background: var(--ink); color: var(--paper);
  border-radius: 40px; margin: 0 16px;
  position: relative; overflow: hidden;
}
.cta-band .wrap { position: relative; z-index: 1; text-align: center; max-width: 760px; }
.cta-band h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05;
  margin-bottom: 18px; letter-spacing: -.01em;
}
.cta-band .hl::after { background: var(--coral); opacity: .9; }
.cta-band p { color: rgba(253,249,245,.7); margin-bottom: 34px; font-size: 1.1rem; }
.cta-deco {
  position: absolute; border-radius: 50%;
  pointer-events: none;
}
.cta-deco--1 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(247,122,86,.35), transparent 70%); top: -80px; left: -60px; }
.cta-deco--2 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,108,196,.28), transparent 70%); bottom: -90px; right: -40px; }
.cta-deco--3 { width: 180px; height: 180px; background: radial-gradient(circle, rgba(255,186,18,.3), transparent 70%); bottom: 30px; left: 22%; }

/* ============================= footer ============================ */
footer { padding: 56px 0 44px; }
.foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot img { height: 28px; opacity: .85; }
.foot-links { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.foot-links a { font-size: .85rem; color: var(--ink-soft); text-decoration: none; }
/* brand-star separators (inline-block escapes the hover underline) */
.foot-links a + a::before {
  content: '✶'; display: inline-block;
  color: var(--coral); font-size: .72rem; margin-right: 14px;
}
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-copy { width: 100%; font-size: .78rem; color: var(--ink-soft); margin-top: 18px; }

/* ====================== auth (login/signup) ====================== */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 60px 24px; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-tile); padding: 42px 40px;
}
.auth-card h1 { font-family: var(--display); font-weight: 900; font-size: 1.7rem; margin-bottom: 8px; }
.auth-card > p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: .8rem 1rem; font-size: .98rem; font-family: var(--body);
  border: 1.5px solid rgba(33,29,28,.14); border-radius: 12px;
  background: var(--paper); transition: border .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.field .suffix { display: flex; align-items: center; }
.field .suffix input { border-radius: 12px 0 0 12px; border-right: none; }
.field .suffix span {
  padding: .8rem .9rem; font-size: .9rem; color: var(--ink-soft);
  background: var(--blush); border: 1.5px solid rgba(33,29,28,.14); border-left: none;
  border-radius: 0 12px 12px 0; white-space: nowrap;
}
.auth-card .btn { width: 100%; margin-top: 10px; }
.auth-alt { text-align: center; font-size: .85rem; color: var(--ink-soft); margin-top: 20px; }
.auth-alt a { color: var(--coral-deep); font-weight: 600; }

/* ============================ responsive ========================= */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .builder { transform: none; max-width: 480px; }
  .tile, .tile--wide { grid-column: span 6; }
  /* hamburger: nav collapses into a dropdown panel under the bar */
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; padding: 12px 4px; cursor: pointer;
  }
  .nav-burger span {
    width: 24px; height: 2.5px; border-radius: 2px; background: var(--ink);
    transition: transform .2s var(--ease-pop), opacity .15s;
  }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 10px 28px 22px;
    border-bottom: 1.5px solid rgba(33,29,28,.1);
    box-shadow: 0 30px 40px -30px rgba(33,29,28,.35);
  }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid rgba(33,29,28,.08); font-size: 1rem; }
  .nav-links a.btn { margin-top: 16px; border-bottom: none; text-align: center; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .tile, .tile--wide { grid-column: span 12; }
  .proof-grid { grid-template-columns: 1fr; }
  .price-card { padding: 30px 22px; }
  .price-policy { grid-template-columns: 1fr; }
  .pricing, .cta-band { margin: 0 8px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ===================== hero: cinematic build + logo intro =====================
   Home only. The <video> src is chosen by viewport in home.blade.php so just one
   file is fetched; .hero-still sits underneath as the poster/fallback and as the
   prefers-reduced-motion image. Scrim direction flips with orientation. */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video, .hero-media .hero-still {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover;
  filter: saturate(.88) brightness(1.05); /* sit back behind the headline */
}
/* landscape: copy left, composition right */
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    var(--paper) 0%, var(--paper) 32%, rgba(253,249,245,.80) 48%,
    rgba(253,249,245,.22) 70%, rgba(253,249,245,0) 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
/* no builder column any more — copy sits in its own measure over the footage */
.hero-grid.hero-grid--solo { grid-template-columns: 1fr; }
.hero-grid.hero-grid--solo > div { max-width: 56%; }

/* intro overlay: wordmark spins, then flies into the header slot */
#yr-intro {
  position: fixed; inset: 0; z-index: 200; background-color: var(--paper);
  display: grid; place-items: center; perspective: 1200px;
  transition: opacity .45s ease, visibility .45s, background-color .7s ease;
}
#yr-intro.is-lifting { background-color: rgba(253,249,245,0); pointer-events: none; }
#yr-intro.is-lifting .yr-halo { opacity: 0; }
#yr-intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
#yr-intro .yr-mark { transform-style: preserve-3d; animation: yrSpin 1.15s var(--ease-pop) forwards; }
#yr-intro .yr-mark img { width: min(300px, 52vw); height: auto; display: block; }
#yr-intro .yr-halo {
  position: absolute; width: min(460px, 74vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--coral-soft) 0%, transparent 66%);
  opacity: 0; animation: yrHalo 1.15s var(--ease-pop) forwards; transition: opacity .45s ease;
}
@keyframes yrSpin {
  0%   { transform: perspective(1200px) rotateY(-95deg) scale(.82); opacity: 0; }
  45%  { opacity: 1; }
  70%  { transform: perspective(1200px) rotateY(14deg) scale(1.05); }
  100% { transform: perspective(1200px) rotateY(0) scale(1); opacity: 1; }
}
@keyframes yrHalo { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: .9; } 100% { opacity: .55; transform: scale(1); } }
/* the hero stagger is pure CSS with delays — hold it until the logo lands,
   otherwise it plays out behind the overlay and reveals nothing. */
/* two independent switches: the scroll lock is released when the flight starts,
   but the header logo must stay hidden until the mark actually lands on it —
   sharing one class showed both logos at once mid-flight. */
body.yr-lock { overflow: hidden; }
body.yr-intro-active .hero [data-stagger] { animation-play-state: paused; }
body.yr-intro-active .nav-logo img { visibility: hidden; }

@media (max-width: 920px) {
  .hero-grid.hero-grid--solo > div { max-width: 100%; }
  /* portrait: copy on top, composition revealed below */
  .hero-media::after {
    background: linear-gradient(to bottom,
      var(--paper) 0%, var(--paper) 30%, rgba(253,249,245,.86) 46%,
      rgba(253,249,245,.30) 70%, rgba(253,249,245,0) 100%);
  }
  .hero { padding-bottom: 34svh; }
}
@media (prefers-reduced-motion: reduce) {
  #yr-intro { display: none; }
  #yr-intro .yr-mark, #yr-intro .yr-halo { animation: none; }
}


/* ============ how-seq: scroll-driven "tres pasos" sequence (home only) ============
   The section is a tall track with a sticky 100svh stage. Scroll progress draws the
   coral thread, scrubs the paper-craft footage, and advances the active step. */
.how-seq { padding: 0; position: relative; }
.how-seq .track { height: 420vh; }
.how-seq .stage { position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; }
.how-seq .stage > .wrap { position: relative; z-index: 2; width: 100%; }

.how-bg { position: absolute; inset: 0; z-index: 0; }
.how-bg video, .how-bg img { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  min-width: 100%; min-height: 100%; object-fit: cover;
  filter: saturate(.42) brightness(1.34) contrast(.88); } /* render was terracotta; graded to paper */
.how-bg::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 40%, rgba(253,249,245,.70) 0%, rgba(253,249,245,.88) 52%, var(--paper) 96%); }
.how-seq .sec-head { margin-bottom: 0; }
.how-seq .sec-head h2 { font-size: clamp(1.95rem, 4vw, 3rem); }

/* the thread */
.how-seq .thread { position: relative; margin: 30px 0 6px; height: 68px; z-index: 3; }
.how-seq .thread svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.how-seq .thread path { fill: none; stroke-width: 3; stroke-linecap: round; }
.how-seq .thread .rail { stroke: rgba(33,29,28,.13); stroke-dasharray: 1 8; }
.how-seq .thread .live { stroke: var(--coral); filter: drop-shadow(0 2px 6px rgba(247,122,86,.45)); }
.how-seq .node { position: absolute; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(33,29,28,.06), 0 18px 44px -20px rgba(33,29,28,.28);
  display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.15rem;
  color: var(--ink-soft); transition: transform .5s var(--ease-pop), background .4s, color .4s, box-shadow .4s; z-index: 2; }
.how-seq .node i { display: none; font-style: normal; }
.how-seq .node.on { background: var(--coral); color: #fff; transform: scale(1.12);
  box-shadow: 0 4px 0 var(--coral-deep), 0 16px 34px -14px rgba(232,92,54,.7); }
.how-seq .node.done { background: var(--ink); color: var(--paper); box-shadow: 0 3px 0 #000; }
.how-seq .node.done b { display: none; } .how-seq .node.done i { display: block; font-size: 1.05rem; }

/* the three steps */
.how-seq .steps { position: relative; min-height: 296px; margin-top: 16px; }
.how-seq .step { position: absolute; inset: 0; display: grid; grid-template-columns: .95fr 1.05fr;
  gap: 36px; align-items: center; opacity: 0; transform: translateY(26px); pointer-events: none;
  transition: opacity .55s var(--ease-pop), transform .55s var(--ease-pop); }
.how-seq .step.on { opacity: 1; transform: none; pointer-events: auto; }
.how-seq .step h3 { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem,2.6vw,2.1rem); margin-bottom: 8px; }
.how-seq .step .tdesc { max-width: 42ch; }
.how-seq .scard { background: #fff; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 2px 0 rgba(33,29,28,.06), 0 18px 44px -20px rgba(33,29,28,.28); }

.how-seq .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.how-seq .chip { padding: .6rem 1.05rem; border-radius: 999px; border: 1.5px solid rgba(33,29,28,.12);
  background: var(--paper); font-weight: 600; font-size: .94rem; opacity: 0; transform: translateY(10px) scale(.96);
  transition: .5s var(--ease-pop); }
.how-seq .step.on .chip { opacity: 1; transform: none; }
.how-seq .step.on .chip:nth-child(1) { transition-delay: .05s; }
.how-seq .step.on .chip:nth-child(2) { transition-delay: .16s; }
.how-seq .step.on .chip:nth-child(3) { transition-delay: .27s; }
.how-seq .chip.on { background: var(--coral); color: #fff; border-color: transparent; box-shadow: 0 3px 0 var(--coral-deep); }
.how-seq .mcp { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  background: var(--ink); color: var(--paper); padding: .55rem 1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; opacity: 0; transform: scale(.9); transition: .5s var(--ease-pop) .42s; }
.how-seq .step.on .mcp { opacity: 1; transform: none; }
.how-seq .pulse { width: 8px; height: 8px; border-radius: 50%; background: #69dc8f;
  box-shadow: 0 0 0 0 rgba(105,220,143,.7); animation: howPulse 1.8s infinite; }
@keyframes howPulse { 70% { box-shadow: 0 0 0 9px rgba(105,220,143,0); } 100% { box-shadow: 0 0 0 0 rgba(105,220,143,0); } }

.how-seq .prompt { background: var(--paper); border: 1.5px solid rgba(33,29,28,.1); border-radius: 16px;
  padding: .9rem 1rem; font-size: .95rem; min-height: 76px; margin: 0; }
.how-seq .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--coral);
  vertical-align: -2px; animation: howBlink 1s steps(2) infinite; }
@keyframes howBlink { 50% { opacity: 0; } }
.how-seq .blocks { display: flex; flex-direction: column; gap: 8px; }
.how-seq .blk { display: flex; align-items: center; gap: 10px; background: var(--paper);
  border: 1px solid rgba(33,29,28,.07); border-radius: 13px; padding: .55rem .75rem;
  font-size: .88rem; font-weight: 600; opacity: 0; transform: translateY(14px) scale(.97); transition: .45s var(--ease-pop); }
.how-seq .blk.in { opacity: 1; transform: none; }
.how-seq .blk i { width: 26px; height: 26px; border-radius: 8px; flex: none; display: block; }
.how-seq .built { display: inline-flex; align-items: center; gap: .5rem; background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 600; align-self: flex-start;
  opacity: 0; transform: translateY(8px); transition: .5s var(--ease-pop); }
.how-seq .built.in { opacity: 1; transform: none; }

.how-seq .browser { background: var(--paper); border: 1.5px solid rgba(33,29,28,.1); border-radius: 14px; overflow: hidden; display: block; }
.how-seq .browser .bar { display: flex; align-items: center; gap: 6px; padding: .55rem .75rem; border-bottom: 1px solid rgba(33,29,28,.08); }
.how-seq .browser .bar > i { width: 9px; height: 9px; border-radius: 50%; background: rgba(33,29,28,.15); }
.how-seq .browser .bar b { margin-left: 8px; font-family: ui-monospace, monospace; font-size: .86rem; font-weight: 600; color: var(--ink); }
.how-seq .browser .body { display: flex; gap: 8px; align-items: center; padding: 14px; }
.how-seq .browser .body i { height: 9px; border-radius: 5px; background: rgba(33,29,28,.1); display: block; }

@media (max-width: 920px) {
  .how-seq .track { height: 460vh; }
  .how-seq .stage { justify-content: flex-start; padding-top: 34px; }
  .how-seq .sec-head h2 { font-size: 1.72rem; }
  .how-seq .thread { margin: 18px 0 4px; height: 52px; }
  .how-seq .node { width: 42px; height: 42px; margin: -21px 0 0 -21px; font-size: 1rem; }
  /* absolute steps need a real container height here or they collapse onto the thread */
  .how-seq .steps { min-height: 404px; margin-top: 12px; }
  .how-seq .step { grid-template-columns: 1fr; gap: 14px; align-content: start; }
  .how-seq .step h3 { font-size: 1.35rem; }
  .how-seq .scard { padding: 14px; gap: 9px; border-radius: 18px; }
  .how-seq .prompt { font-size: .85rem; min-height: 56px; padding: .65rem .8rem; }
  .how-seq .blk { font-size: .82rem; padding: .5rem .6rem; }
  .how-seq .blk i { width: 22px; height: 22px; }
  .how-seq .built { font-size: .78rem; padding: .5rem .85rem; }
  .how-seq .chip { font-size: .86rem; padding: .5rem .85rem; }
}
/* no JS / reduced motion: flatten to a readable stack, everything visible */
@media (prefers-reduced-motion: reduce) {
  .how-seq .track { height: auto; }
  .how-seq .stage { position: static; height: auto; padding: 60px 0; }
  .how-seq .step { position: static; opacity: 1; transform: none; margin-bottom: 34px; }
  .how-seq .steps { min-height: 0; }
  .how-seq .chip, .how-seq .mcp, .how-seq .blk, .how-seq .built { opacity: 1 !important; transform: none !important; }
  .how-bg video { display: none; }
}
/* Progressive enhancement: until JS adds .seq-on (and never under reduced motion)
   the section renders as a plain readable stack with every step visible. */
.how-seq:not(.seq-on) .track { height: auto; }
.how-seq:not(.seq-on) .stage { position: static; height: auto; padding: 60px 0; }
.how-seq:not(.seq-on) .step { position: static; opacity: 1; transform: none; margin-bottom: 34px; }
.how-seq:not(.seq-on) .steps { min-height: 0; }
.how-seq:not(.seq-on) .thread { display: none; }
.how-seq:not(.seq-on) .how-bg video { display: none; }
.how-seq:not(.seq-on) .chip,
.how-seq:not(.seq-on) .mcp,
.how-seq:not(.seq-on) .blk,
.how-seq:not(.seq-on) .built { opacity: 1; transform: none; }
.how-seq:not(.seq-on) .caret { display: none; }


/* ============ #funciones: "el rompecabezas" — loose pieces that snap ============
   Progressive enhancement: the grid renders finished by default. JS adds .puzzle
   to #bento, which drops the tiles into their loose state; each tile then gets
   .set as it reaches the viewport (the grid is taller than any screen, so one
   global trigger fired most of the eleven off-screen). */
#funciones { overflow-x: clip; }   /* transient loose-state transforms must never scroll the page */
#bento .tile { position: relative; overflow: hidden; }
#bento.puzzle .tile {
  transform: translate(var(--tx,0), var(--ty,0)) rotate(var(--rot,0deg)) scale(.94);
  filter: saturate(.1) contrast(.97); opacity: .5;
  box-shadow: 0 1px 0 rgba(33,29,28,.05), 0 10px 26px -16px rgba(33,29,28,.3);
  transition: transform .95s cubic-bezier(.16,.9,.24,1), filter .8s ease, opacity .6s ease, box-shadow .6s ease;
}
#bento.puzzle .tile.set { transform: none; filter: none; opacity: 1; box-shadow: var(--shadow-tile); }
/* the real content stays dim while the piece reads as a generic external service */
#bento.puzzle .tile > .ticon, #bento.puzzle .tile > h3, #bento.puzzle .tile > .tdesc,
#bento.puzzle .tile > .minilist, #bento.puzzle .tile > .chip { opacity: .22; transition: opacity .55s ease; }
#bento.puzzle .tile.set > .ticon, #bento.puzzle .tile.set > h3, #bento.puzzle .tile.set > .tdesc,
#bento.puzzle .tile.set > .minilist, #bento.puzzle .tile.set > .chip { opacity: 1; }

.loose { display: none; }
#bento.puzzle .loose {
  display: block; position: absolute; left: 50%; top: 50%; z-index: 4;
  transform: translate(-50%,-50%) rotate(-1.5deg);
  font-family: var(--display); font-weight: 700; font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); background: rgba(253,249,245,.92);
  border: 1.5px dashed rgba(33,29,28,.22); padding: .35rem .7rem; border-radius: 999px;
  white-space: nowrap; transition: opacity .35s ease;
}
#bento.puzzle .tile.set .loose { opacity: 0; }

/* the chip moves to the bottom so the top-right is a single, consistent live corner */
#bento .tile .chip { top: auto; bottom: 22px; right: 22px; }
#bento .tile--chip { padding-bottom: 64px; }

/* ── micro-demos: one live corner, top-right on every card ── */
#bento .demo { position: absolute; top: 22px; right: 22px; pointer-events: none; line-height: 1; }
#bento.puzzle .demo { visibility: hidden; }
#bento.puzzle .tile.set .demo { visibility: visible; }

#bento .d-blocks { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
#bento .d-blocks i { display: block; height: 9px; border-radius: 4px; background: var(--coral); opacity: .25;
  transform: translateX(14px); transition: .45s var(--ease-pop); }
#bento .d-blocks i:nth-child(1) { width: 54px; } #bento .d-blocks i:nth-child(2) { width: 40px; }
#bento .d-blocks i:nth-child(3) { width: 64px; }
#bento .tile:hover .d-blocks i { opacity: 1; transform: none; }
#bento .tile:hover .d-blocks i:nth-child(2) { transition-delay: .07s; }
#bento .tile:hover .d-blocks i:nth-child(3) { transition-delay: .14s; }

/* .d-cert is only a positioning box. The certificate clips its own wipe, while the
   seal sits OUTSIDE it so the stamp can overshoot without being cut — putting both
   in one box meant the wipe panel escaped and parked above the card. */
#bento .d-cert { width: 64px; height: 48px; }
#bento .d-cert .cert { position: absolute; inset: 0; border-radius: 7px; background: #fff;
  border: 1.5px solid rgba(33,29,28,.14); overflow: hidden; }
#bento .d-cert .cert i { position: absolute; height: 4px; border-radius: 2px; background: rgba(33,29,28,.14); }
#bento .d-cert .cert i:nth-child(1) { top: 11px; left: 8px; right: 26px; }
#bento .d-cert .cert i:nth-child(2) { top: 20px; left: 8px; right: 34px; }
#bento .d-cert .cert::after { content: ''; position: absolute; inset: -1px; background: var(--paper);
  transform: translateY(0); transition: transform .55s cubic-bezier(.16,.9,.24,1); }
#bento .tile:hover .d-cert .cert::after { transform: translateY(-101%); }
/* seal: scalloped rosette edge, ring, tick, ribbon. Stamps down with an overshoot. */
#bento .seal { position: absolute; right: 3px; bottom: 2px; width: 23px; height: 25px; overflow: visible;
  transform-origin: 50% 42%; transform: scale(1.85) rotate(-16deg); opacity: 0;
  transition: transform .30s cubic-bezier(.2,.85,.28,1.5), opacity .16s ease; }
#bento .tile:hover .d-cert .seal { transform: scale(1) rotate(-7deg); opacity: 1; transition-delay: .30s; }
#bento .s-edge { fill: none; stroke: var(--coral); stroke-width: 3.1; stroke-dasharray: 1.7 2.35; stroke-linecap: round; }
#bento .s-disc { fill: var(--coral); }
#bento .s-ring { fill: none; stroke: rgba(255,255,255,.72); stroke-width: .9; }
#bento .s-tick { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#bento .s-rib { fill: var(--coral-deep); }

#bento .d-bar { width: 74px; height: 9px; border-radius: 5px; background: rgba(33,29,28,.12); overflow: hidden; }
#bento .d-bar i { display: block; height: 100%; width: 22%; border-radius: 5px; background: var(--ink); transition: width .8s cubic-bezier(.16,.9,.24,1); }
#bento .tile:hover .d-bar i { width: 92%; }

#bento .d-chat { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
#bento .d-chat i { display: block; height: 16px; border-radius: 9px 9px 3px 9px; background: rgba(33,29,28,.12); }
#bento .d-chat i:nth-child(1) { width: 44px; }
#bento .d-chat i:nth-child(2) { width: 58px; background: var(--coral); opacity: 0; border-radius: 9px 9px 9px 3px;
  transform: translateY(6px) scale(.9); transition: .45s var(--ease-pop) .1s; }
#bento .tile:hover .d-chat i:nth-child(2) { opacity: 1; transform: none; }

#bento .d-money { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--paper);
  letter-spacing: -.02em; opacity: .45; transition: .5s var(--ease-pop); }
#bento .tile:hover .d-money { opacity: 1; transform: translateY(-2px); }

#bento .d-bars { display: flex; align-items: flex-end; gap: 5px; height: 42px; }
#bento .d-bars i { width: 9px; border-radius: 3px 3px 0 0; background: var(--ink); opacity: .22; height: 22%;
  transition: height .6s cubic-bezier(.16,.9,.24,1), opacity .4s; }
#bento .tile:hover .d-bars i { opacity: .85; }
#bento .tile:hover .d-bars i:nth-child(1) { height: 48%; }
#bento .tile:hover .d-bars i:nth-child(2) { height: 78%; transition-delay: .06s; }
#bento .tile:hover .d-bars i:nth-child(3) { height: 34%; transition-delay: .12s; }
#bento .tile:hover .d-bars i:nth-child(4) { height: 96%; transition-delay: .18s; }

#bento .d-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #c62b2b; opacity: .35; transition: .4s ease; }
#bento .d-live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
#bento .tile:hover .d-live { opacity: 1; }
#bento .tile:hover .d-live i { animation: bLive 1.3s infinite; }
@keyframes bLive { 70% { box-shadow: 0 0 0 8px rgba(198,43,43,0); } 100% { box-shadow: 0 0 0 0 rgba(198,43,43,0); } }

#bento .d-coupon { font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  border: 1.5px dashed rgba(33,29,28,.3); border-radius: 7px; padding: .3rem .55rem; color: var(--ink);
  transform: rotate(-6deg) scale(.85); opacity: .4; transition: .45s var(--ease-pop); }
#bento .tile:hover .d-coupon { transform: rotate(-3deg) scale(1); opacity: 1; border-color: var(--coral); color: var(--coral-deep); }

#bento .d-lang { font-family: var(--display); font-weight: 900; font-size: 1.1rem; color: var(--ink-soft); width: 30px; text-align: right; }
#bento .tile:hover .d-lang { color: var(--coral-deep); }

#bento .d-people { display: flex; }
#bento .d-people i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--blush); margin-left: -8px;
  background: rgba(33,29,28,.16); transform: scale(.8); opacity: .5; transition: .4s var(--ease-pop); }
#bento .d-people i:first-child { margin-left: 0; }
#bento .tile:hover .d-people i { transform: none; opacity: 1; background: var(--coral); }
#bento .tile:hover .d-people i:nth-child(2) { transition-delay: .06s; background: var(--ink); }
#bento .tile:hover .d-people i:nth-child(3) { transition-delay: .12s; background: var(--yellow); }

#bento .d-swatch { display: flex; gap: 5px; }
#bento .d-swatch i { width: 17px; height: 17px; border-radius: 6px; transform: scale(.8); opacity: .45; transition: .4s var(--ease-pop); }
#bento .tile:hover .d-swatch i { transform: none; opacity: 1; }
#bento .tile:hover .d-swatch i:nth-child(2) { transition-delay: .06s; }
#bento .tile:hover .d-swatch i:nth-child(3) { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  #bento.puzzle .tile { transform: none !important; filter: none !important; opacity: 1 !important; }
  #bento.puzzle .loose { display: none; }
  #bento.puzzle .demo { visibility: visible; }
}


/* ============ #agentes: how the MCP connection works ============
   Sequence is the lesson — agent → permission granted → only then, work, and only
   inside your academy. Markup rather than video so every label stays crisp and
   translatable (a generative render cannot draw legible labels). */
.mcp-teaser .mcp-top { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: center; }
@media (max-width: 980px) { .mcp-teaser .mcp-top { grid-template-columns: 1fr; gap: 34px; } }
.mcp-teaser .mcp-top .sec-head { margin-bottom: 0; }

.mcp-diagram .flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; }
@media (max-width: 980px) { .mcp-diagram .flow { grid-template-columns: 1fr; justify-items: center; } }
.mcp-diagram .col-label { font-family: var(--display); font-weight: 700; font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(253,249,245,.42); margin-bottom: 12px; text-align: center; }

.mcp-diagram .agents { display: flex; flex-direction: column; gap: 8px; }
.mcp-diagram .ag { display: flex; align-items: center; gap: 9px; padding: .5rem .85rem; border-radius: 999px;
  border: 1.5px solid rgba(253,249,245,.18); color: rgba(253,249,245,.78); font-size: .86rem; font-weight: 600;
  background: rgba(253,249,245,.04); white-space: nowrap;
  opacity: 0; transform: translateX(-10px); transition: .5s var(--ease-pop); }
.mcp-diagram.on .ag { opacity: 1; transform: none; }
.mcp-diagram.on .ag:nth-child(2) { transition-delay: .1s; }
.mcp-diagram.on .ag:nth-child(3) { transition-delay: .2s; }
.mcp-diagram .ag i { width: 7px; height: 7px; border-radius: 50%; background: rgba(253,249,245,.35); flex: none; }
.mcp-diagram.on .ag.lit i { background: var(--coral); box-shadow: 0 0 9px 2px rgba(247,122,86,.6); }
.mcp-diagram.on .ag.lit { border-color: rgba(247,122,86,.55); color: var(--paper); }

.mcp-diagram .link { position: relative; height: 2px; min-width: 46px; background: rgba(253,249,245,.14);
  margin: 0 12px; border-radius: 2px; }
.mcp-diagram .link .fill { position: absolute; inset: 0; background: var(--coral); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.mcp-diagram.on .link1 .fill { transform: scaleX(1); transition-delay: .35s; }
.mcp-diagram.on .link2 .fill { transform: scaleX(1); transition-delay: 1.15s; }
.mcp-diagram .link .pk { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(247,122,86,.75); opacity: 0; }
.mcp-diagram.on .link1 .pk { animation: mcpTravel 1.5s linear .5s infinite; }
.mcp-diagram.on .link2 .pk { animation: mcpTravel 1.5s linear 1.3s infinite; }
@keyframes mcpTravel { 0% { left: 0; opacity: 0 } 12% { opacity: 1 } 88% { opacity: 1 } 100% { left: 100%; opacity: 0 } }
@media (max-width: 980px) {
  .mcp-diagram .link { height: 34px; width: 2px; min-width: 0; margin: 10px 0; }
  .mcp-diagram .link .fill { transform-origin: top; transform: scaleY(0); }
  .mcp-diagram.on .link1 .fill, .mcp-diagram.on .link2 .fill { transform: scaleY(1); }
  .mcp-diagram .link .pk { left: 50%; margin-left: -3.5px; top: 0; }
  @keyframes mcpTravel { 0% { top: 0; opacity: 0 } 12% { opacity: 1 } 88% { opacity: 1 } 100% { top: 100%; opacity: 0 } }
}

.mcp-diagram .gate { display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; transform: scale(.9); transition: .5s var(--ease-pop) .55s; }
.mcp-diagram.on .gate { opacity: 1; transform: none; }
.mcp-diagram .badge { display: inline-flex; align-items: center; gap: .45rem; font-family: ui-monospace, monospace;
  font-size: .8rem; color: var(--paper); background: rgba(253,249,245,.09);
  border: 1.5px solid rgba(253,249,245,.22); border-radius: 999px; padding: .5rem .9rem; transition: .45s var(--ease-pop); }
.mcp-diagram.on .badge { border-color: rgba(105,220,143,.5); }
.mcp-diagram .badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.mcp-diagram .shackle { transition: transform .4s var(--ease-pop) .9s; transform-origin: 12px 11px; }
.mcp-diagram.on .shackle { transform: translateX(3px) rotate(14deg); }   /* the lock opens */
.mcp-diagram .grant { font-size: .68rem; color: #69dc8f; opacity: 0; transition: opacity .4s ease 1.05s; white-space: nowrap; }
.mcp-diagram.on .grant { opacity: 1; }

.mcp-diagram .academy { border: 1.5px solid rgba(253,249,245,.16); border-radius: 18px; padding: 14px;
  background: rgba(253,249,245,.035); min-width: 232px;
  opacity: 0; transform: translateX(10px); transition: .5s var(--ease-pop) .9s; }
.mcp-diagram.on .academy { opacity: 1; transform: none; }
.mcp-diagram .dom { font-family: ui-monospace, monospace; font-size: .74rem; color: rgba(253,249,245,.5);
  padding: 0 4px 10px; border-bottom: 1px solid rgba(253,249,245,.1); margin-bottom: 10px; }
.mcp-diagram .task { display: flex; align-items: center; gap: 9px; padding: .42rem .3rem; font-size: .85rem;
  color: rgba(253,249,245,.45); transition: color .4s ease; }
.mcp-diagram .tick { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(253,249,245,.25);
  flex: none; display: grid; place-items: center; transition: .4s var(--ease-pop); }
.mcp-diagram .tick svg { width: 9px; height: 9px; stroke: var(--ink); stroke-width: 3; fill: none;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .25s ease; }
.mcp-diagram.on .task.done { color: var(--paper); }
.mcp-diagram.on .task.done .tick { background: #69dc8f; border-color: #69dc8f; }
.mcp-diagram.on .task.done .tick svg { opacity: 1; }
.mcp-diagram .scope { margin-top: 22px; display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem;
  color: rgba(253,249,245,.55); border: 1px dashed rgba(253,249,245,.2); border-radius: 999px; padding: .45rem .9rem;
  opacity: 0; transition: opacity .5s ease 1.7s; }
.mcp-diagram.on .scope { opacity: 1; }
.mcp-diagram .scope b { color: var(--paper); font-weight: 600; }

/* ── card widgets: same grammar as the #funciones bento (top-right live corner) ── */
.mcp-cards .tile { position: relative; overflow: hidden; }
.mcp-cards .demo { position: absolute; top: 22px; right: 22px; pointer-events: none; line-height: 1; }

.mcp-cards .d-compose { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.mcp-cards .d-compose i { display: block; height: 7px; border-radius: 4px; background: var(--ink); opacity: .18;
  transform: translateX(12px); transition: .42s var(--ease-pop); }
.mcp-cards .d-compose i:nth-child(1) { width: 48px } .mcp-cards .d-compose i:nth-child(2) { width: 34px }
.mcp-cards .d-compose i:nth-child(3) { width: 56px }
.mcp-cards .tile:hover .d-compose i { opacity: .85; transform: none; }
.mcp-cards .tile:hover .d-compose i:nth-child(2) { transition-delay: .09s; }
.mcp-cards .tile:hover .d-compose i:nth-child(3) { transition-delay: .18s; }
.mcp-cards .d-compose b { display: block; width: 2px; height: 11px; background: var(--coral); margin-top: 2px; opacity: 0; }
.mcp-cards .tile:hover .d-compose b { opacity: 1; animation: mcpCaret 1s steps(2) infinite .3s; }
@keyframes mcpCaret { 50% { opacity: 0 } }

.mcp-cards .d-pulse svg { width: 64px; height: 32px; display: block; overflow: visible; }
.mcp-cards .d-pulse .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: .28; stroke-dasharray: 90; stroke-dashoffset: 90;
  transition: stroke-dashoffset .75s cubic-bezier(.4,0,.2,1), opacity .3s; }
.mcp-cards .tile:hover .d-pulse .ln { stroke-dashoffset: 0; opacity: .8; }
.mcp-cards .d-pulse .risk { fill: var(--coral); opacity: 0; transform: scale(0); transform-origin: center;
  transition: .4s var(--ease-pop) .6s; }
.mcp-cards .tile:hover .d-pulse .risk { opacity: 1; transform: scale(1); }

.mcp-cards .d-cal { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; width: 56px; }
.mcp-cards .d-cal i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--ink); opacity: .14;
  transition: .35s var(--ease-pop); }
.mcp-cards .tile:hover .d-cal i { opacity: .26; }
.mcp-cards .tile:hover .d-cal i:nth-child(2) { opacity: .5; transition-delay: .09s; }
.mcp-cards .tile:hover .d-cal i:nth-child(4) { background: var(--coral); opacity: 1; transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  .mcp-diagram .ag, .mcp-diagram .gate, .mcp-diagram .academy, .mcp-diagram .scope { opacity: 1 !important; transform: none !important; }
  .mcp-diagram .link .fill { transform: none !important; }
  .mcp-cards .demo { display: none; }
}


/* ============ #estandares: card widgets, same grammar as the bento ============
   Chips move to the bottom so the top-right stays the one live corner, exactly
   as in #funciones — the two never share a corner. */
.iop-cards .tile { position: relative; overflow: hidden; padding-bottom: 64px; }
.iop-cards .tile .chip { top: auto; bottom: 22px; right: 22px; }
.iop-cards .demo { position: absolute; top: 22px; right: 22px; pointer-events: none; line-height: 1; }

/* 1 · the package unpacks */
/* no position here — .demo is already absolute, and re-declaring position
   would override its corner placement and drop it into normal flow */
.iop-cards .d-zip { display: block; width: 46px; height: 40px; }
.iop-cards .d-zip i { position: absolute; left: 0; right: 0; height: 9px; border-radius: 3px;
  background: var(--ink); opacity: .16; transition: .45s var(--ease-pop); }
.iop-cards .d-zip i:nth-child(1) { top: 14px } .iop-cards .d-zip i:nth-child(2) { top: 16px }
.iop-cards .d-zip i:nth-child(3) { top: 18px }
.iop-cards .tile:hover .d-zip i:nth-child(1) { top: 0; opacity: 1; background: var(--coral); }
.iop-cards .tile:hover .d-zip i:nth-child(2) { top: 15px; opacity: .5; transition-delay: .05s; }
.iop-cards .tile:hover .d-zip i:nth-child(3) { top: 30px; opacity: .35; transition-delay: .1s; }

/* 2 · two tools link up */
.iop-cards .d-plug { display: flex; align-items: center; }
.iop-cards .d-plug i { width: 18px; height: 18px; border-radius: 6px; background: var(--ink); opacity: .2;
  transition: .45s var(--ease-pop); }
.iop-cards .d-plug i:first-child { transform: translateX(-7px); }
.iop-cards .d-plug i:last-child { transform: translateX(7px); }
.iop-cards .d-plug b { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--coral);
  transform: scaleX(0); transition: transform .4s var(--ease-pop) .18s; }
.iop-cards .tile:hover .d-plug i { transform: none; opacity: .55; }
.iop-cards .tile:hover .d-plug b { transform: scaleX(1); }

/* 3 · two sources become one report */
.iop-cards .d-merge svg { width: 64px; height: 32px; display: block; overflow: visible; }
.iop-cards .d-merge path { fill: none; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .55s cubic-bezier(.4,0,.2,1); }
.iop-cards .d-merge .a, .iop-cards .d-merge .b { stroke: var(--ink); opacity: .32; }
.iop-cards .d-merge .c { stroke: var(--coral); stroke-width: 2.6; transition-delay: .4s; }
.iop-cards .tile:hover .d-merge path { stroke-dashoffset: 0; }
.iop-cards .tile:hover .d-merge .a, .iop-cards .tile:hover .d-merge .b { opacity: .55; }

@media (prefers-reduced-motion: reduce) { .iop-cards .demo { display: none; } }


/* ============ closing band: the academy, built and lit ============
   Full-bleed cinematic plate. The render already carries its own darkness on the
   left, so only the outer edges need softening into the band. */
.cta-band--casa { position: relative; overflow: hidden; text-align: left; }
.cta-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%),
                      linear-gradient(to bottom, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%),
              linear-gradient(to bottom, #000 74%, transparent 100%);
  mask-composite: intersect; }
.cta-scene img, .cta-scene video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; }
.cta-scene video { z-index: 1; }   /* on top of the still, which is the fallback */
.cta-spill { position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(34% 40% at 72% 76%, rgba(255,186,18,.30), transparent 62%),
              radial-gradient(30% 34% at 80% 62%, rgba(247,122,86,.24), transparent 64%);
  filter: blur(14px); animation: ctaBreathe 17s ease-in-out infinite alternate; }
@keyframes ctaBreathe { 0% { transform: scale(1) } 100% { transform: scale(1.06) translate3d(-1%,1%,0) } }
/* keeps the headline and CTA readable over the plate */
.cta-band--casa::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(26,23,22,.93) 0%, rgba(26,23,22,.86) 32%,
    rgba(26,23,22,.42) 52%, rgba(26,23,22,.04) 74%, rgba(26,23,22,0) 100%); }
.cta-band--casa .wrap { position: relative; z-index: 2; text-align: left; max-width: var(--wrap-max, 1180px); }
.cta-band--casa h2 { max-width: 15ch; }
.cta-band--casa p { max-width: 42ch; }

@media (max-width: 900px) {
  .cta-band--casa .wrap { text-align: center; }
  .cta-band--casa h2, .cta-band--casa p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .cta-scene { inset: auto 0 0 0; height: 52%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
  .cta-band--casa::after { background: linear-gradient(to bottom,
    rgba(26,23,22,.92) 0%, rgba(26,23,22,.86) 42%, rgba(26,23,22,.30) 70%, rgba(26,23,22,0) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-spill { animation: none; }
  .cta-scene video { display: none; }   /* the finished still stands in */
}




/* ===================================================================
   /mcp — Agentes IA
   The landing's components, this page's own content. Two rules learned the
   hard way: (1) generated footage earns its place only when it IS the subject,
   never as wallpaper; (2) a plate that fills a 100svh stage must be rendered
   at the size it will be PAINTED (a 1280-wide clip covering 1440x900 is a
   125% upscale and it shows), so full-bleed stages take 1080p sources.
   Everything legible on this page is markup.
   =================================================================== */

/* ── hero: ink band, copy left, the conversation right ───────────────── */
.mhero { background: var(--ink); color: var(--paper); padding: 88px 0 92px; position: relative; overflow: hidden; }
.mhero .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
.mhero .kicker { color: var(--coral); }
.mhero .kicker::before { background: var(--coral); }
.mhero h1 { color: var(--paper); }
/* The landing's hero marker is a CREAM band behind the letterforms, which works
   because that hero is light with ink text. Here the text is paper-white, and
   paper on cream is a 1.14:1 contrast ratio — the highlighted words all but
   vanish. Same per-line clone technique (so it still wraps), but the band drops
   below the baseline and turns coral: an underline, not a highlight. */
.mhero h1 .hl {
  background-image: linear-gradient(transparent 87%, var(--coral) 87%, var(--coral) 99%, transparent 99%);
  padding: 0 .04em;
}
.mhero p.lead { color: rgba(253,249,245,.78); }
.mhero .btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 2px rgba(253,249,245,.3); }
.mhero .btn--ghost:hover { background: rgba(253,249,245,.08); box-shadow: inset 0 0 0 2px rgba(253,249,245,.5); }
/* The plate is a TEXTURE (a lit facade), not a subject, so the conversation
   card can sit anywhere on it without covering the point of the shot. Rendered
   at 1080p because this band paints ~1600px wide on a desktop viewport. */
.mhero .hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(26,23,22,.96) 0%, rgba(26,23,22,.90) 30%,
      rgba(26,23,22,.66) 54%, rgba(26,23,22,.52) 100%),
    linear-gradient(to bottom, rgba(26,23,22,.55) 0%, rgba(26,23,22,0) 30%, rgba(26,23,22,.72) 100%);
}
.mhero .hero-media video, .mhero .hero-media .mhero-still { filter: saturate(.92); }
.mhero > .wrap { position: relative; z-index: 1; }

/* ── the conversation: messages land one after another ──────────────── */
.mchat { background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 2px 0 rgba(0,0,0,.2), 0 40px 80px -30px rgba(0,0,0,.7); display: grid; gap: 14px; }
.mchat .row { display: flex; gap: 12px; align-items: flex-start; }
.mchat .who { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: .72rem; color: var(--paper); background: var(--ink); }
.mchat .row.a .who { background: var(--coral); }
.mchat .bub { background: var(--paper); border: 1.5px solid rgba(33,29,28,.08); border-radius: 16px;
  padding: 12px 16px; font-size: .95rem; line-height: 1.5; color: var(--ink); min-width: 0; }
.mchat .bub.done { background: #eafaf0; border-color: rgba(28,107,63,.18); color: #1c6b3f; font-weight: 500; }
/* each message drops in when the script releases it; without JS all are visible */
.mchat.seq-on .row { opacity: 0; transform: translateY(12px); transition: .5s var(--ease-pop); }
.mchat.seq-on .row.in { opacity: 1; transform: none; }
/* the assistant "thinking" beat, so the answers feel earned */
.mchat .dots { display: inline-flex; gap: 4px; align-items: center; height: 1.2em; }
.mchat .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); opacity: .35;
  animation: mchatDot 1.1s ease-in-out infinite; }
.mchat .dots i:nth-child(2) { animation-delay: .16s } .mchat .dots i:nth-child(3) { animation-delay: .32s }
@keyframes mchatDot { 30% { opacity: 1; transform: translateY(-3px) } }
.mchat .row.thinking { display: none; }
.mchat.seq-on .row.thinking.in { display: flex; }
@media (max-width: 920px) { .mhero .hero-grid { grid-template-columns: 1fr; } }

/* ── card widgets: top-right is the one live corner, as on the landing ── */
.mcards .tile { position: relative; overflow: hidden; }
.mcards .demo { position: absolute; top: 22px; right: 22px; pointer-events: none; line-height: 1; }
.mcards .minilist { grid-template-columns: 1fr; }
.mcards .tile--wide .minilist { grid-template-columns: 1fr 1fr; }

/* bridge: two halves meet */
.mcards .d-bridge { display: flex; align-items: center; }
.mcards .d-bridge i { width: 17px; height: 17px; border-radius: 6px; background: var(--ink); opacity: .2;
  transition: .45s var(--ease-pop); }
.mcards .d-bridge i:first-child { transform: translateX(-8px) } .mcards .d-bridge i:last-child { transform: translateX(8px) }
.mcards .d-bridge b { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--coral);
  transform: scaleX(0); transition: transform .4s var(--ease-pop) .16s; }
.mcards .tile:hover .d-bridge i { transform: none; opacity: .55; }
.mcards .tile:hover .d-bridge b { transform: scaleX(1); }
/* clicks stop */
.mcards .d-clicks { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; width: 52px; }
.mcards .d-clicks i { aspect-ratio: 1; border-radius: 4px; background: var(--ink); opacity: .14; transition: .35s var(--ease-pop); }
.mcards .tile:hover .d-clicks i { opacity: .3 }
.mcards .tile:hover .d-clicks i:nth-child(5) { background: var(--coral); opacity: 1; transition-delay: .12s }
/* a cohort */
.mcards .d-people { display: flex; }
.mcards .d-people i { width: 22px; height: 22px; border-radius: 50%; margin-left: -7px; background: rgba(33,29,28,.16);
  border: 2px solid var(--white); transition: .4s var(--ease-pop); }
.mcards .d-people i:first-child { margin-left: 0 }
.mcards .tile:hover .d-people i { transform: translateY(-2px) }
.mcards .tile:hover .d-people i:nth-child(2) { background: var(--coral); transition-delay: .08s }
/* blocks stack */
.mcards .d-stack { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.mcards .d-stack i { display: block; height: 8px; border-radius: 4px; background: var(--coral); opacity: .25;
  transform: translateX(14px); transition: .42s var(--ease-pop); }
.mcards .d-stack i:nth-child(1) { width: 54px } .mcards .d-stack i:nth-child(2) { width: 38px }
.mcards .d-stack i:nth-child(3) { width: 62px }
.mcards .tile:hover .d-stack i { opacity: 1; transform: none }
.mcards .tile:hover .d-stack i:nth-child(2) { transition-delay: .07s }
.mcards .tile:hover .d-stack i:nth-child(3) { transition-delay: .14s }
/* a pulse with one flagged point */
.mcards .d-pulse svg { width: 62px; height: 30px; display: block; overflow: visible; }
.mcards .d-pulse .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: .28;
  stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset .75s cubic-bezier(.4,0,.2,1), opacity .3s; }
.mcards .tile:hover .d-pulse .ln { stroke-dashoffset: 0; opacity: .8 }
.mcards .d-pulse .risk { fill: var(--coral); opacity: 0; transform: scale(0); transform-origin: center;
  transition: .4s var(--ease-pop) .6s; }
.mcards .tile:hover .d-pulse .risk { opacity: 1; transform: scale(1) }
/* lock / scopes / log / draft, for "Seguro por diseño" */
.mcards .d-lock svg { width: 25px; height: 25px; fill: none; stroke: var(--ink); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; opacity: .3; transition: opacity .3s; }
.mcards .tile:hover .d-lock svg { opacity: .75 }
.mcards .d-lock .shackle { transform-origin: 12px 11px; transition: transform .4s var(--ease-pop); }
.mcards .tile:hover .d-lock .shackle { transform: translateX(2px) rotate(12deg) }
.mcards .d-scopes { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.mcards .d-scopes i { display: block; height: 7px; border-radius: 4px; background: var(--ink); opacity: .16;
  transition: .4s var(--ease-pop); }
.mcards .d-scopes i:nth-child(1) { width: 48px } .mcards .d-scopes i:nth-child(2) { width: 34px }
.mcards .d-scopes i:nth-child(3) { width: 22px }
.mcards .tile:hover .d-scopes i:nth-child(1) { opacity: .8; background: var(--coral) }
.mcards .tile:hover .d-scopes i:nth-child(2) { opacity: .4; transition-delay: .07s }
.mcards .d-log { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.mcards .d-log i { display: block; width: 46px; height: 6px; border-radius: 3px; background: var(--ink); opacity: .14;
  transition: .4s var(--ease-pop); }
.mcards .tile:hover .d-log i { opacity: .34 }
.mcards .tile:hover .d-log i:nth-child(3) { opacity: .85; background: var(--coral); transition-delay: .1s }
.mcards .d-draft { font-family: var(--display); font-weight: 700; font-size: .66rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); border: 1.5px dashed rgba(33,29,28,.25);
  border-radius: 999px; padding: .22rem .6rem; transition: .4s var(--ease-pop); }
.mcards .tile:hover .d-draft { color: var(--coral-deep); border-color: var(--coral); border-style: solid }

/* ── "Cómo funciona": the landing's sticky sequence, this page's steps ──
   .how-bg is optional here. With no plate the stage is a warm paper wash, so
   the section never depends on an asset that has not been art-directed yet. */
#como.how-seq { background: var(--ink); }
/* the plate IS the lesson here: scrolling lights the academy room by room, so
   the footage is scrubbed by scroll position and never autoplayed. Run as shot
   (the landing grades ITS plate up to paper; this one is a night exterior and
   the same wash would kill it) and scrimmed only enough to hold the copy. */
#como .how-bg video, #como .how-bg img { filter: none; }
/* two layers on purpose: the radial keeps the edges in the band, and the
   left-to-right wash protects the copy column — the plate ENDS bright (the
   academy fully lit), so a scrim tuned to the dark first frame would leave
   step 3 unreadable. */
#como .how-bg::after {
  background:
    linear-gradient(100deg, rgba(26,23,22,.90) 0%, rgba(26,23,22,.82) 26%,
      rgba(26,23,22,.46) 46%, rgba(26,23,22,.30) 70%, rgba(26,23,22,.34) 100%),
    radial-gradient(130% 90% at 50% 34%, rgba(26,23,22,0) 0%, rgba(26,23,22,.52) 62%, var(--ink) 99%);
}
#como .kicker { color: var(--coral); }
#como .sec-head h2 { color: var(--paper); }
#como .sec-head h2 .hl::after { background: var(--coral); opacity: .9; }
#como .sec-head p { color: rgba(253,249,245,.74); }
#como .step h3 { color: var(--paper); }
/* FIRST child only — .scard is also a direct div child of .step, so a plain
   `> div .tdesc` painted the white card's own paragraph paper-white on white,
   and it outranked the .scard override on specificity (121 vs 120). */
#como .step > div:first-child .tdesc { color: rgba(253,249,245,.72); }
#como .thread .rail { stroke: rgba(253,249,245,.22); }
/* the plate travels from black to fully lit under these, so an inactive node
   is tinted DARK rather than translucent-light: it has to read on both ends */
#como .node { background: rgba(26,23,22,.6); color: rgba(253,249,245,.75);
  box-shadow: inset 0 0 0 1.5px rgba(253,249,245,.3); }
#como .node.done { background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
/* step 1 — the academy's own MCP address */
.how-seq .addr { display: flex; align-items: center; gap: 10px; background: var(--paper);
  border: 1.5px solid rgba(33,29,28,.1); border-radius: 12px; padding: .7rem .9rem;
  font-family: ui-monospace, monospace; font-size: .88rem; color: var(--ink); }
.how-seq .addr .lockic { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--ink-soft);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.how-seq .addr .copy { margin-left: auto; font-family: var(--body); font-size: .7rem; font-weight: 600;
  color: var(--ink-soft); border: 1px solid rgba(33,29,28,.14); border-radius: 999px; padding: .16rem .55rem;
  white-space: nowrap; }
/* step 2 — the consent screen, ticking the scopes the admin grants */
.how-seq .consent { border: 1.5px solid rgba(33,29,28,.1); border-radius: 16px; overflow: hidden;
  background: var(--paper); }
.how-seq .consent .head { display: flex; align-items: center; gap: 9px; padding: .7rem .9rem;
  border-bottom: 1px solid rgba(33,29,28,.08); font-size: .82rem; font-weight: 600; }
.how-seq .consent .head img { height: 17px; width: auto; }
.how-seq .consent .head span { color: var(--ink-soft); font-weight: 400; }
.how-seq .scopes { display: grid; gap: 7px; padding: 12px 14px 14px; }
.how-seq .sc { display: flex; align-items: center; gap: 9px; font-size: .87rem; color: var(--ink-soft);
  opacity: .45; transition: .4s var(--ease-pop); }
.how-seq .sc.on { opacity: 1; color: var(--ink); }
.how-seq .sc .box { width: 17px; height: 17px; border-radius: 6px; flex: none; display: grid; place-items: center;
  border: 1.5px solid rgba(33,29,28,.22); transition: .3s var(--ease-pop); }
.how-seq .sc .box svg { width: 10px; height: 10px; fill: none; stroke: var(--white); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.how-seq .sc.on .box { background: var(--coral); border-color: var(--coral); }
.how-seq .sc.on .box svg { opacity: 1; }
.how-seq .sc code { font-family: ui-monospace, monospace; font-size: .76rem; margin-left: auto;
  color: var(--ink-soft); opacity: .7; }
.how-seq .approve { margin: 0 14px 14px; text-align: center; background: var(--coral); color: var(--white);
  font-family: var(--display); font-weight: 700; font-size: .88rem; border-radius: 999px; padding: .55rem 1rem;
  box-shadow: 0 3px 0 var(--coral-deep); opacity: .35; transition: opacity .4s ease; }
.how-seq .step.on .approve { opacity: 1; }
.how-seq:not(.seq-on) .sc { opacity: 1; color: var(--ink); }
.how-seq:not(.seq-on) .sc .box { background: var(--coral); border-color: var(--coral); }
.how-seq:not(.seq-on) .sc .box svg { opacity: 1; }
.how-seq:not(.seq-on) .approve { opacity: 1; }
.how-seq .asks { display: grid; gap: 8px; }
.how-seq .ask { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink-soft);
  opacity: 0; transform: translateY(6px); transition: .4s var(--ease-pop); }
.how-seq .ask.in { opacity: 1; transform: none; }
.how-seq .ask .tk { width: 16px; height: 16px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #35c06f; }
.how-seq .ask .tk svg { width: 9px; height: 9px; fill: none; stroke: var(--white); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }
.how-seq:not(.seq-on) .perm span, .how-seq:not(.seq-on) .ask { opacity: 1; transform: none; }

/* ── developer band ──────────────────────────────────────────────────────
   Light, deliberately. .cta-band right below is ink, and two dark slabs in a
   row read as one long undifferentiated block (and, full-bleed, the CTA's
   rounded corners cut paper notches out of it). The page now closes the way
   the landing does: light section, then the dark CTA. The code block carries
   the dark on its own. */
.dev { background: var(--white); }
.dev-facts li { display: flex; gap: 10px; color: var(--ink-soft); font-size: .95rem; }
.dev-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .dev-grid { grid-template-columns: 1fr; gap: 32px; } }
.dev-facts { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.dev-facts li::before { content: '✶'; color: var(--coral); }
.dev-facts code { font-family: ui-monospace, monospace; font-size: .85rem; color: var(--ink); }
.dev-code { background: var(--ink); border-radius: var(--radius-sm);
  padding: 24px 26px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem;
  line-height: 1.7; color: #e9e2d8; overflow-x: auto; white-space: pre;
  box-shadow: 0 2px 0 rgba(33,29,28,.06), 0 26px 50px -20px rgba(33,29,28,.45); }
.dev-code .k { color: #ffb59c; }

/* ── closing band ────────────────────────────────────────────────────────
   One warm pool of light instead of the three .cta-deco circles: at this size
   they landed hard-edged against the rounded corners and read as three
   different-coloured smudges rather than atmosphere. */
/* NOT #cta-band: the landing's closing section carries that same id, and it
   already has its own light (.cta-spill over the cinematic plate). Scoped to
   the plain band so this glow can never reach the home page. */
.cta-band:not(.cta-band--casa)::before {
  content: ''; position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 48% at 50% 82%, rgba(247,122,86,.28), transparent 66%),
    radial-gradient(32% 38% at 70% 22%, rgba(255,186,18,.13), transparent 70%);
  filter: blur(20px);
  animation: ctaBreathe 17s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .mcards .demo { display: none; }
  .mchat.seq-on .row { opacity: 1 !important; transform: none !important; }
  .cta-band:not(.cta-band--casa)::before { animation: none; }
}
