/* ════════════════════════════════════════════════════════════════
   ESCUADRA ESTUDIO · «Del plano a la web»
   Concepto: cada web empieza como un plano técnico y termina como un
   escaparate. Las bandas azul plano (cabeceras, proceso, cierre)
   alternan con papel claro para leer. Un solo acento atrevido: el
   amarillo subrayador.
   ════════════════════════════════════════════════════════════════ */

/* Tipografías autoalojadas (licencia OFL: assets/fonts/OFL.txt). Sin peticiones a terceros. */
@font-face { font-family: "Inter"; src: url("fonts/inter-display-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Escuadra Serif"; src: url("fonts/escuadra-serif-600-italic.woff") format("woff"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  /* Papel (zonas de lectura) */
  --bg: #f3f5fa;
  --surface: #ffffff;
  --ink: #0d1630;
  --muted: #4d5872;
  --line: #d7dce8;
  --accent: #2350f0;
  --accent-hover: #1a3fcb;
  --accent-ink: #ffffff;

  /* Plano (bandas azules: siempre oscuras, en los dos temas) */
  --bp: #0a1a44;
  --bp-deep: #071234;
  --bp-ink: #f2f5ff;
  --bp-muted: #a9b8e2;
  --bp-line: rgba(160, 190, 255, 0.16);
  --bp-trace: #7fa6ff;

  /* Acento */
  --mark: #ffd84d;
  --mark-ink: #0d1630;

  --ok: #157347;
  --error: #b42318;
  --hl-top: 60%;

  --f-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Escuadra Serif", Georgia, "Times New Roman", serif;

  --radius: 14px;

  /* Escala de letra: cinco tamaños hacen el trabajo visible */
  --t-display: clamp(2.6rem, 7.2vw, 6.6rem);
  --t-h2: clamp(2.1rem, 4.6vw, 3.6rem);
  --t-h3: clamp(1.25rem, 1.9vw, 1.5rem);
  --t-lead: clamp(1.1rem, 1.6vw, 1.3rem);
  --t-small: .94rem;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 68ch;
  --ease: cubic-bezier(.23, 1, .32, 1);          /* ease-out fuerte: entra rápido y frena suave */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);  /* para lo que se mueve por la pantalla */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #121a30;
    --ink: #e9edf8;
    --muted: #a5b0c9;
    --line: #26314d;
    --accent: #8cabff;
    --accent-hover: #adc3ff;
    --accent-ink: #0b1020;
    --bp: #0a1638;
    --bp-deep: #060e26;
    --ok: #5fd39a;
    --error: #ff8a80;
    --hl-top: 84%;
    color-scheme: dark;
  }
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bp-deep); }

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--mark); }
::selection { background: var(--mark); color: var(--mark-ink); }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--mark); color: var(--mark-ink);
  padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); color: var(--mark-ink); }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
/* Subrayado de rotulador: una franja amarilla bajo el texto, sin degradados. */
.hl { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: .32em; text-underline-offset: -.14em; text-decoration-skip-ink: none; }

/* ── Botones ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arrow { transform: translateX(4px); } }
.btn-mark { background: var(--mark); color: var(--mark-ink); }
.btn-mark:hover { background: #ffe680; color: var(--mark-ink); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.band .btn-line { color: var(--bp-ink); border-color: rgba(242, 245, 255, .45); background: transparent; }
.band .btn-line:hover { border-color: var(--bp-ink); background: rgba(242, 245, 255, .06); color: var(--bp-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .92rem; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.btn-small:hover { border-color: var(--accent); color: var(--accent); }

/* ── Bandas azul plano ───────────────────────────────────────── */
.band {
  position: relative;
  background-color: var(--bp);
  color: var(--bp-ink);
  isolation: isolate;
}
.band a:not(.btn) { color: var(--bp-ink); }
.band p { color: var(--bp-muted); }

/* ── Cabecera ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bp-deep);
  color: var(--bp-ink);
  view-transition-name: cabecera;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em;
  color: var(--bp-ink); text-decoration: none;
}
.logo:hover { color: var(--bp-ink); }
.logo svg { flex: none; width: 32px; height: 32px; }
.logo .logo-sub { font-weight: 400; color: var(--mark); letter-spacing: -0.02em; text-transform: lowercase; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 8px 12px; flex-wrap: wrap; }
  .logo { font-size: 1.12rem; gap: 8px; }
  .logo svg { width: 28px; height: 28px; }
  .menu-toggle { padding: 0 12px; gap: 8px; }
}
@media (max-width: 350px) {
  .menu-toggle { width: 44px; padding: 0; justify-content: center; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--bp-muted); font-weight: 600; font-size: .96rem; text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--bp-ink); background: rgba(242,245,255,.07); }
.site-nav a[aria-current="page"] { color: var(--bp-ink); background: rgba(242,245,255,.1); }
.site-nav .btn { min-height: 44px; padding: 0 18px; margin-left: 8px; font-size: .95rem; }
.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 0; background: rgba(242,245,255,.1); color: var(--bp-ink); font: inherit; font-weight: 700; cursor: pointer;
}
.menu-toggle .bars { display: grid; gap: 4px; }
.menu-toggle .bars span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] .bars span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .menu-toggle { display: inline-flex; }
  .site-nav { flex-basis: 100%; flex-wrap: wrap; }
  .js .site-nav { display: none; flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  .js .site-nav.open { display: flex; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a:not(.btn) { min-height: 52px; font-size: 1.15rem; border-radius: 10px; }
  .site-nav .btn { margin: 8px 0 0; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* Barra de progreso de lectura (CSS nativo: animación ligada al scroll) */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--mark); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }
@keyframes progress { to { transform: scaleX(1); } }

/* ── HERO de portada ─────────────────────────────────────────── */
/* El titular cruza todo el ancho; debajo, el texto a un lado y la web de muestra al otro. */
.hero { overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px);
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
}
@media (min-width: 1000px) {
  .hero .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  .hero h1 { grid-column: 1 / -1; }
}
.hero h1 { font-size: var(--t-display); line-height: .96; letter-spacing: -0.05em; max-width: 13ch; }
@media (min-width: 1000px) { .hero h1 { max-width: none; } }
.hero .lead { font-size: var(--t-lead); max-width: 40ch; margin: 0; color: var(--bp-ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero .facts li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); color: var(--bp-muted); }
.hero .facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mark); }

/* La máquina: una web de muestra que pasa del plano a terminada */
.machine-wrap { position: relative; min-width: 0; }
.machine-toggle {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(242,245,255,.08);
}
.machine-toggle button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent;
  color: var(--bp-muted); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s;
}
.machine-toggle button[aria-pressed="true"] { background: var(--mark); color: var(--mark-ink); }
.machine-stage { position: relative; }
.machine {
  --t: .7s;
  position: relative; border-radius: 16px; overflow: hidden;
  background: #ffffff; color: #0d1630;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform 1s var(--ease), background-color var(--t) var(--ease), box-shadow var(--t);
  aspect-ratio: 16 / 11.2; max-width: 100%;
}
@media (hover: hover) and (pointer: fine) { .machine:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); } }
.m-bar { display: flex; align-items: center; gap: 6px; height: 7.5%; padding: 0 3.5%; background: #eef1f7; border-bottom: 1px solid #dde2ee; transition: background-color var(--t), border-color var(--t); }
.m-bar i { width: 1.4%; aspect-ratio: 1; border-radius: 50%; background: #c9d0de; transition: background-color var(--t), box-shadow var(--t); }
.m-url { margin-left: 3%; flex: 1; height: 52%; border-radius: 999px; background: #ffffff; display: flex; align-items: center; padding: 0 3%; font-size: clamp(.5rem, 1.1vw, .72rem); color: #4d5872; transition: background-color var(--t), color var(--t), box-shadow var(--t); }
.m-screen { position: absolute; inset: 7.5% 0 0 0; padding: 4% 5% 5%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 5%; }
.m-piece {
  position: relative; border: 1.5px solid transparent;
  transition: background-color var(--t) var(--ease) calc(var(--i, 0) * 90ms), border-color var(--t) calc(var(--i, 0) * 90ms),
              color var(--t) calc(var(--i, 0) * 90ms), box-shadow var(--t) calc(var(--i, 0) * 90ms),
              transform var(--t) var(--ease) calc(var(--i, 0) * 90ms);
}
.m-nav { display: flex; align-items: center; gap: 4%; border-radius: 8px; }
.m-logo { width: 22%; height: clamp(12px, 2.4vw, 24px); background: #0d1630; border-radius: 6px; }
.m-links { flex: 1; display: flex; gap: 6%; justify-content: flex-end; }
.m-links span { width: 13%; height: 6px; border-radius: 3px; background: #c4cbe0; transition: background-color var(--t), border-color var(--t); border: 1px solid transparent; }
.m-book { padding: 1.4% 3.4%; background: #2350f0; color: #fff; border-radius: 999px; font-size: clamp(.5rem, 1.15vw, .78rem); font-weight: 700; white-space: nowrap; }
.m-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 6%; align-items: stretch; min-height: 0; border-radius: 10px; }
.m-copy { display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, 1.1vw, 12px); min-width: 0; }
.m-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(.9rem, 2.8vw, 2rem); line-height: 1; letter-spacing: -0.04em; color: #0d1630; transition: color var(--t); }
.m-title em { font-style: normal; color: #b8572f; transition: color var(--t); }
.m-text { height: clamp(4px, .8vw, 7px); border-radius: 4px; background: #d3d9e7; width: 92%; border: 1px solid transparent; transition: background-color var(--t), border-color var(--t); }
.m-text.short { width: 64%; }
.m-cta { align-self: flex-start; margin-top: 2%; padding: 3% 7%; border-radius: 999px; background: #0d1630; color: #fff; font-size: clamp(.5rem, 1.15vw, .78rem); font-weight: 700; }
.m-photo { position: relative; border-radius: 12px; overflow: hidden; background: #eccdb2; }
.m-photo i { position: absolute; display: block; border-radius: 50%; transition: opacity var(--t) var(--ease) calc(var(--i, 0) * 90ms); }
.machine-stage[data-state="plan"] .m-photo i { opacity: 0; }
.m-photo .sun { width: 22%; aspect-ratio: 1; right: 16%; top: 10%; background: #ffd9b5; }
.m-photo .hair { width: 32%; height: 52%; left: 26%; top: 14%; border-radius: 50% 50% 42% 42%; background: #4a2a1c; }
.m-photo .face { width: 19%; height: 30%; left: 32.5%; top: 30%; background: #f0b48c; }
.m-photo .body { width: 66%; height: 48%; left: 9%; bottom: -18%; border-radius: 50% 50% 0 0; background: #b8572f; }
.m-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.m-card { min-height: clamp(26px, 5.4vw, 56px); border-radius: 10px; background: #f3f5fa; box-shadow: inset 0 0 0 1px #e2e6f0; display: grid; place-items: center; text-align: center; padding: 4%; font-size: clamp(.5rem, 1.05vw, .72rem); font-weight: 700; color: #0d1630; }
.m-wa { position: absolute; right: 4%; bottom: 6%; width: clamp(26px, 5vw, 48px); aspect-ratio: 1; border-radius: 50%; background: #13803a; box-shadow: 0 8px 20px -6px rgba(19,128,58,.7); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: clamp(.45rem, .9vw, .66rem); z-index: 2; }

/* Notas de plano: cotas que explican cada pieza (pantallas anchas) */
.m-note {
  position: absolute; z-index: 3; display: none; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; white-space: nowrap;
  color: var(--mark-ink); background: var(--mark); padding: 4px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s var(--ease) calc(var(--i, 0) * 120ms), transform .5s var(--ease) calc(var(--i, 0) * 120ms);
  pointer-events: none;
}
@media (min-width: 640px) { .m-note { display: inline-flex; } }
.machine-stage[data-state="plan"] .m-note { opacity: 1; transform: none; }

/* Estado «plano»: líneas discontinuas, cotas y sin color */
.machine-stage[data-state="plan"] .machine { background: #0c1f52; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px var(--bp-trace); }
.machine-stage[data-state="plan"] .m-bar { background: transparent; border-color: rgba(127,166,255,.5); }
.machine-stage[data-state="plan"] .m-bar i { background: transparent; box-shadow: inset 0 0 0 1px var(--bp-trace); }
.machine-stage[data-state="plan"] .m-url { background: transparent; color: var(--bp-trace); box-shadow: inset 0 0 0 1px rgba(127,166,255,.5); }
.machine-stage[data-state="plan"] .m-piece { background: transparent !important; border: 1.5px dashed var(--bp-trace); color: var(--bp-trace); box-shadow: none; }
.machine-stage[data-state="plan"] .m-links span, .machine-stage[data-state="plan"] .m-text { background: transparent; border: 1px dashed var(--bp-trace); }
.machine-stage[data-state="plan"] .m-title, .machine-stage[data-state="plan"] .m-title em { color: var(--bp-trace); }
.machine-stage[data-state="plan"] .m-photo { position: relative; }
.machine-stage[data-state="plan"] .m-photo::after {
  content: "Foto real"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(.55rem, 1vw, .78rem); font-weight: 700; color: var(--bp-trace);
}
.machine-stage[data-state="plan"] .m-wa { background: transparent; box-shadow: inset 0 0 0 1.5px var(--bp-trace); color: var(--bp-trace); }
.machine-caption { margin: 18px 0 0; font-size: var(--t-small); color: var(--bp-muted); max-width: 52ch; }

/* ── Cinta de servicios ──────────────────────────────────────── */
.ticker { background: var(--mark); color: var(--mark-ink); overflow: hidden; }
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; flex: none; list-style: none; margin: 0; padding: 16px 0; }
.ticker li { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: -0.02em; white-space: nowrap; }
.ticker li::after { content: ""; width: .42em; height: .42em; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 40s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Secciones de papel ──────────────────────────────────────── */
/* Cada sección lleva la mitad del espacio arriba y abajo: entre dos secciones quedan 112–192 px */
.section { padding-block: clamp(56px, 6.5vw, 96px); }
.band + .section, .section:has(+ .band) { padding-block: clamp(72px, 12vw, 176px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.section-head h2 { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.045em; }
.section-head p { margin: 0; font-size: var(--t-lead); color: var(--ink); max-width: 52ch; }
.band .section-head p { color: var(--bp-ink); }

/* Dos columnas: el título a la izquierda (se queda quieto) y el contenido a la derecha */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .split > .section-head { position: sticky; top: 112px; margin-bottom: 0; }
}

/* Manifiesto: el titular cruza la pantalla y el texto cierra el hueco a la derecha */
.manifesto { padding-block: clamp(72px, 12vw, 176px); }
.manifesto .wrap { display: grid; gap: 28px; }
.manifesto h2 { font-size: var(--t-display); line-height: .96; letter-spacing: -0.05em; max-width: 14ch; }
.manifesto p { margin: 0; font-size: var(--t-lead); max-width: 44ch; }
@media (min-width: 960px) {
  .manifesto .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .manifesto h2 { grid-column: 1 / -1; }
  .manifesto p { grid-column: 7 / -1; }
}

/* Servicios: tres planos; el de la tienda ocupa la columna alta en azul */
.plans { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .plan:nth-child(1) { grid-column: 1 / span 7; }
  .plan:nth-child(2) { grid-column: 8 / span 5; grid-row: 1 / span 2; }
  .plan:nth-child(3) { grid-column: 1 / span 7; }
}
.plan {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 22px;
  padding: clamp(26px, 3.4vw, 44px); border-radius: var(--radius);
  background: var(--surface);
}
.plan.featured { background: var(--bp); color: var(--bp-ink); grid-template-rows: auto auto auto 1fr auto auto; }
.plan h3 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; }
.plan .for { margin: 0; color: var(--ink); font-size: 1.08rem; max-width: 46ch; }
.plan .for strong { color: var(--accent); }
.plan.featured .for { color: var(--bp-ink); }
.plan.featured .for strong { color: var(--mark); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan.featured li { color: var(--bp-ink); }
.plan.featured li::before { border-color: var(--mark); }
@media (min-width: 640px) { .plan:not(.featured) ul { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
/* Escaparate de la tienda: tres productos de la muestra Barro & Co. */
.plan-shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-self: end; }
.plan-shop span { display: grid; gap: 4px; align-content: start; font-size: .82rem; color: var(--bp-ink); }
.plan-shop i { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; background: #f1e6d3; margin-bottom: 4px; }
.plan-shop span:nth-child(2) i { background: #e4ecdc; }
.plan-shop i::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.plan-shop .cup::after { width: 34%; height: 30%; border-radius: 3px 3px 12px 12px; background: #2f6b52; }
.plan-shop .bowl::after { width: 50%; height: 24%; border-radius: 0 0 40px 40px; background: #c79a62; }
.plan-shop .jar::after { width: 30%; height: 46%; border-radius: 8px 8px 12px 12px; background: #fffaf2; }
.plan-shop b { font-weight: 700; }
.plan-shop em { font-style: normal; color: var(--mark); font-weight: 700; }
/* Ficha del plano: para quién es y qué te llevas */
.plan-facts { display: grid; gap: 10px; margin: 0; padding: 18px 20px; border-radius: 10px; background: var(--bg); }
.plan.featured .plan-facts { background: var(--bp-deep); }
.plan-facts div { display: grid; gap: 2px; }
@media (min-width: 520px) { .plan-facts div { grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; } }
.plan-facts dt { color: var(--muted); }
.plan.featured .plan-facts dt { color: var(--bp-muted); }
.plan-facts dd { margin: 0; font-weight: 700; }
.plan-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.plan .price { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.plan .price small { display: block; font-family: var(--f-body); font-weight: 400; font-size: var(--t-small); letter-spacing: 0; color: var(--muted); }
.plan.featured .price small { color: var(--bp-muted); }

/* Proceso: cuatro palabras grandes en una vía que se llena al llegar */
.process .wrap { padding-block: clamp(96px, 12vw, 176px); }
.process .section-head h2 { color: var(--bp-ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }
.step { position: relative; padding: 36px 32px 0 0; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: rgba(242,245,255,.12); }
@media (min-width: 900px) { .step::before { right: 12px; } }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 6px; border-radius: 3px; background: var(--mark); transform-origin: 0 50%; }
.step h3 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); letter-spacing: -0.05em; line-height: 1; margin-bottom: 18px; color: var(--bp-ink); }
.step p { margin: 0; color: var(--bp-ink); max-width: 30ch; }
.step .step-tag { margin-top: 18px; color: var(--mark); font-weight: 700; }

/* Lo que incluye siempre: lista en dos columnas, sin cajas */
.always { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 48px; }
@media (min-width: 640px) { .always { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.always li { display: grid; gap: 10px; align-content: start; padding-left: 22px; position: relative; }
.always li::before { content: ""; position: absolute; left: 0; top: .35em; width: 6px; height: 1.1em; border-radius: 3px; background: var(--accent); }
.always h3 { font-size: var(--t-h3); letter-spacing: -0.03em; }
.always p { margin: 0; }

/* Muestras de diseño: webs completas dentro de un móvil que se recorren solas */
.samples { display: grid; gap: clamp(28px, 4vw, 40px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .samples { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sample:nth-child(2) { margin-top: 56px; } }
.sample { display: grid; gap: 18px; margin: 0; align-content: start; justify-items: center; }
.phone {
  position: relative; width: min(100%, 300px); aspect-ratio: 9 / 18.5; padding: 9px; border-radius: 40px;
  background: #0d1630; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 40px 70px -40px rgba(13,22,48,.75);
  transition: transform .7s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .sample:hover .phone { transform: translateY(-6px) rotate(-1deg); } }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; z-index: 3; width: 28%; height: 18px; margin-left: -14%; border-radius: 999px; background: #0d1630; }
.phone .stamp { position: absolute; top: -12px; right: -8px; z-index: 4; font-size: .8rem; font-weight: 700; background: var(--mark); color: var(--mark-ink); padding: 6px 10px; border-radius: 999px; }
.phone-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; container-type: size; background: #fff; }
.phone-page { transition: transform 5.5s cubic-bezier(.45, .05, .25, 1); will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) and (pointer: fine) { .sample:hover .phone-page { transform: translateY(calc(-100% + 100cqh)); } }
  .sample.in-view .phone-page { animation: mk-tour 11s cubic-bezier(.45, .05, .25, 1) .6s 1 both; }
}
@keyframes mk-tour { 0%, 8% { transform: none; } 50%, 60% { transform: translateY(calc(-100% + 100cqh)); } 100% { transform: none; } }
.sample figcaption { display: grid; gap: 6px; width: min(100%, 320px); }
.sample figcaption strong { font-family: var(--f-display); font-weight: 800; font-size: var(--t-h3); letter-spacing: -0.03em; }
.sample figcaption > span { color: var(--ink); }
.sample-features { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
.sample-features li { font-size: .86rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface); }

/* Base de las webs de muestra (medidas relativas al ancho del móvil) */
.mk { font-family: var(--f-body); font-size: 4.4cqi; line-height: 1.45; padding-bottom: 6cqi; }
.mk p { margin: 0; }
.mk svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mk-nav { display: flex; align-items: center; justify-content: space-between; gap: 3cqi; padding: 12cqi 6cqi 4cqi; }
.mk-logo { font-weight: 800; font-size: 5.4cqi; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 2cqi; }
.mk-hero { position: relative; padding: 4cqi 6cqi 8cqi; display: grid; gap: 3.5cqi; }
.mk-eyebrow { font-weight: 700; font-size: 3.2cqi; letter-spacing: .08em; text-transform: uppercase; }
.mk-title { font-family: var(--f-display); font-weight: 800; font-size: 10cqi; line-height: 1; letter-spacing: -0.04em; }
.mk-title.sm { font-size: 7cqi; }
.mk-title em { font-family: var(--f-serif); font-style: italic; font-weight: 600; letter-spacing: -0.01em; }
.mk-text { font-size: 4.2cqi; }
.mk-btn { justify-self: start; display: inline-flex; align-items: center; gap: 2cqi; padding: 3.2cqi 5cqi; border-radius: 999px; font-weight: 700; font-size: 4cqi; white-space: nowrap; }
.mk-btn.sm { padding: 2cqi 3.6cqi; font-size: 3.4cqi; }
.mk-sec { padding: 4cqi 6cqi; display: grid; gap: 3cqi; }
.mk-h { font-weight: 800; font-size: 5.2cqi; letter-spacing: -0.02em; display: flex; align-items: center; gap: 2cqi; }
.mk-row { display: flex; gap: 2.5cqi; flex-wrap: wrap; }

/* 1 · Peluquería: cálida y editorial */
.mk-salon { background: #f1ebe6; color: #2b1a12; }
.mk-salon .mk-logo { font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 6.4cqi; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; }
.mk-salon .mk-logo small { font-family: var(--f-body); font-style: normal; font-weight: 700; font-size: 2.8cqi; letter-spacing: .14em; text-transform: uppercase; color: #6b4a3a; }
.mk-salon .mk-eyebrow { color: #8f3f1f; }
.mk-salon .mk-title { font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 12cqi; letter-spacing: -0.02em; }
.mk-salon .mk-title em { color: #8f3f1f; }
.mk-salon .mk-text { color: #5a3e30; }
.mk-salon .mk-btn { background: #2b1a12; color: #f7ece2; }
.mk-portrait { position: relative; height: 62cqi; margin-top: 3cqi; border-radius: 40cqi 40cqi 6cqi 6cqi; overflow: hidden; background: #ecc9ab; }
.mk-portrait i { position: absolute; display: block; }
.mk-portrait .sun { width: 24cqi; height: 24cqi; border-radius: 50%; right: 8cqi; top: 8cqi; background: #fbe6cf; }
.mk-portrait .hair { width: 40cqi; height: 44cqi; left: 50%; top: 8cqi; margin-left: -20cqi; border-radius: 50% 50% 42% 42%; background: #4a2a1c; }
.mk-portrait .face { width: 24cqi; height: 28cqi; left: 50%; top: 17cqi; margin-left: -12cqi; border-radius: 50%; background: #f0b48c; }
.mk-portrait .body { width: 70cqi; height: 34cqi; left: 50%; bottom: -10cqi; margin-left: -35cqi; border-radius: 50% 50% 0 0; background: #8f3f1f; }
.mk-open { display: flex; align-items: center; gap: 2.5cqi; margin: 0 6cqi 4cqi; padding: 3cqi 4cqi; border-radius: 4cqi; background: #2b1a12; color: #f7ece2; font-size: 3.8cqi; }
.mk-open svg { color: #f5b38a; }
.mk-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4cqi; }
.mk-prices li { display: flex; align-items: baseline; gap: 2cqi; font-size: 4.2cqi; }
.mk-prices li::after { content: ""; order: 1; flex: 1; border-bottom: 1.5px dotted rgba(43,26,18,.35); transform: translateY(-1cqi); }
.mk-prices b { order: 2; }
.mk-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5cqi; }
.mk-gallery i { --hair: #4a2a1c; --bg1: #f1d3b8; --bg2: #e0ad86; --top: #8f3f1f; position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 4cqi; background: var(--bg2); }
.mk-gallery i::before { content: ""; position: absolute; left: 50%; top: 16%; width: 52%; height: 60%; margin-left: -26%; border-radius: 50% 50% 38% 38%; background: var(--hair); box-shadow: 0 0 0 0 var(--hair); }
.mk-gallery i::after { content: ""; position: absolute; left: 50%; top: 30%; width: 30%; height: 34%; margin-left: -15%; border-radius: 50%; background: #f0b48c; box-shadow: 0 17cqi 0 5cqi var(--top); }
.mk-gallery i:nth-child(2) { --hair: #b8572f; --bg1: #f6e1cf; --bg2: #e9c3a5; --top: #2b1a12; }
.mk-gallery i:nth-child(2)::before { width: 64%; margin-left: -32%; height: 72%; border-radius: 46% 46% 20% 20%; }
.mk-gallery i:nth-child(3) { --hair: #d8b06a; --bg1: #ead2bd; --bg2: #c98f69; --top: #f7ece2; }
.mk-gallery i:nth-child(3)::before { top: 12%; height: 40%; border-radius: 50% 50% 30% 30%; }
.mk-gallery i:nth-child(4) { --hair: #2b1a12; --bg1: #f3dcc8; --bg2: #e3b38f; --top: #b8572f; }
.mk-gallery i:nth-child(4)::before { top: 10%; width: 40%; margin-left: -20%; height: 34%; border-radius: 50%; box-shadow: 0 -4cqi 0 -1cqi var(--hair); }
.mk-map { position: relative; height: 30cqi; border-radius: 4cqi; background-color: #e6dbd2; overflow: hidden; }
.mk-map::before, .mk-map::after { content: ""; position: absolute; background: #fbf7f3; }
.mk-map::before { left: -10%; right: -10%; top: 46%; height: 5cqi; transform: rotate(-14deg); }
.mk-map::after { top: -10%; bottom: -10%; left: 30%; width: 4cqi; transform: rotate(8deg); }
.mk-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -70%); color: #8f3f1f; font-size: 8cqi; }
.mk-pin svg { fill: #f7ece2; }
.mk-addr { font-size: 4cqi; color: #5a3e30; }
.mk-addr b { color: #2b1a12; }
.mk-salon .mk-end .mk-title em { color: #2b1a12; }
.mk-salon .mk-end { margin: 4cqi 6cqi 0; padding: 7cqi 6cqi; border-radius: 6cqi; background: #e3b38f; display: grid; gap: 4cqi; justify-items: start; }

/* 2 · Tienda Shopify: el producto manda */
.mk-shop { background: #0f2a20; color: #eef6f0; }
.mk-announce { padding: 10cqi 4cqi 2.5cqi; text-align: center; background: #c8f169; color: #0f2a20; font-weight: 700; font-size: 3.6cqi; }
.mk-shop .mk-nav { padding-top: 4cqi; }
.mk-cart { position: relative; display: inline-flex; font-size: 5cqi; }
.mk-cart b { position: absolute; top: -1.6cqi; right: -2.4cqi; min-width: 4.4cqi; height: 4.4cqi; display: grid; place-items: center; border-radius: 50%; background: #c8f169; color: #0f2a20; font-size: 2.8cqi; }
.mk-shop .mk-hero { margin: 0 4cqi; padding: 6cqi; border-radius: 6cqi; background: #1b4030; }
.mk-shop .mk-eyebrow { color: #c8f169; }
.mk-shop .mk-btn { background: #c8f169; color: #0f2a20; }
.mk-vase { position: relative; height: 46cqi; }
.mk-vase i { position: absolute; display: block; left: 50%; }
.mk-vase .body { width: 30cqi; height: 30cqi; bottom: 6cqi; margin-left: -15cqi; border-radius: 46% 46% 40% 40%; background: #e6d4b4; box-shadow: inset -4cqi -3cqi 0 #d3bd97; }
.mk-vase .neck { width: 12cqi; height: 14cqi; bottom: 32cqi; margin-left: -6cqi; border-radius: 3cqi 3cqi 0 0; background: #e8d6b8; }
.mk-vase .shadow { width: 40cqi; height: 5cqi; bottom: 3cqi; margin-left: -20cqi; border-radius: 50%; background: rgba(0,0,0,.3); }
.mk-chips { display: flex; gap: 2cqi; padding: 5cqi 4cqi 3cqi; overflow: hidden; }
.mk-chips span { padding: 1.8cqi 3.6cqi; border-radius: 999px; border: 1px solid rgba(238,246,240,.3); font-size: 3.6cqi; white-space: nowrap; }
.mk-chips .on { background: #eef6f0; color: #0f2a20; border-color: #eef6f0; font-weight: 700; }
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqi 3cqi; padding: 2cqi 4cqi; }
.mk-prod { display: grid; gap: 1cqi; font-size: 3.8cqi; }
.mk-prod span { color: #c8f169; font-weight: 700; }
.mk-pimg { position: relative; aspect-ratio: 1; border-radius: 4cqi; background: #f1e6d3; margin-bottom: 1.5cqi; }
.mk-pimg.alt { background: #e4ecdc; }
.mk-pimg i { position: absolute; left: 50%; top: 50%; display: block; transform: translate(-50%, -50%); }
.mk-pimg .cup { width: 18cqi; height: 16cqi; border-radius: 1cqi 1cqi 5cqi 5cqi; background: #2f6b52; box-shadow: 5cqi 1cqi 0 -3.2cqi #2f6b52, 5.6cqi 1cqi 0 -2.3cqi #f1e6d3; }
.mk-pimg .bowl { width: 26cqi; height: 12cqi; border-radius: 0 0 14cqi 14cqi; background: #c79a62; }
.mk-pimg .plate { width: 28cqi; height: 28cqi; border-radius: 50%; background: #fffaf2; box-shadow: inset 0 0 0 7cqi #e9dcc5; }
.mk-pimg .jar { width: 16cqi; height: 24cqi; border-radius: 4cqi 4cqi 6cqi 6cqi; background: #fffaf2; box-shadow: inset 0 -5cqi 0 #e7dccb; }
.mk-trust { display: grid; gap: 2.4cqi; margin: 5cqi 4cqi 0; padding: 4cqi; border-radius: 4cqi; border: 1px solid rgba(238,246,240,.2); font-size: 3.8cqi; }
.mk-trust span { display: flex; align-items: center; gap: 2.4cqi; }
.mk-trust svg { color: #c8f169; }
.mk-news { margin: 5cqi 4cqi 0; padding: 6cqi 5cqi; border-radius: 5cqi; background: #c8f169; color: #0f2a20; display: grid; gap: 3.5cqi; }
.mk-input { display: flex; justify-content: space-between; align-items: center; padding: 1.6cqi 1.6cqi 1.6cqi 4cqi; border-radius: 999px; background: #ffffff; font-size: 3.8cqi; color: #4b5a52; }
.mk-input b { padding: 2cqi 4cqi; border-radius: 999px; background: #0f2a20; color: #c8f169; }

/* 3 · Asesoría: sobria y de confianza */
.mk-office { background: #ffffff; color: #11204a; }
.mk-office .mk-logo i { width: 5cqi; height: 5cqi; border-radius: 1.2cqi; background: #11204a; box-shadow: 2cqi 2cqi 0 -1cqi #2350f0; }
.mk-office .mk-logo { font-size: 4.6cqi; }
.mk-office .mk-btn { background: #2350f0; color: #ffffff; border-radius: 2.4cqi; }
.mk-office .mk-btn.ghost { background: transparent; color: #11204a; box-shadow: inset 0 0 0 1.5px #c9d2ea; }
.mk-office .mk-hero { padding-top: 6cqi; background: #f2f5fc; }
.mk-office .mk-eyebrow { color: #2350f0; }
.mk-office .mk-text { color: #3e4a6b; }
.mk-services { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5cqi; }
.mk-services div { display: grid; gap: 1cqi; padding: 4cqi; border-radius: 3cqi; background: #eef2fb; font-size: 3.4cqi; color: #3e4a6b; }
.mk-services svg { color: #2350f0; font-size: 5cqi; margin-bottom: 1cqi; }
.mk-services b { color: #11204a; font-size: 4.2cqi; }
.mk-deadlines { padding: 5cqi; border-radius: 4cqi; background: #11204a; color: #ffffff; display: grid; gap: 3cqi; }
.mk-deadlines .mk-h svg { color: #9db4ff; }
.mk-deadlines ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4cqi; }
.mk-deadlines li { display: flex; justify-content: space-between; gap: 2cqi; padding-top: 2.4cqi; border-top: 1px solid rgba(255,255,255,.18); font-size: 3.6cqi; }
.mk-deadlines li b { color: #ffd84d; font-weight: 600; white-space: nowrap; }
.mk-form { display: grid; gap: 2.6cqi; padding: 5cqi; border-radius: 4cqi; box-shadow: inset 0 0 0 1.5px #dbe2f2; }
.mk-field { padding: 3cqi 3.5cqi; border-radius: 2cqi; background: #f5f7fc; color: #5d6886; font-size: 3.6cqi; box-shadow: inset 0 0 0 1px #dbe2f2; }
.mk-form .mk-btn { justify-self: stretch; justify-content: center; }
.mk-foot { padding: 6cqi; font-size: 3.2cqi; color: #5d6886; text-align: center; }

/* Preguntas frecuentes: bloques de tono, sin líneas */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--surface); transition: background-color .2s ease; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; list-style: none;
  padding: 22px 24px; min-height: 44px; border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 800; font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); font-weight: 400; font-size: 1.4rem; transition: transform .25s var(--ease), background-color .2s ease; }
.faq summary:active::after { transform: scale(.92); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--mark); color: var(--mark-ink); }
.faq details p { margin: 0; padding: 0 24px 24px; max-width: 62ch; }

/* Guías: filas grandes que se leen como un índice */
.guides-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 28px; margin-bottom: clamp(40px, 6vw, 72px); }
.guides-head .section-head { margin-bottom: 0; }
.guide-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-rows li { position: relative; display: grid; gap: 8px 40px; padding: 28px clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); transition: background-color .2s ease; }
@media (min-width: 900px) {
  .guide-rows li { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) auto; align-items: center; }
  .guide-rows .meta { grid-column: 1 / -1; }
}
.guide-rows h3 { font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1.15; }
.guide-rows h3 a { color: var(--ink); text-decoration: none; }
.guide-rows h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.guide-rows h3 a:focus-visible { outline: none; }
.guide-rows li:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.guide-rows .excerpt { margin: 0; }
.guide-rows .go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); font-size: 1.2rem; transition: transform .25s var(--ease), background-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .guide-rows li:hover { background: color-mix(in srgb, var(--mark) 22%, var(--surface)); }
  .guide-rows li:hover .go { background: var(--mark); color: var(--mark-ink); transform: translateX(4px); }
}
.guide-rows li:active { transform: scale(.995); }

/* Cierre: la llamada a la acción gigante */
.closing .wrap { padding-block: clamp(96px, 13vw, 176px); display: grid; gap: 34px; }
.closing h2 { font-size: clamp(2.9rem, 10vw, 9rem); line-height: .92; letter-spacing: -0.055em; }
.closing p { max-width: 46ch; margin: 0; font-size: var(--t-lead); color: var(--bp-ink); }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 960px) {
  .closing .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .closing h2 { grid-column: 1 / -1; }
  .closing-copy { grid-column: 7 / -1; }
}

/* ── Cabecera de páginas interiores ──────────────────────────── */
.page-head .wrap { padding-block: clamp(32px, 6vw, 64px) clamp(44px, 7vw, 88px); }
.page-head h1 { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.045em; max-width: 26ch; margin-top: 18px; }
/* Entrada de la cabecera: las piezas suben por turnos al cargar (listo en menos de un segundo) */
@media (prefers-reduced-motion: no-preference) {
  .page-head .wrap > * { animation: head-in .6s var(--ease) both; }
  .page-head .wrap > :nth-child(2) { animation-delay: 60ms; }
  .page-head .wrap > :nth-child(3) { animation-delay: 120ms; }
  .page-head .wrap > :nth-child(n+4) { animation-delay: 180ms; }
}
@keyframes head-in { from { opacity: 0; transform: translateY(16px); } }
.page-head .intro { font-size: var(--t-lead); max-width: 56ch; margin: 22px 0 0; color: var(--bp-ink); }
.page-head .head-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--bp-muted); }
.page-head .head-meta .head-cat { color: var(--mark); font-weight: 700; }
.page-head .page-label { margin: 14px 0 0; color: var(--mark); font-weight: 700; }
.page-head .topics { margin-top: 28px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--bp-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.band .crumbs a { color: var(--bp-muted); }
.band .crumbs a:hover { color: var(--bp-ink); }
.crumbs [aria-current] { color: var(--bp-ink); }

/* ── Rejilla de contenido ────────────────────────────────────── */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 112px); }
@media (min-width: 1020px) {
  .layout.has-aside { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
  .layout.has-aside > aside { position: sticky; top: 100px; align-self: start; }
}
.layout > * { min-width: 0; }
aside { display: grid; gap: 20px; }

/* Tarjetas de guías */
.cards { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .cards.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* En el listado de guías, cada guía es una fila ancha: título a un lado y resumen al otro */
@media (min-width: 760px) { .cards.pair .card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; } .cards.pair .card .meta { grid-column: 1 / -1; } }
.card {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 24px 24px 26px;
  background: var(--surface); border-radius: var(--radius);
  transition: background-color .2s ease, transform .16s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .card:hover { background: color-mix(in srgb, var(--mark) 22%, var(--surface)); } }
.card:active { transform: scale(.99); }
.cards .card h3 { font-size: 1.28rem; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.cards .card p { margin: 0; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--muted); margin: 0; }
.meta .cat { color: var(--accent); font-weight: 700; }

.side-box { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.side-box.dark { background: var(--bp); color: var(--bp-ink); }
.side-box.dark p { color: var(--bp-muted); }
.side-box h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.side-box p { margin: 0 0 16px; color: var(--muted); font-size: .97rem; }
.side-box .btn { width: 100%; }
.next-steps ol { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: paso; }
.next-steps li { position: relative; padding-left: 40px; counter-increment: paso; }
.next-steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mark); color: var(--mark-ink); font-weight: 800; font-size: .9rem; }
.next-steps strong { color: var(--ink); }

.topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.band .topics a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(242,245,255,.1); color: var(--bp-ink); font-weight: 600; font-size: .92rem; text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.band .topics a:hover { background: var(--mark); color: var(--mark-ink); }
.topic-group + .topic-group { margin-top: 56px; }
.topic-group h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; margin-bottom: 18px; scroll-margin-top: 100px; }

/* ── Texto de artículos y páginas ────────────────────────────── */
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 3.2vw, 1.95rem); letter-spacing: -0.03em; margin: 52px 0 14px; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose .intro { font-size: var(--t-lead); color: var(--ink); }
.prose strong { font-weight: 700; }

.toc { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 34px; }
.toc .toc-title { color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.toc ol.plain { list-style: none; padding-left: 0; }
.toc li { margin: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
caption { text-align: left; padding: 14px 16px 0; font-weight: 700; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .9rem; color: var(--muted); font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }

.note { background: var(--surface); border-left: 6px solid var(--mark); border-radius: 8px; padding: 16px 20px; margin: 0 0 22px; }
.note p:last-child { margin-bottom: 0; }

ul.check { list-style: none; padding: 0; }
ul.check li { position: relative; padding-left: 32px; }
ul.check li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.author-box { display: grid; gap: 6px; margin-top: 52px; padding: 24px; background: var(--surface); border-radius: var(--radius); }
.prose .author-box h2 { font-size: 1.15rem; margin: 0; }
.author-box p { margin: 0; color: var(--muted); }
.related { margin-top: 52px; }
.prose .related h2 { font-size: 1.5rem; margin: 0 0 16px; }
.disclaimer { font-size: .92rem; color: var(--muted); }
.updated { font-size: .9rem; color: var(--muted); margin-top: 32px; }
.pending { background: var(--mark); color: var(--mark-ink); padding: 0 5px; border-radius: 3px; font-weight: 700; font-size: .9em; }

/* ── Publicidad (solo ocupa sitio cuando Google sirve un anuncio) ─ */
.ad-slot { margin: 0; display: grid; gap: 4px; }
.ad-slot:has(ins[data-ad-status="filled"]) { margin: 34px 0; }
.ad-slot:has(ins[data-ad-status="filled"])::before { content: "Publicidad"; font-size: .85rem; color: var(--muted); }

/* ── Contacto ────────────────────────────────────────────────── */
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 30px; }
.contact-email strong { font-size: 1.1rem; word-break: break-all; user-select: all; }
.status { font-size: .92rem; color: var(--ok); min-height: 1.4em; }
.form { margin-bottom: 28px; display: grid; gap: 18px; background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .hint { font-size: .88rem; color: var(--muted); margin: 0; }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 50px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9rem; font-weight: 600; margin: 0; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.consent label { font-weight: 400; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 14px 16px; font-weight: 600; }
.form-status.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ink); border: 1px solid var(--ok); }
.form-status.error { background: color-mix(in srgb, var(--error) 12%, var(--surface)); color: var(--ink); border: 1px solid var(--error); }

/* ── 404 ─────────────────────────────────────────────────────── */
.notfound .wrap { padding-block: clamp(72px, 12vw, 150px); display: grid; gap: 20px; }
.notfound .code { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 20vw, 12rem); line-height: .85; letter-spacing: -0.06em; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--bp-trace); }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.04em; }
.notfound p { margin: 0; max-width: 50ch; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* ── Pie ─────────────────────────────────────────────────────── */
.site-footer { background: var(--bp-deep); color: var(--bp-muted); font-size: .93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; padding-top: 34px; padding-bottom: max(34px, env(safe-area-inset-bottom, 0px)); }
.site-footer p { margin: 0; }
/* El nombre vuelve a todo lo ancho para cerrar la página */
.footer-name { flex-basis: 100%; margin: 0 0 8px; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 10vw, 8.4rem); line-height: .9; letter-spacing: -0.055em; color: var(--bp-ink); white-space: nowrap; }
.footer-name span { color: var(--mark); font-weight: 400; text-transform: lowercase; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer li { display: flex; align-items: center; min-height: 36px; }
.site-footer a, .link-button { color: var(--bp-muted); }
.site-footer a:hover, .link-button:hover { color: var(--bp-ink); }
.link-button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── Movimiento ──────────────────────────────────────────────── */
/* Revelado: el contenido siempre es visible y legible; solo se desplaza un poco al entrar. */
/* Cada pieza de la sección (título, texto, imagen…) sube y aparece por turnos: 70 ms entre una y otra. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal > * { transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--n, 0) * 70ms); }
  .js .reveal.below > * { opacity: 0; transform: translateY(24px); }
  /* Los títulos nunca se esconden: solo suben un poco */
  .js .reveal.below > .section-head, .js .reveal.below > .guides-head, .js .reveal.below h2 { opacity: 1; }
  /* La vía del proceso se llena de amarillo al llegar */
  .js .steps .step::after { transition: transform 1s var(--ease-in-out); transition-delay: calc(var(--n, 0) * 120ms + 200ms); }
  .js .steps.below .step::after { transform: scaleX(0); }
}


/* Transiciones suaves entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .machine, .machine:hover { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@media print {
  .site-header, .site-footer, aside, .ad-slot, .toc, .skip { display: none !important; }
  body, .band { background: #fff !important; color: #000 !important; }
}

/* ════════════════════════════════════════════════════════════════
   GENERADOR DE DEMOS (/demo/)
   ════════════════════════════════════════════════════════════════ */
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: clamp(36px, 6vw, 64px) clamp(72px, 9vw, 112px); align-items: start; }
@media (min-width: 1080px) { .demo-layout { grid-template-columns: 380px minmax(0, 1fr); gap: 48px; } .demo-stage { position: sticky; top: 96px; } }
.demo-layout > * { min-width: 0; }

.demo-form { display: grid; gap: 26px; background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.demo-form-title { font-size: 1.5rem; letter-spacing: -0.03em; }
.demo-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.demo-form legend { color: var(--accent); font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; padding: 0; }
.field-label { font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); font-size: .9em; }
.demo-form input[type=file] { padding: 10px; font-size: .9rem; }
.demo-generate { width: 100%; }
.demo-privacy { margin: 0; font-size: .88rem; color: var(--muted); }

.choices { display: grid; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.style-choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.style-choice:has(input:checked) { border-color: var(--accent); border-width: 2.5px; padding: 7px 11px; }
.style-choice:has(input:focus-visible), .color-choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice-swatch { display: flex; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.choice-swatch i { width: 12px; height: 32px; }
.choice-text { display: grid; line-height: 1.25; }
.choice-text small { color: var(--muted); font-size: .85rem; }
.colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.color-choice { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); font-size: .88rem; font-weight: 600; }
.color-choice .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.color-choice:has(input:checked) { border-color: var(--accent); }
.color-choice:has(input:checked) .dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.color-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.15; }

.demo-stage { display: grid; gap: 16px; }
.stage-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.stage-title { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.035em; }
.stage-badge { margin: 4px 0 0; font-size: var(--t-small); font-weight: 700; color: var(--accent); }
.device-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.device-toggle button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.device-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.stage-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.share-url { width: 100%; font: inherit; font-size: .9rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.demo-disclaimer { margin: 0; font-size: .9rem; color: var(--muted); max-width: 70ch; }

/* Marco de navegador */
.pv-frame { border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(13,22,48,.55); transition: max-width .5s var(--ease); max-width: 100%; margin-inline: auto; width: 100%; }
.pv-frame[data-device="mobile"] { max-width: 390px; border-radius: 28px; box-shadow: 0 0 0 10px var(--bp-deep), 0 0 0 11px var(--line), 0 40px 80px -50px rgba(13,22,48,.55); margin-block: 10px; }
.pv-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pv-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pv-url { margin-left: 10px; flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--surface); font-size: .78rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pv-scroll { max-height: min(78vh, 900px); overflow: auto; overscroll-behavior: contain; }
.pv-frame[data-device="mobile"] .pv-scroll { max-height: 720px; }

/* La web de muestra: usa consultas de contenedor para adaptarse al marco, no a la pantalla */
.pv {
  --pv-pad: clamp(16px, 4cqi, 44px);
  container-type: inline-size; position: relative;
  background: var(--pv-bg); color: var(--pv-ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.55;
}
.pv * { box-sizing: border-box; }
.pv p { margin: 0; color: inherit; }
.pv-p { transition: background-color .6s var(--ease) calc(var(--i, 0) * 80ms), border-color .6s calc(var(--i, 0) * 80ms), opacity .6s calc(var(--i, 0) * 80ms), transform .6s var(--ease) calc(var(--i, 0) * 80ms); border: 1.5px solid transparent; }
.pv[data-heading="serif"] .pv-title, .pv[data-heading="serif"] .pv-h2, .pv[data-heading="serif"] .pv-name { font-family: var(--f-serif); font-style: italic; font-weight: 600; letter-spacing: -0.015em; }
.pv-nav { display: flex; align-items: center; gap: 16px; padding: 14px var(--pv-pad); border-bottom: 1px solid color-mix(in srgb, var(--pv-ink) 12%, transparent); }
.pv-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.pv-mono { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: calc(var(--pv-radius) * .6); background: var(--pv-accent); color: var(--pv-on-accent); font-family: var(--f-display); font-weight: 800; font-size: .9rem; letter-spacing: -0.02em; }
.pv-logo-img { flex: none; max-height: 40px; max-width: 120px; width: auto; object-fit: contain; }
.pv-name { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-links { display: none; gap: 22px; font-size: .9rem; color: var(--pv-muted); }
@container (min-width: 640px) { .pv-links { display: flex; } }
.pv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: max(8px, var(--pv-radius)); background: var(--pv-accent); color: var(--pv-on-accent); font-weight: 700; font-size: .92rem; white-space: nowrap; border: 1.5px solid var(--pv-accent); }
.pv-btn.small { padding: 8px 14px; font-size: .82rem; }
.pv-btn.ghost { background: transparent; color: var(--pv-ink); border-color: color-mix(in srgb, var(--pv-ink) 35%, transparent); }
.pv-nav .pv-btn { display: none; }
@container (min-width: 480px) { .pv-nav .pv-btn { display: inline-flex; } }
.pv-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pv-icon.sm { width: 16px; height: 16px; }

.pv-hero { display: grid; gap: 24px; padding: clamp(28px, 7cqi, 72px) var(--pv-pad); }
@container (min-width: 640px) { .pv-hero { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; } }
.pv-hero-copy { display: grid; gap: 16px; min-width: 0; }
.pv-eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pv-accent); }
.pv-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 6.4cqi, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; overflow-wrap: anywhere; }
.pv-intro { color: var(--pv-muted); font-size: 1rem; max-width: 46ch; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pv-art { position: relative; aspect-ratio: 5 / 4; border-radius: var(--pv-radius); overflow: hidden; background: var(--pv-surface); display: grid; place-items: center; }
.pv-blob { position: absolute; border-radius: 50%; }
.pv-blob.a { width: 70%; aspect-ratio: 1; right: -12%; bottom: -22%; background: var(--pv-accent); opacity: .9; }
.pv-blob.b { width: 34%; aspect-ratio: 1; left: 10%; top: 12%; background: color-mix(in srgb, var(--pv-accent) 30%, var(--pv-bg)); }
.pv-art-icon { position: relative; width: 34%; height: auto; fill: none; stroke: var(--pv-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.pv-section { padding: 8px var(--pv-pad) clamp(28px, 6cqi, 56px); display: grid; gap: 18px; }
.pv-h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.35rem, 3.6cqi, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.pv-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.pv-card { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--pv-radius); background: var(--pv-surface); min-width: 0; }
.pv-num { font-weight: 700; font-size: .8rem; color: var(--pv-accent); }
.pv-card-title { font-weight: 700; overflow-wrap: anywhere; }
.pv-card-line { font-size: .85rem; color: var(--pv-muted); }
.pv-card.product .pv-btn { justify-self: start; margin-top: 4px; }
.pv-product-img { position: relative; aspect-ratio: 1; border-radius: calc(var(--pv-radius) * .7); margin-bottom: 6px; background: color-mix(in srgb, var(--pv-ink) 9%, var(--pv-surface)); }
.pv-product-img::after { content: ""; position: absolute; left: 50%; top: 58%; width: 52%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: var(--pv-accent); }
.pv-highlights { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 18px var(--pv-pad); border-block: 1px solid color-mix(in srgb, var(--pv-ink) 12%, transparent); font-size: .92rem; font-weight: 600; }
.pv-hl { display: inline-flex; align-items: center; gap: 8px; }
.pv-hl .pv-icon { color: var(--pv-accent); }
.pv-contact { display: grid; gap: 18px; margin: clamp(24px, 5cqi, 48px) var(--pv-pad); padding: clamp(22px, 5cqi, 44px); border-radius: var(--pv-radius); background: var(--pv-surface); }
@container (min-width: 640px) { .pv-contact { grid-template-columns: 1fr auto; align-items: center; } }
.pv-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px var(--pv-pad) 24px; font-size: .8rem; color: var(--pv-muted); }
.pv-wa { position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #13803a; color: #ffffff; font-weight: 800; font-size: .72rem; box-shadow: 0 10px 24px -8px rgba(19,128,58,.8); }
.pv[data-style="elegante"] .pv-card, .pv[data-style="elegante"] .pv-contact, .pv[data-style="elegante"] .pv-art { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pv-ink) 14%, transparent); }

/* Montaje: el boceto aparece primero como plano y luego se rellena */
.pv[data-state="plan"] .pv-p { border: 1.5px dashed var(--bp-trace); opacity: .35; transform: translateY(6px); }

@media (prefers-reduced-motion: reduce) { .pv-frame { transition: none; } }

/* Demo adjunta en contacto */
.demo-attach { display: grid; gap: 12px; margin: 0 0 28px; padding: 22px; border-radius: var(--radius); background: var(--bp); color: var(--bp-ink); }
.prose .demo-attach h2 { margin: 0; font-size: 1.3rem; color: var(--bp-ink); }
.demo-attach p { margin: 0; color: var(--bp-muted); }
.demo-attach .demo-attach-meta { color: var(--mark); font-weight: 700; font-size: var(--t-small); }
.demo-attach-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-attach .btn-small { background: rgba(242,245,255,.1); color: var(--bp-ink); border-color: transparent; }
.demo-attach .btn-small:hover { background: var(--mark); color: var(--mark-ink); }
.demo-attach-summary { margin: 0; padding: 14px; border-radius: 10px; background: var(--bp-deep); color: var(--bp-ink); font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-attach .status { color: var(--mark); }

/* Llamada a la demo en la portada */
.demo-cta { display: grid; gap: 22px; align-items: center; margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--mark); color: var(--mark-ink); }
@media (min-width: 860px) { .demo-cta { grid-template-columns: 1fr auto; } }
.demo-cta h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.045em; }
.demo-cta p { margin: 10px 0 0; max-width: 52ch; }
.demo-cta .btn-mark { background: var(--mark-ink); color: var(--mark); }
.demo-cta .btn-mark:hover { background: #1d2a52; color: var(--mark); }
.demo-form .choice, .demo-form .choice-text small { font-weight: 400; }
.demo-form .choice-text strong, .color-choice { font-weight: 700; }
.colors { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.color-name { overflow-wrap: normal; }
.demo-stage .status:empty { display: none; }
@media (max-width: 699px) { .device-toggle { display: none; } .pv-scroll { max-height: none; } }

/* ── Visor de muestras: el móvil «da un paso adelante» ─────────── */
button.phone { display: block; font: inherit; color: inherit; text-align: left; cursor: zoom-in; border: 0; }
button.phone .phone-screen, button.phone .phone-page { display: block; }
.phone-zoom { position: absolute; left: 50%; bottom: 22px; z-index: 4; transform: translate(-50%, 8px); opacity: 0; padding: 8px 14px; border-radius: 999px; background: var(--bp-deep); color: var(--bp-ink); font-size: .85rem; font-weight: 700; white-space: nowrap; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.js .phone:focus-visible .phone-zoom { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) { .js .sample:hover .phone-zoom { opacity: 1; transform: translate(-50%, 0); } }
button.phone:active { transform: scale(.98); }
html:not(.js) .phone-zoom { display: none; }

html.viewer-open { overflow: hidden; }
/* El diálogo ocupa toda la pantalla y es transparente: el velo y el panel se animan por separado. */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 12px; border: 0; background: transparent; color: var(--bp-ink); overflow: hidden; }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: transparent; }
.viewer-scrim { position: absolute; inset: 0; background: rgba(5, 12, 36, .88); }
.viewer-panel { position: relative; width: min(980px, 100%); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; border-radius: 26px; perspective: 1600px; }
.viewer-bg { position: absolute; inset: 0; border-radius: inherit; background-color: var(--bp); }
.viewer-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 56px 16px 20px; }
@media (min-width: 760px) { .viewer-inner { grid-template-columns: auto minmax(0, 1fr); gap: 52px; align-items: center; padding: 44px 56px 44px 44px; } }
.viewer-stage { display: grid; place-items: center; min-width: 0; }
.viewer .viewer-phone { width: auto; height: min(62dvh, 560px); aspect-ratio: 9 / 18.5; transform-origin: 50% 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 60px 90px -40px rgba(0,0,0,.8); }
@media (min-width: 760px) { .viewer .viewer-phone { height: min(80dvh, 720px); } }
.viewer-screen { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.viewer-screen::-webkit-scrollbar { display: none; }
.viewer-screen:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; }
.viewer-hint { position: absolute; left: 50%; bottom: 22px; z-index: 4; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; background: var(--bp-deep); color: var(--bp-ink); font-size: .8rem; font-weight: 700; white-space: nowrap; transition: opacity .4s; pointer-events: none; }
.viewer-hint.gone { opacity: 0; }
.viewer-info { display: grid; gap: 14px; align-content: center; min-width: 0; }
.viewer-info .viewer-count { color: var(--mark); font-weight: 700; }
.viewer-info h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.04em; color: var(--bp-ink); }
.viewer-info p { margin: 0; color: var(--bp-ink); font-size: 1.05rem; max-width: 40ch; }
.viewer .sample-features li { background: rgba(242,245,255,.1); color: var(--bp-ink); }
.viewer-actions { margin-top: 8px; }
.viewer-nav { display: flex; gap: 10px; margin-top: 4px; }
.viewer-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(242,245,255,.12); color: var(--bp-ink); font: inherit; font-size: 1.15rem; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .16s var(--ease); }
.viewer-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .viewer-btn:hover { background: var(--mark); color: var(--mark-ink); } }
.viewer-close { position: absolute; top: 12px; right: 12px; }
/* La miniatura que «sale volando» deja su hueco vacío mientras el visor está abierto. */
button.phone.is-away { visibility: hidden; }
@media (max-width: 759px) {
  .viewer .viewer-phone { height: min(50dvh, 460px); }
  .viewer-inner { gap: 14px; padding: 52px 16px 18px; }
  .viewer-info { gap: 10px; text-align: center; justify-items: center; }
  .viewer-info h2 { font-size: 1.6rem; }
  .viewer-info p { font-size: .95rem; }
  .viewer .sample-features { justify-content: center; }
  .viewer-actions { margin-top: 2px; }
  .viewer-nav { position: absolute; top: 12px; left: 12px; margin: 0; }
}
