/* SOAD Lite: página del producto. Paleta y tipografía de SOAD Lite (static/css/app.css):
   azul marino para títulos y un solo azul de acción; el degradado azul→cian de SOAD queda solo
   en el logo y en el botón principal. Verde, ámbar y rojo son estados de la app: aquí no se usan.
   La personalidad sale de mostrar el producto (hero con la conversación real, panel de
   funciones, antes y después), no de adornos. */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format("woff2"); }

:root {
  --navy: #102f5f;
  --navy-2: #163d75;
  --blue: #2f6ff2;
  /* Botón principal: el degradado de SOAD con contraste suficiente para el texto blanco. */
  --grad-btn: linear-gradient(135deg, #1f4fc4, #2f6ff2);

  --bg: #f6f9fe;
  --bg-tint: #edf3fc;
  --surface: #ffffff;
  --text: #102f5f;
  --text-muted: #4a5f80;
  --border: #dbe5f4;
  --accent: #2f6ff2;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fe;
  --accent-text: #1f56cf; /* azul para texto chico: 5:1 o más sobre los fondos claros */
  --shadow: 0 24px 56px rgba(16, 47, 95, .14), 0 2px 6px rgba(16, 47, 95, .06);
  --shadow-sm: 0 6px 18px rgba(16, 47, 95, .07);

  --radius: 16px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --gutter: 16px;
  --sec-y: clamp(72px, 9vw, 120px);
  /* Una sola curva para todo el movimiento: arranca rápido y se asienta suave. */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1730; --bg-tint: #0f1f3d; --surface: #132748; --text: #e8eefb; --text-muted: #a9b9d6;
    --border: #22395f; --accent: #5b93f7; --accent-ink: #06142b; --accent-soft: #1a3263; --accent-text: #8fb5ff;
    --shadow: 0 24px 56px rgba(0, 0, 0, .45); --shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1730; --bg-tint: #0f1f3d; --surface: #132748; --text: #e8eefb; --text-muted: #a9b9d6;
  --border: #22395f; --accent: #5b93f7; --accent-ink: #06142b; --accent-soft: #1a3263; --accent-text: #8fb5ff;
  --shadow: 0 24px 56px rgba(0, 0, 0, .45); --shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 Poppins, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 Poppins, sans-serif; text-decoration: none; cursor: pointer;
  transition: box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 20px rgba(47, 111, 242, .28); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(47, 111, 242, .38); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }

/* Barra de navegación */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: none; margin-left: auto; gap: 4px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 12px; border-radius: 10px; }
.nav-links a:not(.btn):hover { background: var(--accent-soft); }
.nav-links a[aria-current="true"] { color: var(--accent-text); background: var(--accent-soft); }
/* «Iniciar sesión» siempre a la vista: quien ya es cliente entra desde el celular. */
.nav-cta { margin-left: auto; }
.menu-btn {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 12px; font-size: 1.4rem; cursor: pointer;
}
.nav.open .nav-links {
  display: flex; flex-direction: column; position: absolute; left: var(--gutter); right: var(--gutter); top: 68px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 8px;
}
.nav.open .nav-links a:not(.btn) { padding: 14px 12px; }
@media (max-width: 400px) {
  .nav-row { gap: 10px; }
  .nav-cta { padding-inline: 14px; }
  .nav-cta .bi { display: none; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
  .menu-btn { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 28px;
  background: radial-gradient(55% 60% at 90% 20%, rgba(47, 111, 242, .12), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--accent-text); letter-spacing: .02em; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; margin: 14px 0 18px; max-width: 19ch; }
.hl { color: var(--accent-text); }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-muted); max-width: 38ch; }
.lead strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--text-muted); font-size: .9rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .bi { color: var(--accent); font-size: 1.05rem; }
.hero-visual { position: relative; isolation: isolate; padding-bottom: 72px; }
/* La misma trama de puntos de los paneles, detrás de la captura del hero. */
.hero-visual::before {
  content: ""; position: absolute; z-index: -1; right: -34px; top: -34px; width: 220px; height: 220px; opacity: .5;
  background: radial-gradient(var(--accent) 1.3px, transparent 1.7px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 70%);
}
.demo-note { margin-top: 28px; font-size: .78rem; color: var(--text-muted); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .hero-visual { margin-right: -72px; padding-bottom: 96px; }
}

/* Conversación del hero: el mismo aspecto que la pantalla de WhatsApp de la app */
.chat {
  position: absolute; left: -6%; bottom: 0; width: min(390px, 84%); margin: 0;
  background: #f5f8fd; color: #173052; border: 1px solid #dbe5f4; border-radius: 16px;
  box-shadow: 0 24px 56px rgba(16, 47, 95, .22); overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #ebeff7; }
.chat-head b { display: block; font-size: .85rem; line-height: 1.3; }
.chat-head small { display: block; font-size: .7rem; color: #5d6f8c; line-height: 1.3; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e8f0fe; color: #1f56cf; font-weight: 600; font-size: .72rem; }
.chat-tag { margin-left: auto; font-size: .62rem; font-weight: 600; padding: .25em .65em; border-radius: 999px; background: #e8f0fe; color: #1f56cf; white-space: nowrap; }
.chat-thread { display: flex; flex-direction: column; gap: 6px; padding: 12px; min-height: 212px; }
.msg { max-width: 86%; padding: 6px 10px; border-radius: 10px; font-size: .8rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(16, 47, 95, .06); }
.msg b { display: block; font-size: .64rem; color: #1f56cf; }
.msg.in { align-self: flex-start; background: #fff; }
.msg.out { align-self: flex-end; background: #e8f0fe; }
.msg.note { align-self: center; max-width: 96%; background: #fff; border: 1px solid #dbe5f4; color: #4a5f80; font-size: .7rem; text-align: center; box-shadow: none; }
.msg.note .bi { color: #2f6ff2; }
.msg.typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 10px 12px; background: #e8f0fe; }
.msg.typing span { width: 5px; height: 5px; border-radius: 50%; background: #6f86ab; animation: blink 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat.playing .msg:not(.show) { display: none; }
.chat.playing .msg.show { animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .hero-visual { padding-bottom: 0; }
  .chat { position: relative; left: auto; width: auto; margin: -36px 12px 0; }
}

/* Marcos de las capturas */
.browser { margin: 0; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--bg-tint); border-bottom: 1px solid var(--border); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.phone { margin: 0; padding: 7px; background: #0d1b33; border-radius: 30px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { border-radius: 23px; }
/* Clips: GIF de tareas reales en el sistema. */
.clip { display: block; width: 100%; height: auto; background: var(--bg-tint); }
.browser .clip { aspect-ratio: 16 / 10; }
.phone .clip { aspect-ratio: 390 / 844; border-radius: 23px; }

/* Detrás de cada pantalla: una trama de puntos y un halo azul, muy tenues. Entran con el
   panel, un poco después y en sentido contrario, para dar profundidad sin llamar la atención. */
.media { position: relative; isolation: isolate; }
.media::before, .media::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.media::before {
  right: -26px; top: -26px; width: 168px; height: 168px; opacity: .5;
  background: radial-gradient(var(--accent) 1.3px, transparent 1.7px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 70%);
}
.media::after {
  left: 6%; right: 0; top: 18%; bottom: -12%;
  background: radial-gradient(closest-side, rgba(47, 111, 242, .2), transparent); filter: blur(28px);
}
.js .panel:not([hidden]) .media::before { animation: drift .9s var(--ease) .1s both; }
@keyframes drift { from { opacity: 0; transform: translate(calc(var(--dir, 1) * -18px), 10px); } }
/* Sin margen a los lados (pantallas de menos de 1240 px) la trama no sale de la página. */
@media (max-width: 1239px) { .media::before { right: -6px; } }
@media (max-width: 640px) { .media::before { top: -18px; width: 120px; height: 120px; } }

/* Capturas que se pueden ampliar (el botón y el visor los agrega el JS). El botón va arriba,
   bajo la barra del navegador, porque abajo lo tapan la conversación y los recuadros. */
.zoomable { position: relative; }
.zoomable img { cursor: zoom-in; }
.zoom-btn {
  position: absolute; right: 10px; top: 42px; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text);
  font: 500 .8rem/1 Poppins, sans-serif; box-shadow: var(--shadow-sm); cursor: pointer;
  opacity: 0; transition: opacity .2s ease;
}
.phone .zoom-btn { top: auto; right: 50%; transform: translateX(50%); bottom: 18px; }
.zoomable:hover .zoom-btn, .zoom-btn:focus-visible { opacity: 1; }
@media (hover: none) { .zoom-btn { opacity: 1; } }
.viewer {
  width: min(1400px, 100vw - 32px); max-width: none; max-height: calc(100vh - 32px); padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow); overflow: hidden;
}
.viewer::backdrop { background: rgba(8, 20, 42, .72); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--border); }
.viewer-head p { flex: 1; font-size: .88rem; color: var(--text-muted); }
.viewer-close {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); font-size: 1.1rem; cursor: pointer;
}
.viewer-close:hover { background: var(--accent-soft); }
.viewer-body { overflow: auto; background: var(--bg-tint); }
.viewer-body img { width: 100%; }
.viewer.tall { width: auto; }
.viewer.tall .viewer-body { display: grid; place-items: center; padding: 16px; }
.viewer.tall .viewer-body img { width: auto; max-height: calc(100vh - 140px); border-radius: 16px; }
.viewer-hint { display: none; }
/* En el celular la captura se ve a tamaño legible y se recorre deslizando. */
@media (max-width: 700px) {
  .viewer:not(.tall) .viewer-body img { width: 860px; max-width: none; }
  .viewer:not(.tall) .viewer-hint { display: block; padding: 8px 18px; font-size: .78rem; color: var(--text-muted); border-top: 1px solid var(--border); }
}

/* Secciones */
.section { padding: var(--sec-y) 0; }
/* Las secciones con fondo entran y salen en degradado, sin cortes de color. */
.tint { background: linear-gradient(180deg, var(--bg), var(--bg-tint) 140px, var(--bg-tint) calc(100% - 140px), var(--bg)); }
.sec-head { max-width: 720px; margin: 0 auto 48px; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.sub { margin-top: 14px; font-size: 1.06rem; color: var(--text-muted); }
h3 { font-size: 1.1rem; font-weight: 600; }

/* Antes y después */
.compare {
  max-width: 980px; margin: 0 auto; display: grid; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.compare-col { display: none; }
.compare-row { display: grid; border-top: 1px solid var(--border); }
.compare-row:first-of-type { border-top: 0; }
.compare-row > div { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; }
.compare-row .bi { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 1.15rem; }
.compare-row h3 { font-size: 1.02rem; margin-bottom: 2px; }
.compare-row p { color: var(--text-muted); font-size: .95rem; }
.before { background: var(--bg); }
.before .bi { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.before h3 { color: var(--text-muted); font-weight: 500; }
.after .bi { background: var(--accent-soft); color: var(--accent); }
@media (min-width: 760px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .compare-col {
    display: block; padding: 14px 24px; font-size: .78rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; border-bottom: 1px solid var(--border);
  }
  .compare-before { background: var(--bg); color: var(--text-muted); }
  .compare-after { color: var(--accent-text); }
  .compare-row { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
  .compare-row:first-of-type { border-top: 0; }
  .after { position: relative; }
  .after::before {
    content: ""; position: absolute; left: -10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232f6ff2' d='M6.3 3.3a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 0 1-1.4-1.4L9.6 8 6.3 4.7a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / 10px no-repeat;
    border: 1px solid var(--border);
  }
}

/* Funciones: panel con una pestaña por módulo */
.tabs {
  display: flex; gap: 4px; padding: 5px; margin: 0 auto 40px; width: max-content; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm);
  overflow-x: auto; scrollbar-width: none;
}
.tabs[hidden], .tabs::-webkit-scrollbar { display: none; }
/* Si las pestañas no caben, el borde se desvanece del lado donde quedan más. */
.tabs.more-end { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tabs.more-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.tabs.more-start.more-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.tabs button {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; color: var(--text-muted);
  font: 500 .92rem/1 Poppins, sans-serif; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
/* Mientras el carrusel avanza solo, la pestaña activa muestra cuánto falta para la siguiente. */
.tabs button { position: relative; overflow: hidden; }
.tabs.auto button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .55; transform-origin: left; transform: scaleX(var(--p, 0));
}
:root[data-theme="dark"] .tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); } }
.panel { display: grid; gap: 32px; align-items: center; padding: 8px 0; }
.panel + .panel { margin-top: 64px; }
.js .explorer .panel + .panel { margin-top: 0; }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; margin-bottom: 10px; }
.panel-copy > p { font-size: 1.06rem; color: var(--text-muted); }
/* Carrusel: el panel nuevo entra deslizándose desde el lado hacia donde se avanza. */
.panel { min-width: 0; }
.js .panel:not([hidden]) { animation: slide-in .55s var(--ease) both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 36px)); } }
/* minmax(0, …): el GIF no ensancha su columna; texto y pantalla mantienen sus proporciones. */
@media (min-width: 960px) { .panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; min-height: 460px; } }

.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232f6ff2' d='M12.7 4.7a1 1 0 0 1 0 1.4l-5.3 5.3a1 1 0 0 1-1.4 0L3.3 8.7a1 1 0 0 1 1.4-1.4l2 2 4.6-4.6a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 440px; margin-inline: auto; width: 100%; }
.phones .phone:last-child { transform: translateY(28px); }

/* Detalle ampliado sobre la captura (repite datos de la misma captura) */
.shot-wrap { position: relative; }
.callout {
  position: absolute; right: -16px; bottom: -28px; width: min(280px, 72%); padding: 14px 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-size: .8rem;
}
.callout-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.pill { font-size: .66rem; padding: .2em .65em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.receipt .line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.receipt .line small { display: block; color: var(--text-muted); font-size: .7rem; }
.receipt .muted { color: var(--text-muted); }
.receipt .total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-size: 1rem; font-weight: 700; }
.fields dl { margin: 0; display: grid; gap: 6px; }
.fields dl div { display: grid; gap: 1px; }
.fields dt { color: var(--text-muted); font-size: .7rem; }
.fields dd { margin: 0; font-weight: 600; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.js .panel:not([hidden]) .callout > * { animation: rise .35s ease both; }
.js .panel:not([hidden]) .callout > :nth-child(2) { animation-delay: .1s; }
.js .panel:not([hidden]) .callout > :nth-child(3) { animation-delay: .2s; }
.js .panel:not([hidden]) .callout > :nth-child(4) { animation-delay: .3s; }
.js .panel:not([hidden]) .callout > :nth-child(5) { animation-delay: .4s; }
.js .panel:not([hidden]) .callout > :nth-child(6) { animation-delay: .5s; }
/* Con los clips en marcha el resultado ya se ve en la pantalla: el recuadro no la tapa. */
.explorer.playing .callout { display: none; }
@media (max-width: 640px) {
  .callout { position: relative; right: auto; bottom: auto; width: auto; margin: -28px 12px 0; }
}

/* Y además */
.mini-grid { display: grid; gap: 1px; margin-top: 88px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mini { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); padding: 24px; transition: background-color .3s ease; }
.mini:hover { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.mini .bi { transition: transform .3s var(--ease); }
.mini:hover .bi { transform: translateY(-2px); }
.mini .bi { flex: none; font-size: 1.3rem; color: var(--accent); margin-top: 1px; }
.mini h3 { font-size: 1rem; margin-bottom: 4px; }
.mini p { color: var(--text-muted); font-size: .92rem; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }

/* Para quién */
.who-grid { display: grid; gap: 16px; }
.who, .plan { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.who:hover, .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.who {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); scroll-margin-top: 96px; border-top: 3px solid var(--accent);
}
.who .bi { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.4rem; }
.who h3 { margin: 18px 0 8px; font-size: 1.25rem; }
.who p { color: var(--text-muted); }
@media (min-width: 760px) { .who-grid { grid-template-columns: repeat(3, 1fr); } }

/* Panamá: banda azul marino */
/* La banda va inset y redondeada, como el cierre, para que no corte la página de lado a lado. */
.band {
  color: #fff; margin-inline: clamp(8px, 1.4vw, 16px); border-radius: 28px;
  background: radial-gradient(55% 75% at 88% 0%, rgba(47, 111, 242, .32), transparent 70%), var(--navy);
}
.band .kicker { color: #8fb5ff; }
.band .sub { color: rgba(255, 255, 255, .75); }
.panama { display: grid; gap: 40px; align-items: center; }
.pa-grid { display: grid; gap: 1px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
.pa-grid li { background: color-mix(in srgb, var(--navy) 92%, transparent); padding: 26px 24px; }
.pa-grid .bi { font-size: 1.4rem; color: #8fb5ff; }
.pa-grid h3 { font-size: 1.05rem; margin: 12px 0 4px; }
.pa-grid p { color: rgba(255, 255, 255, .72); font-size: .94rem; }
@media (min-width: 640px) { .pa-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .panama { grid-template-columns: .85fr 1.15fr; gap: 72px; } }

/* Planes */
.plans { display: grid; gap: 18px; margin-bottom: 36px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 1.45rem; font-weight: 700; }
.plan-for { margin-top: 6px; color: var(--text-muted); }
.plan .ticks { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.plan-hl { border: 2px solid var(--accent); box-shadow: var(--shadow); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } .plan-for { min-height: 3.2em; } }

/* Preguntas */
.faq-layout { display: grid; gap: 32px; }
.faq-head .btn { margin-top: 24px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--accent); }
.faq details[open] > p { animation: rise .35s var(--ease) both; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding-bottom: 18px; color: var(--text-muted); }
@media (min-width: 1000px) {
  .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq-head { position: sticky; top: 100px; }
}

/* Cierre */
.closing { padding: var(--sec-y) 0; }
.closing-box {
  text-align: center; color: #fff; border-radius: 24px; padding: clamp(44px, 7vw, 76px) 20px;
  background: radial-gradient(70% 90% at 100% 0%, rgba(47, 111, 242, .4), transparent 60%), var(--navy);
}
.closing-box img { margin: 0 auto 20px; height: 52px; width: auto; }
.closing-box h2 { font-size: clamp(2rem, 5vw, 3rem); }
.closing-box p { margin-top: 12px; color: rgba(255, 255, 255, .8); font-size: 1.08rem; }
.center-row { justify-content: center; }
@media (max-width: 520px) { .closing-box .btn { width: 100%; } }

/* Pie */
.footer { border-top: 1px solid var(--border); padding: 40px 0 28px; color: var(--text-muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 24px; }
.footer-grid img { height: 40px; width: auto; margin-bottom: 10px; }
.footer address { font-style: normal; display: grid; gap: 0; }
.footer address p { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.footer address .bi { color: var(--accent); }
.footer a { color: var(--text); display: inline-block; padding-block: 10px; }
.legal { margin-top: 28px; font-size: .85rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; } }

/* Aparición al hacer scroll (solo si hay JS y el usuario no pidió menos movimiento). Los
   elementos de un mismo grupo llegan uno tras otro (--i lo pone el JS). */
.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Entrada del hero al cargar: el texto sube en orden y luego aparece el producto. */
.js .hero-copy > * { animation: rise-in .8s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .hero-visual .browser { animation: rise-in 1s var(--ease) .2s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-copy > *, .js .hero-visual .browser, .faq details[open] > p { animation: none; }
  .js .panel:not([hidden]) .media::before { animation: none; }
  .who, .plan, .mini, .mini .bi { transition: none; }
  .who:hover, .plan:hover, .mini:hover .bi { transform: none; }
  .btn, .tabs button, .zoom-btn { transition: none; }
  .msg.typing span, .js .panel:not([hidden]), .js .panel:not([hidden]) .callout > * { animation: none; }
}
