/* ==========================================================
   WLS · Portada centrada en páginas web (v30)
   ========================================================== */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-arrive: cubic-bezier(0.16, 1, 0.3, 1);
  --frame-r: 16px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2742; border-radius: 10px; border: 2px solid var(--bg); }
input, textarea { caret-color: var(--teal); accent-color: var(--blue); }
.btn:active { transform: scale(.97); transition-duration: .16s; }

/* ---------- Marco de navegador (capturas reales) ---------- */
.bframe { margin: 0; border-radius: var(--frame-r); overflow: hidden; background: #0d1426;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px -30px rgba(2,4,12,.9), 0 18px 40px -20px rgba(49,87,255,.35); }
.bbar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #121a30; border-bottom: 1px solid rgba(255,255,255,.06); }
.bbar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3555; }
.bbar span { margin-left: 12px; flex: 1; max-width: 240px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.05);
  font: 500 11.5px/20px var(--body); color: var(--muted); padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bframe img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* ---------- Hero ---------- */
.wh-hero { position: relative; padding: clamp(90px, 11vw, 160px) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.wh-bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 55% at 78% 40%, rgba(49,87,255,.32), transparent 70%), radial-gradient(40% 40% at 95% 85%, rgba(40,214,194,.16), transparent 70%), var(--bg); }
.wh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.wh-title { font-size: clamp(44px, 6vw, 92px); line-height: .96; letter-spacing: -.05em; font-weight: 900; margin: 22px 0 0; }
.wh-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.wh-title .line > span { display: inline-block; }
.wh-copy .lead { margin-top: 24px; max-width: 40ch; }
.wh-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.wh-visual { position: relative; aspect-ratio: 16 / 12.4; perspective: 1600px; }
@media (max-width: 960px) {
  .wh-grid { grid-template-columns: 1fr; }
  .wh-visual { max-width: 620px; width: 100%; }
}
@media (max-width: 560px) {
  .wh-title { font-size: clamp(40px, 12vw, 56px); }
  .wh-copy .actions .btn { flex: 1 1 auto; }
  }

/* ---------- Cifras ---------- */
.wh-proof { padding: 0 0 clamp(40px, 6vw, 72px); }
.proof-row { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.proof-row > div { padding: 26px clamp(14px, 2vw, 28px); display: flex; flex-direction: column-reverse; gap: 6px; }
.proof-row > div + div { border-left: 1px solid var(--line); }
.proof-row dd { margin: 0; font: 800 clamp(30px, 3.4vw, 48px)/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.proof-row dt { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) {
  .proof-row { grid-template-columns: 1fr 1fr; }
  .proof-row > div:nth-child(3) { border-left: 0; }
  .proof-row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Vitrina de demos (momento firma) ---------- */
.showcase { position: relative; padding: clamp(40px, 6vw, 80px) 0; }
.sc-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sc-title { font-size: clamp(36px, 4.6vw, 68px); max-width: 12ch; }
.sc-side .lead { margin-top: 18px; max-width: 36ch; }
.sc-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.sc-list a { display: grid; gap: 2px; padding: 10px 0 10px 16px; position: relative; color: var(--dim); transition: color .25s var(--ease-out); }
.sc-list a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--line-2); transition: background-color .25s var(--ease-out); }
.sc-list b { font: 700 16.5px/1.25 var(--display); letter-spacing: -.01em; color: inherit; }
.sc-list span { font-size: 13.5px; }
.sc-list img { display: none; }
.sc-list li.is-active a { color: var(--text); }
.sc-list li.is-active a::before { background: var(--grad-strong); }
.sc-list li.is-active span { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .sc-list a:hover { color: var(--text); } }
.sc-screens { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d1426; }
.sc-screens img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.sc-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 16px; }
.sc-count { color: var(--muted); font: 600 14px/1 var(--body); font-variant-numeric: tabular-nums; }
.sc-count b { color: var(--text); }
/* Móvil: tarjetas deslizables, sin fijar */
@media (max-width: 960px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-stage { display: none; }
  .sc-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .sc-list::-webkit-scrollbar { display: none; }
  .sc-list li { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
  .sc-list a { padding: 0; color: var(--text); gap: 4px; }
  .sc-list a::before { display: none; }
  .sc-list img { display: block; border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; margin-bottom: 10px; box-shadow: 0 0 0 1px var(--line-2); }
  .sc-list span { color: var(--muted); }
}

/* ---------- Bento: qué incluye ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: clamp(12px, 1.4vw, 18px); }
.bn { padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.bn h3 { font-size: clamp(20px, 1.7vw, 25px); }
.bn p { color: var(--muted); font-size: 15px; }
.bn-ico { width: 30px; height: 30px; fill: none; stroke: var(--teal-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.bn-xl { grid-column: span 2; grid-row: span 2; padding: 0; }
.bn-xl img, .bn-wide img { width: 100%; flex: 1; min-height: 0; object-fit: cover; }
.bn-body { padding: clamp(22px, 2.2vw, 30px); display: grid; gap: 8px; }
.bn-tall { grid-row: span 2; }
.bn-accent { background: linear-gradient(160deg, #1d3bd8, #0f6d79); box-shadow: none; }
.bn-accent p { color: #dce6ff; }
.bn-accent .bn-ico { stroke: #fff; }
.bn-big { margin-top: auto; font: 900 clamp(48px, 5vw, 76px)/.9 var(--display) !important; letter-spacing: -.05em; color: #fff !important; }
.bn-big small { display: block; font: 500 14px/1.4 var(--body); letter-spacing: 0; color: #dce6ff; margin-top: 8px; }
.bn-wide { grid-column: span 2; padding: 0; flex-direction: row; }
.bn-wide img { width: 42%; flex: none; }
.bn-wide .bn-body { align-content: center; }
@media (max-width: 1080px) { .bento { grid-template-columns: repeat(2, 1fr); } .bn-tall { grid-row: span 1; } }
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bn-xl, .bn-wide { grid-column: auto; grid-row: auto; }
  .bn-wide { flex-direction: column; }
  .bn-wide img { width: 100%; aspect-ratio: 16 / 8; }
  .bn-xl img { aspect-ratio: 16 / 10; }
}

/* ---------- Conectores ---------- */
.cx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.cx-group { padding: clamp(22px, 2.2vw, 28px); }
.cx-group h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 16px; }
.cx-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cx-group li { display: flex; align-items: center; gap: 12px; min-height: 40px; color: #dfe6f6; font-size: 15px; }
.si { width: 20px; height: 20px; flex: none; filter: invert(1); opacity: .78; transition: opacity .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cx-group li:hover .si { opacity: 1; } }
.cx-note { margin-top: 14px; color: var(--dim); font-size: 13.5px; }
.cx-foot { margin-top: 24px; color: var(--muted); max-width: 80ch; font-size: 15px; }
@media (max-width: 1080px) { .cx-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cx-grid { grid-template-columns: 1fr; } }

/* ---------- Precios ---------- */
.pr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 18px); align-items: stretch; }
.pr { padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.pr h3 { font-size: clamp(21px, 1.7vw, 25px); }
.pr-for { color: var(--muted); font-size: 15px; min-height: 3em; }
.pr-price { font: 800 clamp(34px, 3vw, 46px)/1 var(--display); letter-spacing: -.035em; padding: 16px 0; border-block: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pr-price small { display: block; font: 500 13px/1.4 var(--body); letter-spacing: 0; color: var(--muted); margin-bottom: 6px; }
.pr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pr li { position: relative; padding-left: 24px; color: #d3dbee; font-size: 14.5px; }
.pr li::before { content: ""; position: absolute; left: 1px; top: .42em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.pr-time { color: var(--dim); font-size: 13.5px; margin-top: auto; padding-top: 6px; }
.pr-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pr-act .btn { min-height: 46px; padding: 0 22px; }
.pr.is-featured { background: linear-gradient(180deg, rgba(49,87,255,.16), rgba(40,214,194,.05)); box-shadow: inset 0 0 0 1.5px rgba(106,134,255,.55), 0 30px 60px -30px rgba(49,87,255,.5); }
.pr-tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--grad-strong); color: #fff; margin-bottom: -2px; }
.pr-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 18px); margin-top: clamp(12px, 1.4vw, 18px); }
.pr-wide { padding: clamp(22px, 2.2vw, 30px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.pr-wide h3 { font-size: clamp(20px, 1.6vw, 24px); margin-bottom: 8px; }
.pr-wide p { color: var(--muted); font-size: 15px; }
.pr-wide .pr-price { border: 0; padding: 0; text-align: right; }
.pr-extras { margin-top: clamp(28px, 3vw, 40px); display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.pr-extras h3 { font-size: 20px; padding-top: 12px; }
.pr-extras dl { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.pr-extras dl > div { padding: 14px 16px 0 0; }
.pr-extras dt { color: var(--muted); font-size: 14px; }
.pr-extras dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-market { margin-top: clamp(28px, 3vw, 40px); padding: 20px 22px; border-radius: 16px; background: rgba(40,214,194,.07); box-shadow: inset 0 0 0 1px rgba(40,214,194,.22); }
.pr-market p { color: #cfe9e5; font-size: 15px; max-width: 95ch; }
.pr-market b { color: var(--text); }
@media (max-width: 1080px) { .pr-grid { grid-template-columns: 1fr 1fr; } .pr-extras dl { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .pr-row { grid-template-columns: 1fr; }
  .pr-extras { grid-template-columns: 1fr; }
  .pr-extras dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pr-grid { grid-template-columns: 1fr; }
  .pr-for { min-height: 0; }
  .pr-wide { grid-template-columns: 1fr; }
  .pr-wide .pr-price { text-align: left; }
}

/* Sin JS o movimiento reducido: todo visible */
@media (prefers-reduced-motion: reduce) {
}

/* Ajustes tras revisión */
.pr-wide p.pr-price { font: 800 clamp(30px, 2.6vw, 40px)/1 var(--display); color: var(--text); letter-spacing: -.035em; }
.pr-wide p.pr-price small { font: 500 13px/1.4 var(--body); letter-spacing: 0; color: var(--muted); }
@media (min-width: 961px) { .sc-pin { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) * .6) 0 0; } .showcase { padding: 0; } }
@media (max-width: 560px) {
  .bn { min-height: 0; }
  .bento { grid-auto-rows: auto; }
  .bn-ico { margin-bottom: 18px; }
}
.sc-side, .sc-stage, .wh-copy, .wh-visual { min-width: 0; }
@media (max-width: 960px) { .sc-grid { grid-template-columns: minmax(0, 1fr); } .showcase { overflow: hidden; } }
@media (max-width: 960px) { .sc-list { scroll-padding-inline: var(--gutter); } .showcase + .section { padding-top: clamp(40px, 8vw, 80px); } }

/* Acceso a precios desde la portada */
.pc-box { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(26px, 3.4vw, 44px); background: linear-gradient(120deg, rgba(49,87,255,.18), rgba(40,214,194,.08)); box-shadow: inset 0 0 0 1px rgba(106,134,255,.35); }
.pc-box h2 { font-size: clamp(28px, 3.4vw, 46px); }
.pc-box p { color: var(--muted); margin-top: 10px; max-width: 52ch; }
.conectores + .precios-cta { padding-top: 0; }

/* Marcos que rotan: webs reales y demos */
.wh-visual .wh-fr { position: absolute; left: 0; top: 0; width: 82%; transform-origin: 50% 50%;
  transition: transform .9s cubic-bezier(0.77, 0, 0.175, 1), opacity .9s cubic-bezier(0.77, 0, 0.175, 1); }
.wh-fr.is-front { z-index: 4; opacity: 1; transform: translate3d(0, 40%, 0) rotateY(-8deg) rotateX(3deg); }
.wh-fr.is-mid { z-index: 3; opacity: .82; transform: translate3d(22%, 13%, -80px) rotateY(-14deg) scale(.86); }
.wh-fr.is-back { z-index: 2; opacity: .5; transform: translate3d(24%, -6%, -160px) rotateY(-18deg) scale(.72); }
.wh-fr.is-hidden { z-index: 1; opacity: 0; transform: translate3d(28%, -16%, -220px) rotateY(-20deg) scale(.62); }
.wh-fr.is-out { z-index: 5; opacity: 0; transform: translate3d(-8%, 58%, 60px) rotateY(-4deg) scale(1.04); }
.wh-fr.no-anim { transition: none; }
@media (max-width: 560px) {
  .wh-visual { aspect-ratio: 16 / 10.9; perspective: none; }
  .wh-visual .wh-fr { width: 100%; }
  .wh-fr.is-front { transform: none; }
  .wh-fr.is-mid, .wh-fr.is-back, .wh-fr.is-hidden { opacity: 0; transform: translate3d(6%, 0, 0); }
  .wh-fr.is-out { opacity: 0; transform: translate3d(-6%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .wh-visual .wh-fr { transition: opacity .3s linear; } }
.pr-demo { margin-top: 10px; font-size: 14.5px; }

/* ==========================================================
   v5 · Portada enfocada en páginas web (oct 2026)
   ========================================================== */
h1, h2, h3, h4 { letter-spacing: -.03em; }
.story-hero h1 { letter-spacing: -.04em; line-height: .92; }
.hero-kicker { margin: 0 0 18px; font: 600 15px/1.2 var(--body); color: var(--teal-2); }
::selection { background: rgba(40,214,194,.32); color: #fff; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; }

/* Precios en portada */
.pr-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46ch); gap: 16px 40px; align-items: end; }
.pr-head .lead { margin: 0; }
.pr ul { margin-bottom: 4px; }
.pr-more { margin-top: clamp(20px, 2.4vw, 30px); color: var(--muted); font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
@media (max-width: 760px) { .pr-head { grid-template-columns: 1fr; } }

/* Más allá de la web */
.mas-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.mas-copy h2 { font-size: clamp(34px, 4.2vw, 60px); max-width: 14ch; }
.mas-copy .lead { margin-top: 18px; max-width: 46ch; }
.mas-list { list-style: none; margin: clamp(26px, 3vw, 38px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.mas-list a { display: grid; gap: 4px; padding: 18px 28px 18px 0; border-top: 1px solid var(--line); position: relative; height: 100%; transition: border-color .25s var(--ease-out); }
.mas-list a::after { content: "→"; position: absolute; right: 2px; top: 18px; color: var(--teal-2); transition: transform .25s var(--ease-out); }
.mas-list b { font: 700 19px/1.25 var(--display); letter-spacing: -.015em; }
.mas-list span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .mas-list a:hover { border-color: var(--teal); }
  .mas-list a:hover::after { transform: translateX(4px); }
}
.mas-soporte { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mas-soporte img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mas-sbody { padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 12px; }
.mas-sbody h3 { font-size: clamp(22px, 1.9vw, 27px); }
.mas-sbody > p { color: var(--muted); font-size: 15px; }
.mas-prices { margin: 6px 0 8px; }
.mas-prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.mas-prices dt { color: #d3dbee; font-size: 15px; }
.mas-prices dd { margin: 0; font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .mas-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mas-list { grid-template-columns: 1fr; } }
/* Recorrido 3D más corto: misma historia, menos scroll */
.story { height: 520vh; }
@media (max-width: 860px) { .story { height: 460vh; } }
html.reduced .story, html:not(.js) .story { height: auto; }
@media (max-width: 560px) { .story-hero .lead { padding-right: 58px; } }
