/* Vitrina Vunepy — acento menta verde/teal de la marca, con tema claro y oscuro.
   El oscuro es el tema cinematográfico original; el claro es una versión equivalente.
   El tema sigue la preferencia del sistema y se puede forzar con el interruptor del nav
   (atributo data-theme en <html>, persistido en localStorage). Portado del artefacto aprobado. */
:root {
  /* Tokens que no cambian entre temas */
  --accent-bright: #27e0a2;   /* menta: siempre el relleno vibrante de los CTA */
  --accent-ink: #04130d;      /* texto sobre el relleno menta */
  --amber: #f6a623;
  --amber-soft: rgba(246,166,35,0.14);
  --red: #ff5d5d;
  --radius: 18px;
  --radius-sm: 11px;
  --maxw: 1180px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Hanken Grotesque", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}

/* ── Tema oscuro (por defecto, y forzado) ─────────────────────────── */
:root, :root[data-theme="dark"] {
  --bg: #070a0e;
  --bg-2: #0c1116;
  --bg-3: #10161d;
  --panel: #0e141b;
  --fg: #f2f6f9;
  --muted: #9aa7b4;
  --faint: #67737f;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.16);
  --surface-overlay: rgba(255,255,255,0.05);
  --surface-overlay-2: rgba(255,255,255,0.07);
  --accent: #27e0a2;
  --accent-2: #1fbf8c;
  --grad-1: #27e0a2;
  --grad-2: #5fe0ff;
  --nav-bg: rgba(8,11,15,0.72);
  --safe-bg: rgba(7,10,14,0.9);
  --chat-grad-2: #0a0e13;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* ── Tema claro ───────────────────────────────────────────────────── */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8f7;
  --bg-2: #eef2f0;
  --bg-3: #ffffff;
  --panel: #ffffff;
  --fg: #0b1a14;
  --muted: #45554e;
  --faint: #6c7b73;
  --line: rgba(10,30,22,0.10);
  --line-2: rgba(10,30,22,0.17);
  --surface-overlay: rgba(10,30,22,0.045);
  --surface-overlay-2: rgba(10,30,22,0.07);
  --accent: #0a7d59;          /* verde legible como texto/borde sobre claro */
  --accent-2: #0b6448;
  --grad-1: #0a7d59;
  --grad-2: #0c6f8f;
  --nav-bg: rgba(246,248,247,0.82);
  --safe-bg: rgba(246,248,247,0.92);
  --chat-grad-2: #e4ece8;
}
/* Si el sistema está en claro y nadie forzó un tema, usar el claro */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f8f7;
    --bg-2: #eef2f0;
    --bg-3: #ffffff;
    --panel: #ffffff;
    --fg: #0b1a14;
    --muted: #45554e;
    --faint: #6c7b73;
    --line: rgba(10,30,22,0.10);
    --line-2: rgba(10,30,22,0.17);
    --surface-overlay: rgba(10,30,22,0.045);
    --surface-overlay-2: rgba(10,30,22,0.07);
    --accent: #0a7d59;
    --accent-2: #0b6448;
    --grad-1: #0a7d59;
    --grad-2: #0c6f8f;
    --nav-bg: rgba(246,248,247,0.82);
    --safe-bg: rgba(246,248,247,0.92);
    --chat-grad-2: #e4ece8;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent-bright); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- Reveal ---------- */
.will-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.16,.84,.44,1), transform .9s cubic-bezier(.16,.84,.44,1); will-change: opacity, transform; }
.will-reveal.in { opacity: 1; transform: none; }
.will-reveal[data-d="1"] { transition-delay: .09s; }
.will-reveal[data-d="2"] { transition-delay: .18s; }
.will-reveal[data-d="3"] { transition-delay: .27s; }

/* ---------- Nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--safe-bg); }
header.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 80; transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease; border-bottom: 1px solid transparent; }
header.nav.scrolled { background: var(--nav-bg); backdrop-filter: saturate(150%) blur(16px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand .mark { width: 36px; height: 36px; object-fit: contain; }
.brand .name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand .name b { color: var(--accent); font-weight: 800; }
nav.links { display: none; gap: 4px; }
@media (min-width: 900px) { nav.links { display: flex; } }
.nav-link { font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 13px; border-radius: 9px; cursor: pointer; background: none; border: 0; font-family: var(--font-body); }
.nav-link:hover { color: var(--fg); background: var(--surface-overlay); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .1s ease, background .2s ease, border-color .2s ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent-bright); color: var(--accent-ink); }
.btn-primary:hover { background: #46efb5; }
.btn-ghost { background: var(--surface-overlay); color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 17px; font-size: 14px; }
.nav-cta { display: none; }
@media (min-width: 560px) { .nav-cta { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(120px, 20vh, 190px); padding-bottom: clamp(70px, 12vh, 130px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.aurora.a1 { width: 52vw; height: 52vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(39,224,162,0.5), transparent 68%); animation: drift1 20s ease-in-out infinite alternate; }
.aurora.a2 { width: 46vw; height: 46vw; right: -12vw; top: 4vw; background: radial-gradient(circle, rgba(31,120,200,0.42), transparent 68%); animation: drift2 24s ease-in-out infinite alternate; }
.aurora.a3 { width: 40vw; height: 40vw; left: 26vw; bottom: -20vw; background: radial-gradient(circle, rgba(246,166,35,0.22), transparent 70%); animation: drift1 28s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(5vw,4vw) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-5vw,3vw) scale(.95); } }
.grid-fade { position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 30%, transparent 75%); opacity: .5; }
.scan { position: absolute; left: 50%; top: 30%; width: 2px; height: 2px; z-index: -1; }
.scan span { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(39,224,162,0.4); border-radius: 50%; transform: translate(-50%,-50%); animation: ripple 4.5s ease-out infinite; }
.scan span:nth-child(2) { animation-delay: 1.5s; }
.scan span:nth-child(3) { animation-delay: 3s; }
@keyframes ripple { 0% { width: 60px; height: 60px; opacity: .8; } 100% { width: 880px; height: 880px; opacity: 0; } }

.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero h1 { font-size: clamp(38px, 8vw, 86px); font-weight: 800; letter-spacing: -0.04em; max-width: 15ch; }
.hero h1 .grad { background: linear-gradient(100deg, var(--grad-1), var(--grad-2) 60%, var(--grad-1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.hero-foot { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .04em; margin-top: 6px; }
.chat-ava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 42%; border: 1px solid var(--line-2); background: #0c1821; flex: none; }
.scroll-hint { margin-top: 20px; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 999px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-hint i { width: 3px; height: 8px; border-radius: 2px; background: var(--accent); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(9px); opacity: 1; } }

/* ---------- Section scaffold ---------- */
section { position: relative; padding-block: clamp(64px, 11vw, 140px); }
.act-head { max-width: 760px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 52px; }
.act-head.center { margin-inline: auto; text-align: center; align-items: center; }
.act-head h2 { font-size: clamp(30px, 5.2vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
.act-head p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 60ch; }

/* ---------- Statement ---------- */
.statement { text-align: center; }
.statement p { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -0.03em; max-width: 20ch; margin-inline: auto; }
.statement p span { color: var(--faint); }
.statement p b { color: var(--accent); font-weight: 600; }

/* ---------- Metrics ---------- */
.metrics-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .metrics-wrap { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--bg-2); padding: 34px 22px; display: flex; flex-direction: column; gap: 8px; }
.metric .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.metric .l { font-size: 14.5px; color: var(--muted); }

/* ---------- Modules (alternating full-bleed) ---------- */
.act { padding-block: clamp(50px, 8vw, 90px); }
.act-row { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 920px) { .act-row { grid-template-columns: 1fr 1fr; gap: 64px; } .act-row.flip .viz { order: 2; } }
.act-copy .kick { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.act-copy h3 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.act-copy p { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chip { font-size: 13px; color: var(--fg); background: var(--surface-overlay); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }

.viz { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); min-height: 320px; overflow: hidden; display: grid; place-items: center; padding: 28px; }
.viz .glow { position: absolute; width: 60%; height: 60%; background: radial-gradient(circle, rgba(39,224,162,0.18), transparent 70%); filter: blur(40px); }

/* PHVA spinner */
.phva { display: flex; justify-content: center; width: 100%; }
.phva .ring { position: relative; width: 220px; max-width: 74%; aspect-ratio: 1; }
.phva .ring svg { width: 100%; height: 100%; display: block; }
.phva .track { fill: none; stroke: var(--line); stroke-width: 9; }
.phva .spin { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 150 440; transform-box: view-box; transform-origin: 110px 110px; animation: phvaspin 1.5s linear infinite; filter: drop-shadow(0 0 6px rgba(39,224,162,.45)); }
@keyframes phvaspin { to { transform: rotate(360deg); } }
.phva .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 22px; }
.phva .center small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .28em; color: var(--muted); display: block; margin-bottom: 7px; }
.phva .center b { font-family: var(--font-display); font-size: clamp(23px, 3.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; display: block; transition: opacity .35s ease, transform .35s ease; }
.phva .center b.swap { opacity: 0; transform: translateY(7px); }

/* shield viz */
.shield-viz svg { width: 170px; height: 190px; }
.shield-viz .plate { fill: rgba(39,224,162,0.06); stroke: var(--accent); stroke-width: 2; }
.shield-viz .tick { stroke: var(--accent); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 2.2s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* bars viz (indicators) */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; }
.bars i { width: 34px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 6px 6px 0 0; height: var(--h); transform-origin: bottom; animation: grow 1.3s cubic-bezier(.16,.84,.44,1) both; box-shadow: 0 0 20px rgba(39,224,162,.2); }
.bars i:nth-child(2) { animation-delay: .12s; } .bars i:nth-child(3) { animation-delay: .24s; } .bars i:nth-child(4) { animation-delay: .36s; } .bars i:nth-child(5) { animation-delay: .48s; }
@keyframes grow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* ---------- Ease of use act ---------- */
.ease-act { background: var(--bg-2); border-block: 1px solid var(--line); }
.ease-viz { min-height: 340px; }
.checklist { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; box-shadow: 0 30px 70px -40px rgba(0,0,0,.7); }
.cl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cl-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.cl-badge { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; background: var(--surface-overlay-2); color: var(--muted); border: 1px solid var(--line); transition: background .4s ease, color .4s ease, border-color .4s ease; }
.cl-badge.done { background: rgba(39,224,162,0.14); color: var(--accent); border-color: rgba(39,224,162,.5); }
.cl-items { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cl-item { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); transition: color .4s ease; }
.cl-box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; color: var(--accent-ink); background: transparent; transition: background .35s ease, border-color .35s ease; }
.cl-box svg { width: 15px; height: 15px; stroke-width: 2.6; stroke-dasharray: 26; stroke-dashoffset: 26; }
.cl-item.done { color: var(--fg); }
.cl-item.done .cl-box { background: var(--accent-bright); border-color: var(--accent-bright); }
.cl-item.done .cl-box svg { stroke-dashoffset: 0; transition: stroke-dashoffset .45s ease .05s; }
.cl-bar { height: 6px; border-radius: 999px; background: var(--surface-overlay-2); overflow: hidden; }
.cl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; transition: width .5s cubic-bezier(.16,.84,.44,1); }

/* ---------- Elio act (flagship) ---------- */
.elio-act { background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(39,224,162,0.08), transparent 60%), var(--bg-2); border-block: 1px solid var(--line); }
.elio-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.elio-badge svg { width: 18px; height: 18px; }
.elio-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 940px) { .elio-grid { grid-template-columns: 1.02fr 0.98fr; gap: 66px; } }
.elio-feats { display: flex; flex-direction: column; gap: 4px; margin-top: 30px; }
.efeat { display: grid; grid-template-columns: 26px 1fr; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); }
.efeat:last-child { border-bottom: 1px solid var(--line); }
.efeat .ic { color: var(--accent); margin-top: 2px; }
.efeat h4 { font-size: 17px; font-weight: 600; font-family: var(--font-body); }
.efeat p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

.chat { background: linear-gradient(170deg, var(--bg-3), var(--chat-grad-2)); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-overlay); }
.chat-bar .mark { width: 26px; height: 26px; flex: none; }
.chat-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.chat-bar .t { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.chat-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 13px; min-height: 290px; }
.cmsg { max-width: 85%; padding: 12px 15px; border-radius: 15px; font-size: 14.5px; line-height: 1.5; opacity: 0; transform: translateY(10px); }
.cmsg.show { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.cmsg.user { align-self: flex-end; background: var(--accent-bright); color: var(--accent-ink); border-bottom-right-radius: 5px; font-weight: 500; }
.cmsg.bot { align-self: flex-start; background: var(--surface-overlay); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.cmsg .cite { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); border-bottom: 1px dotted var(--accent); margin-top: 8px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px; background: var(--surface-overlay); border: 1px solid var(--line); border-radius: 15px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: td 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes td { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* ---------- Feature cards grid ---------- */
.fgrid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .fgrid { grid-template-columns: repeat(3, 1fr); } }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .3s ease, transform .3s ease; }
.fcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.fcard .ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(39,224,162,0.1); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.fcard .ic svg { width: 21px; height: 21px; }
.fcard h3 { font-size: 18px; font-weight: 600; font-family: var(--font-body); }
.fcard p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* ---------- Nosotros ---------- */
.about-lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 4vw, 40px); line-height: 1.2; letter-spacing: -0.03em; max-width: 20ch; }
.about-lead b { color: var(--accent); font-weight: 600; }
.roles { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 42px; }
@media (min-width: 820px) { .roles { grid-template-columns: repeat(2, 1fr); } }
.role { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.role .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.role h3 { font-size: 21px; font-weight: 700; } .role p { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
.pcard { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 13px; transition: border-color .3s ease, transform .3s ease; }
.pcard:hover { border-color: var(--accent); transform: translateY(-3px); }
.pcard .meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pcard h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.pcard p { color: var(--muted); font-size: 15px; }
.pcard .more { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 4px; }

/* blog article page */
.post-page { padding-block: clamp(92px, 15vh, 150px) 80px; }
.post-page .back { background: none; border: 1px solid var(--line-2); color: var(--fg); border-radius: 999px; padding: 9px 17px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; }
.post-page .back:hover { border-color: var(--accent); color: var(--accent); }
.post-article { max-width: 720px; margin-inline: auto; }
.post-article .meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.post-article h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.post-article .standfirst { font-size: 20px; color: var(--muted); margin-top: 20px; line-height: 1.5; }
.post-article .body { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.75; }
.post-article .body h2 { font-size: 25px; margin-top: 16px; letter-spacing: -0.02em; }
.post-article .body ul, .post-article .body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.post-article .body blockquote { margin: 8px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.4; color: var(--fg); }
.post-article .body strong { color: var(--fg); font-weight: 600; }
.post-article .body a { color: var(--accent); border-bottom: 1px solid rgba(39,224,162,.4); }
.post-article .foot { max-width: 720px; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- Pricing ---------- */
.editable-note { display: inline-flex; align-items: center; gap: 10px; background: var(--amber-soft); border: 1px solid rgba(246,166,35,.4); color: var(--amber); border-radius: 999px; padding: 9px 17px; font-size: 13px; font-family: var(--font-mono); margin-bottom: 32px; }
.editable-note svg { flex: none; width: 16px; height: 16px; }
.edit { color: var(--amber); font-family: var(--font-mono); font-style: normal; border-bottom: 1px dashed var(--amber); }
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.plan.feat { border-color: var(--accent); background: linear-gradient(180deg, rgba(39,224,162,0.06), transparent); box-shadow: 0 0 0 1px rgba(39,224,162,.5), 0 30px 70px -40px rgba(39,224,162,.4); }
.plan .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.plan h3 { font-size: 22px; font-weight: 700; }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 36px; display: flex; align-items: baseline; gap: 6px; letter-spacing: -0.04em; }
.plan .price small { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--faint); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.plan ul li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--muted); }
.plan .btn { margin-top: auto; justify-content: center; }
.check { color: var(--accent); margin-top: 2px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-card { position: relative; background: linear-gradient(150deg, rgba(39,224,162,0.12), rgba(31,120,200,0.1)); border: 1px solid var(--line-2); border-radius: 26px; padding: clamp(44px, 8vw, 84px) clamp(24px, 5vw, 60px); overflow: hidden; }
.cta-card h2 { font-size: clamp(30px, 5vw, 58px); font-weight: 800; letter-spacing: -0.035em; }
.cta-card p { color: var(--muted); font-size: 18px; max-width: 48ch; margin: 18px auto 0; }
.cta-card .hero-actions { margin-top: 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 58px; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-3); color: var(--fg); width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cinfo { display: flex; flex-direction: column; gap: 22px; }
.cinfo-row { display: grid; grid-template-columns: 40px 1fr; gap: 15px; align-items: start; }
.cinfo-row .ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(39,224,162,0.1); color: var(--accent); display: grid; place-items: center; }
.cinfo-row .ic svg { width: 19px; height: 19px; }
.cinfo-row .k { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.cinfo-row .v { font-size: 16px; font-weight: 500; margin-top: 2px; }
.copy-btn { background: var(--surface-overlay); border: 1px solid var(--line-2); border-radius: 7px; font-family: var(--font-mono); font-size: 12px; padding: 3px 9px; cursor: pointer; color: var(--muted); margin-left: 8px; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.form-note { font-size: 13px; color: var(--faint); margin-top: 6px; }
.sent { display: none; background: rgba(39,224,162,0.08); border: 1px solid rgba(39,224,162,.4); color: var(--accent); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px; margin-top: 14px; }
.sent.show { display: block; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 50px 32px; }
@media (min-width: 720px) { .foot { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot .lead p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 34em; }
.foot h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot a.linklike { display: block; background: none; border: 0; padding: 5px 0; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; text-align: left; }
.foot a.linklike:hover { color: var(--accent); }
.foot-bottom { border-top: 1px solid var(--line); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.legal-strip { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .02em; }

/* ===== Vunepy landing — rebrand + secciones actualizadas (portado del artefacto) ===== */

/* Hero: eyebrow pill + mascota de Elio que invita a desplazar */
.hero-eyebrow { display: inline-flex; align-items: center; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--accent); background: rgba(39,224,162,0.06); margin-bottom: -6px; }
.hero-scroll { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; margin-top: 10px; background: none; border: 0; }
.hero-mascot { width: clamp(132px,18vw,196px); height: auto; filter: drop-shadow(0 16px 34px rgba(39,224,162,0.32)); animation: heroBob 2.6s ease-in-out infinite; }
.scroll-chev { width: 22px; height: 22px; color: var(--accent); animation: chevPulse 2.6s ease-in-out infinite; }
@keyframes heroBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes chevPulse { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-mascot, .scroll-chev { animation: none; } }

/* Métricas: tarjetas con iconos que se animan una vez al entrar en vista */
.metric .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(39,224,162,0.1); color: var(--accent); display: grid; place-items: center; }
.metric .ic svg { width: 24px; height: 24px; overflow: visible; }
.hl-t { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--fg); letter-spacing: -0.01em; }
.metrics-wrap.in .ic-layers .la1, .metrics-wrap.in .ic-layers .la2, .metrics-wrap.in .ic-layers .la3 { animation: layerUp 1s ease-out both; }
.metrics-wrap.in .ic-layers .la2 { animation-delay: .18s; }
.metrics-wrap.in .ic-layers .la3 { animation-delay: .36s; }
@keyframes layerUp { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }
.metrics-wrap.in .ic-bolt path { animation: boltDrop 1s ease-out both; }
@keyframes boltDrop { 0% { opacity: 0; transform: translateY(-7px); } 45% { opacity: 1; transform: translateY(0); } 60% { opacity: .4; } 75% { opacity: 1; } 100% { opacity: 1; transform: translateY(0); } }
.metrics-wrap.in .ic-build svg { transform-origin: center bottom; animation: buildUp 1.1s ease-out both; }
@keyframes buildUp { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
.metrics-wrap.in .ic-ai path { animation: twinkle 1.2s ease-out both; }
.metrics-wrap.in .ic-ai circle { transform-box: fill-box; transform-origin: center; animation: aiPulse 1.2s ease-out both; }
@keyframes twinkle { 0% { opacity: 1; } 45% { opacity: .25; } 100% { opacity: 1; } }
@keyframes aiPulse { 0% { transform: scale(1); } 45% { transform: scale(1.16); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .metrics-wrap.in .ic-layers .la1,.metrics-wrap.in .ic-layers .la2,.metrics-wrap.in .ic-layers .la3,.metrics-wrap.in .ic-bolt path,.metrics-wrap.in .ic-build svg,.metrics-wrap.in .ic-ai path,.metrics-wrap.in .ic-ai circle { animation: none; } }

/* Plataforma: ciclo PHVA en una sola sección */
.phva-items { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .phva-items { grid-template-columns: 1fr 1fr; gap: 22px 30px; } }
.phva-item { padding-left: 16px; border-left: 2px solid var(--accent); }
.phva-item .kick { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 7px; }
.phva-item p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Blog: intro + tarjetas en una sola fila */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 920px) { .blog-grid { grid-template-columns: 1.1fr 1fr 1fr; align-items: stretch; } }
.blog-intro { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.blog-intro h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.035em; }
.blog-intro p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------- Interruptor de tema (claro / oscuro) ---------- */
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-overlay); color: var(--fg); cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; flex: none; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Oscuro por defecto: se ve el sol (clic = pasar a claro) */
.theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: block; }
}
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
