/* =============================================================================
   FIDERLY · Sistema de diseño del sitio público (v2)
   Marca: champán #F6DDB0 sobre tinta cálida (colores oficiales de la app).
   Tipografía: Bricolage Grotesque (titulares) + Hanken Grotesk (texto).
   Todo el contenido es legible sin JavaScript; las animaciones (GSAP) son
   una capa opcional que respeta prefers-reduced-motion.
   ============================================================================= */

:root {
  --bg: #0d0c0a;
  --bg-2: #131210;
  --surface: #1a1815;
  --surface-2: #221f1b;
  --surface-3: #2a2722;
  --line: rgba(246, 221, 176, 0.1);
  --line-2: rgba(246, 221, 176, 0.2);
  --ink: #f6f0e6;
  --ink-2: #cbc1b1;
  --ink-3: #a09684;
  --brand: #f6ddb0;
  --brand-2: #e8c68a;
  --brand-3: #b8915a;
  --brand-ink: #1c160b;
  --brand-soft: rgba(246, 221, 176, 0.08);
  --ok: #34d399;
  --wa: #25d366;
  --danger: #f87171;

  --cream: #f4ede0;
  --cream-2: #ebe2d1;
  --cream-ink: #1d1912;
  --cream-ink-2: #574e40;
  --cream-line: rgba(29, 25, 18, 0.12);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 18px 36px -18px rgba(0, 0, 0, 0.6);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(4.5rem, 2.5rem + 6vw, 8.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 1.5rem + 4.3vw, 4.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.95rem, 1.3rem + 2.5vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 650; color: var(--ink); }
::selection { background: var(--brand); color: var(--brand-ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  background: var(--brand); color: var(--brand-ink); font-weight: 700;
  padding: 0.7rem 1rem; border-radius: var(--r-sm);
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Sección clara (contraste de ritmo visual) */
.section--cream { background: var(--cream); color: var(--cream-ink); }
.section--cream strong, .section--cream b { color: var(--cream-ink); }
.section--cream .lede, .section--cream p { color: var(--cream-ink-2); }
.section--cream .eyebrow { color: #7a5a24; }
.section--cream .eyebrow::before { background: #b8915a; }
.section--cream h2, .section--cream h3 { color: var(--cream-ink); }
.section--cream :focus-visible { outline-color: #1d1912; }

/* ---- Tipos de texto ---------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--brand-3); }
.lede { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--ink-3); }
.hl { color: var(--brand); }
.hl-under { background: linear-gradient(transparent 72%, rgba(246, 221, 176, 0.22) 72%); padding-inline: 0.05em; }

.head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.head h2 + .lede { margin-top: 1.1rem; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lede { margin-inline: auto; }
.head--center .eyebrow::before { display: none; }

/* ---- Botones ------------------------------------------------------------ */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--ink); --b-line: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 46px; padding: 0.7rem 1.25rem;
  border-radius: 999px; border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 650; font-size: 0.98rem; line-height: 1.1; white-space: nowrap;
  cursor: pointer; position: relative; isolation: isolate; overflow: hidden;
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); border-color: var(--brand-3); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { --b-bg: var(--brand); --b-fg: var(--brand-ink); --b-line: transparent; box-shadow: 0 10px 30px -12px rgba(246, 221, 176, 0.55); }
.btn--primary:hover { --b-bg: #fbe8c6; box-shadow: 0 16px 36px -14px rgba(246, 221, 176, 0.7); border-color: transparent; }
.btn--ghost { --b-bg: transparent; }
.btn--ghost:hover { --b-bg: var(--brand-soft); }
.btn--wa svg { color: var(--wa); }
.btn--lg { min-height: 54px; padding: 0.9rem 1.6rem; font-size: 1.03rem; }
.btn--block { width: 100%; }
.section--cream .btn--ghost { --b-fg: var(--cream-ink); --b-line: var(--cream-line); }
.section--cream .btn--ghost:hover { --b-bg: rgba(29, 25, 18, 0.06); border-color: rgba(29, 25, 18, 0.35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-row--center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--brand); font-weight: 650; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.section--cream .link-arrow { color: #6e4f1b; }

/* ---- Encabezado --------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color 0.35s, border-color 0.35s, transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck { background: rgba(13, 12, 10, 0.86); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em; color: var(--ink); flex: none; }
.brand__mark { width: 38px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav a {
  position: relative; padding: 0.5rem 0.68rem; border-radius: 999px;
  font-size: 0.93rem; font-weight: 550; color: var(--ink-2); transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(246, 221, 176, 0.06); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 0.15rem; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); transform: translateX(-50%); }
.hdr__cta { display: flex; gap: 0.5rem; flex: none; }
.hdr__cta .btn { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.92rem; }
.burger {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center; position: relative; z-index: 2;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3) { transform: translateY(6px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem; overflow-y: auto;
  display: flex; flex-direction: column;
}
.mnav[hidden] { display: none; }
.mnav__links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mnav__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0.25rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em;
}
.mnav__links a svg { width: 20px; height: 20px; color: var(--ink-3); }
.mnav__links a[aria-current="page"] { color: var(--brand); }
.mnav__cta { display: grid; gap: 0.7rem; margin-top: 2rem; }
.mnav__meta { margin-top: auto; padding-top: 2rem; color: var(--ink-3); font-size: 0.92rem; display: grid; gap: 0.3rem; }
.mnav__meta a { color: var(--ink-2); }

@media (max-width: 1180px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: inline-flex; }
}

/* ---- Marcos de dispositivo --------------------------------------------- */
.browser {
  position: relative; border-radius: 14px; overflow: hidden; background: #191917;
  border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: var(--shadow-2);
}
.browser__bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: #22211e; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3833; }
.browser__url {
  margin-left: 12px; flex: 1; max-width: 340px; height: 20px; border-radius: 6px; background: #161513;
  font-size: 0.68rem; color: #8e877b; display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap;
}
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 390 / 844;
  border-radius: 46px; padding: 9px; background: #0a0a09;
  box-shadow: 0 0 0 1.5px #34312b, 0 0 0 3px #12110f, var(--shadow-2);
}
.phone img { width: 100%; height: 100%; border-radius: 38px; object-fit: cover; object-position: top; background: #1f1f1f; }
.phone--sm { max-width: 240px; border-radius: 38px; padding: 7px; }
.phone--sm img { border-radius: 31px; }

.ui-crop { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07); background: #2a2a2a; }
.ui-crop img { width: 100%; }

figure { margin: 0; }
.cap { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-3); display: flex; gap: 0.5rem; align-items: baseline; }
.cap b { color: var(--ink-2); font-weight: 650; }
.section--cream .cap { color: var(--cream-ink-2); }
.section--cream .cap b { color: var(--cream-ink); }

/* ---- HERO --------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 5vw, 5.5rem)); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); overflow: clip; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero__bg::before {
  content: ""; position: absolute; width: 1100px; height: 1100px; right: -320px; top: -420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 221, 176, 0.16), rgba(246, 221, 176, 0.04) 55%, transparent 72%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(246, 221, 176, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 221, 176, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .ln > span { display: inline-block; }
.hero .lede { margin-top: 1.5rem; max-width: 50ch; }
.hero .btn-row { margin-top: 2.2rem; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2rem; list-style: none; color: var(--ink-2); font-size: 0.95rem; }
.hero__ticks li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__ticks svg { width: 17px; height: 17px; color: var(--ok); }

.stage { position: relative; aspect-ratio: 1 / 0.86; }
.stage .browser { position: absolute; left: 0; top: 4%; width: 88%; }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 36%; max-width: none; }
.stage__chip { position: absolute; z-index: 3; }
.stage__chip--a { left: -6%; bottom: 7%; width: 44%; }
.stage__chip--b { right: 26%; top: -3%; width: 34%; }
.stage__glow { position: absolute; inset: 15% 5% 0 20%; background: radial-gradient(closest-side, rgba(246, 221, 176, 0.22), transparent); filter: blur(30px); z-index: -1; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .stage { max-width: 640px; width: 100%; margin: 1rem auto 0; }
}
@media (max-width: 560px) {
  .stage { aspect-ratio: 1 / 1.02; }
  .stage .browser { width: 96%; top: 0; }
  .stage .phone { width: 44%; border-radius: 30px; padding: 6px; }
  .stage .phone img { border-radius: 25px; }
  .stage__chip--a { left: 0; bottom: 4%; width: 54%; }
  .stage__chip--b { display: none; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Franja de giros */
.giros { border-block: 1px solid var(--line); padding-block: 1.4rem; }
.giros__in { display: flex; align-items: center; gap: 1rem 2.5rem; flex-wrap: wrap; justify-content: center; }
.giros__lbl { color: var(--ink-3); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; }
.giros ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; list-style: none; justify-content: center; }
.giros li { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-2); font-weight: 600; }
.giros svg { width: 20px; height: 20px; color: var(--brand-3); }

/* ---- Problema / solución ---------------------------------------------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.versus__col { border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); border: 1px solid var(--line); background: var(--surface); }
.versus__col--new { background: linear-gradient(160deg, rgba(246, 221, 176, 0.1), rgba(246, 221, 176, 0.02) 60%), var(--surface); border-color: var(--line-2); }
.versus__col h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.versus__col ul { list-style: none; display: grid; gap: 0.85rem; }
.versus__col li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; color: var(--ink-2); }
.versus__col li svg { width: 20px; height: 20px; margin-top: 0.2rem; }
.versus__col--old li svg { color: var(--ink-3); }
.versus__col--new li svg { color: var(--ok); }
.tag { display: inline-flex; align-items: center; padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface-3); color: var(--ink-2); }
.tag--brand { background: var(--brand); color: var(--brand-ink); }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }

/* ---- Pasos con pantalla fija (cómo funciona) -------------------------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.steps__list { list-style: none; counter-reset: st; }
.step { counter-increment: st; padding-block: 2.2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 700; color: var(--ink-3); transition: background-color 0.4s, color 0.4s, border-color 0.4s; }
.step__n::before { content: counter(st, decimal-leading-zero); font-size: 0.9rem; }
.step h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); margin-bottom: 0.6rem; transition: color 0.4s; }
.step p { color: var(--ink-2); max-width: 46ch; }
.step__who { display: inline-block; margin-bottom: 0.6rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-3); }
.step__media { margin-top: 1.4rem; }
.step__media .phone { max-width: 250px; }
.steps__screen { position: sticky; top: calc(var(--header-h) + 4vh); height: min(78vh, 700px); display: none; align-items: center; justify-content: center; }
.steps__screen .phone { max-width: none; width: auto; height: 100%; }
.steps__screen .phone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); transform: scale(1.03); }
.steps__screen .phone img.is-on { opacity: 1; transform: none; }
.steps__meter { position: absolute; left: -28px; top: 10%; bottom: 10%; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps__meter i { display: block; width: 100%; height: 100%; background: var(--brand); transform-origin: top; transform: scaleY(0.25); transition: transform 0.5s var(--ease); }
.js .steps--live .steps__screen { display: flex; }
.js .steps--live .step__media { display: none; }
.js .steps--live .step { opacity: 0.45; transition: opacity 0.4s; }
.js .steps--live .step.is-on { opacity: 1; }
.js .steps--live .step.is-on .step__n { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .js .steps--live .steps__screen { display: none; }
  .js .steps--live .step__media { display: block; }
  .js .steps--live .step { opacity: 1; }
}

/* ---- Bloques de funcionalidad (texto + medios alternados) ------------- */
.feature { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4.5rem, 3rem + 5vw, 8rem); }
.feature--flip .feature__text { order: 2; }
.feature__text h2, .feature__text h3.h2 { margin-bottom: 1.1rem; }
.feature__text .lede { margin-bottom: 1.6rem; }
.checks { list-style: none; display: grid; gap: 0.75rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; color: var(--ink-2); }
.checks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 0.22rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6DDB0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.checks li b { color: var(--ink); }
.section--cream .checks li { color: var(--cream-ink-2); }
.section--cream .checks li::before { background-color: rgba(29, 25, 18, 0.07); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e4f1b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); box-shadow: inset 0 0 0 1px var(--cream-line); }
.feature__note { margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.96rem; }
.feature__note b { color: var(--brand); }
.feature__media { position: relative; }
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__text { order: 0; }
}

/* Composiciones */
.duo { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.8rem, 0.4rem + 2vw, 2rem); }
.duo .phone { width: 48%; max-width: 270px; }
.duo .phone:nth-child(2) { transform: translateY(-8%); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 0.5rem + 1.5vw, 1.6rem); align-items: end; }
.trio .phone { max-width: none; }
.trio .phone:nth-child(2) { transform: translateY(-6%); }
.stack { position: relative; padding-bottom: 10%; }
.stack .browser { width: 100%; }
.stack__float { position: absolute; z-index: 2; }
.stack__float--br { right: -3%; bottom: 0; width: 36%; }
.stack__float--bl { left: -3%; bottom: 0; width: 42%; }
.stack__float--phone { right: 2%; bottom: -2%; width: 27%; }
.stack__float--phone .phone { border-radius: 30px; padding: 6px; }
.stack__float--phone .phone img { border-radius: 25px; }
.cards-pair { position: relative; aspect-ratio: 1 / 0.8; max-width: 560px; margin-inline: auto; }
.cards-pair .ui-crop { position: absolute; width: 62%; }
.cards-pair .ui-crop:nth-child(1) { left: 0; top: 0; transform: rotate(-4deg); }
.cards-pair .ui-crop:nth-child(2) { right: 0; top: 18%; transform: rotate(3deg); }
.cards-pair .ui-crop:nth-child(3) { left: 8%; bottom: 2%; width: 56%; transform: rotate(-1deg); z-index: 2; }
@media (max-width: 560px) {
  .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio .phone:nth-child(3) { display: none; }
  .trio .phone:nth-child(2) { transform: none; }
  .stack__float--br, .stack__float--bl { width: 50%; }
  .stack__float--phone { width: 34%; }
}

/* ---- Modelos: puntos y sellos ----------------------------------------- */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.model { border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.35s, transform 0.5s var(--ease); }
.model:hover { border-color: var(--line-2); transform: translateY(-4px); }
.model__media { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); display: flex; justify-content: center; position: relative; }
.model__media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 100%, var(--m-glow, rgba(246, 221, 176, 0.16)), transparent 70%); }
.model__media .ui-crop { position: relative; width: 100%; max-width: 420px; }
.model__stack { position: relative; width: 100%; max-width: 420px; display: grid; gap: 0.9rem; }
.model__body { padding: 1.8rem clamp(1.4rem, 1rem + 2vw, 2.4rem) clamp(1.4rem, 1rem + 2vw, 2.4rem); border-top: 1px solid var(--line); background: var(--surface); position: relative; z-index: 1; flex: 1; }
.model__body h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin: 0.7rem 0; }
.model__body p { color: var(--ink-2); }
.model__eg { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.model__eg span { font-size: 0.82rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
@media (max-width: 860px) { .models { grid-template-columns: 1fr; } }

/* ---- Rejilla de tarjetas genérica ------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; border-radius: var(--r-lg); padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.35s, transform 0.5s var(--ease), background-color 0.35s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.card h3 { margin: 1.1rem 0 0.5rem; }
.card p { color: var(--ink-2); font-size: 0.99rem; }
.ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.ic svg { width: 22px; height: 22px; }
.section--cream .card { background: #fffaf1; border-color: var(--cream-line); }
.section--cream .card:hover { background: #fff; border-color: rgba(29, 25, 18, 0.25); }
.section--cream .ic { background: #f3e3c4; color: #6e4f1b; box-shadow: none; }
.card--link { display: flex; flex-direction: column; }
.card--link .link-arrow { margin-top: auto; padding-top: 1.2rem; }

/* Giros (casos de uso) */
.uses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.use { border-radius: var(--r-lg); padding: 1.5rem 1.3rem; background: #fffaf1; border: 1px solid var(--cream-line); transition: transform 0.5s var(--ease), border-color 0.3s, background-color 0.3s; }
.use:hover { transform: translateY(-4px); border-color: rgba(29, 25, 18, 0.28); background: #fff; }
.use h3 { margin: 1rem 0 0.4rem; font-size: 1.15rem; }
.use p { font-size: 0.94rem; }
.use__tag { margin-top: 1rem; display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7a5a24; }
@media (max-width: 1100px) { .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .uses { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .use { padding: 1.2rem 1rem; } }

/* Casos de uso detallados */
.industry { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 0.9fr); gap: 1.5rem 2rem; padding-block: 2.2rem; border-top: 1px solid var(--line); align-items: start; }
.industry:last-child { border-bottom: 1px solid var(--line); }
.industry .ic { width: 60px; height: 60px; border-radius: 16px; }
.industry .ic svg { width: 28px; height: 28px; }
.industry h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin-bottom: 0.6rem; }
.industry p { color: var(--ink-2); }
.industry__how { list-style: none; display: grid; gap: 0.55rem; }
.industry__how li { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.7rem 0.95rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.95rem; }
.industry__how li b { color: var(--brand-2); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; min-width: 6.8em; }
@media (max-width: 860px) { .industry { grid-template-columns: 60px 1fr; } .industry__how { grid-column: 1 / -1; } }

/* ---- Panel del negocio: rejilla de funciones -------------------------- */
.mini-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--line); }
.mini-feat { padding: 1.6rem 1.4rem 1.6rem 0; border-bottom: 1px solid var(--line); }
.mini-feat:not(:nth-child(3n + 1)) { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.mini-feat h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.45rem; }
.mini-feat h3 svg { width: 20px; height: 20px; color: var(--brand); }
.mini-feat p { color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 900px) {
  .mini-feats { grid-template-columns: 1fr 1fr; }
  .mini-feat:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .mini-feat:nth-child(even) { padding-left: 1.4rem; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) { .mini-feats { grid-template-columns: 1fr; } .mini-feat:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---- Comparativa ------------------------------------------------------- */
.table-wrap { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-size: 1rem; background: var(--surface-2); }
.compare thead th:last-child { color: var(--brand); }
.compare td:first-child { font-weight: 650; color: var(--ink); width: 30%; }
.compare td:nth-child(2) { color: var(--ink-3); }
.compare td:nth-child(3) { color: var(--ink-2); }
.compare td:nth-child(3) b { color: var(--ok); }
@media (max-width: 680px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare td { padding: 0.15rem 0; border: 0; width: auto !important; }
  .compare td:first-child { margin-bottom: 0.35rem; }
  .compare td:nth-child(2)::before { content: "Tarjeta de cartón: "; font-weight: 600; }
  .compare td:nth-child(3)::before { content: "Fiderly: "; font-weight: 600; color: var(--brand); }
}

/* ---- Ventajas (lista numerada con línea) ------------------------------ */
.adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 2rem; counter-reset: adv; }
.adv__item { counter-increment: adv; padding-top: 1.3rem; border-top: 1px solid var(--line-2); position: relative; }
.adv__item::before { content: counter(adv, decimal-leading-zero); position: absolute; top: -0.75rem; left: 0; padding-right: 0.7rem; background: var(--bg); font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--brand-2); }
.section--alt .adv__item::before { background: var(--bg-2); }
.adv__item h3 { margin-bottom: 0.5rem; }
.adv__item p { color: var(--ink-2); font-size: 0.99rem; }
@media (max-width: 900px) { .adv { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .adv { grid-template-columns: 1fr; } }

/* ---- FAQ ---------------------------------------------------------------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-layout .head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.faq-topic + .faq-topic { margin-top: 2.6rem; }
.faq-topic__t { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 0.6rem; font-family: var(--font-body); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0.2rem; font-weight: 650; font-size: 1.06rem; color: var(--ink); transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6DDB0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--brand-soft); }
.faq__a { padding: 0 0.2rem 1.4rem; color: var(--ink-2); max-width: 68ch; overflow: hidden; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .head { position: static; } }

/* ---- CTA final ----------------------------------------------------------- */
.finale { padding-block: var(--section); }
.finale__box {
  position: relative; overflow: hidden; border-radius: clamp(24px, 3vw, 40px);
  background: var(--brand); color: var(--brand-ink);
  padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2.5rem; align-items: center;
}
.finale__box::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%;
  border: 1.5px solid rgba(28, 22, 11, 0.12); box-shadow: 0 0 0 70px rgba(28, 22, 11, 0.03), 0 0 0 140px rgba(28, 22, 11, 0.025);
}
.finale h2 { color: var(--brand-ink); max-width: 18ch; }
.finale p { color: #4d3f26; margin-top: 1rem; max-width: 52ch; font-size: 1.1rem; }
.finale .btn-row { position: relative; justify-content: flex-end; }
.finale .btn--dark { --b-bg: var(--brand-ink); --b-fg: var(--brand); --b-line: transparent; }
.finale .btn--dark:hover { --b-bg: #000; }
.finale .btn--outline { --b-bg: transparent; --b-fg: var(--brand-ink); --b-line: rgba(28, 22, 11, 0.3); }
.finale .btn--outline:hover { --b-bg: rgba(28, 22, 11, 0.06); border-color: rgba(28, 22, 11, 0.6); }
.finale .btn--outline svg { color: #128c4a; }
.finale :focus-visible { outline-color: var(--brand-ink); }
@media (max-width: 860px) { .finale__box { grid-template-columns: 1fr; } .finale .btn-row { justify-content: flex-start; } }
@media (max-width: 480px) { .finale .btn-row .btn { flex: 1 1 100%; } }

/* ---- Cabecera de páginas interiores ----------------------------------- */
.phead { position: relative; padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 5rem)); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); overflow: clip; }
.phead .hero__bg::before { right: -420px; top: -560px; }
.phead h1 { max-width: 18ch; font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.3rem); }
.phead .lede { margin-top: 1.3rem; }
.phead .btn-row { margin-top: 2rem; }
.phead--split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; }
@media (max-width: 960px) { .phead--split .wrap { grid-template-columns: 1fr; } }
.crumbs { font-size: 0.88rem; color: var(--ink-3); margin-bottom: 1.6rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Índice interno de página */
.toc-strip { position: sticky; top: var(--header-h); z-index: 50; background: rgba(13, 12, 10, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.toc-strip ul { list-style: none; display: flex; gap: 0.3rem; overflow-x: auto; padding-block: 0.6rem; scrollbar-width: none; }
.toc-strip ul::-webkit-scrollbar { display: none; }
.toc-strip a { display: inline-block; white-space: nowrap; padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); border: 1px solid transparent; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.toc-strip a:hover { color: var(--ink); background: var(--brand-soft); }
.toc-strip a.is-on { color: var(--brand); border-color: var(--line-2); }

/* Módulo (página Sistema) */
.module__tag { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.82rem; font-weight: 700; color: var(--brand); margin-bottom: 1.2rem; }
.module__tag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.gallery figure .browser img { aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.phones-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.8rem, 0.4rem + 1.5vw, 1.6rem); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.phones-row figure { display: flex; flex-direction: column; align-items: center; text-align: center; }
.phones-row .phone { max-width: 250px; }
.phones-row .cap { justify-content: center; flex-direction: column; gap: 0.1rem; }
@media (max-width: 900px) { .phones-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }

/* ---- Demo ---------------------------------------------------------------- */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.role { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.5s var(--ease); }
.role:hover { border-color: var(--line-2); transform: translateY(-4px); }
.role__media { height: 230px; overflow: hidden; position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); display: flex; justify-content: center; padding-top: 1.6rem; }
.role__media .phone { width: 62%; max-width: 200px; height: auto; border-radius: 30px; padding: 6px; }
.role__media .phone img { border-radius: 25px; }
.role__media .browser { width: 120%; max-width: none; margin-left: 12%; align-self: flex-start; border-radius: 10px; }
.role__body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.role__body h3 { font-size: 1.4rem; }
.role__body > p { color: var(--ink-2); font-size: 0.97rem; }
.cred { display: grid; gap: 0.5rem; margin-top: 0.3rem; }
.cred__row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.55rem 0.55rem 0.55rem 0.9rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.cred__row > span { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; flex: none; }
.cred__val { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.cred__val code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.copy { width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.copy:hover { color: var(--brand); border-color: var(--brand-3); }
.copy svg { width: 16px; height: 16px; }
.copy.is-done { color: var(--ok); border-color: var(--ok); }
.role .btn { margin-top: auto; }
.role__note { font-size: 0.86rem; color: var(--ink-3); }
.notice { margin-top: 1.4rem; display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--r-md); border: 1px solid rgba(246, 221, 176, 0.25); background: rgba(246, 221, 176, 0.05); color: var(--ink-2); font-size: 0.95rem; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 0.15rem; }
@media (max-width: 960px) { .roles { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Pestañas de recorrido */
.tour { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.tour__tabs { display: grid; gap: 0.6rem; }
.tour__tab { text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; padding: 1.1rem 1.2rem; border-radius: var(--r-md); border: 1px solid var(--line); background: transparent; cursor: pointer; transition: background-color 0.3s, border-color 0.3s; }
.tour__tab:hover { background: var(--surface); }
.tour__tab[aria-selected="true"] { background: var(--surface-2); border-color: var(--line-2); }
.tour__tab b { display: block; font-size: 1.05rem; margin-bottom: 0.15rem; }
.tour__tab span { color: var(--ink-3); font-size: 0.93rem; }
.tour__tab .ic { width: 44px; height: 44px; }
.tour__tab[aria-selected="true"] .ic { background: var(--brand); color: var(--brand-ink); }
.tour__panes { position: relative; }
.tour__pane[hidden] { display: none; }
.tour__pane .duo .phone { max-width: 250px; }
@media (max-width: 960px) { .tour { grid-template-columns: 1fr; } }

/* ---- Contacto -------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.channels { display: grid; gap: 0.8rem; margin-top: 2rem; }
.channel { display: grid; grid-template-columns: 48px 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, transform 0.4s var(--ease), background-color 0.3s; }
.channel:hover { border-color: var(--line-2); transform: translateX(4px); background: var(--surface-2); }
.channel b { display: block; }
.channel span { color: var(--ink-2); font-size: 0.95rem; }
.channel > svg { width: 18px; height: 18px; color: var(--ink-3); }
.channel--wa .ic { background: rgba(37, 211, 102, 0.12); color: var(--wa); box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.3); }

.form { border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); }
.form h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 0.4rem; }
.form > p { color: var(--ink-2); margin-bottom: 1.6rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; min-width: 0; }
.field label { font-weight: 650; font-size: 0.95rem; }
.field label small { font-weight: 500; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a8273; }
.field input:hover, .field textarea:hover { border-color: rgba(246, 221, 176, 0.35); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(246, 221, 176, 0.14); background: #171613; }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12); }
.field__err { color: var(--danger); font-size: 0.88rem; display: flex; gap: 0.4rem; align-items: center; }
.field__err:empty { display: none; }
.form__hint { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-3); }
.form__status { margin-bottom: 1.2rem; padding: 1rem 1.1rem; border-radius: 12px; font-size: 0.96rem; display: none; }
.form__status.is-shown { display: block; }
.form__status--ok { background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.35); color: #c8f3e1; }
.form__status--warn { background: rgba(246, 221, 176, 0.07); border: 1px solid rgba(246, 221, 176, 0.35); color: var(--ink); }
.form__status--err { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.4); color: #fecaca; }
.form__status a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.form__alt { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.contact__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } .contact__aside { position: static; } }

/* ---- Legal ------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; padding-bottom: var(--section); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); padding: 1.2rem; }
.legal-toc summary { list-style: none; cursor: default; font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 0.8rem; display: flex; justify-content: space-between; align-items: center; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { list-style: none; display: grid; gap: 0.1rem; }
.legal-toc a { display: block; padding: 0.45rem 0.6rem; border-radius: 8px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; transition: color 0.2s, background-color 0.2s; }
.legal-toc a:hover { color: var(--ink); background: var(--brand-soft); }
.legal-toc a.is-on { color: var(--brand); background: var(--brand-soft); }
.legal-body { max-width: 72ch; }
.legal-body section { padding-top: 0.5rem; }
.legal-body section + section { margin-top: 2.6rem; padding-top: 2.6rem; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); margin-bottom: 1rem; display: flex; gap: 0.8rem; align-items: baseline; }
.legal-body h2 .num { font-size: 0.85rem; color: var(--brand-3); font-family: var(--font-body); font-weight: 700; letter-spacing: 0.08em; }
.legal-body h3 { font-size: 1.08rem; margin: 1.5rem 0 0.6rem; color: var(--ink); }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body ul, .legal-body ol { padding-left: 1.3rem; display: grid; gap: 0.45rem; margin: 0.8rem 0; }
.legal-body ul li::marker { color: var(--brand-3); }
.legal-body ol li::marker { color: var(--brand-3); font-weight: 700; }
.legal-body p + p { margin-top: 0.9rem; }
.legal-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(246, 221, 176, 0.4); }
.legal-body a:hover { text-decoration-color: currentColor; }
.legal-callout { padding: 1.1rem 1.3rem; border-radius: var(--r-md); border-left: 3px solid var(--brand); background: var(--surface); color: var(--ink-2); margin-bottom: 2.4rem; font-size: 0.97rem; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.2rem; color: var(--ink-3); font-size: 0.92rem; }
.legal-meta a { color: var(--brand); }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc summary { cursor: pointer; margin-bottom: 0; }
  .legal-toc summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform 0.3s; }
  .legal-toc[open] summary { margin-bottom: 0.8rem; }
  .legal-toc[open] summary::after { transform: rotate(-135deg); }
}

/* ---- 404 ---------------------------------------------------------------- */
.nf { min-height: 72vh; display: grid; place-items: center; text-align: center; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 4rem; }
.nf__code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--brand-3); }
.nf h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin: 1rem 0 0.8rem; }
.nf p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 2rem; }
.nf__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: center; margin-top: 2rem; font-size: 0.95rem; }
.nf__links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.nf__links a:hover { color: var(--brand); }

/* ---- Pie ------------------------------------------------------------------ */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; }
.ftr__brand p { color: var(--ink-3); margin-top: 1rem; max-width: 34ch; font-size: 0.96rem; }
.ftr__brand .btn-row { margin-top: 1.4rem; }
.ftr__col h2 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.ftr__col ul { list-style: none; display: grid; gap: 0.35rem; }
.ftr__col a { color: var(--ink-2); font-size: 0.97rem; display: inline-block; padding-block: 0.25rem; transition: color 0.2s; }
.ftr__col a:hover { color: var(--brand); }
.ftr__by { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.92rem; }
.ftr__by a { color: var(--brand); font-weight: 650; display: inline-flex; align-items: center; gap: 0.3rem; }
.ftr__by a svg { width: 14px; height: 14px; }
.ftr__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 0 2rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.88rem; }
.ftr__legal nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.ftr__legal a:hover { color: var(--brand); }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ftr__top { grid-template-columns: 1fr; } }

/* ---- Estados iniciales de animación ---------------------------------------
   Solo se ocultan si el JS confirmó que va a animar (clase .anim en <html>,
   puesta por un script en <head> que respeta reduced-motion). Si GSAP no
   carga, un temporizador retira la clase y todo queda visible. */
.anim [data-a="hero"]:not(.lede) { opacity: 0; } /* el párrafo principal se pinta de inmediato (LCP) */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .hdr, .mnav, .ftr, .finale, .toc-strip, .legal-toc { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-body p, .legal-body li { color: #000; }
}
