/* Ibari · landing. Paleta tomada de la app de escritorio. Pocos efectos: texto, una tabla y capturas; las animaciones viven aparte (animaciones.css) y respetan «reducir movimiento». */

@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --primary: #4b49c9;
  --on-primary: #ffffff;
  --success: #1d7d44;
  --danger: #c0392b;
  --bg: #f6f6f8;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #5d6877;
  --border: #d9dce3;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[data-theme="dark"] {
  --primary: #8f8df2;
  --on-primary: #14161f;
  --success: #52c27e;
  --danger: #ff8a7a;
  --bg: #13151c;
  --surface: #1c202b;
  --text: #e8ebf1;
  --muted: #a1abbb;
  --border: #323a4b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 10px 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav nav { display: flex; gap: 18px; margin-left: auto; font-size: 15px; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--text); text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.theme { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 1px solid var(--border); border-radius: 8px; padding: 4px 12px; cursor: pointer; }
.theme:hover { color: var(--text); }

main { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.hero { position: relative; overflow: hidden; isolation: isolate; --lark: #fff; background: linear-gradient(155deg, #0a3a66 0%, #0b6e99 50%, #18c8cb 100%); color: #fff; padding: 64px 20px 0; }
[data-theme="dark"] .hero { --lark: #7ff3ff; background: linear-gradient(155deg, #0b6e99 0%, #0a4f73 50%, #06283d 100%); }
/* Las alondras del logo, como en Ibari móvil (Marea claro, Abismo oscuro): adornos grandes de fondo y dos pequeñas */
.hero::before, .hero::after, .hero-in::before, .hero-in::after { content: ""; position: absolute; z-index: -1; pointer-events: none; background: var(--lark); -webkit-mask: url("../assets/lark.png") center / contain no-repeat; mask: url("../assets/lark.png") center / contain no-repeat; }
.hero::before { top: -70px; right: -50px; width: 440px; height: 413px; opacity: .17; transform: rotate(-8deg); }
.hero::after { left: -70px; bottom: -130px; width: 380px; height: 356px; opacity: .13; transform: scaleX(-1) rotate(10deg); }
.hero-in { position: relative; }
.hero-in::before { top: -22px; right: 41%; width: 58px; height: 54px; opacity: .5; transform: rotate(-12deg); }
.hero-in::after { bottom: -26px; left: 46%; width: 38px; height: 36px; opacity: .38; transform: scaleX(-1) rotate(8deg); }
.hero-in { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .status { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35); }
.hero a { color: #fff; }
.hero h1 em { font-style: italic; white-space: nowrap; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .lead { color: rgba(255,255,255,.88); }

.wait { margin: 28px 0 0; max-width: 520px; }
.wait-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wait-row input[type="email"] { flex: 1 1 240px; min-width: 0; font: inherit; padding: 11px 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn { font: inherit; font-weight: 600; padding: 11px 22px; color: var(--on-primary); background: var(--primary); border: 0; border-radius: 8px; cursor: pointer; }
/* El botón principal rompe a propósito la paleta fría del hero: el amarillo es el único tono cálido y es lo primero que se ve */
.hero .btn { color: #1c1a00; background: #ffc247; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.fine { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.hero .fine { color: rgba(255,255,255,.78); }
.hero .msg.ok, .hero .msg.err { color: #fff; }
.msg { margin: 8px 0 0; min-height: 1.4em; font-weight: 500; }
.msg.ok { color: var(--success); }
.msg.err { color: var(--danger); }

.hero-card { background: #fff; color: #1f2430; border-radius: 14px; padding: 20px 22px; box-shadow: 0 24px 50px -24px rgba(3,28,48,.7); font-variant-numeric: tabular-nums; }
[data-theme="dark"] .hero-card { background: #1c202b; color: #e8ebf1; }
.hc-title { margin: 0 0 8px; font-size: 14px; color: #5d6877; }
[data-theme="dark"] .hc-title, [data-theme="dark"] .hc-note { color: #a1abbb; }
.hc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 11px 0; border-bottom: 1px solid #e3e5ec; }
[data-theme="dark"] .hc-row { border-color: #323a4b; }
.hc-row b { color: #1d7d44; }
[data-theme="dark"] .hc-row b { color: #52c27e; }
.hc-note { margin: 10px 0 0; font-size: 13px; color: #5d6877; }
.hero-benefits { list-style: none; margin: 56px auto 0; padding: 22px 0 26px; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid rgba(255,255,255,.22); font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); }
.hero-benefits strong { display: block; color: #7ff3ff; font-size: 16px; margin-bottom: 2px; }

.block { padding: 36px 0; border-top: 1px solid var(--border); }
.block h2 { font-size: 1.6rem; margin-bottom: 16px; }
.block h3 { font-size: 1.05rem; margin-bottom: 10px; }
.small { font-size: 14px; color: var(--muted); }
.solo-movil { display: none; }

.check { margin: 22px 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
.check table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.check th, .check td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.check thead th { font-size: 14px; font-weight: 500; color: var(--muted); }
.check tbody th { text-align: left; font-weight: 500; }
.check tbody tr:last-child > * { border-bottom: 0; }
.check .ok { color: var(--success); font-weight: 600; }

.shot { margin-top: 28px; }
.shot img { border: 1px solid var(--border); border-radius: 10px; }
.shot .small { margin-top: 8px; }
[data-theme="dark"] .show-light, :root:not([data-theme="dark"]) .show-dark { display: none; }

.cmp { margin: 22px 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
.cmp table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.cmp th, .cmp td { padding: 11px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.cmp thead th { font-size: 14px; font-weight: 500; color: var(--muted); }
.cmp tbody th { font-weight: 500; width: 17%; }
.cmp td { color: var(--muted); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp .me { color: var(--text); font-weight: 500; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.cmp thead .me { color: var(--primary); font-weight: 600; }

.doc { padding-top: 48px; padding-bottom: 32px; }
.doc h1 { font-size: 2rem; margin-bottom: 6px; }
.doc h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.doc h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }

.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 18px 14px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 600; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { font-size: 15px; color: var(--muted); line-height: 1.55; }

.feats, .capas { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feats li, .capas li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.feats li, .capas li { display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; align-items: start; }
.feats .ico, .capas .ico { grid-row: 1 / span 2; width: 54px; height: 54px; padding: 13px; border-radius: 14px; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); }
.feats strong, .capas strong { display: block; margin-bottom: 4px; }
.feats span, .capas span { font-size: 15px; color: var(--muted); line-height: 1.55; }
.tag-dev { display: inline-block; margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--primary); border: 1px solid var(--primary); border-radius: 999px; padding: 2px 12px; }
.mirror { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mirror li { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 10px; padding: 16px 18px; }
.mirror q { display: block; font-size: 1.05rem; line-height: 1.5; font-weight: 500; quotes: none; }
.mirror span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

.ideas { list-style: none; margin: 22px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ideas li { padding: 16px 18px; border-radius: 10px; color: #fff; background: linear-gradient(155deg, #2f2d9f, #4b49c9); }
[data-theme="dark"] .ideas li { background: linear-gradient(155deg, #1b1a4d, #34318a); }
.ideas strong { display: block; margin-bottom: 6px; font-size: 1.02rem; line-height: 1.35; }
.ideas span { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.86); }
.steps-4 { grid-template-columns: repeat(2, 1fr); }

.chips { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 6px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: 15px; line-height: 1.5; }
.bank-form { margin-top: 22px; }
.bank-form label { display: block; font-weight: 500; margin-bottom: 8px; }
.bank-form input[type="text"], .bank-form input[type="email"] { flex: 1 1 180px; min-width: 0; font: inherit; padding: 11px 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.cols ul { margin: 0; padding-left: 1.1em; }
.cols li { margin-bottom: 0.7em; }

details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 500; padding: 9px 0; }
details p { margin: 10px 0 0; color: var(--muted); }

.sitefoot { background: #e9ebf0; color: #3b4352; margin-top: 40px; padding: 40px 20px 24px; font-size: 15px; line-height: 1.6; }
[data-theme="dark"] .sitefoot { background: #1f2330; color: #c3cad6; }
.sitefoot a { color: inherit; }
.sitefoot-in { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.sitefoot strong { display: block; margin-bottom: 6px; color: var(--text); }
.sitefoot p { margin: 0; }
.sitefoot-copy { max-width: 1040px; margin: 28px auto 0 !important; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.12); font-size: 14px; }
[data-theme="dark"] .sitefoot-copy { border-color: rgba(255,255,255,.14); }

/* Cinco vías, asistente móvil e IA en el teléfono */
.capas .ico { grid-row: 1 / span 3; }
.capas .estado { grid-column: 2; justify-self: start; margin-top: 8px; }
.capas .conc { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.estado { display: inline-block; font-style: normal; font-size: 12.5px; font-weight: 600; line-height: 1.5; padding: 2px 11px; border-radius: 999px; }
.estado.beta { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.estado.pronto { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.chip-linea { margin: 0 0 12px; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.vs-col { display: grid; gap: 4px; align-content: start; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.vs-col:hover { border-color: var(--primary); }
.vs-col[aria-selected="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); cursor: default; }
.vs-col .vs-ver { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--primary); }
.vs-col[aria-selected="true"] .vs-ver { visibility: hidden; }
.vs-panel { margin: 0 0 22px; }
.vs-panel[hidden] { display: none; }
.vs-esc { margin: 0; }
.vs-esc img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; }
.vs-esc figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.vs-col span { font-size: 15px; color: var(--muted); line-height: 1.55; }
.vs-col .vs-rol { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }

.ia { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; margin: 22px 0; padding: 18px 20px; border-radius: 12px; color: #fff; background: linear-gradient(155deg, #0a3a66 0%, #0b6e99 55%, #18c8cb 100%); }
[data-theme="dark"] .ia { background: linear-gradient(155deg, #0b6e99 0%, #0a4f73 55%, #06283d 100%); }
.ia .ico { width: 54px; height: 54px; padding: 12px; border-radius: 14px; fill: none; stroke: #7ff3ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: rgba(255,255,255,.12); }
.ia strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.ia p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.92); }

.moviles { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 24px 0 8px; }
.moviles figure { margin: 0; flex: 1 1 220px; max-width: 290px; }
.moviles img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 18px 40px -22px rgba(3,28,48,.55); }
.moviles figcaption { margin-top: 8px; text-align: center; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .theme { margin-left: auto; }
  .hero { padding-top: 36px; }
  .theme { min-height: 40px; padding: 6px 16px; }
  .solo-movil { display: block; }
  .hero::before { width: 270px; height: 253px; top: -50px; right: -60px; }
  .hero::after { width: 240px; height: 225px; bottom: -90px; left: -70px; }
  .hero-in::before, .hero-in::after { display: none; }
  .hero-in, .hero-benefits { grid-template-columns: 1fr; gap: 24px; }
  .cols { grid-template-columns: 1fr; }
  .steps, .steps-4, .feats, .capas, .ideas, .mirror, .vs, .sitefoot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
