/* ==========================================================================
   TiendaIA — sistema de diseño
   ========================================================================== */

:root {
  --bg: #ffffff;
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --ink: #1d2023;
  --ink-2: #464c52;
  --ink-3: #6b7177;
  --line: #e3ddd1;
  --line-2: #d4ccbd;
  --brand: #0e5a4f;
  --brand-ink: #0a3f37;
  --brand-tint: #e5efeb;
  --brand-tint-2: #cfe2db;
  --accent: #b5761c;
  --accent-tint: #f6ead6;
  --danger: #a33a2c;
  --ok: #2f6b3e;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(29, 32, 35, .06), 0 8px 24px rgba(29, 32, 35, .06);
  --shadow-lg: 0 2px 4px rgba(29, 32, 35, .05), 0 24px 60px rgba(29, 32, 35, .12);

  --wrap: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.28rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.xs { font-size: .8rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Datos pendientes: deben reemplazarse antes de publicar */
.ph {
  background: #fff3c4;
  color: #6a4b00;
  border-bottom: 1px dashed #c99a12;
  padding: 0 .2em;
  font-family: var(--sans);
  font-size: .92em;
  word-break: break-word;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------- Aviso comercial ---------- */
.disclosure {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink-2);
  padding: 7px 0;
}
.disclosure strong { font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; margin-right: .6em; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo svg { width: 30px; height: 30px; }
.logo__word { font-family: var(--sans); font-weight: 700; font-size: 1.32rem; letter-spacing: -.03em; }
.logo__word span { color: var(--brand); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: var(--r-sm); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .site-header .wrap { min-height: 60px; gap: 12px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r);
    background: #fff; cursor: pointer; color: var(--ink);
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; margin: 0;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header-cta { order: 3; }
}
@media (max-width: 420px) { .header-cta .btn { padding: 9px 14px; } .logo__word { font-size: 1.18rem; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); background: var(--paper); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero__sub { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.hero__support { font-weight: 500; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 30px 0 22px; }
.hero__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 34em; }
.hero__price strong { font-size: 1.05rem; }
.hero__note { font-size: .84rem; color: var(--ink-3); margin: 8px 0 0; }
.hero__market { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: .9rem; color: var(--ink-2); }
.hero__market::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Resumen claro ---------- */
.facts { border-bottom: 1px solid var(--line); background: #fff; }
.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.facts dl > div { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.facts dl > div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 900px) {
  .facts dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .facts dl > div { margin-right: 0; padding: 22px 16px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts dl > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
  .facts dl > div:nth-child(even) { padding-left: 16px; }
  .facts dl > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .facts dl { grid-template-columns: minmax(0, 1fr); }
  .facts dl > div, .facts dl > div:nth-child(odd), .facts dl > div:nth-child(even) { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts dl > div:last-child { border-bottom: 0; }
}

/* ---------- Mockups de interfaz (datos de demostración) ---------- */
.app {
  --app-bg: #fbfaf7;
  position: relative;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
.app__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fff; }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.app__url { flex: 1; max-width: 260px; margin: 0 auto; height: 22px; border-radius: 5px; background: var(--paper); color: var(--ink-3); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.app__body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; background: var(--app-bg); }
.app__side { background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; }
.app__store { display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 12.5px; }
.app__store i { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
.app__side ul { list-style: none; padding: 0; margin: 0; }
.app__side li { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; color: var(--ink-2); font-size: 12.5px; }
.app__side li svg { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app__side li.is-active { background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; }
.app__main { padding: 18px 20px; min-width: 0; }
.app__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.app__title { font-size: 15px; font-weight: 600; margin: 0; font-family: var(--sans); letter-spacing: -.01em; }
.app__range { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; background: #fff; white-space: nowrap; }
.demo-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint); border-radius: 4px; padding: 3px 7px;
}
.demo-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.app .demo-tag { position: absolute; right: 12px; top: 9px; z-index: 2; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; min-width: 0; }
.kpi span { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.25; min-height: 2.5em; }
.kpi strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.app__cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-width: 0; }
.panel h5 { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; font-family: var(--sans); color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.panel h5 small { font-weight: 500; color: var(--ink-3); }
.chart { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: var(--brand-tint); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .bar { fill: var(--brand-tint-2); }
.chart .bar.hl { fill: var(--brand); }
.chart text { font-size: 9px; fill: var(--ink-3); font-family: var(--sans); }
.draft { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; }
.draft__label { display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); background: var(--brand-tint); padding: 2px 6px; border-radius: 4px; margin-bottom: 6px; }
.draft p { margin: 0 0 8px; }
.draft__actions { display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 5px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); background: #fff; white-space: nowrap; }
.chip--solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--soft { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-ink); }
.chip--warn { background: var(--accent-tint); border-color: var(--accent-tint); color: #7a4e10; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 11.5px; min-width: 0; }
.rows li:first-child { border-top: 0; }
.rows .thumb { width: 28px; height: 28px; border-radius: 5px; flex-shrink: 0; background: var(--paper-2); }
.rows .thumb--a { background: linear-gradient(135deg, #e8d9c2, #cdb592); }
.rows .thumb--b { background: linear-gradient(135deg, #d9e3dc, #9fb8a9); }
.rows .thumb--c { background: linear-gradient(135deg, #efe2d6, #c99c7b); }
.rows .thumb--d { background: linear-gradient(135deg, #e3e0ea, #a9a3ba); }
.rows .grow { flex: 1; min-width: 0; }
.rows .grow b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .grow span { color: var(--ink-3); font-size: 10.5px; }
.rows .num { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }

@media (max-width: 1100px) { .hero .app__body { grid-template-columns: minmax(0, 1fr); } .hero .app__side { display: none; } }
@media (max-width: 560px) {
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .app__cols { grid-template-columns: minmax(0, 1fr); }
  .app__main { padding: 14px; }
  .hero .app__cols .panel:last-child { display: none; }
}

/* ---------- Editorial ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .8rem; margin-bottom: 22px; color: var(--ink-3); }
.article__cat { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.label-commercial { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 3px; color: var(--ink-2); }
.article h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18em; }
.article__deck { font-family: var(--serif); font-size: clamp(1.18rem, 2vw, 1.4rem); font-style: italic; color: var(--ink-2); line-height: 1.45; border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px; }
.article__body { font-family: var(--serif); font-size: 1.16rem; line-height: 1.7; color: #2a2e32; max-width: 38em; }
.article__body p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .9; padding: 6px 10px 0 0; font-weight: 600; color: var(--brand); }
.article__body h3 { font-size: 1.3rem; margin-top: 1.6em; }
.article__aside { position: sticky; top: 100px; }
.article__aside figure { margin: 0 0 28px; }
.aside-note { border-top: 2px solid var(--ink); padding-top: 16px; font-size: .95rem; color: var(--ink-2); }
.aside-note h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.aside-note ul { list-style: none; padding: 0; margin: 0; }
.aside-note li { padding: 9px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .article { grid-template-columns: minmax(0, 1fr); } .article__aside { position: static; } }

/* ---------- Fotografía ---------- */
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--r); background: var(--paper-2); object-fit: cover; }
.photo figcaption { font-size: .8rem; color: var(--ink-3); margin-top: 10px; }
.photo--tall img { aspect-ratio: 4 / 5; }
.photo--wide img { aspect-ratio: 3 / 2; }

/* ---------- Problema ---------- */
.problem__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 72px; align-items: end; margin-bottom: 48px; }
.problem__head p { margin: 0; color: var(--ink-2); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; border-top: 1px solid var(--ink); }
.tasks li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.tasks .n { font-family: var(--serif); font-size: 1.05rem; color: var(--brand); font-weight: 600; padding-top: 2px; }
.tasks b { display: block; font-size: 1.08rem; font-weight: 600; margin-bottom: 2px; }
.tasks span { color: var(--ink-2); font-size: .98rem; }
.statement { margin: 56px 0 0; padding-left: 28px; border-left: 3px solid var(--brand); font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.38; max-width: 30em; color: var(--ink); }
@media (max-width: 800px) {
  .problem__head { grid-template-columns: minmax(0, 1fr); }
  .tasks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Proceso ---------- */
.process__head { max-width: 720px; margin-bottom: 52px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; padding: 34px 0; border-top: 1px solid var(--line-2); position: relative; }
.step:last-child { border-bottom: 1px solid var(--line-2); }
.step__num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--brand); font-weight: 400; }
.step__label { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; display: block; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); margin: 0; }
.step ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.step li { break-inside: avoid; padding: 6px 0 6px 18px; position: relative; font-size: .98rem; }
.step li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--brand); }
.step__who { display: inline-block; margin-top: 14px; font-size: .8rem; font-weight: 600; color: var(--brand-ink); background: var(--brand-tint); padding: 3px 9px; border-radius: 3px; }
.process__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 44px; }
@media (max-width: 900px) {
  .step { grid-template-columns: 64px minmax(0, 1fr); }
  .step__num { font-size: 2.2rem; grid-row: span 2; }
  .step ul { columns: 1; }
}

/* ---------- Escaparate de producto ---------- */
.showcase { background: var(--brand-ink); color: #e9f1ee; overflow: hidden; }
.showcase h2, .showcase .eyebrow { color: #fff; }
.showcase .eyebrow { color: #9fd0c2; }
.showcase__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 72px; align-items: end; margin-bottom: 52px; }
.showcase__head p { color: #c8dcd5; margin: 0; }
.devices { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 40px; align-items: end; }
.laptop__screen { background: #121618; border-radius: 14px 14px 0 0; padding: 12px 12px 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.laptop__screen .app { border-radius: 6px 6px 0 0; border: 0; box-shadow: none; }
.laptop__base { height: 16px; margin: 0 -4%; background: linear-gradient(180deg, #c9cdcf, #9fa5a8); border-radius: 0 0 12px 12px; position: relative; }
.laptop__base::after { content: ""; position: absolute; left: 50%; top: 0; width: 120px; height: 6px; margin-left: -60px; background: #8b9194; border-radius: 0 0 8px 8px; }
.phone { background: #121618; border-radius: 34px; padding: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.phone .app { border-radius: 26px; border: 0; box-shadow: none; }
.phone .app__screen { padding: 34px 14px 16px; background: var(--app-bg); min-height: 470px; }
.phone .demo-tag { top: 12px; right: 50%; transform: translateX(50%); }
.phone h5 { font-size: 15px; margin: 0 0 10px; font-family: var(--sans); }
.phone .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.phone .tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.devices__caption { margin-top: 34px; font-size: .86rem; color: #a9c4bb; }
@media (max-width: 960px) {
  .showcase__head { grid-template-columns: minmax(0, 1fr); }
  .devices { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .laptop { width: 100%; }
  .phone { width: 260px; }
}
@media (max-width: 560px) { .laptop__screen { padding: 7px 7px 0; border-radius: 10px 10px 0 0; } .laptop .app__side { display: none; } .laptop .app__body { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Funciones ---------- */
.features__intro { max-width: 720px; margin-bottom: 24px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature--flip .feature__text { order: 2; }
.feature__kicker { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.feature__kicker b { font-family: var(--serif); font-size: 1rem; letter-spacing: 0; color: var(--ink-3); font-weight: 600; }
.feature p { color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.note { font-size: .9rem; color: var(--ink-3); border-left: 2px solid var(--line-2); padding-left: 14px; margin: 18px 0 0; }
.feature__visual .app { font-size: 13px; }
.feature__visual .app__screen { padding: 20px; background: var(--app-bg); }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__text { order: 0; }
}

/* ---------- Caso de uso ---------- */
.usecase__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.flag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a4e10; background: var(--accent-tint); padding: 5px 10px; border-radius: 3px; margin-bottom: 18px; }
.flow { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 16px 0; position: relative; }
.flow li::before { content: counter(flow); width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 600; color: var(--ink-2); position: relative; z-index: 1; }
.flow li::after { content: ""; position: absolute; left: 16px; top: 48px; bottom: -16px; width: 1px; background: var(--line-2); }
.flow li:last-child::after { display: none; }
.flow b { display: block; font-weight: 600; }
.flow span { color: var(--ink-2); font-size: .98rem; }
.who { font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 3px; white-space: nowrap; margin-top: 4px; }
.who--you { background: var(--paper-2); color: var(--ink-2); }
.who--ai { background: var(--brand-tint); color: var(--brand-ink); }
.who--both { background: var(--accent-tint); color: #7a4e10; }
@media (max-width: 900px) { .usecase__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .flow li { grid-template-columns: 40px minmax(0, 1fr); } .flow .who { grid-column: 2; justify-self: start; } }

/* ---------- Mercado ---------- */
.market { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.market__points { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.market__points li { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.market__points b { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.market__points span { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .market { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Para quién ---------- */
.audience { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; margin-top: 48px; }
.audience__list { list-style: none; padding: 0; margin: 0; }
.audience__list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.audience__list li::before { content: ""; width: 12px; height: 12px; margin-top: 8px; border-radius: 50%; border: 2px solid var(--brand); }
.audience__list b { display: block; }
.audience__list span { color: var(--ink-2); font-size: .98rem; }
.notbox { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 26px; margin-top: 28px; }
.notbox h3 { font-size: 1.2rem; }
.notbox ul { list-style: none; padding: 0; margin: 0; }
.notbox li { position: relative; padding: 8px 0 8px 26px; color: var(--ink-2); }
.notbox li::before, .notbox li::after { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 2px; background: var(--danger); transform: rotate(45deg); }
.notbox li::after { transform: rotate(-45deg); }
@media (max-width: 860px) { .audience { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Precio ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 40px; }
.plan { background: #fff; border: 1px solid var(--line-2); border-top: 4px solid var(--brand); border-radius: var(--r); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.plan__name { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 6px; }
.plan__price small { font-size: 1rem; color: var(--ink-2); }
.plan__price strong { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.plan__billing { color: var(--ink-2); font-size: .95rem; margin-bottom: 18px; }
.plan__what { background: var(--paper); border-radius: var(--r-sm); padding: 14px 16px; font-size: .95rem; color: var(--ink-2); margin-bottom: 18px; }
.plan__what b { color: var(--ink); }
.plan .checklist { margin-top: 0; }
.plan .btn { margin-top: 10px; }
.after h3 { font-size: 1.3rem; }
.after ol { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: a; }
.after li { counter-increment: a; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.after li::before { content: counter(a); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; font-size: .85rem; display: grid; place-items: center; }
.after li b { color: var(--ink); }
@media (max-width: 860px) { .pricing { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Formulario ---------- */
.lead { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.lead__intro p { color: var(--ink-2); }
.lead__assure { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line-2); }
.lead__assure li { padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: .97rem; color: var(--ink-2); }
.lead__assure b { color: var(--ink); }
.form { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23464c52' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.field .err { font-size: .84rem; color: var(--danger); display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .err { display: block; }
.tel { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.tel:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
.field.is-invalid .tel { border-color: var(--danger); }
.tel__code { display: flex; align-items: center; padding: 0 12px 0 14px; border-right: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 17px; background: var(--paper); border-radius: var(--r) 0 0 var(--r); white-space: nowrap; }
.tel input { border: 0 !important; box-shadow: none !important; min-width: 0; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.consent-wrap { display: grid; gap: 14px; margin-top: 6px; }
.form__legal { font-size: .82rem; color: var(--ink-3); margin: 16px 0 0; }
.form__status { margin-top: 14px; font-size: .95rem; }
.form__status.is-error { color: var(--danger); }
.form button[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .lead { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.28rem); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); margin-top: -6px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 46em; }
.faq .answer ul { margin-top: .5em; }
.faq--highlight summary { color: var(--brand-ink); }

/* ---------- Empresa ---------- */
.company { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
.company dl { margin: 0; display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); border-top: 1px solid var(--ink); }
.company dt, .company dd { padding: 14px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.company dt { font-size: .9rem; font-weight: 600; color: var(--ink-2); padding-right: 16px; }
.company dd { color: var(--ink); }
@media (max-width: 760px) { .company { grid-template-columns: minmax(0, 1fr); } .company dl { grid-template-columns: minmax(0, 1fr); } .company dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- Encabezado de páginas internas ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18em; }
.page-head p { max-width: 40em; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }

/* ---------- Texto legal ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: .9rem; }
.toc h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { padding-left: 1.2em; margin: 0; }
.toc li { padding: 4px 0; color: var(--ink-3); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.prose { max-width: 44em; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; padding-top: .4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; font-family: var(--sans); margin-top: 1.4em; }
.prose p, .prose li { color: #33383d; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0 1.5em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.prose th { background: var(--paper); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.legal-meta { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 32px; } .toc { position: static; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; } }

/* ---------- Dos columnas genéricas ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.compare { width: 100%; border-collapse: collapse; margin-top: 28px; }
.compare th, .compare td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.compare th { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.compare td:first-child { font-weight: 600; width: 26%; }
.compare td { color: var(--ink-2); }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare tr { display: block; border-bottom: 1px solid var(--line-2); padding: 12px 0; }
  .compare td { display: block; border: 0; padding: 4px 0; width: auto !important; }
  .compare td[data-th]::before { content: attr(data-th) ": "; font-weight: 600; color: var(--ink); }
}

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--paper); border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 22em; }

/* ---------- Gracias ---------- */
.thanks { text-align: left; max-width: 720px; }
.thanks__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-tint); display: grid; place-items: center; margin-bottom: 26px; }
.thanks__mark::before { content: ""; width: 20px; height: 10px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg) translate(2px, -2px); }

/* ---------- Pie ---------- */
.site-footer { background: #15191b; color: #c4cacd; font-size: .93rem; padding: 64px 0 40px; }
.site-footer a { color: #e6eaec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #2c3236; }
.site-footer .logo { color: #fff; }
.site-footer .logo__word span { color: #8fcab9; }
.footer__about { margin-top: 16px; max-width: 30em; color: #aab2b6; }
.footer__col h2 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #8b9498; margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { padding: 5px 0; }
.footer__company { padding: 28px 0; border-bottom: 1px solid #2c3236; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; font-size: .88rem; }
.footer__company b { display: block; color: #8b9498; font-weight: 600; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.footer__disclaimer { padding-top: 24px; font-size: .82rem; color: #8b9498; max-width: 70em; }
.site-footer .ph { background: #4a3d10; color: #ffe9a6; border-color: #a1801f; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer__brand { grid-column: 1 / -1; } .footer__company { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA fijo móvil ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(29, 32, 35, .08);
  transform: translateY(110%); transition: transform .25s ease, visibility .25s;
  display: none;
}
.sticky-cta:not(.is-visible) { visibility: hidden; }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }
@media (max-width: 860px) { .sticky-cta { display: block; } }

/* ---------- Aviso de cookies (solo si hay medición configurada) ---------- */
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin-left: auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 18px 20px; font-size: .9rem; color: var(--ink-2);
}
.consent-bar p { margin: 0 0 12px; }
.consent-bar .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-bar[hidden] { display: none; }

@media print { .site-header, .sticky-cta, .consent-bar, .site-footer, .disclosure { display: none !important; } }

/* Logo (imagen) */
.logo__img { display: block; height: 42px; width: auto; }
.site-footer .logo__img { height: 40px; }
@media (max-width: 420px) { .logo__img { height: 34px; } }

/* Capturas reales de la app */
.shot { position: relative; margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.shot .demo-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.shot--devices img { border: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
