/* ════════════════════════════════════════════════════════════════
   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 {
  /* «Estudio de noche»: la web es el estudio con la lámpara encendida.
     Fondo tinta, texto crema, el amarillo de la lámpara como único acento. */
  --bg: #0f1219;          /* la habitación */
  --surface: #171b26;     /* objetos y fichas */
  --surface-2: #1f2432;
  --ink: #f3ede2;         /* texto crema */
  --muted: #b3b5c0;
  --line: #2a3040;
  --accent: #ffd84d;
  --accent-hover: #ffe680;
  --accent-ink: #12141b;

  /* Bandas (cabecera, héroe, proceso, cierre): un poco más oscuras que la habitación */
  --bp: #0b0d13;
  --bp-deep: #07080c;
  --bp-ink: #f3ede2;
  --bp-muted: #b3b5c0;
  --bp-line: rgba(243, 237, 226, 0.12);
  --bp-trace: #8fb0ff;

  /* Lámpara */
  --mark: #ffd84d;
  --mark-ink: #12141b;

  /* Materiales del estudio */
  --wood: #a8714a;
  --wood-dark: #6e4428;
  --paper: #f3ede2;
  --paper-ink: #1b1d24;
  --blueprint: #1d47b8;

  --ok: #5fd39a;
  --error: #ff8a80;

  --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.2rem, 4.8vw, 3.8rem);
  --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: 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); }
.band [data-ui] p { color: inherit; } /* las webs de muestra llevan sus propios colores */

/* ── 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: la mesa del estudio ───────────────────── */
/* El texto a la izquierda y, a la derecha, la mesa en 3D con los objetos que llevan a cada parte de la web. */
.hero { overflow: hidden; }
.hero-grid { display: grid; align-items: center; max-width: 1440px; margin-inline: auto; }
@media (min-width: 1000px) { .hero-grid { min-height: min(calc(100svh - 72px), 900px); } }
.hero-copy { padding: clamp(40px, 6vw, 72px) max(var(--gutter), env(safe-area-inset-left, 0px)) 0; position: relative; z-index: 2; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero-copy { padding: 48px 0 64px max(var(--gutter), calc((min(100vw, 1440px) - 1200px) / 2 + var(--gutter))); }
}
.hero .hero-title { overflow-wrap: normal; font-size: clamp(2.6rem, 4.9vw, 4.7rem); line-height: .96; letter-spacing: -0.05em; max-width: 12ch; margin-bottom: 26px; }
.hero .lead { font-size: var(--t-lead); max-width: 34ch; 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 mesa del estudio (3D con CSS) ─────────────────────────── */
.desk { position: relative; height: clamp(340px, 62vw, 760px); perspective: 1700px; perspective-origin: 50% 30%; touch-action: pan-y; }
.desk-camera { position: absolute; inset: 0; transform-style: preserve-3d; }
.desk-table {
  --rx: 56deg; --rz: -32deg;
  position: absolute; left: 50%; top: 50%; width: 900px; height: 560px; margin: -280px 0 0 -450px; transform-style: preserve-3d;
  transform: scale(.8) rotateX(var(--rx)) rotateZ(var(--rz));
  background: #a8714a; border-radius: 10px; will-change: transform;
}
/* Canto de la mesa: dos caras de pie que le dan grosor */
.desk-table::before, .desk-table::after { content: ""; position: absolute; background: #6e4428; }
.desk-table::before { left: 0; right: 0; top: 100%; height: 28px; transform-origin: top; transform: rotateX(-90deg); border-radius: 0 0 8px 8px; }
.desk-table::after { top: 0; bottom: 0; left: 100%; width: 28px; transform-origin: left; transform: rotateY(90deg); background: #5c3820; }
.d-wood { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-radius: inherit; overflow: hidden; }
.d-wood i:nth-child(odd) { background: #a36c45; }
.d-wood i:nth-child(even) { background: #ad774f; }
.d-light { position: absolute; left: -8%; top: -14%; width: 70%; height: 80%; border-radius: 50%; background: #ffd84d; opacity: .2; filter: blur(70px); pointer-events: none; }

.d-obj { position: absolute; display: block; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; transform-style: preserve-3d; -webkit-tap-highlight-color: transparent; }
.d-obj:focus-visible { outline: none; }
.d-obj:focus-visible .d-lift { outline: 3px solid var(--mark); outline-offset: 6px; border-radius: 10px; }
.d-lift { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .35s var(--ease); }
.d-shadow { position: absolute; inset: 6% 4% 0 8%; border-radius: 12px; background: #2a1608; opacity: .45; filter: blur(9px); transform: translate(10px, 12px); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .d-obj[data-desk]:hover .d-lift { transform: translateZ(18px); }
  .d-obj[data-desk]:hover .d-shadow { opacity: .28; transform: translate(18px, 22px) scale(1.04); }
}
.d-obj[data-desk]:focus-visible .d-lift { transform: translateZ(18px); }
.d-obj[data-desk]:active .d-lift { transform: translateZ(8px); transition-duration: .12s; }

/* Etiquetas: siempre miran a la cámara (giro inverso al de la mesa) */
.d-tag { position: absolute; left: 50%; top: 50%; z-index: 5; padding: 7px 14px; border-radius: 999px; background: var(--bp-deep); color: var(--bp-ink); font-size: 15px; font-weight: 700; white-space: nowrap; pointer-events: none;
  transform: translate(-50%, -50%) translateZ(70px) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)); opacity: 0; transition: opacity .25s ease; }
.d-obj:hover .d-tag, .d-obj:focus-visible .d-tag { opacity: 1; }
@media (hover: none) { .d-tag { opacity: 1; } }

/* Plano azul */
.d-plan { left: 40px; top: 70px; width: 300px; height: 210px; transform: rotateZ(-9deg); }
.d-sheet { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 14px; border-radius: 4px; background: #1d47b8; color: #dbe6ff; }
.ds-title { font-size: 11px; font-weight: 700; }
.ds-frame { position: relative; display: block; }
.ds-frame i { position: absolute; border: 1.5px solid rgba(219,230,255,.75); border-radius: 3px; }
.ds-frame .a { left: 0; right: 0; top: 0; height: 14%; }
.ds-frame .b { left: 0; width: 46%; top: 22%; height: 42%; }
.ds-frame .c { right: 0; width: 46%; top: 22%; height: 42%; }
.ds-frame .d { left: 0; width: 30%; bottom: 0; height: 24%; }
.ds-frame .e { left: 35%; width: 30%; bottom: 0; height: 24%; }
.ds-frame .f { right: 0; width: 30%; bottom: 0; height: 24%; border-style: dashed; }

/* Portátil: la base en la mesa y la pantalla de pie */
.d-laptop { left: 360px; top: 70px; width: 330px; height: 210px; transform: rotateZ(3deg); }
.dl-base { position: absolute; inset: 0; border-radius: 12px; background: #c9cfdb; display: grid; place-items: center; padding: 18px 22px; }
.dl-keys { width: 100%; height: 58%; border-radius: 6px; background: #3a4258; }
.dl-pad { width: 34%; height: 22%; border-radius: 6px; background: #b7becd; }
.dl-base { grid-template-rows: 1fr auto; }
.dl-screen { position: absolute; left: 0; bottom: 100%; width: 330px; height: 214px; padding: 10px; border-radius: 12px 12px 4px 4px; background: #1b2133; transform-origin: bottom center; transform: rotateX(-80deg); }
.dl-screen .machine-stage { display: block; height: 100%; }
.dl-screen .machine { display: block; transform: none !important; box-shadow: none !important; border-radius: 4px; width: 100%; height: 100%; aspect-ratio: auto; }
.dl-screen .m-note { display: none !important; }
.dl-screen span { display: block; }
.dl-screen .m-bar, .dl-screen .m-nav, .dl-screen .m-links, .dl-screen .m-copy { display: flex; }
.dl-screen .m-screen, .dl-screen .m-hero, .dl-screen .m-row { display: grid; }
.dl-screen .m-card, .dl-screen .m-wa { display: grid; }
.dl-screen .m-title { font-size: 20px; }
.dl-screen .m-book, .dl-screen .m-cta, .dl-screen .m-card, .dl-screen .m-url { font-size: 8px; }
.dl-screen .m-wa { font-size: 7px; width: 26px; }
.dl-screen .m-logo { height: 12px; }
.dl-screen .m-text { height: 5px; }
.dl-screen .m-card { min-height: 30px; }
.d-laptop .d-tag { top: -40%; }

/* Cintas de vídeo: cada una lleva una web; se meten en el portátil */
.d-tapes { left: 610px; top: 300px; width: 190px; height: 118px; transform: rotateZ(10deg); cursor: default; }
.d-tapes .d-shadow { border-radius: 6px; }
.d-tapes > .d-tag { transform: translate(-50%, -50%) translateZ(150px) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)); }
.d-tapes:hover > .d-tag, .d-tapes:focus-within > .d-tag { opacity: 1; }
.d-tape { position: absolute; inset: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--k); cursor: pointer; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * 20px + 20px)) rotateZ(calc((var(--i) - 1.5) * 2.5deg)); -webkit-tap-highlight-color: transparent; transition: opacity .4s var(--ease); }
.dt-lift { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .35s var(--ease); }
.dt-top { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 12px; border-radius: 4px; background: var(--c); }
.dt-sticker { display: grid; gap: 2px; padding: 8px 10px; border-radius: 3px; background: #f3ede2; color: #12141b; }
.dt-sticker b { font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 18px; line-height: 1; }
.dt-sticker small { font-size: 11px; }
.dt-reels { display: flex; justify-content: space-around; }
.dt-reels i { width: 30px; height: 30px; border-radius: 50%; background: #12141b; box-shadow: inset 0 0 0 9px rgba(243,237,226,.85); }
.dt-spine { position: absolute; left: 0; right: 0; top: 100%; height: 20px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background: var(--c); filter: brightness(.88); transform-origin: top; transform: rotateX(-90deg); font-size: 11px; white-space: nowrap; }
.dt-spine b { font-weight: 800; letter-spacing: .02em; }
.dt-end { position: absolute; top: 0; bottom: 0; left: 100%; width: 20px; background: var(--c); filter: brightness(.7); transform-origin: left; transform: rotateY(90deg); }
@media (hover: hover) and (pointer: fine) { .d-tape:hover .dt-lift { transform: translateY(26px) translateZ(4px); } }
.d-tape:focus-visible { outline: none; }
.d-tape:focus-visible .dt-top { outline: 3px solid var(--mark); outline-offset: 3px; }
.d-tape:active .dt-lift { transform: translateY(14px); }
.d-tape.inside { opacity: 0; pointer-events: none; }
.d-tape.playing .dt-spine::after { content: "●"; color: #ff5a4f; }

/* Pantalla del portátil como una tele: canales, ruido al sintonizar y rótulos de vídeo */
.dl-screen { overflow: hidden; }
.dl-screen .tv-ch, .dl-screen .tv-osd, .dl-screen .tv-noise, .dl-screen .tv-lines { position: absolute; inset: 10px; border-radius: 4px; }
.dl-screen .tv-ch { opacity: 0; visibility: hidden; overflow: hidden; }
.dl-screen[data-tv="boot"] .tv-boot, .dl-screen[data-tv="ch1"] .tv-ch1, .dl-screen[data-tv="site"] .tv-site, .dl-screen[data-tv="yours"] .tv-yours { opacity: 1; visibility: visible; }
.tv-boot { display: grid !important; grid-template-rows: auto 1fr auto auto; gap: 8px; padding: 12px 14px; background: #2b49c9; color: #e9eeff; font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 10px; text-shadow: 0 0 6px rgba(233,238,255,.6); }
.tb-row { display: flex !important; justify-content: space-between; }
.tb-logo { align-self: center; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: .9; letter-spacing: -0.03em; color: rgba(233,238,255,.35); }
.tb-bar { height: 8px; background: rgba(233,238,255,.25); }
.tb-bar i { display: block; height: 100%; width: 0; background: #e9eeff; }
.dl-screen[data-tv="boot"] .tb-bar i { animation: tb-load 1.4s steps(14) forwards; }
@keyframes tb-load { to { width: 100%; } }
.tb-hint { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tv-site-bg { position: absolute; inset: 0; background: #f1ebe6; }
.phone.tv-phone { position: absolute; left: 50%; top: 6%; width: 108px; height: 222px; margin-left: -54px; padding: 4px; border-radius: 16px; aspect-ratio: auto; box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); transition: none; }
.phone.tv-phone::before { top: 7px; height: 7px; }
.tv-phone .phone-screen { border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .dl-screen[data-tv="site"] .tv-phone .phone-page { animation: tv-scroll 9s cubic-bezier(.45, .05, .25, 1) .4s infinite; }
}
@keyframes tv-scroll { 0%, 10% { transform: none; } 50%, 60% { transform: translateY(calc(-100% + 100cqh)); } 100% { transform: none; } }
.tv-yours { display: grid !important; align-content: center; justify-items: center; gap: 10px; background: #ffd84d; color: #12141b; text-align: center; }
.ty-url { padding: 4px 12px; border-radius: 999px; background: #12141b; color: #ffd84d; font-size: 11px; font-weight: 700; }
.ty-url::after { content: "|"; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.ty-title { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: .95; letter-spacing: -0.04em; }
.ty-btn { padding: 6px 14px; border-radius: 999px; background: #12141b; color: #ffd84d; font-size: 12px; font-weight: 700; }
.tv-osd { pointer-events: none; font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 11px; color: #ffffff; text-shadow: 0 0 4px rgba(0,0,0,.9), 0 0 8px rgba(255,255,255,.5); opacity: 0; transition: opacity .4s ease; }
.tv-osd b { position: absolute; font-weight: 700; }
.osd-play { left: 8px; top: 6px; } .osd-ch { right: 8px; top: 6px; } .osd-title { left: 8px; bottom: 6px; }
.dl-screen:not([data-tv="boot"]) .tv-osd { opacity: .9; }
.dl-screen.osd-dim .tv-osd { opacity: .45; }
.tv-noise { opacity: 0; pointer-events: none; background-color: #1b1d24;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 5px); }
.dl-screen.tuning .tv-noise { opacity: 1; animation: tv-noise .09s steps(2) infinite; }
@keyframes tv-noise { 0% { background-position: 0 0, 0 0; filter: brightness(1); } 50% { background-position: 0 2px, 3px 0; filter: brightness(1.6); } 100% { background-position: 0 -1px, -2px 0; filter: brightness(.8); } }
.tv-lines { pointer-events: none; background-image: repeating-linear-gradient(rgba(0,0,0,.14) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }

/* Libreta del presupuesto */
.d-pad { left: 210px; top: 310px; width: 180px; height: 230px; transform: rotateZ(7deg); }
.d-notepad { position: absolute; inset: 0; display: grid; align-content: start; gap: 8px; padding: 30px 18px 18px; border-radius: 4px 4px 8px 8px; background: #ffe27a; color: #2b2340; }
.dn-rings { position: absolute; left: 12px; right: 12px; top: 8px; display: flex; justify-content: space-between; }
.dn-rings i { width: 10px; height: 10px; border-radius: 50%; background: #6e4428; }
.dn-title { font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 24px; line-height: 1; margin-bottom: 4px; }
.dn-line { font-family: var(--f-serif); font-style: italic; font-size: 15px; padding-bottom: 4px; border-bottom: 1px solid rgba(43,35,64,.18); }
.dn-total { color: #1d47b8; border: 0; margin-top: 4px; }

/* La escuadra del logo */
.d-square { left: 440px; top: 330px; width: 180px; height: 180px; transform: rotateZ(-16deg); }
.d-escuadra { position: absolute; inset: 0; background: #ffd84d; clip-path: polygon(0 0, 0 100%, 100% 100%); opacity: .95; }
.d-escuadra i { position: absolute; left: 14%; top: 44%; width: 40%; height: 40%; background: #a8714a; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.d-square .d-shadow { clip-path: polygon(0 0, 0 100%, 100% 100%); inset: 0; }

/* Taza con vapor y lápiz (decorativos) */
.d-mug { left: 70px; top: 350px; width: 84px; height: 84px; cursor: default; }
.dm-cup { position: absolute; inset: 0; border-radius: 50%; background: #f2f5ff; }
.dm-coffee { position: absolute; inset: 12%; border-radius: 50%; background: #5b3a24; }
.dm-handle { position: absolute; right: -16px; top: 32%; width: 24px; height: 30%; border-radius: 8px; background: #f2f5ff; }
.dm-steam { position: absolute; left: 50%; bottom: 50%; width: 60px; height: 120px; margin-left: -30px; transform-origin: bottom; transform: rotateX(-90deg); pointer-events: none; }
.dm-steam i { position: absolute; bottom: 0; width: 10px; height: 54px; border-radius: 10px; background: #ffffff; opacity: 0; filter: blur(3px); }
.dm-steam i:nth-child(1) { left: 12px; } .dm-steam i:nth-child(2) { left: 27px; } .dm-steam i:nth-child(3) { left: 42px; }
@media (prefers-reduced-motion: no-preference) {
  .dm-steam i { animation: steam 3.2s ease-out infinite; }
  .dm-steam i:nth-child(2) { animation-delay: 1s; } .dm-steam i:nth-child(3) { animation-delay: 2.1s; }
}
@keyframes steam { 0% { opacity: 0; transform: translateY(0) scaleY(.6); } 30% { opacity: .5; } 100% { opacity: 0; transform: translateY(-70px) scaleY(1.2); } }
.d-pencil { left: 40px; top: 490px; width: 150px; height: 12px; transform: rotateZ(-8deg); cursor: default; }
.dp-body { position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; background: #ffd84d; clip-path: polygon(0 50%, 10% 0, 100% 0, 100% 100%, 10% 100%); }
.d-mug .d-shadow, .d-pencil .d-shadow { transform: translate(8px, 8px); }

.desk-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(242,245,255,.1); color: var(--bp-muted); font-size: 14px; white-space: nowrap; }

/* Proceso: título a un lado y la web de muestra (plano ↔ terminada) al otro */
.process-head { display: grid; gap: 40px 64px; align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.process-head .section-head { margin-bottom: 0; }
@media (min-width: 1000px) { .process-head { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

/* Atajo a la demo: el visitante escribe su negocio y ve su web al momento */
.quick-demo { margin-top: 8px; padding: 24px; border-radius: var(--radius); background: rgba(242,245,255,.08); max-width: 560px; }
.quick-title { margin: 0 0 14px; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1.15; color: var(--bp-ink); }
.quick-row { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .quick-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .quick-row .btn { grid-column: 1 / -1; } }
.quick-demo input, .quick-demo select { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 2px solid transparent; background: #ffffff; color: #0d1630; font: inherit; font-size: 1rem; }
.quick-demo input::placeholder { color: #5d6886; }
.quick-demo input:focus, .quick-demo select:focus { outline: 3px solid var(--mark); outline-offset: 2px; }
.quick-demo .btn { width: 100%; }
.quick-note { margin: 12px 0 0; font-size: var(--t-small); color: var(--bp-muted); }

/* 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, 10vw, 136px); }
.manifesto .wrap { display: grid; gap: 40px; }
.manifesto h2 { font-size: var(--t-display); line-height: .96; letter-spacing: -0.05em; max-width: 14ch; }
.manifesto-copy { display: grid; gap: 28px; align-content: start; }
.manifesto-copy > p { margin: 0; font-size: var(--t-lead); max-width: 44ch; }
.manifesto-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.manifesto-points li { position: relative; padding-left: 22px; max-width: 46ch; }
.manifesto-points li::before { content: ""; position: absolute; left: 0; top: .35em; width: 6px; height: 1.1em; border-radius: 3px; background: var(--mark); }
.manifesto-points strong { font-weight: 700; }
@media (min-width: 960px) {
  .manifesto .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .manifesto h2 { grid-column: 1 / -1; }
  .search-mock { grid-column: 1 / span 5; }
  .manifesto-copy { grid-column: 7 / -1; align-self: center; }
}

/* Ilustración: búsqueda en el móvil con tu negocio primero */
.search-mock { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 24px; background: var(--bp); max-width: 460px; width: 100%; }
.sm-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: #ffffff; color: #0d1630; font-size: .95rem; }
.sm-bar svg { width: 18px; height: 18px; fill: none; stroke: #2350f0; stroke-width: 2; flex: none; }
.sm-map { position: relative; height: 110px; border-radius: 14px; background: #dfe6f3; overflow: hidden; }
.sm-map-inner { position: absolute; inset: 0; }
.sm-list { display: grid; gap: 10px; }
.sm-query { min-height: 1.4em; }
.search-mock.typing .sm-query::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: #2350f0; animation: sm-caret 1s steps(1) infinite; }
@keyframes sm-caret { 50% { opacity: 0; } }
.sm-result, .sm-thumb, .sm-info b { transition: background-color .5s var(--ease), color .5s var(--ease); }
/* Mientras sube, «tu negocio» aún parece uno más; al llegar arriba se enciende */
.search-mock .sm-result.mine.dim { background: rgba(242,245,255,.08); color: var(--bp-muted); }
.search-mock .sm-result.mine.dim .sm-info b { color: var(--bp-ink); }
.search-mock .sm-result.mine.dim .sm-thumb { background: rgba(242,245,255,.14); }
.search-mock .sm-result.mine.dim .sm-actions { opacity: 0; }
.sm-actions { transition: opacity .4s var(--ease) .15s; }
.sm-actions i { position: relative; }
.sm-actions i.tap::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid #2350f0; animation: sm-tap .7s var(--ease) forwards; }
@keyframes sm-tap { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(1.35); } }
.sm-pin.one::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; background: var(--mark); opacity: 0; }
.search-mock.found .sm-pin.one::after { animation: sm-ping 1.6s var(--ease) infinite; }
@keyframes sm-ping { 0% { opacity: .5; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
.sm-map::before, .sm-map::after { content: ""; position: absolute; background: #f6f8fc; }
.sm-map::before { left: -10%; right: -10%; top: 44%; height: 12px; transform: rotate(-8deg); }
.sm-map::after { top: -10%; bottom: -10%; left: 58%; width: 10px; transform: rotate(12deg); }
.sm-pin { position: absolute; z-index: 1; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #9aa6c1; }
.sm-pin.one { left: 30%; top: 26%; width: 22px; height: 22px; background: var(--mark); box-shadow: 0 0 0 4px rgba(255,216,77,.35); }
.sm-pin.two { left: 66%; top: 58%; }
.sm-pin.three { left: 80%; top: 22%; }
.sm-result { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(242,245,255,.08); color: var(--bp-muted); }
.sm-result.mine { background: #ffffff; color: #4d5872; }
.sm-thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; background: rgba(242,245,255,.14); }
.sm-result.mine .sm-thumb { background: #eccdb2; }
.sm-info { display: grid; gap: 2px; min-width: 0; font-size: .85rem; }
.sm-info b { font-size: 1rem; color: var(--bp-ink); }
.sm-result.mine .sm-info b { color: #0d1630; }
.sm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sm-actions i { font-style: normal; font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: #e8eefc; color: #1a3fcb; }
.sm-actions i:first-child { background: #2350f0; color: #ffffff; }

/* 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-cta .quick-demo { margin: 0; padding: 0; background: none; max-width: none; width: 100%; }
.demo-cta .quick-demo input, .demo-cta .quick-demo select { border: 2px solid rgba(13,22,48,.15); }
.demo-cta .quick-demo input:focus, .demo-cta .quick-demo select:focus { outline-color: var(--mark-ink); }
.demo-cta .quick-note { color: var(--mark-ink); }
@media (min-width: 860px) { .demo-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.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; }
.phone .phone-screen, .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. */
.is-away { visibility: hidden !important; }
@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; }
}


/* ════════════════════════════════════════════════════════════════
   ESTUDIO DE NOCHE · LA PORTADA EN 3D
   Cada sección es un objeto del estudio: planos que se levantan de la
   mesa, fichas que giran, muestras que flotan, notas en el corcho,
   libros en la estantería y una escuadra de verdad girando.
   ════════════════════════════════════════════════════════════════ */

/* Entrada en 3D: lo que lleva data-3d espera fuera de su sitio hasta que llega a la pantalla.
   Sin JavaScript (o con movimiento reducido) todo está en su sitio desde el principio. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-3d] > * { transition: translate 1s var(--ease), rotate 1s var(--ease), opacity .7s var(--ease), scale 1s var(--ease); transition-delay: calc(var(--n, 0) * 110ms); }
}

/* Inclinación con el ratón (la pone el script en --tilt-x / --tilt-y) */
[data-tilt] { transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .5s var(--ease); }
[data-tilt].tilting { transition-duration: .12s; }

/* ── Planos de servicios: se levantan de la mesa ── */
.plans-3d { perspective: 1600px; }
.plans-3d .plan { transform-origin: 50% 100%; background: var(--blueprint); color: #f3ede2; box-shadow: 0 40px 60px -40px rgba(0,0,0,.8); outline: 1.5px solid rgba(243,237,226,.35); outline-offset: -12px; }
.plans-3d .plan:nth-child(1) { --n: 0; } .plans-3d .plan:nth-child(2) { --n: 1; } .plans-3d .plan:nth-child(3) { --n: 2; }
@media (prefers-reduced-motion: no-preference) {
  .js .plans-3d:not(.is-in) .plan { rotate: x 72deg; translate: 0 80px; opacity: 0; }
}
.plans-3d .plan .for, .plans-3d .plan li { color: #f3ede2; }
.plans-3d .plan .for strong { color: var(--mark); }
.plans-3d .plan li::before { border-color: var(--mark); }
.plans-3d .plan .price small { color: #c9d3f5; }
.plans-3d .plan-facts { background: rgba(7,8,12,.35); }
.plans-3d .plan-facts dt { color: #c9d3f5; }
.plans-3d .plan .btn-primary { background: var(--mark); color: var(--mark-ink); }
.plans-3d .plan.featured { background: var(--mark); color: var(--mark-ink); outline-color: rgba(18,20,27,.3); }
.plans-3d .plan.featured .for, .plans-3d .plan.featured li { color: var(--mark-ink); }
.plans-3d .plan.featured .for strong { color: #1d47b8; }
.plans-3d .plan.featured li::before { border-color: var(--mark-ink); }
.plans-3d .plan.featured .plan-facts { background: rgba(18,20,27,.1); }
.plans-3d .plan.featured .plan-facts dt { color: #4a4a40; }
.plans-3d .plan.featured .btn-mark { background: var(--mark-ink); color: var(--mark); }
.plans-3d .plan.featured .plan-shop span, .plans-3d .plan.featured .plan-shop b { color: var(--mark-ink); }
.plans-3d .plan.featured .plan-shop em { color: #1d47b8; }

/* ── Proceso: cuatro fichas que se reparten girando ── */
.steps-3d { perspective: 1400px; gap: 16px; }
@media (min-width: 900px) { .steps-3d { gap: 16px; } }
.steps-3d .step { padding: 28px 24px 30px; border-radius: var(--radius); background: var(--surface-2); transform-origin: 0 50%; }
.steps-3d .step::before, .steps-3d .step::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .steps-3d:not(.is-in) .step { rotate: y -85deg; opacity: 0; }
}
.step-n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 50%; background: var(--mark); color: var(--mark-ink); font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }
.steps-3d .step h3 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); }

/* ── Lo que incluye: notas clavadas en un corcho ── */
.cork { padding: clamp(20px, 3vw, 36px); border-radius: 18px; background: #8a6644; perspective: 1400px; gap: 22px; }
.cork .note-card { padding: 30px 22px 24px 22px; border-radius: 4px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 18px 24px -14px rgba(0,0,0,.6); }
.cork .note-card::before { display: none; }
.cork .note-card:nth-child(3n+1) { background: #ffe27a; rotate: z -1.6deg; }
.cork .note-card:nth-child(3n+2) { background: #f3ede2; rotate: z 1.2deg; }
.cork .note-card:nth-child(3n) { background: #cfe0ff; rotate: z -.8deg; }
.cork .note-card h3 { color: var(--paper-ink); }
.cork .note-card p { color: #33343c; }
.pin { position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #b8572f; box-shadow: 0 3px 4px rgba(0,0,0,.4); }
@media (prefers-reduced-motion: no-preference) {
  .js .cork:not(.is-in) .note-card { translate: 0 -40px; scale: 1.15; opacity: 0; }
}

/* ── Muestras: tres móviles flotando en arco ── */
.samples-arc { perspective: 1600px; align-items: start; }
.samples-arc .sample { transform-style: preserve-3d; transition: transform .6s var(--ease); }
@media (min-width: 700px) {
  .samples-arc .sample:nth-child(1) { transform: rotateY(24deg) translateZ(-30px); }
  .samples-arc .sample:nth-child(2) { transform: translateZ(40px); margin-top: 0; }
  .samples-arc .sample:nth-child(3) { transform: rotateY(-24deg) translateZ(-30px); }
  .samples-arc .sample:hover { transform: rotateY(0) translateZ(70px); }
}
@media (prefers-reduced-motion: no-preference) {
  .samples-arc .sample .phone { animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -2s); }
  .js .samples-arc:not(.is-in) .sample { opacity: 0; translate: 0 60px; }
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.samples-arc .sample figcaption > span { color: var(--muted); }
.samples-arc .sample-features li { background: var(--surface-2); color: var(--ink); }

/* ── Guías: libros en una estantería ── */
.shelf { position: relative; perspective: 1500px; perspective-origin: 50% 20%; padding-top: 20px; }
.shelf-books { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 360px; margin: 0; padding: 0 12px; list-style: none; transform-style: preserve-3d; }
.book { position: relative; width: clamp(54px, 7vw, 82px); height: var(--h, 85%); transform-style: preserve-3d; }
.book a { position: absolute; inset: 0; display: block; color: var(--k); text-decoration: none; transform-style: preserve-3d; transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.book-spine { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; border-radius: 4px 4px 2px 2px; background: var(--c); writing-mode: vertical-rl; transform: rotate(180deg); }
.book-cat { font-size: 12px; font-weight: 700; opacity: .8; }
.book-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(13px, 1.3vw, 16px); letter-spacing: -0.01em; line-height: 1.1; max-height: 72%; min-height: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.book-cat, .book-min { white-space: nowrap; }
.book-min { display: none; } /* el lomo solo lleva tema y título: con los minutos no cabía en los libros estrechos */
.book-top { position: absolute; left: 0; right: 0; top: 0; height: 120px; background: #e9e1cf; transform-origin: top; transform: rotateX(90deg); }
.book-side { position: absolute; top: 0; bottom: 0; right: 0; width: 120px; background: var(--c); filter: brightness(.7); transform-origin: right; transform: rotateY(90deg); }
@media (hover: hover) and (pointer: fine) {
  .book a:hover { transform: translateZ(60px) translateY(-18px) rotateY(-14deg); }
}
.book a:focus-visible { outline: none; transform: translateZ(60px) translateY(-18px); }
.book a:focus-visible .book-spine { outline: 3px solid var(--mark); outline-offset: 3px; }
.shelf-board { position: relative; height: 22px; margin: 0 -8px; border-radius: 4px; background: var(--wood); box-shadow: 0 30px 40px -24px rgba(0,0,0,.8); }
.shelf-board::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: var(--wood-dark); border-radius: 0 0 4px 4px; }
@media (prefers-reduced-motion: no-preference) {
  .js .shelf:not(.is-in) .book { translate: 0 -30px; opacity: 0; }
  .js .shelf .book { transition: translate .9s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--n, 0) * 80ms); }
}
/* En el móvil: seis libros que caben enteros, sin desplazamiento lateral; el resto está en «Ver las guías». */
@media (max-width: 640px) {
  .shelf-books { height: 300px; gap: 6px; padding: 0; justify-content: center; }
  .book { flex: 1 1 0; min-width: 0; max-width: 62px; }
  .book:nth-child(n+7) { display: none; }
  .book-spine { padding: 14px 4px; }
  .book-cat { display: none; }
  .book-title { font-size: 15px; max-height: 92%; }
}

/* ── Cierre: una escuadra de verdad, con grosor, girando ── */
.closing { overflow: hidden; }
.spin-square { position: absolute; right: max(4vw, calc((100vw - 1200px) / 2)); top: 50%; width: clamp(180px, 26vw, 360px); aspect-ratio: 1; margin-top: calc(clamp(180px, 26vw, 360px) / -2); perspective: 1200px; pointer-events: none; }
.ss-body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(18deg) rotateY(-28deg); }
.ss-body i { position: absolute; inset: 0; background: #e2b92c; transform: translateZ(calc(var(--z) * 1.6px - 8px));
  clip-path: polygon(evenodd, 0% 0%, 0% 100%, 100% 100%, 0% 0%, 16% 40%, 16% 86%, 60% 86%, 16% 40%); }
.ss-body i:first-child, .ss-body i:last-child { background: var(--mark); }
@media (prefers-reduced-motion: no-preference) {
  .ss-body { animation: spin-square 16s linear infinite; }
}
@keyframes spin-square { from { transform: rotateX(18deg) rotateY(0deg); } to { transform: rotateX(18deg) rotateY(360deg); } }
@media (max-width: 959px) { .spin-square { position: relative; right: auto; top: auto; margin: 64px auto -24px; } }
.closing .wrap { position: relative; z-index: 1; }
@media (min-width: 960px) {
  .closing h2 { grid-column: 1 / span 8; font-size: clamp(3rem, 8vw, 7.6rem); }
  .closing-copy { grid-column: 1 / span 6; }
}

/* ── Ajustes del tema oscuro ── */
.search-mock { background: var(--surface-2); }
.sm-result { background: rgba(243,237,226,.06); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.band .btn-line, .btn-line { color: var(--ink); border-color: rgba(243,237,226,.45); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: rgba(243,237,226,.06); }
.desk .d-light { opacity: .28; }
.hero { background: radial-gradient(60% 60% at 70% 45%, #1a1712 0%, var(--bp) 70%); }
.faq summary::after { background: var(--surface-2); }
.manifesto-points li::before { background: var(--mark); }
.site-header { background: rgba(7,8,12,.92); }

/* ════════════════════════════════════════════════════════════════
   PORTADA CINEMATOGRÁFICA · «Entrar en la pantalla»
   Un portátil con la pantalla en blanco. Al entrar, la cámara la atraviesa
   y dentro hay un navegador: busca esta web, enseña su ficha y abre la demo.
   ════════════════════════════════════════════════════════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xp {
  --screen: #fbfaf7;
  position: relative; overflow: hidden; isolation: isolate;
  height: max(580px, calc(100svh - 72px));
  background: radial-gradient(ellipse 70% 60% at 50% 62%, #1a1f2d 0%, var(--bp) 62%, var(--bp-deep) 100%);
  color: var(--bp-ink);
}
.xp-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.xp-sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--bp-ink); opacity: .35; animation: xp-drift 14s ease-in-out infinite alternate; }
.xp-sky i:nth-child(1) { left: 9%; top: 22%; }
.xp-sky i:nth-child(2) { left: 18%; top: 71%; animation-duration: 18s; opacity: .2; }
.xp-sky i:nth-child(3) { left: 31%; top: 12%; animation-duration: 11s; }
.xp-sky i:nth-child(4) { left: 74%; top: 18%; animation-duration: 16s; opacity: .25; }
.xp-sky i:nth-child(5) { left: 86%; top: 46%; animation-duration: 13s; }
.xp-sky i:nth-child(6) { left: 92%; top: 80%; animation-duration: 19s; opacity: .2; }
.xp-sky i:nth-child(7) { left: 6%; top: 48%; animation-duration: 15s; opacity: .18; }
.xp-sky i:nth-child(8) { left: 63%; top: 88%; animation-duration: 12s; opacity: .22; }
@keyframes xp-drift { to { transform: translate(14px, -18px); } }

.xp-cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(12px, 2.4vh, 26px);
  padding: clamp(20px, 4vh, 44px) max(var(--gutter), env(safe-area-inset-left, 0px));
  text-align: center;
}
.xp-kicker { margin: 0; font-size: var(--t-small); color: var(--bp-muted); max-width: 62ch; animation: xp-in .9s .1s cubic-bezier(.2, 0, 0, 1) both; }
.xp h1 {
  margin: 0; max-width: 15ch;
  font-size: clamp(2.1rem, min(5.4vw, 7vh), 5rem); line-height: .96; letter-spacing: -0.05em;
  animation: xp-in .9s .2s cubic-bezier(.2, 0, 0, 1) both;
}
.xp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: xp-in .9s .9s cubic-bezier(.2, 0, 0, 1) both; }
.xp-actions .btn-line { color: var(--bp-ink); border-color: rgba(243, 237, 226, .4); background: transparent; }
.xp-actions .btn-line:hover { border-color: var(--bp-ink); color: var(--bp-ink); background: rgba(243, 237, 226, .06); }
@media (max-height: 780px) and (min-width: 900px) {
  .xp { --reserve: 250px; }
  .xp h1 { max-width: none; font-size: clamp(2rem, 6.4vh, 3.4rem); }
  .xp-kicker { display: none; }
}
html:not(.js) .xp-actions, html:not(.js) .xp-tap { display: none; }
html:not(.js) .xp-screen { pointer-events: none; }
@keyframes xp-in { from { opacity: 0; transform: translateY(14px); } }

/* El portátil, de frente: tapa con marco negro, pantalla blanca y base de aluminio. */
.xp-stage {
  --w: max(250px, min(800px, 86vw, calc((max(580px, 100svh - 72px) - var(--reserve, 340px)) * 1.45)));
  position: relative; width: var(--w); flex: none;
  perspective: 1600px; will-change: transform;
}
.xp-stage::before { /* la luz de la pantalla sobre el fondo */
  content: ""; position: absolute; left: 50%; top: 42%; width: 150%; aspect-ratio: 2; translate: -50% -50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(251, 250, 247, .13), transparent);
  animation: xp-glow 2.2s .5s ease-out both;
}
@keyframes xp-glow { from { opacity: 0; } }
.xp-float { animation: xp-rise 1.3s .25s cubic-bezier(.2, 0, 0, 1) both; }
@keyframes xp-rise { from { opacity: 0; transform: translateY(28px) scale(.96); } }
.xp-tilt { transform-style: preserve-3d; }
.xp-lid {
  position: relative; aspect-ratio: 16 / 10.4;
  padding: calc(var(--w) * .022) calc(var(--w) * .022) calc(var(--w) * .03);
  background: #0b0c10;
  border-radius: calc(var(--w) * .026) calc(var(--w) * .026) calc(var(--w) * .008) calc(var(--w) * .008);
  box-shadow: 0 0 0 2px #3b3f49, 0 0 0 3px #15171d, 0 calc(var(--w) * .04) calc(var(--w) * .09) rgba(0, 0, 0, .45);
}
.xp-cam { position: absolute; left: 50%; top: calc(var(--w) * .009); width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #23262f; box-shadow: inset 0 0 0 1px #2f333d; }
.xp-screen {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  padding: 0; border: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: var(--screen); border-radius: 2px;
  animation: xp-power 1.9s .55s cubic-bezier(.3, 0, .2, 1) both;
}
@keyframes xp-power { 0%, 35% { background: #15171e; } }
.xp-sheen {
  position: absolute; inset: 0; transition: opacity .6s;
  background: linear-gradient(115deg, transparent 30%, rgba(20, 24, 36, .045) 42%, transparent 54%);
  background-size: 240% 100%; animation: xp-sheen 9s 2.4s ease-in-out infinite alternate;
  box-shadow: inset 0 0 calc(var(--w) * .06) rgba(20, 24, 36, .08);
}
@keyframes xp-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.xp.is-zooming .xp-sheen { opacity: 0; }
.xp-screen:focus-visible { outline: 3px solid var(--mark); outline-offset: calc(var(--w) * .022 + 3px); }
.xp-screen:hover .xp-sign { transform: translate(-50%, -50%) scale(1.04); }
.xp-tap {
  position: absolute; left: 50%; bottom: 11%; translate: -50% 0;
  display: inline-flex; align-items: center; gap: .6em; white-space: nowrap;
  font-size: max(11px, calc(var(--w) * .019)); font-weight: 600; color: #565b66;
  animation: xp-in .8s 3.4s both; transition: opacity .3s;
}
.xp-tap i { width: .7em; height: .7em; border-radius: 50%; background: var(--blueprint); animation: xp-ping 1.8s 3.6s ease-out infinite; }
@keyframes xp-ping { 0% { box-shadow: 0 0 0 0 rgba(29, 71, 184, .45); } 70%, 100% { box-shadow: 0 0 0 .8em rgba(29, 71, 184, 0); } }
.xp.is-zooming .xp-tap { opacity: 0; }
/* Letrero de la pantalla: el logo y la letra de la cabecera, en una placa oscura.
   Se monta solo: se dibuja la escuadra, cae el triángulo amarillo, salen las marcas y el nombre;
   después la placa respira y un brillo la recorre de vez en cuando. */
.xp-sign {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .55em; overflow: hidden;
  padding: .75em 1.25em; border-radius: .7em;
  background: var(--bp-deep); color: var(--bp-ink);
  font-family: var(--f-display); font-weight: 800; font-size: calc(var(--w) * .046); letter-spacing: -0.03em; white-space: nowrap;
  box-shadow: 0 .5em 1.4em rgba(7, 8, 12, .22);
  animation: xp-sign 1s 1.7s cubic-bezier(.2, 0, 0, 1) backwards, xp-breathe 5s 4s ease-in-out infinite;
  transition: opacity .45s, transform .4s cubic-bezier(.2, 0, 0, 1);
}
.xp-sign::after { /* brillo que cruza la placa */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%);
  transform: translateX(-120%); animation: xp-shine 6s 4.2s ease-in-out infinite;
}
@keyframes xp-sign { from { opacity: 0; transform: translate(-50%, -40%) scale(.94); } }
@keyframes xp-breathe { 50% { box-shadow: 0 .6em 1.8em rgba(7, 8, 12, .3), 0 0 0 .12em rgba(255, 216, 77, .18); } }
@keyframes xp-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.xp-sign svg { width: 1.3em; height: 1.3em; flex: none; overflow: visible; }
.xp-sign svg path:nth-of-type(1) { stroke-dasharray: 90; animation: xp-draw 1.1s 2.1s cubic-bezier(.6, 0, .2, 1) both; }
.xp-sign svg path:nth-of-type(2) { transform-origin: 9px 23.5px; animation: xp-drop .7s 2.9s cubic-bezier(.3, 1.5, .5, 1) both, xp-glint 5s 4.5s ease-in-out infinite; }
.xp-sign svg path:nth-of-type(3) { animation: xp-in .5s 3.3s both; }
@keyframes xp-draw { from { stroke-dashoffset: 90; } }
@keyframes xp-drop { from { transform: scale(0) rotate(-20deg); } }
@keyframes xp-glint { 0%, 80%, 100% { transform: none; } 88% { transform: rotate(-8deg) scale(1.08); } }
.xp-sign-text { display: inline-block; animation: xp-in .7s 2.5s cubic-bezier(.2, 0, 0, 1) both; }
.xp-sign .logo-sub { display: inline-block; font-weight: 400; color: var(--mark); letter-spacing: -0.02em; text-transform: lowercase; animation: xp-in .7s 2.75s cubic-bezier(.2, 0, 0, 1) both; }
.xp.is-zooming .xp-sign { opacity: 0; }
/* Dentro del navegador simulado la portada empieza directamente en la web. */
.embed .xp { display: none; }
.xp-base {
  position: relative; width: 114%; margin-left: -7%; height: calc(var(--w) * .032);
  background: linear-gradient(#9a9fa9, #6b707a 35%, #3d4049 80%, #2a2c33);
  border-radius: 2px 2px calc(var(--w) * .05) calc(var(--w) * .05) / 2px 2px calc(var(--w) * .022) calc(var(--w) * .022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.xp-notch { position: absolute; left: 50%; top: 0; width: 15%; height: 45%; translate: -50% 0; background: linear-gradient(#4b4f58, #6b707a); border-radius: 0 0 8px 8px; }
.xp-floor { position: absolute; left: -6%; right: -6%; bottom: calc(var(--w) * -.035); height: calc(var(--w) * .05); background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); z-index: -1; }

/* Dentro: el portátil desaparece detrás del navegador (el título sigue para los lectores de pantalla). */
.xp.is-inside .xp-cover { visibility: hidden; }
.xp.is-inside .xp-cover h1 { visibility: visible; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ── El navegador ───────────────────────────────────────────── */
.xp-browser {
  --xb-ink: #15171d; --xb-muted: #565b66; --xb-line: #e2ded6; --xb-link: #1d47b8;
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  background: var(--screen); color: var(--xb-ink);
  outline: none;
}
.xp-browser[hidden] { display: none; }
.xp-browser :focus-visible { outline: 3px solid var(--xb-link); outline-offset: 2px; }
.xb-chrome {
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px clamp(10px, 2vw, 18px);
  background: #efece6; border-bottom: 1px solid var(--xb-line);
  opacity: 0; transform: translateY(-100%);
  transition: transform .6s cubic-bezier(.2, 0, 0, 1), opacity .4s;
}
.xp-browser.is-on .xb-chrome { opacity: 1; transform: none; }
.xb-dots { display: flex; gap: 7px; margin-right: 6px; }
.xb-dots i { width: 11px; height: 11px; border-radius: 50%; background: #d3cfc6; }
.xb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 8px;
  border: 0; border-radius: 10px; background: transparent; color: var(--xb-ink); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.xb-btn:hover { background: rgba(21, 23, 29, .07); }
.xb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xb-address {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px;
  background: #fff; border: 1px solid var(--xb-line); border-radius: 999px; font-size: .92rem;
}
.xb-url { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xb-url.is-empty { color: var(--xb-muted); }
.xb-lock { flex: none; position: relative; width: 10px; height: 8px; margin-top: 4px; border-radius: 2px; background: var(--xb-muted); }
.xb-lock::before { content: ""; position: absolute; left: 2px; bottom: 6px; width: 6px; height: 5px; border: 1.6px solid var(--xb-muted); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
.xb-sim { flex: none; padding: 5px 11px; border-radius: 999px; background: rgba(21, 23, 29, .07); font-size: .78rem; font-weight: 600; color: var(--xb-ink); }
.xb-skipanim { display: none; flex: none; min-height: 40px; padding: 0 12px; border: 1px solid var(--xb-line); border-radius: 999px; background: #fff; color: var(--xb-ink); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.xp-browser[data-anim] .xb-skipanim { display: inline-flex; align-items: center; }
.xb-progress { height: 3px; overflow: hidden; }
.xb-progress i { display: block; height: 100%; background: var(--xb-link); transform: scaleX(0); transform-origin: left; opacity: 0; }
.xp-browser.is-loading .xb-progress i { opacity: 1; transform: scaleX(.86); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.xb-page { position: relative; flex: 1; min-height: 0; overflow: auto; }
.xb-view[hidden] { display: none; }


/* Buscador */
.xb-search { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px max(16px, 4vw) 12vh; }
.xs-brand { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.06em; line-height: 1; }
.xs-brand span { color: var(--xb-link); }
.xs-box {
  display: flex; align-items: center; gap: 12px; width: min(640px, 100%); min-height: 56px; padding: 10px 22px;
  background: #fff; border: 1px solid #d6d1c7; border-radius: 30px; text-align: left;
  transition: border-color .2s, box-shadow .2s;
}
.xs-box.is-focus { border-color: var(--xb-link); box-shadow: 0 0 0 4px rgba(29, 71, 184, .13); }
.xs-lens svg { display: block; width: 20px; height: 20px; fill: none; stroke: var(--xb-muted); stroke-width: 2; stroke-linecap: round; }
.xs-query { font-size: 1.05rem; line-height: 1.35; }
.xs-caret { width: 2px; height: 1.3em; margin-left: -10px; background: var(--xb-ink); opacity: 0; }
.xs-box.is-focus .xs-caret { animation: xp-blink 1s steps(1) infinite; }
@keyframes xp-blink { 50% { opacity: 1; } }
.xs-go { min-height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--xb-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: transform .12s; }
.xs-go.is-press { transform: scale(.95); }
.xs-hint { margin: 0; font-size: .85rem; color: var(--xb-muted); }
.xb-search.is-in > * { animation: xp-up .7s cubic-bezier(.2, 0, 0, 1) both; }
.xb-search.is-in > :nth-child(2) { animation-delay: .1s; }
.xb-search.is-in > :nth-child(3) { animation-delay: .2s; }
.xb-search.is-in > :nth-child(4) { animation-delay: .25s; }
@keyframes xp-up { from { opacity: 0; transform: translateY(12px); } }

/* Resultados */
.xb-results { max-width: 1120px; margin-inline: auto; padding: clamp(18px, 3vw, 36px) clamp(16px, 5vw, 64px) 48px; }
.xs-mini { min-height: 46px; width: min(560px, 100%); padding: 8px 18px; }
.xs-mini .xs-query { font-size: .98rem; }
.xr-note { margin: 14px 0 26px; font-size: .84rem; color: var(--xb-muted); max-width: 70ch; }
.xr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.xr-item { min-width: 0; }
.xb-results.is-in .xr-item { animation: xp-up .7s calc(var(--n) * 130ms + 80ms) cubic-bezier(.2, 0, 0, 1) both; }
.xr-main { display: grid; gap: 24px; padding: clamp(16px, 2.4vw, 24px); background: #fff; border: 1px solid var(--xb-line); border-radius: 18px; }
@media (min-width: 760px) { .xr-main { grid-template-columns: minmax(0, 1fr) clamp(200px, 26vw, 300px); } }
.xr-site { display: flex; align-items: center; gap: 10px; margin: 0; }
.xr-site img { width: 28px; height: 28px; border-radius: 50%; background: #0f1219; }
.xr-site span { display: grid; line-height: 1.25; }
.xr-site b { font-size: .92rem; }
.xr-site small { font-size: .8rem; color: var(--xb-muted); overflow-wrap: anywhere; }
.xr-title { margin: 10px 0 6px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; outline: none; }
.xr-title a { color: var(--xb-link); text-decoration: none; }
.xr-title a:hover, .xr-title a.is-hover { text-decoration: underline; text-underline-offset: 3px; }
.xr-desc { margin: 0; color: #3b3f49; max-width: 64ch; }
.xr-thumb-link { display: block; align-self: start; }
.xr-thumb { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; border: 1px solid var(--xb-line); align-self: start; }
@media (max-width: 759px) { .xr-thumb { order: -1; } }

/* La web abierta dentro del navegador */
.xb-site { height: 100%; }
.xsite { position: relative; height: 100%; background: var(--bg); }
.xsite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .35s; }
.xsite[data-state="ready"] iframe { opacity: 1; }
.xsite-status { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 12px; margin: 0; color: var(--bp-ink); }
.xsite[data-state="loading"] .xsite-status { display: flex; }
.xsite-spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(243, 237, 226, .25); border-top-color: var(--mark); animation: xp-spin .8s linear infinite; }
@keyframes xp-spin { to { transform: rotate(1turn); } }
.xsite-error { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; padding: 24px; text-align: center; color: var(--bp-ink); }
.xsite-error[hidden] { display: none; }
.xp[data-view="site"] .xb-back { background: rgba(21, 23, 29, .08); }

/* Cursor de la simulación */
.xb-cursor { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .3s; }
.xb-cursor.is-on { opacity: 1; }
.xb-cursor svg { display: block; width: 24px; height: 24px; transform-origin: 20% 10%; fill: var(--xb-ink); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }

@media (max-width: 640px) {
  .xb-dots, .xb-restart span { display: none; }
  .xb-chrome { gap: 4px; }
  .xb-sim { padding: 5px 8px; font-size: .72rem; }
  .xb-address { padding: 0 12px; font-size: .86rem; }
  .xp-actions { flex-direction: column; align-items: stretch; width: min(100%, 340px); }
}
@media (max-width: 420px) { .xb-sim { display: none; } }


@media (prefers-reduced-motion: reduce) {
  .xp *, .xp *::before, .xp *::after { animation: none !important; transition: none !important; }
}

/* Datos protegidos del aviso legal: sin JavaScript el texto va al revés en el código y aquí se endereza. */
.pd-rtl { unicode-bidi: bidi-override; direction: rtl; }
