:root {
  --app-bg: #141312;
  --card-bg: #1c1a18;
  --card-border: #302d29;
  --text: #f4f1ec;
  --muted: #a8a299;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-text: #7fabff;
  --light-bg: #f4f0e8;
  --blue-bg: #0e2f9e;
  --btn-bg: var(--accent);
  --btn-hover: var(--accent-hover);
  --btn-ink: #fff;
  --ghost: #4a4640;
  --field-bg: var(--card-bg);
  --field-text: var(--text);
  --field-border: var(--card-border);
  --accent-ring: rgba(59, 130, 246, 0.45);
  --ok: #6cbf8f;
  --danger: #c2594b;
  --pad: clamp(16px, 5vw, 72px);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--blue-bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Cada tema ajusta los mismos tokens; los componentes no cambian */
.theme-blue, .theme-light, .theme-dark { color: var(--text); }
.theme-blue {
  --text: #fff;
  --muted: #dbe5ff;
  --card-border: rgba(255, 255, 255, .24);
  --accent-text: #c4d7ff;
  --btn-bg: #fff;
  --btn-hover: #e6edff;
  --btn-ink: #123aa8;
  --ghost: rgba(255, 255, 255, .5);
  --field-bg: #fff;
  --field-text: #191715;
  --field-border: transparent;
  --accent-ring: rgba(255, 255, 255, .45);
}
.theme-light {
  --text: #191715;
  --muted: #5c574f;
  --card-border: #d8d1c5;
  --accent-text: #1d4ed8;
  --ghost: #a69f94;
  --field-bg: #fff;
  --field-text: #191715;
}
/* Mientras carga la escena se ve el mismo azul del inicio */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(75vmax 60vmax at 72% 45%, #2f6bff 0%, var(--blue-bg) 80%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
#stage.ready { opacity: 1; }
main, .foot { position: relative; z-index: 1; }
.scrim { display: none; }

/* ===== Navegación ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.nav.on-solid { background: var(--light-bg); border-bottom-color: var(--card-border); }
.nav-brand img { height: 34px; width: auto; }
.nav.theme-light .logo-white, .nav:not(.theme-light) .logo-blue { display: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a, .nav-login {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s ease;
}
.nav-links a:hover, .nav-login:hover { color: var(--text); }
.nav-links a { white-space: nowrap; }
/* En pantallas medianas el menú deja solo lo esencial para no partirse en dos líneas */
@media (max-width: 1180px) {
  .nav-links a[href="#formatos"], .nav-links a[href="#casos"] { display: none; }
}
.nav-login { margin-left: -20px; }
.nav .btn-sm { margin-left: -8px; }
@media (max-width: 860px) {
  .nav { gap: 8px; }
  .nav-links { display: none; }
  .nav-login { margin-left: auto; }
  .nav .btn-sm { margin-left: 0; }
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 16px/1 var(--font);
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--ghost); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { font-size: 14px; padding: 11px 16px; border-radius: 10px; }
.btn-full { width: 100%; }

/* ===== Escenas con objeto 3D fijo ===== */
.scene { height: 150vh; }
.scene-hero { height: 115vh; }
.scene-long { height: 250vh; }
.stick {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: 72px var(--pad) 40px;
}
.stick-right { justify-content: flex-end; }
.panel { width: min(490px, 44vw); will-change: opacity, transform; }
.panel-hero { width: min(760px, 50vw); }

h1 { font-size: clamp(36px, 4.35vw, 78px); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; }
h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
h1 .line > span { display: block; animation: rise 1.1s var(--ease) both; }
h1 .line:nth-child(2) > span { animation-delay: .08s; }
h1 .line:nth-child(3) > span { animation-delay: .16s; }
.line-accent { color: var(--accent-text); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.lead { font-size: clamp(17px, 1.45vw, 21px); color: var(--muted); margin-top: 26px; max-width: 34em; animation: fade 1s .4s both; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: fade 1s .5s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.scroll-hint {
  position: absolute;
  left: var(--pad);
  bottom: 28px;
  font-size: 14px;
  color: var(--muted);
  animation: fade 1s 1.2s both;
}

.panel h2 { font-size: clamp(32px, 3.6vw, 58px); font-weight: 800; line-height: 1.07; letter-spacing: -.035em; }
.panel h2 + p { font-size: clamp(16px, 1.25vw, 19px); color: var(--muted); margin-top: 20px; }
.note { font-size: 14px; color: var(--muted); margin-top: 20px; }

.dest-list { list-style: none; margin-top: 26px; border-top: 1px solid var(--card-border); }
.dest-list li { padding: 13px 0; border-bottom: 1px solid var(--card-border); color: var(--muted); transition: color .18s ease; }
.dest-list b { display: block; font-size: 18px; font-weight: 700; }
.dest-list span { display: block; font-size: 15px; overflow: hidden; opacity: 0; max-height: 0; transition: max-height .3s var(--ease), opacity .2s ease; }
.dest-list li.active { color: var(--text); }
.dest-list li.active span { color: var(--muted); opacity: 1; max-height: 3.2em; margin-top: 2px; }

.formats { margin-top: 26px; border-top: 1px solid var(--card-border); }
.formats div { padding: 14px 0; border-bottom: 1px solid var(--card-border); }
.formats dt { font-weight: 700; font-size: 18px; }
.formats dd { color: var(--muted); font-size: 15px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--card-border); }
.kpi span { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; min-height: 2.6em; }
.kpi b { display: block; font-size: clamp(24px, 2.3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.kpi em { display: block; font-style: normal; font-size: 12.5px; color: var(--ok); line-height: 1.35; }

/* Etiquetas sobre las columnas */
.pins { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.pin {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.pin b { display: block; font-weight: 700; }
.pin span { color: var(--muted); }
.pin-alert span { color: #e2877a; }

/* ===== Bloques sólidos ===== */
.solid { position: relative; background: var(--light-bg); }
.block { padding: clamp(72px, 10vw, 150px) var(--pad); max-width: 1440px; margin: 0 auto; }
.block-title { font-size: clamp(32px, 4.2vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; margin-bottom: clamp(32px, 5vw, 72px); max-width: 16em; }

.rows { border-top: 1px solid var(--card-border); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px clamp(24px, 6vw, 96px);
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--card-border);
  align-items: baseline;
}
.row h3 { font-size: clamp(21px, 2vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.row p { color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { border-top: 1px solid var(--muted); padding-top: 18px; }
.steps h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Caso principal: una cadena grande, con su mapa de sedes */
.flag {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 24px;
  color: #fff;
  background: #050608;
  box-shadow: 0 40px 80px -40px rgba(5, 6, 8, .6);
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.flag::before, .flag::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.flag::before {
  inset: 0;
  background:
    radial-gradient(55% 60% at 78% 40%, rgba(42, 99, 240, .55) 0%, rgba(42, 99, 240, 0) 70%),
    radial-gradient(50% 50% at 10% 110%, rgba(29, 78, 216, .7) 0%, rgba(29, 78, 216, 0) 72%),
    linear-gradient(150deg, #050608 0%, #080b18 55%, #0e2f9e 100%);
}
.flag::after {
  inset: 0;
  opacity: .5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.flag-copy { min-width: 0; }
.flag-logo { display: inline-flex; margin-bottom: clamp(24px, 3vw, 40px); }
.flag-logo img { display: block; width: clamp(170px, 16vw, 230px); height: auto; }
.flag h3 { font-size: clamp(28px, 3.2vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 13em; text-wrap: balance; }
.flag-copy > p:not(.flag-note) { margin-top: 18px; color: #c9d3ea; font-size: clamp(16px, 1.2vw, 18px); max-width: 32em; }
.flag-stats { display: flex; gap: clamp(20px, 3vw, 48px); margin-top: clamp(28px, 3.4vw, 44px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.flag-stats div { display: flex; flex-direction: column-reverse; }
.flag-stats dd { font-size: clamp(40px, 4.6vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.flag-stats dt { margin-top: 8px; color: #a9b6d6; font-size: 14px; }
.flag-note { margin-top: 22px; color: #a9b6d6; font-size: 14px; }
.flag-map { min-width: 0; }
.flag-map svg { display: block; width: 100%; height: auto; max-height: 640px; overflow: visible; }
.flag-map figcaption { margin-top: 10px; color: #a9b6d6; font-size: 13px; text-align: center; }
.fm-grid circle { fill: #c4d7ff; opacity: .2; }
.fm-country { fill: none; stroke: #c4d7ff; stroke-width: .6; stroke-linejoin: round; opacity: .45; }
.fm-label .fm-sub { fill: #a9b6d6; font-weight: 500; }
.fm-dot { fill: #9ec0ff; stroke: #050608; stroke-width: .35; transform-box: fill-box; transform-origin: center; }
.fm-ring { fill: none; stroke: #c4d7ff; stroke-width: .6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fm-label { fill: #c9d3ea; font: 600 6.4px var(--font); }
.fm-label.big { fill: #fff; font-size: 7.4px; }
.fm-line { stroke: #7fabff; stroke-width: .4; opacity: .25; }
.fm-guide { stroke: #fff; stroke-width: .45; opacity: .55; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.case { min-width: 0; }
.case-media { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: clip; background: #0b0e13; }
.case-media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .case:hover .case-media > img { transform: scale(1.03); } }
/* El logo de cada cliente va en una ficha con el fondo de su marca */
.case-chip { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; height: 48px; min-width: 48px; padding: 8px; border-radius: 10px; background: #0b0e13; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.case-chip img { height: 100%; width: auto; }
.case-chip.chip-light { background: #fff; }
.case-chip.chip-wide { padding: 15px 14px; }
.case figcaption { padding-top: 14px; }
.aud-proof { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--card-border); font-weight: 600; }
.aud-proof a { color: var(--accent-text); white-space: nowrap; font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 960px) { .flag { grid-template-columns: minmax(0, 1fr); } .flag-map svg { max-height: 460px; } }
.case b { display: block; font-size: 18px; font-weight: 700; }
.case span { color: var(--muted); font-size: 15px; }

.faq { border-top: 1px solid var(--card-border); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--card-border); }
.faq summary { cursor: pointer; font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; padding: 20px 32px 20px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 16px; font-size: 26px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding: 0 32px 22px 0; }

/* ===== Contacto: la tarjeta 3D queda a la derecha ===== */
.contact { min-height: 100vh; display: flex; align-items: center; padding: 96px var(--pad) 64px; }
.contact-inner { width: min(560px, 46vw); }
.contact h2 { font-size: clamp(32px, 3.7vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.07; }
.lead-form { margin-top: 32px; display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.lead-form input, .lead-form select {
  width: 100%;
  font: 500 16px var(--font);
  color: var(--field-text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b756d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.lead-form input::placeholder { color: #7b756d; }
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-ring); }
.field-row { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); gap: 14px; }
.contact-alt { color: var(--muted); font-size: 15px; margin-top: 20px; overflow-wrap: anywhere; }
.contact-alt a { color: var(--text); font-weight: 600; }
.qr-hint { color: var(--accent-text); font-size: 15px; font-weight: 600; margin-top: 14px; }

.foot {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px var(--pad);
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 14px;
  background: var(--blue-bg);
}
.foot img { height: 28px; width: auto; }
.foot a { margin-left: auto; }
.foot a:hover { color: var(--text); }

/* ===== Vertical: objeto arriba, texto abajo ===== */
@media (max-aspect-ratio: 23/20) {
  .stick, .stick-right { align-items: flex-end; justify-content: flex-start; padding-bottom: 28px; }
  .panel, .panel-hero { width: 100%; max-width: 640px; }
  .panel-hero { padding-bottom: 22px; }
  /* Velo para que el texto se lea sobre lo 3D; toma el color del fondo actual */
  .scrim {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    height: 62%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgb(var(--c, 14 47 158)) 62%, rgb(var(--c, 14 47 158) / 0));
  }
  .scroll-hint { display: none; }
  .lead { margin-top: 14px; }
  .cta { margin-top: 18px; }
  .cta .btn { padding: 14px 18px; font-size: 15px; }
  .kicker { margin-bottom: 8px; }
  .panel h2 { font-size: clamp(27px, 7.4vw, 44px); }
  .panel h2 + p { margin-top: 10px; font-size: 15px; }
  .dest-list, .formats, .kpis { margin-top: 14px; }
  .dest-list li { padding: 8px 0; }
  .dest-list b, .formats dt { font-size: 16px; }
  .dest-list span, .formats dd { font-size: 14px; }
  .formats div { padding: 8px 0; }
  .kpis { padding-top: 12px; gap: 10px; }
  .kpi span { font-size: 12px; }
  .kpi em { font-size: 12px; }
  .note { margin-top: 10px; font-size: 13px; }
  .contact { min-height: 0; background: var(--blue-bg); }
  .contact-inner { width: 100%; max-width: 640px; }
  .qr-hint { display: none; }
}

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .flag { grid-template-columns: minmax(0, 1fr); }
  .flag-stats { gap: 18px; }
  .flag-map svg { max-height: 420px; }
  .fm-label { font-size: 8.2px; }
  .fm-label.big { font-size: 9px; }
  .btn-sm { padding: 10px 13px; }
}

/* ===== Profesionales e instituciones ===== */
.aud { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.aud-rev .aud-copy { order: 2; }
.aud .block-title { margin-bottom: 20px; max-width: 12em; }
.aud-lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 34em; }
.aud-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: clamp(28px, 4vw, 48px); }
.aud-points div { border-top: 1px solid var(--card-border); padding-top: 16px; }
.aud-points dt { font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 6px; }
.aud-points dd { color: var(--muted); font-size: 15.5px; }

/* Degradado con grano (como el login): casi negro que se abre en azul de marca */
.convo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* "clip" no deja que el navegador desplace el contenido por dentro (con
     "hidden" la tarjeta podía quedar corrida hacia un lado) */
  overflow: clip;
  min-height: clamp(480px, 46vw, 600px);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  background: #050608;
  box-shadow: 0 30px 60px -30px rgba(5, 6, 8, .55);
}
.convo::before, .convo::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.convo::before {
  inset: -20%;
  background:
    radial-gradient(58% 52% at 80% 84%, #2a63f0 0%, rgba(42, 99, 240, 0) 72%),
    radial-gradient(48% 42% at 18% 98%, rgba(29, 78, 216, .85) 0%, rgba(29, 78, 216, 0) 72%),
    radial-gradient(46% 40% at 66% 30%, rgba(42, 99, 240, .38) 0%, rgba(42, 99, 240, 0) 72%),
    linear-gradient(160deg, #050608 0%, #080b18 45%, #0e2f9e 100%);
  animation: drift 22s ease-in-out infinite alternate;
}
.convo-inst::before {
  background:
    radial-gradient(56% 50% at 20% 22%, #2a63f0 0%, rgba(42, 99, 240, 0) 72%),
    radial-gradient(48% 42% at 88% 62%, rgba(29, 78, 216, .75) 0%, rgba(29, 78, 216, 0) 72%),
    radial-gradient(44% 38% at 40% 92%, rgba(42, 99, 240, .35) 0%, rgba(42, 99, 240, 0) 72%),
    linear-gradient(200deg, #0e2f9e 0%, #080b18 55%, #050608 100%);
}
.convo::after {
  inset: 0;
  opacity: .55;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
@keyframes drift {
  from { transform: translate3d(-4%, 3%, 0) scale(1); }
  to { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.convo-thread { display: flex; flex-direction: column; gap: 10px; width: min(100%, 420px); margin: auto; padding-top: 8px; }
.bub { max-width: 82%; font-size: 15px; line-height: 1.4; padding: 10px 15px; border-radius: 18px; }
.bub-in { align-self: flex-start; background: #fff; color: #14161b; }
.bub-out { align-self: flex-end; border: 1px solid rgba(255, 255, 255, .55); font-weight: 600; }
.bub-chip { max-width: 96%; align-self: flex-start; display: flex; align-items: center; gap: 10px; background: #fff; color: #14161b; border-radius: 999px; padding: 7px 16px 7px 7px; }
.chip-ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
.chip-ico svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.convo figcaption { font-size: clamp(16px, 1.3vw, 18px); font-weight: 600; line-height: 1.4; max-width: 30em; }
.convo figcaption span { display: block; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .72); margin-bottom: 6px; }

/* Los mensajes llegan uno a uno, al ritmo de una conversación */
.convo.wait .bub { opacity: 0; transform: translateY(10px) scale(.97); }
.convo.wait .bub-out { transform-origin: right bottom; }
.convo.wait .bub-in, .convo.wait .bub-chip { transform-origin: left bottom; }
.convo.play .bub {
  opacity: 1;
  transform: none;
  transition: opacity .35s ease-out, transform .45s var(--ease);
  transition-delay: calc(var(--i) * .75s + .2s);
}

/* Narración: botón "Escúchalo" y mensajes al ritmo de la voz */
.convo-play {
  position: absolute; top: clamp(16px, 2.2vw, 24px); right: clamp(16px, 2.2vw, 24px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(5, 6, 8, .35); border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  padding: 8px 16px 8px 10px; min-height: 40px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.convo-play:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.convo-play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.convo-play svg { width: 18px; height: 18px; fill: #fff; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.convo-play .i-play { stroke: none; }
.convo-play .i-pause { display: none; fill: none; }
.convo[data-narr="playing"] .convo-play .i-play { display: none; }
.convo[data-narr="playing"] .convo-play .i-pause { display: block; }
.convo-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity .3s ease; z-index: 2; }
.convo[data-narr] .convo-prog { opacity: .85; }
.convo .convo-thread { padding-top: 56px; }
.convo.narr .bub { opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .35s ease-out, transform .45s var(--ease); transition-delay: 0s; }
.convo.narr .bub.on { opacity: 1; transform: none; }
/* Lo que solo acompaña a la voz: el cambio de destino, la cifra y el cierre */
.narr-only { display: none; }
.convo.narr .bub.narr-only { display: flex; }
.bub-stat { align-self: flex-start; align-items: baseline; gap: 10px; background: #fff; color: #14161b; border-radius: 16px; padding: 10px 16px; }
.bub-stat b { white-space: nowrap; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.4em; }
.convo-thread { transition: opacity .6s ease, filter .6s ease; }
.convo.closing .convo-thread { opacity: .18; filter: blur(2px); }
.convo:not(.narr) .convo-end { display: none; }
.chip-ico.chip-bad { background: var(--danger); }
.chip-ico.chip-ok { background: #3f9a6b; }
/* Cadenas: el degradado se abre desde arriba a la derecha */
.convo-cad::before {
  background:
    radial-gradient(56% 50% at 84% 18%, #2a63f0 0%, rgba(42, 99, 240, 0) 72%),
    radial-gradient(48% 42% at 12% 70%, rgba(29, 78, 216, .7) 0%, rgba(29, 78, 216, 0) 72%),
    radial-gradient(44% 38% at 60% 96%, rgba(42, 99, 240, .35) 0%, rgba(42, 99, 240, 0) 72%),
    linear-gradient(220deg, #0e2f9e 0%, #080b18 55%, #050608 100%);
}
.convo-end { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; }
.convo.narr .convo-end { display: flex; opacity: 0; transform: scale(.96); transition: opacity .7s ease, transform .9s var(--ease); }
.convo.closing .convo-end { opacity: 1; transform: none; }
.convo-end img { width: min(240px, 52%); height: auto; }
.convo-end span { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: #fff; }

@media (max-width: 860px) {
  .aud { grid-template-columns: minmax(0, 1fr); }
  .aud-rev .aud-copy { order: 0; }
  .convo { min-height: 460px; }
}
@media (max-width: 560px) {
  .aud-points { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bub { font-size: 14.5px; }
}

/* ===== Así se ve tu panel ===== */
.pv {
  --text: #f4f1ec; --muted: #a8a299; --card-border: #302d29;
  --pv-card: #1c1a18; --pv-soft: #262320; --pv-accent: #5b8cff;
  --pv-ok: #6cbf8f; --pv-warn: #d4a24c; --pv-bad: #d0685a;
  position: relative;
  color: var(--text);
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(37, 99, 235, .22) 0%, rgba(37, 99, 235, 0) 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(37, 99, 235, .12) 0%, rgba(37, 99, 235, 0) 70%),
    #141312;
}
.pv-inner { max-width: 1296px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--pad); }
.pv-head h2 { font-size: clamp(34px, 4.4vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.pv-head p { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); margin-top: 16px; max-width: 36em; }

.pv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(32px, 4vw, 48px) 0 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pv-tabs::-webkit-scrollbar { display: none; }
.pv-tabs button {
  position: relative; flex: none; overflow: hidden;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--card-border); border-radius: 999px;
  padding: 11px 18px; min-height: 44px; cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.pv-tabs button:hover { color: var(--text); border-color: #4a4640; }
.pv-tabs button[aria-selected="true"] { color: #141312; background: var(--text); border-color: var(--text); }
.pv-tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--pv-accent); transform: scaleX(0); transform-origin: left; }
.pv-tabs button.run::after { animation: pvRun 7s linear forwards; }
@keyframes pvRun { to { transform: scaleX(1); } }
.pv-tabs button:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: 2px; }

.pv-window { border: 1px solid var(--card-border); border-radius: 18px; background: #171513; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .3); }
.pv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--card-border); font-size: 13px; color: var(--muted); }
.pv-url { background: var(--pv-soft); border-radius: 8px; padding: 5px 12px; }
.pv-live { display: inline-flex; align-items: center; gap: 8px; }
.pv-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--pv-ok); }
.pv-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 520px; }
.pv-side { list-style: none; padding: 18px 12px; border-right: 1px solid var(--card-border); display: flex; flex-direction: column; gap: 4px; }
.pv-side li { font-size: 14px; color: var(--muted); padding: 9px 12px; border-radius: 8px; transition: background-color .2s ease, color .2s ease; }
.pv-side li.on { background: rgba(91, 140, 255, .14); color: #c9d8ff; font-weight: 600; }
.pv-view { padding: clamp(16px, 2.4vw, 28px); min-width: 0; outline: none; }

/* Entrada de cada vista: tarjetas que suben y barras que crecen */
.pv-view.enter .pv-card { animation: pvIn .5s var(--ease) both; }
.pv-view.enter .pv-card + .pv-card { animation-delay: .08s; }
@keyframes pvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pv-view.enter [style*="--w"] { animation: pvGrow .9s var(--ease) both .15s; }
@keyframes pvGrow { from { width: 0; } }

.pv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pv-card { background: var(--pv-card); border: 1px solid var(--card-border); border-radius: 14px; padding: clamp(16px, 2vw, 24px); min-width: 0; }
.pv-label { font-size: 13px; color: var(--muted); }
.pv-sub, .pv-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pv-note { margin-top: 14px; }
.pv-big { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; }
.pv-delta { display: inline-block; font-size: 13px; font-weight: 700; }
.pv-delta.up { color: var(--pv-ok); }
.pv-delta.down { color: var(--pv-bad); }
.pv-delta.flat { color: var(--muted); font-weight: 500; }

.pv-vrows { margin-top: 18px; display: grid; gap: 10px; border-top: 1px solid var(--card-border); padding-top: 14px; }
.pv-vrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; font-size: 14px; }
.pv-ch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.pv-ch i, .pv-pname small i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pv-calc { color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-vrow b { font-variant-numeric: tabular-nums; text-align: right; min-width: 7.5em; }
.pv-slider { display: grid; gap: 10px; margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--pv-soft); font-size: 14px; }
.pv-slider output { font-weight: 700; color: #c9d8ff; }
.pv-slider input { width: 100%; accent-color: var(--pv-accent); height: 24px; cursor: pointer; }

.pv-goals { display: grid; gap: 6px; margin-top: 14px; }
.pv-goal { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto 5.6rem; gap: 12px; align-items: center; padding: 7px 0; }
.pv-gname { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; min-width: 0; }
.pv-gname small, .pv-pname small { font-size: 12px; font-weight: 400; color: var(--muted); }
.pv-gbar, .pv-rbar, .pv-srcbar { position: relative; height: 8px; border-radius: 99px; background: var(--pv-soft); overflow: hidden; }
.pv-gbar i, .pv-rbar i, .pv-srcbar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 99px; background: var(--pv-accent); }
.pv-gbar i.proj { background: rgba(91, 140, 255, .28); }
.pv-gbar i.warn { background: var(--pv-warn); }
.pv-gbar i.bad { background: var(--pv-bad); }
.pv-gnum { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv-gnum small { color: var(--muted); font-weight: 500; }
.pv-badge { justify-self: end; font-size: 12px; font-weight: 700; font-style: normal; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pv-badge.done, .pv-badge.ok { color: var(--pv-ok); background: rgba(108, 191, 143, .14); }
.pv-badge.warn { color: var(--pv-warn); background: rgba(212, 162, 76, .14); }
.pv-badge.bad { color: var(--pv-bad); background: rgba(208, 104, 90, .16); }

.pv-camp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.pv-verdict { font-size: 15px; font-weight: 600; max-width: 22em; padding: 10px 14px; border-radius: 10px; background: rgba(108, 191, 143, .1); color: #bfe5cf; }
.pv-chart { display: block; width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.pv-chart .band { fill: rgba(91, 140, 255, .08); }
.pv-chart text { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.pv-chart .base { stroke: var(--card-border); }
.pv-chart .area { fill: rgba(91, 140, 255, .14); }
.pv-chart .line { fill: none; stroke: var(--pv-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pv-view.enter .pv-chart .line { stroke-dasharray: 1; animation: pvDraw 1.4s var(--ease) both .2s; }
.pv-view.enter .pv-chart .area { animation: pvFade .8s ease both .9s; }
@keyframes pvDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pvFade { from { opacity: 0; } }

.pv-insight { font-size: 16px; margin-bottom: 18px; }
.pv-heat { display: grid; grid-template-columns: 36px repeat(var(--cols), minmax(0, 1fr)); gap: 4px; }
.pv-hh { font-size: 11px; color: var(--muted); text-align: left; white-space: nowrap; overflow: visible; }
.pv-hd { font-size: 12px; color: var(--muted); align-self: center; }
.pv-hc { aspect-ratio: 1.5; border-radius: 4px; background: rgba(91, 140, 255, var(--a)); }
.pv-view.enter .pv-hc { animation: pvCell .5s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes pvCell { from { opacity: 0; transform: scale(.6); } }
.pv-legend { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.pv-legend i { width: 120px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, rgba(91, 140, 255, .1), rgba(91, 140, 255, 1)); }

.pv-alert { padding: 12px 16px; border-radius: 10px; background: rgba(208, 104, 90, .12); color: #f0c4bd; font-size: 15px; margin-bottom: 18px; }
.pv-alert b { color: #ffd9d3; }
.pv-rank { display: grid; gap: 4px; margin-top: 10px; }
.pv-rrow { display: grid; grid-template-columns: 22px minmax(0, 1.1fr) minmax(0, 2fr) 4.5em 4.5em 7.5em; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.pv-rrow.bad { background: rgba(208, 104, 90, .08); }
.pv-rrow.bad .pv-rbar i { background: var(--pv-bad); }
.pv-rnum { color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-rname { font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.pv-rval { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pv-go, .pv-change { justify-self: end; font: inherit; font-size: 13px; font-weight: 600; color: #c9d8ff; background: rgba(91, 140, 255, .14); border: 0; border-radius: 8px; padding: 7px 12px; cursor: pointer; min-height: 32px; }
.pv-go:hover, .pv-change:hover { background: rgba(91, 140, 255, .24); }

.pv-sede-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.pv-title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.pv-title .pv-delta { margin-left: 8px; vertical-align: middle; }
.pv-summary { max-width: 28em; font-size: 15px; color: #d9d4cc; }
.pv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 22px; }
.pv-kpis > div { background: var(--pv-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pv-kpis span:first-child { font-size: 13px; color: var(--muted); }
.pv-kpis b { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.pv-kpis b small { font-size: 14px; font-weight: 500; color: var(--muted); }
.pv-points { display: grid; gap: 4px; margin-top: 10px; }
.pv-point { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--card-border); }
.pv-pname { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 14px; }
.pv-pname small { display: inline-flex; align-items: center; gap: 6px; }
.pv-pval { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-src { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 18px; font-size: 13px; color: var(--muted); }

.pv-extra { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 48px); }
.pv-extra li { border-top: 1px solid var(--card-border); padding-top: 14px; font-size: 14.5px; color: var(--muted); }
.pv-extra b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* Panel plegado: adelanto que se desvanece y botón para abrirlo */
.pv-more { overflow: clip; transition: max-height .7s var(--ease); }
.pv:not(.open) .pv-more { -webkit-mask-image: linear-gradient(#000 55%, transparent 98%); mask-image: linear-gradient(#000 55%, transparent 98%); }
.pv:not(.open) .pv-tabs .run::after { animation: none; }
.pv-toggle-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: -56px; }
.pv.open .pv-toggle-wrap { margin-top: clamp(32px, 4vw, 48px); }
.pv-toggle { --btn-bg: #fff; --btn-hover: #e9e6e0; --btn-ink: #141312; }
.pv-toggle-note { font-size: 13px; color: var(--muted); }
.pv.open .pv-toggle-note { display: none; }
@media (prefers-reduced-motion: reduce) { .pv-more { transition: none; } }

.trial { font-size: 14px; color: var(--muted); margin-top: 14px; animation: fade 1s .6s both; }
.lead-form .trial { margin-top: 2px; text-align: center; animation: none; }
.foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a, .foot span a { margin-left: 0; }

@media (max-width: 960px) {
  .pv-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pv-side { display: none; }
  .pv-grid { grid-template-columns: minmax(0, 1fr); }
  .pv-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pv-bar .pv-url { display: none; }
  .pv-tabs { flex-wrap: nowrap; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .pv-goal { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .pv-gbar { grid-column: 1 / -1; grid-row: 2; }
  .pv-gnum { grid-row: 3; }
  .pv-badge { grid-row: 1; grid-column: 2; }
  .pv-rrow { grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 6px 10px; }
  .pv-rbar { grid-column: 2 / -1; grid-row: 2; }
  .pv-rname { white-space: normal; flex-wrap: wrap; gap: 4px 8px; }
  .pv-rrow > span:last-child:empty { display: none; }
  .pv-go { grid-column: 2 / -1; justify-self: start; }
  .pv-vrow { grid-template-columns: minmax(0, 1fr) auto; }
  .pv-calc { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .pv-vrow b { grid-row: 1; grid-column: 2; min-width: 0; }
  .pv-kpis { grid-template-columns: minmax(0, 1fr); }
  .pv-point { grid-template-columns: minmax(0, 1fr) auto; }
  .pv-change { grid-column: 1 / -1; justify-self: start; }
  .pv-hh { font-size: 0; }
  .pv-hh:nth-child(4n + 2) { font-size: 10px; }
  .pv-heat { grid-template-columns: 30px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; }
  .pv-extra { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .foot-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-view.enter .pv-card, .pv-view.enter [style*="--w"], .pv-view.enter .pv-hc, .pv-view.enter .pv-chart .line, .pv-view.enter .pv-chart .area { animation: none; }
}

/* ===== Diseños hechos: la sección de impacto ===== */
.show {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  --muted: rgba(255, 255, 255, .78);
  --btn-bg: #fff;
  --btn-hover: #e9e6e0;
  --btn-ink: #141312;
  --accent-text: #fff;
  background: #0b0c0e;
}
.show-bg { position: absolute; inset: 0; z-index: -2; animation: showDrift 26s ease-in-out infinite alternate; }
.show-bg-img {
  position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; max-width: none;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1);
}
.show-bg-img.is-on { opacity: 1; }
@keyframes showDrift { from { transform: translate3d(-2%, 1.5%, 0) rotate(-1deg); } to { transform: translate3d(2%, -1.5%, 0) rotate(1deg); } }
/* Grano fino y sombra a la izquierda para que el texto se lea sobre cualquier color */
.show::before, .show::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.show::before {
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 9, 11, .62) 0%, rgba(8, 9, 11, .2) 45%, rgba(8, 9, 11, 0) 70%);
}
.show::after {
  z-index: 3;
  opacity: .5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.show-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  min-height: min(100svh, 940px);
  padding: clamp(96px, 11vw, 150px) var(--pad) clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.show-copy h2 { font-size: clamp(40px, 5.4vw, 88px); font-weight: 800; letter-spacing: -.04em; line-height: .98; text-wrap: balance; }
.show-copy p { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); margin: 24px 0 34px; max-width: 26em; }

.show-stage { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); min-width: 0; }
.show-frame {
  position: relative;
  height: clamp(300px, 52vh, 560px);
  border: 0; padding: 0; background: none; cursor: pointer;
  perspective: 1200px;
}
.show-frame:focus-visible { outline: 2px solid #fff; outline-offset: 8px; border-radius: 22px; }
.show-piece {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  border-radius: clamp(12px, 1.4vw, 20px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 40px 80px -30px rgba(0, 0, 0, .75);
  will-change: transform, filter, opacity;
}
.show-piece.tall { border-radius: 6px; max-height: 100%; }

/* Líneas de velocidad que cruzan al cambiar de diseño */
.show-inner::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-56deg, transparent 0 46px, rgba(255, 255, 255, .5) 46px 47px, transparent 47px 140px);
  opacity: 0;
  transform: translateX(30%);
}
.show.whoosh .show-inner::after { animation: whoosh .75s cubic-bezier(.16, 1, .3, 1); }
@keyframes whoosh {
  0% { opacity: 0; transform: translateX(30%); }
  25% { opacity: .35; }
  100% { opacity: 0; transform: translateX(-30%); }
}

.show-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 20px; }
.show-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.show-meta span { font-size: 14px; color: var(--muted); }
.show-meta b { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.015em; }
.show-ticks { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 6px; }
.show-ticks i { position: relative; flex: 1; height: 2px; background: rgba(255, 255, 255, .25); border-radius: 2px; overflow: hidden; }
.show-ticks i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.show-ticks i.done::after { transform: scaleX(1); }
.show.is-live .show-ticks i.now::after { animation: tick linear forwards; animation-duration: inherit; }
.show.is-paused .show-ticks i.now::after { animation-play-state: paused; }
@keyframes tick { to { transform: scaleX(1); } }
.show-pause {
  grid-column: 2; grid-row: 1;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.show-pause:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.show-pause svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.show-pause .i-play { display: none; fill: currentColor; stroke: none; }
.show.is-paused .show-pause .i-play { display: block; }
.show.is-paused .show-pause .i-pause { display: none; }

@media (max-width: 860px) {
  .show-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 88px; align-items: start; }
  .show::before { background: linear-gradient(180deg, rgba(8, 9, 11, .55) 0%, rgba(8, 9, 11, .1) 50%, rgba(8, 9, 11, .35) 100%); }
  .show-frame { height: clamp(240px, 62vw, 420px); }
  .show-copy p { margin: 18px 0 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .show-bg { animation: none; }
  .show.whoosh .show-inner::after { animation: none; }
}

/* Sin WebGL: página completa con imagen fija, sin objetos 3D */
body.no3d #stage, body.no3d .pins, body.no3d .scrim { display: none; }
body.no3d .scene.theme-light { background: var(--light-bg); }
body.no3d .scene.theme-dark { background: var(--app-bg); }
body.no3d .nav { background: var(--blue-bg); }
body.no3d .scene { height: auto; }
body.no3d .stick { position: static; height: auto; padding-top: 110px; padding-bottom: 40px; }
body.no3d .panel, body.no3d .contact-inner { width: 100%; max-width: 720px; }
body.no3d .qr-hint { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1 .line > span, .lead, .cta, .scroll-hint { animation: none; }
  .btn { transition: none; }
  .convo::before { animation: none; }
}

/* ===== Controles deslizantes y tarjeta de cálculo (precios e inversionistas) ===== */
.rng-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; }
.rng-field label { font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; }
.rng-field output { font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rng-field .rng { grid-column: 1 / -1; }
.rng {
  --p: 50%; --rng-on: var(--accent); --rng-off: var(--card-border);
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 32px; background: transparent; cursor: pointer; touch-action: pan-y;
}
.rng::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--rng-on) var(--p), var(--rng-off) var(--p)); }
.rng::-moz-range-track { height: 4px; border-radius: 2px; background: var(--rng-off); }
.rng::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--rng-on); }
.rng::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--rng-on); box-shadow: 0 2px 6px rgba(5, 6, 8, .25);
  transition: transform .12s var(--ease);
}
.rng::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--rng-on); box-shadow: 0 2px 6px rgba(5, 6, 8, .25); }
.rng:active::-webkit-slider-thumb { transform: scale(1.12); }
.rng:focus-visible { outline: none; }
.rng:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.rng:focus-visible::-moz-range-thumb { outline: 2px solid var(--accent-text); outline-offset: 3px; }
@media (pointer: coarse) { .rng { height: 44px; } }

.calc-card {
  position: relative; isolation: isolate; overflow: clip; min-width: 0;
  padding: clamp(24px, 3.2vw, 44px); border-radius: 24px;
  color: #fff; background: #050608;
  box-shadow: 0 40px 80px -40px rgba(5, 6, 8, .6);
}
.calc-card::before, .calc-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.calc-card::before {
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(42, 99, 240, .55) 0%, rgba(42, 99, 240, 0) 70%),
    radial-gradient(50% 50% at 0% 110%, rgba(29, 78, 216, .6) 0%, rgba(29, 78, 216, 0) 72%),
    linear-gradient(150deg, #050608 0%, #080b18 60%, #0e2f9e 100%);
}
.calc-card::after {
  opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.calc-kicker { color: #a9b6d6; font-size: 15px; font-weight: 600; }
.calc-big { font-size: clamp(44px, 5.4vw, 84px); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-sub { color: #c9d3ea; font-size: clamp(16px, 1.3vw, 19px); margin-top: 8px; }
.calc-rows { margin: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.calc-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.calc-rows dt { font-weight: 600; font-size: 16px; min-width: 0; }
.calc-rows dt span { display: block; color: #a9b6d6; font-weight: 500; font-size: 14px; }
.calc-rows dd { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-accent dd { color: #c4d7ff; }
.calc-card .btn-primary { --btn-bg: #fff; --btn-hover: #e6edff; --btn-ink: #123aa8; }
.calc-note { color: #a9b6d6; font-size: 14px; margin-top: 14px; }

/* ===== Precios ===== */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.price .block-title { margin-bottom: clamp(28px, 3.4vw, 48px); max-width: 12em; }
.price-tiers { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.price-tiers li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--card-border); border-radius: 12px; color: var(--muted); transition: background .16s ease, color .16s ease, border-color .16s ease; }
.price-tiers span { font-size: 13px; }
.price-tiers b { font-size: clamp(15px, 1.2vw, 17px); font-weight: 700; color: var(--text); transition: color .16s ease; }
.price-tiers li.on { background: var(--text); border-color: var(--text); color: #cfc8bc; }
.price-tiers li.on b { color: var(--light-bg); }
.price-inc { list-style: none; margin-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--card-border); }
.price-inc li { padding: 14px 0; border-bottom: 1px solid var(--card-border); font-size: clamp(16px, 1.2vw, 18px); }
.price-legal { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.price-card-off .calc-rows { display: none; }
.price-card-off .calc-sub { margin-bottom: clamp(22px, 2.6vw, 34px); max-width: 26em; }
@media (max-width: 960px) {
  .price { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .price-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
