/* =========================================================
   emprend!ciencia · Apps a medida
   ========================================================= */
:root {
  color-scheme: light;
  --ink: #0b1226;
  --ink-2: #1c2540;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --surface-hover: #f8faff;
  --muted: #56607a;
  --line: rgba(11, 18, 38, .09);
  --line-strong: rgba(11, 18, 38, .22);
  --glass: rgba(255, 255, 255, .72);
  --nav-bg: rgba(245, 247, 251, .84);
  --solid: #0b1226;
  --solid-fg: #ffffff;
  --mix-base: white;
  --mix-text: black;
  --tint: #e6efff;
  --brand: #0061fe;
  --brand-2: #00c2ff;
  --brand-3: #00c2ff;
  --brand-soft: rgba(0, 97, 254, .08);
  --brand-text: #0052d6;
  --grad: linear-gradient(120deg, #0061fe 0%, #2f7dff 45%, #00c2ff 100%);
  --blob-1: #a9c8ff; --blob-2: #a6eeff; --blob-3: #cddcff; --blob-opacity: .55;
  --band: #081433;
  --band-glow: rgba(0, 97, 254, .5);
  --footer: #050b1c;
  --chrome: #e8ecf4; --chrome-dot: #c6ccd9; --chrome-line: rgba(11, 18, 38, .1);
  --ok: #047857; --err: #be123c;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(11, 18, 38, .04), 0 12px 32px -12px rgba(11, 18, 38, .14);
  --shadow-lg: 0 30px 60px -20px rgba(11, 18, 38, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --nav-h: 72px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e9eefb;
  --ink-2: #c9d3ea;
  --bg: #060a14;
  --surface: #0d1424;
  --surface-2: #121b2f;
  --surface-hover: #111a2d;
  --muted: #8e9ab5;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .24);
  --glass: rgba(13, 20, 36, .7);
  --nav-bg: rgba(6, 10, 20, .82);
  --solid: #e9eefb;
  --solid-fg: #060a14;
  --mix-base: #0d1424;
  --mix-text: white;
  --tint: #0b1a3d;
  --brand: #2f7dff;
  --brand-soft: rgba(47, 125, 255, .16);
  --brand-text: #7fb0ff;
  --blob-1: #0b4bd1; --blob-2: #006a8f; --blob-3: #1c2d7a; --blob-opacity: .38;
  --band: #0a1430;
  --band-glow: rgba(0, 97, 254, .45);
  --footer: #03060d;
  --chrome: #1a2336; --chrome-dot: #3a4560; --chrome-line: rgba(255, 255, 255, .08);
  --ok: #34d399; --err: #fb7185;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  transition: background-color .4s, color .4s;
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--solid); color: var(--solid-fg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad); z-index: 60; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.5em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s;
  white-space: nowrap; position: relative; isolation: isolate;
}
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 97, 254, .7); overflow: hidden; }
.btn--primary::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .4s; z-index: -1; }
.btn--primary:hover { transform: translateY(-2px); }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--surface); transform: translateY(-2px); }
.btn--sm { padding: .6em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--icon { width: 50px; height: 50px; padding: 0; border: 1px solid var(--line); background: var(--glass); color: var(--ink); }
.btn--icon:hover { background: var(--surface); transform: translateY(-2px); }
.btn--icon:hover .ico { transform: none; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }
.btn--outline-light { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; line-height: 1; }
.logo__img { height: 34px; width: auto; display: block; }
.logo__img--oscuro { display: none; }
:root[data-theme="dark"] .logo__img--claro { display: none; }
:root[data-theme="dark"] .logo__img--oscuro { display: block; }
.logo__tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); font-weight: 700; padding-left: 12px; border-left: 1px solid var(--line-strong); line-height: 1.35; }
.logo--footer .logo__img { height: 42px; display: block; }
@media (max-width: 480px) { .logo__tag { display: none; } .logo__img { height: 30px; } }
.nav__tools { display: flex; align-items: center; gap: 6px; }
.theme-toggle { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border: 1px solid var(--line); background: var(--glass); transition: background .25s, transform .4s var(--ease); }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle .ico { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.theme-toggle:hover .ico { transform: rotate(20deg); }
.theme-toggle .ico-sol { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sol { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-luna { display: none; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a:not(.btn) { padding: 8px 14px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--muted); transition: color .25s, background .25s; }
.nav__links a:not(.btn):hover { color: var(--ink); background: var(--brand-soft); }
.nav__links .btn { margin-left: 10px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav__toggle .ico { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); backdrop-filter: blur(14px); padding: 12px 16px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .35s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav__links .btn { margin: 10px 0 0; }
  .nav.menu-open { background: var(--bg); }
}

/* ---------- Fondos animados ---------- */
.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-opacity); will-change: transform; }
.b1 { width: 520px; height: 520px; background: var(--blob-1); top: -120px; right: -80px; animation: drift1 18s ease-in-out infinite alternate; }
.b2 { width: 420px; height: 420px; background: var(--blob-2); bottom: -160px; left: -120px; animation: drift2 22s ease-in-out infinite alternate; }
.b3 { width: 300px; height: 300px; background: var(--blob-3); top: 40%; left: 45%; animation: drift3 16s ease-in-out infinite alternate; }
.app-hero .b1 { background: color-mix(in srgb, var(--accent) 45%, var(--mix-base)); }
.app-hero .b2 { background: color-mix(in srgb, var(--accent) 25%, var(--blob-1)); }
@keyframes drift1 { to { transform: translate(-80px, 80px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(120px, -60px) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-60px, -80px) scale(.9); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

/* ---------- Hero portada ---------- */
.hero { position: relative; isolation: isolate; padding: calc(var(--nav-h) + 56px) 0 72px; min-height: min(100vh, 920px); display: flex; align-items: center; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); background: var(--brand-soft); padding: 7px 14px; border-radius: 999px; }
.eyebrow .ico { width: 1.1em; height: 1.1em; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 800; margin: 22px 0 22px; letter-spacing: -.04em; line-height: 1.02; }
.hero__title em, h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { display: flex; gap: 36px; margin: 44px 0 0; flex-wrap: wrap; }
.stats div { border-left: 2px solid var(--line); padding-left: 16px; }
.stats dt { font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stats dd { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }

.hero__visual { position: relative; height: 560px; }
.float { position: absolute; animation: bob 7s ease-in-out infinite; }
.float .device { box-shadow: var(--shadow-lg); }
.f1 { top: 40px; left: 4%; z-index: 2; transform: rotate(-7deg); animation-delay: -1s; }
.f2 { top: 0; left: 36%; z-index: 3; animation-delay: -3s; }
.f3 { top: 110px; right: 0; z-index: 1; transform: rotate(8deg); animation-delay: -5s; }
.f1 .device, .f3 .device { --w: 200px; }
.f2 .device { --w: 236px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
.orbit { position: absolute; inset: 8% 4%; border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 50%; animation: spin 40s linear infinite; z-index: 0; }
.orbit span { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-3); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-3) 25%, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 32px); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .f1 .device, .f3 .device { --w: 160px; }
  .f2 .device { --w: 190px; }
}
@media (max-width: 480px) {
  .hero__visual { height: 360px; }
  .f1 .device, .f3 .device { --w: 132px; }
  .f2 .device { --w: 160px; }
  .stats { gap: 22px; }
  .stats dt { font-size: 1.9rem; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 18px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 1.02rem; }
.marquee .ico { color: var(--brand); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--surface); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; margin: 18px 0 14px; letter-spacing: -.035em; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 600; color: var(--muted); transition: .3s var(--ease); }
.filter:hover { color: var(--ink); border-color: var(--line-strong); }
.filter.is-active { background: var(--solid); color: var(--solid-fg); border-color: var(--solid); }

/* Tarjetas de app */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s, scale .4s;
  display: flex; flex-direction: column;
}
.card.is-hidden { display: none; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__link { position: absolute; inset: 0; z-index: 1; }
.card__visual {
  height: 270px; display: grid; place-items: start center; padding-top: 30px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 38%, var(--mix-base)), color-mix(in srgb, var(--accent) 8%, var(--mix-base)) 70%);
}
.card__visual::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--accent) 25%, transparent) 1px, transparent 1px); background-size: 18px 18px; opacity: .5; }
.card__visual .device { z-index: 1; transition: transform .7s var(--ease); box-shadow: 0 24px 40px -18px color-mix(in srgb, var(--accent) 70%, black); }
.card__visual .device--phone { --w: 172px; }
.card__visual .device--browser { --w: 88%; margin-top: 6px; }
.card:hover .card__visual .device { transform: translateY(-10px); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent, var(--brand)) 14%, var(--mix-base)); color: color-mix(in srgb, var(--accent, var(--brand)) 72%, var(--mix-text)); }
.chip--lg { font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 600; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.card__title { font-size: 1.45rem; font-weight: 800; margin-top: 14px; }
.card__project { color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: 4px; filter: saturate(.9) brightness(.85); }
.card__text { color: var(--muted); margin-top: 10px; font-size: .97rem; flex: 1; }
.card__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; }
.card__more .ico { transition: transform .4s var(--ease); }
.card:hover .card__more .ico { transform: translateX(4px); }
.card__count { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.card__count .ico { width: 1.05em; height: 1.05em; }
.card__demo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--muted); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); transition: .3s; }
.card__demo:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.card__demo .ico { width: 1em; height: 1em; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty a { color: var(--brand); font-weight: 600; }

/* Sectores */
.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sector { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 10px; transition: .5s var(--ease); position: relative; overflow: hidden; }
.sector::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .5s; z-index: 0; }
.sector > * { position: relative; z-index: 1; }
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sector__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--brand); border: 1px solid var(--line); }
.sector__icon .ico { width: 24px; height: 24px; }
.sector h3 { font-size: 1.15rem; font-weight: 700; margin-top: 6px; }
.sector p { color: var(--muted); font-size: .94rem; }
.sector__apps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sector__apps a { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: .25s; }
.sector__apps a:hover { border-color: var(--brand); color: var(--brand); }
.sector__btn { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--brand); align-self: flex-start; }
.sector__btn .ico { transition: transform .4s var(--ease); }
.sector__btn:hover .ico { transform: translateX(4px); }

/* Ventajas */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); padding: 30px 26px; transition: background .4s; }
.feature:hover { background: var(--surface-hover); }
.feature__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad); background-size: 200% 200%; animation: gradmove 8s ease infinite; margin-bottom: 18px; }
.feature__icon .ico { width: 24px; height: 24px; }
@keyframes gradmove { 50% { background-position: 100% 100%; } }
.feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .94rem; }

/* Método */
.section--dark { background: var(--band); color: #fff; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, var(--band-glow), transparent 65%); }
.section--dark .eyebrow { background: rgba(255, 255, 255, .08); color: #a9c8ff; }
.section--dark .section__head { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; counter-reset: s; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); position: relative; transition: .5s var(--ease); }
.step:hover { background: rgba(255, 255, 255, .08); transform: translateY(-4px); }
.step__num { position: absolute; top: 18px; right: 20px; font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: rgba(255, 255, 255, .18); line-height: 1; }
.step__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #7fdcff; margin-bottom: 20px; }
.step__icon .ico { width: 22px; height: 22px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, .65); font-size: .93rem; }

/* FAQ */
.faqs { display: flex; flex-direction: column; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: box-shadow .3s; }
.faq[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); flex: none; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq[open] .faq__icon { transform: rotate(45deg); background: var(--solid); color: var(--solid-fg); }
.faq__a { padding: 0 22px 22px; color: var(--muted); }

/* Contacto */
.section--cta { background: linear-gradient(180deg, var(--bg), var(--tint)); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 32px; } }
.contact__copy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin: 18px 0 14px; letter-spacing: -.035em; }
.contact__copy > p { color: var(--muted); font-size: 1.1rem; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; }
.contact__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.contact__list .ico { color: var(--brand-2); }
.form { background: var(--surface); padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; }
.form input:not([type=checkbox]), .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
.form .is-invalid { border-color: #e11d48 !important; }
.form textarea { resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--muted); }
.form .check input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.form__msg { font-size: .92rem; min-height: 1.4em; color: var(--muted); }
.form__msg.ok { color: var(--ok); }
.form__msg.err { color: var(--err); }

/* Footer */
.footer { background: var(--footer); color: rgba(255, 255, 255, .7); padding: 72px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__claim { margin: 14px 0 18px; max-width: 340px; }
.footer__mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__apps { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.totop { display: inline-flex; align-items: center; gap: 6px; }
.totop .ico { transform: rotate(-90deg); }

/* ---------- Página de manual ---------- */
.app-hero { position: relative; isolation: isolate; padding: calc(var(--nav-h) + 40px) 0 64px; overflow: hidden; }
.app-hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .app-hero__inner { grid-template-columns: 1fr; } }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a:hover { color: var(--ink); }
.app-hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; backdrop-filter: blur(8px); }
.app-hero__badge .ico { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--accent); color: #fff; }
.app-hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -.045em; margin: 18px 0 14px; }
.app-hero__tag { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 620px; margin-bottom: 18px; }
.app-hero .card__meta { --accent: inherit; }
.app-hero__visual { display: flex; justify-content: center; }
.app-hero__visual .device { box-shadow: var(--shadow-lg); animation: bob 7s ease-in-out infinite; }
.app-hero__visual .device--phone { --w: 270px; }
.app-hero__visual .device--browser { --w: 100%; max-width: 560px; }
@media (max-width: 900px) { .app-hero__visual .device--phone { --w: 220px; } }

.manual { padding: 24px 0 96px; }
.manual__grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .manual__grid { grid-template-columns: 1fr; gap: 0; } .toc { display: none !important; } }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc__title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 0 0 10px 18px; }
.toc a { padding: 8px 18px; font-size: .93rem; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; transition: .3s; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); font-weight: 700; border-left-color: var(--brand); }
.block { padding: 48px 0; border-bottom: 1px solid var(--line); }
.block:first-child { padding-top: 24px; }
.block h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 20px; display: flex; align-items: baseline; gap: 14px; }
.block__n { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent, var(--brand)); font-size: .8em; }
.block > p { color: var(--muted); margin-bottom: 20px; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.7; color: var(--ink-2); }
.who { margin-top: 28px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.who h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.who ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 600px) { .who ul { grid-template-columns: 1fr; } }
.who li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.who li .ico { color: var(--accent, var(--brand)); margin-top: 3px; width: 1.05em; height: 1.05em; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 680px) { .feats { grid-template-columns: 1fr; } }
.feat { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: .45s var(--ease); }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feat__icon { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--accent, var(--brand)) 12%, var(--mix-base)); color: var(--accent, var(--brand)); transition: .4s var(--ease); }
.feat:hover .feat__icon { background: var(--accent, var(--brand)); color: #fff; transform: rotate(-6deg); }
.feat__icon .ico { width: 22px; height: 22px; }
.feat h3 { font-size: 1.04rem; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: .94rem; }
.usage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; background: var(--bg); border-radius: 999px; margin-bottom: 24px; width: fit-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: .3s var(--ease); }
.tab .ico { width: 1em; height: 1em; }
.tab.is-active { background: var(--solid); color: var(--solid-fg); box-shadow: var(--shadow); }
.panel.is-active { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.panel__rol { display: none; }
.howto { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; position: relative; }
.howto li { display: flex; gap: 18px; padding: 14px 0; position: relative; }
.howto li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 56px; bottom: -14px; width: 2px; background: linear-gradient(var(--brand), transparent); opacity: .25; }
.howto__n { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; background: var(--grad); color: #fff; }
.howto h4 { font-size: 1.04rem; margin: 8px 0 4px; }
.howto p { color: var(--muted); font-size: .95rem; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 680px) { .benefits { grid-template-columns: 1fr; } }
.benefits li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.benefits .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: color-mix(in srgb, var(--brand-2) 15%, transparent); color: var(--brand-2); flex: none; }
.adapt { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band { margin-top: 56px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--ink), color-mix(in srgb, var(--accent) 70%, var(--ink))); }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%); animation: drift1 12s ease-in-out infinite alternate; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, .75); }
.cta-band__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.pager__item { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 700; transition: .4s var(--ease); }
.pager__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pager__item small { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.pager__item--next { justify-content: flex-end; text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión del manual ---------- */
@media print {
  :root[data-theme="dark"] { --ink: #0b1226; --ink-2: #1c2540; --muted: #56607a; --bg: #fff; --surface: #fff; --surface-2: #f1f4fa; --line: rgba(11, 18, 38, .12); --mix-base: white; --mix-text: black; --brand-text: #0052d6; }
  .theme-toggle, .logo__img--oscuro { display: none !important; } .logo__img--claro { display: block !important; }
  .nav, .progress-bar, .footer, .toc, .hero__bg, .cta-band, .pager, .hero__cta, .app-hero__visual, .crumbs { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .app-hero { padding: 0 0 12pt; }
  .app-hero__inner, .manual__grid { display: block; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .block { padding: 14pt 0; break-inside: avoid-page; }
  .feat, .benefits li, .who, .usage { box-shadow: none; break-inside: avoid; }
  .tabs { display: none; }
  .panel { display: block !important; margin-bottom: 12pt; }
  .panel[hidden] { display: block !important; }
  .panel__rol { display: block; font-weight: 700; margin-bottom: 6pt; }
  a { color: inherit; }
}

/* ---------- Marcos de dispositivo con capturas reales ---------- */
.device { --w: 220px; width: var(--w); position: relative; background: #0f1220; overflow: hidden; }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #fff; }
.device--phone { aspect-ratio: 9 / 19.5; border-radius: calc(var(--w) * .13); padding: calc(var(--w) * .035); }
.device--phone img { border-radius: calc(var(--w) * .1); }
.device--phone::before { content: ""; position: absolute; top: calc(var(--w) * .06); left: 50%; translate: -50% 0; width: 28%; height: calc(var(--w) * .04); background: #0f1220; border-radius: 99px; z-index: 2; }
.device--browser { border-radius: 12px; border: 1px solid var(--chrome-line); background: var(--chrome); }
.device--browser img { aspect-ratio: 16 / 10; height: auto; }
.device__bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--chrome); border-bottom: 1px solid var(--chrome-line); }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--chrome-dot); }
.device__bar i:first-child { background: #ff6159; } .device__bar i:nth-child(2) { background: #ffbd2e; } .device__bar i:nth-child(3) { background: #28c941; }

/* ---------- Galería del manual ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.shot { margin: 0; }
.shot__btn { display: block; width: 100%; padding: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.shot__btn img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.shot--v .shot__btn img { aspect-ratio: 9 / 13; }
.shot__btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot__btn:hover img { transform: scale(1.03); }
.shot__zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 13, 23, .75); color: #fff; opacity: 0; transform: scale(.8); transition: .35s var(--ease); }
.shot__btn:hover .shot__zoom, .shot__btn:focus-visible .shot__zoom { opacity: 1; transform: none; }
.shot figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.shots__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent, var(--brand)) 9%, var(--mix-base)); color: var(--ink-2); font-size: .94rem; }
.shots__note .ico { color: var(--accent, var(--brand)); margin-top: 2px; }

/* ---------- Visor ampliado ---------- */
.no-scroll { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 9, 16, .92); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 56px 72px; opacity: 0; transition: opacity .25s; }
.lightbox:not(.is-open) { pointer-events: none; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__fig img { max-width: min(1200px, 100%); max-height: calc(100vh - 150px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.97); transition: transform .35s var(--ease); background: #fff; }
.lightbox.is-open .lightbox__fig img { transform: none; }
.lightbox__fig figcaption { color: rgba(255, 255, 255, .85); text-align: center; font-size: .98rem; max-width: 640px; }
.lightbox__close, .lightbox__nav { position: absolute; color: #fff; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 2rem; line-height: 1; display: grid; place-items: center; transition: background .25s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; top: 26px; left: 50%; translate: -50% 0; color: rgba(255, 255, 255, .6); font-size: .85rem; letter-spacing: .1em; }
@media (max-width: 640px) { .lightbox { padding: 64px 12px 24px; } .lightbox__nav { top: auto; bottom: 16px; translate: none; } }

/* ---------- Formulario de cita ---------- */
.form__choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__choice legend { font-size: .86rem; font-weight: 600; margin-bottom: 8px; padding: 0; width: 100%; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: .92rem; color: var(--muted); transition: .25s var(--ease); }
.pill span .ico { width: 1.05em; height: 1.05em; }
.pill:hover span { color: var(--ink); border-color: var(--line-strong); }
.pill input:checked + span { background: var(--solid); border-color: var(--solid); color: var(--solid-fg); }
.pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form input[type=date] { min-height: 48px; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.form.is-sent { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 45%, transparent), var(--shadow-lg); }

/* ---------- Bloque de cita en el manual ---------- */
.cita { margin-top: 56px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--mix-base)), var(--tint)); border: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.cita::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); z-index: -1; animation: drift1 12s ease-in-out infinite alternate; }
.cita__head { max-width: 620px; margin-bottom: 26px; }
.cita__head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin: 16px 0 10px; letter-spacing: -.03em; }
.cita__head p:not(.eyebrow) { color: var(--muted); }
.toc__cta { margin-top: 10px; display: inline-flex !important; align-items: center; gap: 8px; color: var(--brand) !important; font-weight: 700; }
@media print { .cita, .shots__note, .lightbox { display: none !important; } .shots { grid-template-columns: repeat(3, 1fr); } .shot { break-inside: avoid; } }
@media (max-width: 640px) {
  .shots { grid-template-columns: 1fr 1fr; gap: 14px; }
  .shot:not(.shot--v) { grid-column: 1 / -1; }
  .shot figcaption { font-size: .82rem; }
}

/* Transición suave al cambiar de tema */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .4s ease, border-color .4s ease, color .3s ease !important; }
