/* =========================================================
   IuxPage · estilos únicos del sitio (index, políticas y 404)
   Modo oscuro por defecto, modo claro con [data-theme="light"].
   Móvil primero; el diseño de PC se activa desde 960px.
   ========================================================= */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root, [data-theme="dark"] {
  --bg: #0A1022;
  --bg-alt: #0D1530;
  --surface: #131C3D;
  --surface-2: #1A2450;
  --line: rgba(160, 178, 235, .16);
  --text: #EEF1FA;
  --text-2: #B9C2E0;
  --muted: #8892B6;
  --accent: #8EA4FF;
  --btn: #2E5BF5;
  --btn-hover: #4570FF;
  --btn-text: #FFFFFF;
  --ok: #3DDC97;
  --wa: #25D366;
  --wa-ink: #05361B;
  --logo-tile: #EEF1F8;
  --header-bg: rgba(10, 16, 34, .78);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --brand: #2E5BF5;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F3F5FB;
  --bg-alt: #E9EDF7;
  --surface: #FFFFFF;
  --surface-2: #F4F6FC;
  --line: #DCE1EE;
  --text: #0A1022;
  --text-2: #3A456B;
  --muted: #616B8E;
  --accent: #2448D8;
  --btn: #2E5BF5;
  --btn-hover: #1F47D6;
  --ok: #138A4C;
  --logo-tile: #FFFFFF;
  --header-bg: rgba(243, 245, 251, .85);
  --shadow: 0 24px 60px rgba(10, 16, 34, .14);
  color-scheme: light;
}

:root {
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1220px;
  --gutter: 18px;
  --topbar-h: 62px;
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 14px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Logo según tema */
.logo-light { display: none !important; }
[data-theme="light"] .logo-light { display: block !important; }
[data-theme="light"] .logo-dark { display: none !important; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .15s var(--ease), border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--btn); color: var(--btn-text); }
.btn--primary:hover { background: var(--btn-hover); }
.btn--quiet { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn--quiet:hover { border-color: var(--accent); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.is-scrolled { border-color: var(--line); }
.topbar__in { height: var(--topbar-h); display: flex; align-items: center; gap: 18px; }
.brand img { height: 21px; width: auto; }
.nav { display: none; }
.topbar__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tool {
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
.tool:hover { border-color: var(--accent); }
.ic-sun { display: none; }
[data-theme="light"] .ic-sun { display: block; }
[data-theme="light"] .ic-moon { display: none; }
.topbar__cta { display: none; }

/* ---------- Inicio: un iPhone con tus proyectos ---------- */
.hero {
  --glow: #C9A27A;
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 70% at 50% 0%, #111A3A 0%, #070B19 60%);
  padding: 22px 0 46px;
}
.hero__in { display: grid; gap: 34px; }
.hero__copy { order: 2; }
.hero__stage { order: 1; position: relative; display: grid; justify-items: center; gap: 22px; padding-top: 6px; }
.hero__where { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 8.4vw, 64px); line-height: 1; letter-spacing: -.04em; font-weight: 800; max-width: 14ch; }
.hero__lead { margin-top: 16px; color: rgba(255,255,255,.78); font-size: 17px; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; }

/* Luz suave detrás del teléfono (toma el color del proyecto) */
.hero__spot {
  position: absolute; top: 4%; left: 50%; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 42%, transparent), transparent);
  filter: blur(20px); opacity: .7; transition: background .8s var(--ease); pointer-events: none;
}

/* iPhone (estilo 17 Pro): marco de titanio, Dynamic Island y botones */
.iphone {
  --w: 272px;
  position: relative; width: var(--w); aspect-ratio: 71.9 / 150; padding: 4px; border-radius: 56px;
  background: linear-gradient(140deg, #8A8E96 0%, #3B3E45 14%, #1C1E22 45%, #2E3036 78%, #9A9EA6 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 90px -20px rgba(0,0,0,.7), 0 20px 40px rgba(0,0,0,.35);
  animation: phoneIn 1s var(--ease) both;
}
.iphone__bezel { position: relative; height: 100%; padding: 7px; border-radius: 52px; background: #000; box-shadow: inset 0 0 0 1px #2A2D33; }
.iphone__screen { position: relative; height: 100%; border-radius: 45px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.iphone__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 32%); }
.iphone__sb { flex: none; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 0 30px; background: #001A5A; color: #fff; transition: background .4s, color .4s; }
.iphone__sb.is-dark { color: #0B0B0F; }
.iphone__time { font: 600 14px/1 -apple-system, "SF Pro Text", var(--body); letter-spacing: -.01em; }
.iphone__icons { display: inline-flex; gap: 5px; align-items: center; }
.iphone__screen > img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; transition: opacity .3s; }
.iphone__screen > img.is-out { opacity: 0; }
.iphone__island { position: absolute; top: 17px; left: 50%; width: 31%; height: 27px; margin-left: -15.5%; border-radius: 20px; background: #000; z-index: 2; }
.iphone__home { position: absolute; left: 50%; bottom: 8px; width: 36%; height: 5px; margin-left: -18%; border-radius: 9px; background: rgba(0,0,0,.55); }
.iphone__key { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #5C6068, #A7ABB3); }
.iphone__key--action { left: -3px; top: 17%; height: 4.5%; }
.iphone__key--up { left: -3px; top: 25%; height: 8%; }
.iphone__key--down { left: -3px; top: 35%; height: 8%; }
.iphone__key--power { right: -3px; top: 27%; height: 12%; background: linear-gradient(90deg, #A7ABB3, #5C6068); }
.iphone__key--cam { right: -3px; top: 55%; height: 7%; background: linear-gradient(90deg, #A7ABB3, #5C6068); }

/* Proyecto en pantalla */
.now { width: 100%; max-width: 340px; text-align: center; display: grid; gap: 4px; justify-items: center; animation: fadeUp .7s .85s var(--ease) both; }
.now__status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #7CE3B1; }
.now__status.is-demo { color: #F5C66B; }
.now__status.is-demo .live { background: #F5C66B; }
.now__status.is-demo .live::after { border-color: #F5C66B; }
.now__name { font: 700 24px/1.1 var(--display); letter-spacing: -.02em; }
.now__type { color: rgba(255,255,255,.7); font-size: 14.5px; }
.now__go { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.now__go:hover { background: rgba(255,255,255,.18); }

/* Dock con los proyectos (como los íconos de apps) */
.dock {
  display: flex; gap: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 10px 12px; border-radius: 26px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fadeUp .7s 1s var(--ease) both;
}
.dock::-webkit-scrollbar { display: none; }
.dock button { position: relative; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 13px; overflow: visible; cursor: pointer; background: none; transition: transform .2s var(--ease); }
.dock img { width: 100%; height: 100%; border-radius: 13px; object-fit: cover; object-position: top; box-shadow: 0 0 0 1px rgba(255,255,255,.15); opacity: .62; transition: opacity .2s; }
.dock button:hover img, .dock button[aria-pressed="true"] img { opacity: 1; }
.dock button[aria-pressed="true"] { transform: translateY(-3px); }
.dock button[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fff; }
.hero__copy { animation: fadeUp .7s .7s var(--ease) both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); position: relative; flex: none; display: inline-block; }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2.2s infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Marcas: carrusel de logos, nítidos al centro ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.trust { background: #EDF1FB; padding: 26px 0; }
.marquee {
  overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.18) 16%, #000 40%, #000 60%, rgba(0,0,0,.18) 84%, rgba(0,0,0,.06) 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.18) 16%, #000 40%, #000 60%, rgba(0,0,0,.18) 84%, rgba(0,0,0,.06) 100%);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.trust__logos { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.trust__logos img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { padding: 64px 0; }
.sec--alt { background: var(--bg-alt); }
.sec__head { margin-bottom: 26px; max-width: 760px; }
.sec h2 { font-size: clamp(32px, 7.4vw, 56px); letter-spacing: -.035em; }
.sec__head p { margin-top: 14px; font-size: 17.5px; color: var(--text-2); max-width: 58ch; }

/* ---------- Proyectos ---------- */
.filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.filters button { cursor: pointer; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pjs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain;
}
.pjs::-webkit-scrollbar { display: none; }
.pj { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.pj.is-out { display: none; }
.pj__shot { display: flex; justify-content: center; height: 250px; padding-top: 24px; overflow: hidden; background: var(--bg-alt); position: relative; }
.pj__shot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 100%, rgba(255,255,255,.14), transparent); }
.pj__shot img { position: relative; width: 168px; height: auto; align-self: flex-start; border: 6px solid #05070F; border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: 0 18px 40px rgba(0,0,0,.4); transition: transform .4s var(--ease); }
.pj__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pj__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.badge--live { color: var(--ok); }
.badge--demo { color: #F0B23C; }
[data-theme="light"] .badge--demo { color: #A36400; }
.badge--demo .live { background: #F0B23C; }
.badge--demo .live::after { border-color: #F0B23C; }
.pj__name { font-size: 22px; letter-spacing: -.02em; }
.pj__type { font-weight: 600; color: var(--text-2); font-size: 14.5px; }
.pj__desc { color: var(--text-2); font-size: 15px; }
.pj__url { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); word-break: break-all; }
.pj__link { padding-top: 2px; display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-weight: 600; font-size: 14.5px; text-decoration: none; word-break: break-word; }
.pj__link:hover { text-decoration: underline; }
.rail__dots { display: flex; justify-content: center; gap: 6px; }
.rail__dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: width .25s, background .25s; }
.rail__dots i.is-on { width: 22px; background: var(--accent); }

/* ---------- Modelos interactivos ---------- */
.models { display: grid; gap: 30px; }
.models__copy p { margin: 14px 0 22px; font-size: 17.5px; color: var(--text-2); max-width: 46ch; }
.mtabs { display: grid; gap: 8px; margin-bottom: 22px; }
.mtabs button { position: relative; overflow: hidden; text-align: left; cursor: pointer; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 16px; color: var(--text-2); }
.mtabs button[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.mtabs i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.models.is-auto .mtabs button[aria-selected="true"] i { animation: fillbar 6.5s linear forwards; }
@keyframes fillbar { to { width: 100%; } }
.models__stage { display: grid; place-items: center; }
.device {
  position: relative; width: 280px; aspect-ratio: 71.9 / 150; padding: 4px; border-radius: 56px;
  background: linear-gradient(140deg, #8A8E96 0%, #3B3E45 14%, #1C1E22 45%, #2E3036 78%, #9A9EA6 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 70px -20px rgba(0,0,0,.6);
}
.device::after { content: ""; position: absolute; top: 21px; left: 50%; width: 30%; height: 25px; margin-left: -15%; border-radius: 20px; background: #000; z-index: 3; }
.device__screen { position: relative; height: 100%; border-radius: 52px; border: 7px solid #000; overflow: hidden; background: #fff; }
.device--light { width: 280px; }
.device--light .device__screen { display: flex; flex-direction: column; color: #15161C; font-size: 14px; }
.mpanel { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-top: 34px; }
.m-head, .b-head { padding: 10px 16px 12px; border-bottom: 1px solid #ECEDF2; display: grid; }
.m-head b, .b-head b { font: 700 17px var(--display); }
.m-head small, .b-head small { color: #7A7D8C; font-size: 12.5px; }
.m-cats { display: flex; gap: 6px; padding: 10px 16px; }
.m-cats span { padding: 5px 11px; border-radius: 999px; background: #F1F2F6; font-size: 12px; font-weight: 600; }
.m-cats span:first-child { background: #15161C; color: #fff; }
.m-items { flex: 1; overflow: auto; padding: 0 12px; display: grid; gap: 8px; align-content: start; }
.m-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid #ECEDF2; border-radius: 14px; }
.m-thumb { width: 44px; height: 44px; border-radius: 10px; }
.m-thumb.t0 { background: linear-gradient(135deg, #FFE0A3, #F6B356); } .m-thumb.t1 { background: linear-gradient(135deg, #E9C29A, #B97A45); }
.m-thumb.t2 { background: linear-gradient(135deg, #F7D7C4, #D98C6A); } .m-thumb.t3 { background: linear-gradient(135deg, #FFF1C9, #E9B949); }
.m-item b { display: block; font-size: 13.5px; } .m-item small { color: #7A7D8C; font-size: 12px; }
.m-qty { display: flex; align-items: center; gap: 4px; }
.m-qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #2E5BF5; color: #fff; font-weight: 700; cursor: pointer; }
.m-qty button.minus { background: #ECEDF2; color: #15161C; }
.m-qty output { min-width: 14px; text-align: center; font-weight: 700; font-size: 13px; }
.m-cart { margin: 10px 12px 14px; border: 0; border-radius: 14px; padding: 12px 14px; background: #25D366; color: #05361B; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 13.5px; }
.m-cart:disabled { background: #ECEDF2; color: #7A7D8C; cursor: default; }
.m-cart.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.04); } }
.b-body { flex: 1; padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.b-label { font-weight: 700; font-size: 13px; }
.b-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.b-days button, .b-slots button { border: 1px solid #DCDEE6; background: #fff; border-radius: 12px; padding: 7px 0; font-weight: 700; cursor: pointer; color: #15161C; }
.b-days button { display: grid; font-size: 15px; } .b-days small { font-size: 10.5px; color: #7A7D8C; font-weight: 600; }
.b-days button[aria-pressed="true"], .b-slots button[aria-pressed="true"] { background: #2E5BF5; border-color: #2E5BF5; color: #fff; }
.b-days button[aria-pressed="true"] small { color: rgba(255,255,255,.8); }
.b-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.b-slots button { font-size: 13px; padding: 10px 0; }
.b-slots button:disabled { opacity: .4; text-decoration: line-through; cursor: default; }
.b-confirm { padding: 10px 12px 14px; }
.b-confirm button, .b-done button { width: 100%; border: 0; border-radius: 14px; padding: 12px; background: #15161C; color: #fff; font-weight: 700; cursor: pointer; }
.b-confirm button:disabled { background: #ECEDF2; color: #7A7D8C; cursor: default; }
.b-done { flex: 1; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 20px; }
.b-done .ok { width: 60px; height: 60px; border-radius: 50%; background: #E3F8EC; color: #0E8F55; display: grid; place-items: center; }
.b-done p { color: #4A4D5C; font-size: 13.5px; }
.c-screen { background: #ECE5DD; }
.c-head { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: #075E54; color: #fff; }
.c-avatar { width: 34px; height: 34px; border-radius: 50%; background: #25D366; display: grid; place-items: center; }
.c-head b { display: block; font-size: 14px; } .c-head small { font-size: 11.5px; opacity: .8; }
.c-body { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.bubble.out { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 4px; }
.bubble.typing { display: flex; gap: 4px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA0A6; animation: blink 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }
.c-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 14px; }
.c-quick button { border: 1px solid #25D366; background: #fff; color: #075E54; border-radius: 999px; padding: 7px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.c-quick button:disabled { opacity: .5; }

/* ---------- Rubros ---------- */
.rub { display: grid; gap: 24px; }
.rub__intro p { margin-top: 12px; font-size: 17.5px; color: var(--text-2); }
.rub__box { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 14px; display: grid; gap: 14px; }
.rub__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rub__list::-webkit-scrollbar { display: none; }
.rub__list button { flex: none; cursor: pointer; text-align: left; border-radius: 14px; padding: 11px 14px; font-weight: 600; font-size: 14.5px; background: var(--bg); border: 1px solid var(--line); color: var(--text-2); }
.rub__list button[aria-selected="true"] { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--btn) 14%, var(--bg)); }
.rub__panel { padding: 6px 6px 8px; display: grid; gap: 16px; align-content: start; animation: phIn .3s var(--ease); }
.rub__panel p { font: 700 clamp(20px, 4.6vw, 28px)/1.2 var(--display); letter-spacing: -.015em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-2); }
.rub__panel .btn { justify-self: start; }
@keyframes phIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Servicios ---------- */
.tabs__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 16px; padding: 2px var(--gutter); }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list button {
  flex: none; cursor: pointer; border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
}
.tabs__list button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 22px; display: grid; gap: 22px; animation: phIn .3s var(--ease); }
.panel h3 { font-size: clamp(22px, 5vw, 30px); line-height: 1.15; letter-spacing: -.02em; max-width: 30ch; }
.ticks { display: grid; gap: 12px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--btn) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238EA4FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
[data-theme="light"] .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232448D8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
.panel__side { display: grid; gap: 18px; align-content: start; border-top: 1px solid var(--line); padding-top: 18px; }
.panel__side dl { margin: 0; display: grid; gap: 4px; }
.panel__side dt { font-size: 13.5px; color: var(--muted); }
.panel__side dd { margin: 0 0 12px; font-weight: 600; }
.panel__side dd a { color: var(--accent); }
.always { margin-top: 18px; border: 1.5px dashed var(--line); border-radius: 22px; padding: 18px 20px; }
.always h3 { font: 600 15px var(--body); letter-spacing: 0; color: var(--muted); margin-bottom: 10px; }
.always ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.always li { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.always li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ---------- Software a medida ---------- */
.soft { display: grid; gap: 30px; }
.soft__intro p { margin: 14px 0 24px; font-size: 17.5px; color: var(--text-2); max-width: 52ch; }
.soft__list { display: grid; gap: 12px; }
.sys { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.sys img { width: 116px; height: 86px; border-radius: 12px; object-fit: cover; object-position: top left; }
.sys h3 { font-size: 18px; margin: 4px 0; letter-spacing: -.01em; }
.sys p { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.lock { display: inline-flex; gap: 6px; align-items: center; font-size: 12px !important; font-weight: 600; color: var(--accent) !important; }

/* ---------- Proceso (es una secuencia real) ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 62px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 800 18px var(--display); background: var(--surface); border: 1px solid var(--line);
}
.steps li:nth-child(2)::before { background: var(--btn); color: #fff; border-color: var(--btn); }
.steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 21px; letter-spacing: -.015em; }
.steps p { color: var(--text-2); margin-top: 6px; }
.need { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.need h3 { font-size: 20px; margin-bottom: 12px; letter-spacing: -.01em; }
.need ul { display: grid; gap: 10px; }
.need li { padding-left: 24px; position: relative; color: var(--text-2); }
.need li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 10px; border-radius: 3px; border: 2px solid var(--accent); }

/* ---------- Formulario por pasos ---------- */
.demo { display: grid; gap: 26px; }
.demo__intro p { margin-top: 14px; font-size: 17.5px; color: var(--text-2); }
.demo__wa { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; text-decoration: none; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.demo__wa svg { color: var(--wa); flex: none; }
.wizard { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 20px 18px; display: grid; gap: 16px; position: relative; }
.wizard__steps { display: none; }
.wstep { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.wstep legend { font: 700 22px/1.15 var(--display); letter-spacing: -.015em; margin-bottom: 14px; padding: 0; }
.js .wizard__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); counter-reset: w; }
.js .wizard__steps li { counter-increment: w; padding-top: 10px; border-top: 3px solid var(--line); transition: border-color .3s, color .3s; }
.js .wizard__steps li::before { content: counter(w) ". "; }
.js .wizard__steps li.is-on { border-color: var(--btn); color: var(--text); }
.js .wstep { display: none; }
.js .wstep.is-on { display: grid; animation: phIn .3s var(--ease); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; }
.choice input, .pills input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; min-height: 58px; padding: 10px 14px; border-radius: 16px; cursor: pointer;
  background: var(--bg); border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px; line-height: 1.25;
  transition: border-color .2s, background .2s;
}
.choice input:checked + span { border-color: var(--btn); background: color-mix(in srgb, var(--btn) 16%, var(--bg)); }
.choice input:focus-visible + span, .pills input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.wlabel { font-weight: 600; font-size: 14.5px; }
.wnote { font-size: 14.5px; font-weight: 600; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--text); }
.wnote.is-quote { background: color-mix(in srgb, var(--btn) 16%, transparent); }
.wlabel small, .field small { font-weight: 400; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text-2); }
.pills input:checked + span { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--btn) 14%, transparent); }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; min-height: 52px; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238892B6' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field select option { background: var(--surface); color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.is-invalid input, .is-invalid textarea, .is-invalid select, .choices.is-invalid .choice span { border-color: #F26464 !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--muted); display: flex; gap: 7px; }
.form__note svg { flex: none; margin-top: 3px; color: var(--ok); }
.form__note a { color: var(--text-2); }
.wizard__nav { display: flex; gap: 10px; }
.wizard__nav .btn { flex: 1; }
.js .wizard__nav [data-submit] { display: none; }
.js .wizard.is-last .wizard__nav [data-submit] { display: inline-flex; }
.js .wizard.is-last .wizard__nav [data-next] { display: none; }
.wizard__nav [data-next], .wizard__nav [data-prev] { display: none; }
.js .wizard__nav [data-next] { display: inline-flex; }
.js .wizard__nav [data-prev]:not([hidden]) { display: inline-flex; flex: 0 0 auto; }
.form__status:empty { display: none; }
.form__status { border-radius: 16px; padding: 16px; font-size: 15.5px; }
.form__status.is-ok { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); }
.form__status.is-error { background: color-mix(in srgb, #F26464 16%, var(--surface)); }
.form__status .btn { margin-top: 12px; background: var(--wa); color: var(--wa-ink); min-height: 46px; }

/* ---------- Preguntas ---------- */
.faqwrap { max-width: 860px; }
.faqwrap h2 { margin-bottom: 24px; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--body); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 10px; }
.ccard { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--accent); }
.ccard > span { display: grid; color: var(--text-2); font-size: 14.5px; }
.ccard strong { color: var(--text); font-size: 16.5px; }
.ccard svg { flex: none; }
.ccard--wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.ccard--wa > span, .ccard--wa strong { color: var(--wa-ink); }

/* ---------- Pie ---------- */
.footer { background: #070B18; color: #9AA5CB; padding: 42px 0 36px; font-size: 14.5px; border-top: 1px solid var(--line); }
.footer__in { display: grid; gap: 16px; }
.footer__logo { height: 22px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__nav a { color: #fff; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__copy { color: #6B769C; font-size: 13px; }

.wa-float { display: none; }

/* ---------- Barra inferior tipo app ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabbar-h); text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.is-active { color: var(--text); }
.tabbar__fab { width: 52px; height: 52px; margin-top: -26px; border-radius: 18px; background: var(--btn); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px color-mix(in srgb, var(--btn) 45%, transparent); transform: rotate(-4deg); }
.tabbar__fab svg { width: 22px !important; height: 22px !important; transform: rotate(4deg); }
.tabbar__cta { color: var(--text) !important; }
.tabbar__wa svg { color: var(--wa); }

/* ---------- Páginas simples ---------- */
body.plain { padding-bottom: 0; }
.plain [data-ml] { margin-left: auto; }
.page { padding: 40px 0 70px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(34px, 8vw, 54px); margin-bottom: 14px; }
.page h2 { font-size: 22px; margin: 30px 0 8px; }
.page p { color: var(--text-2); }
.page a { color: var(--accent); }
.page__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page__ctas .btn--primary { color: #fff; }


/* ---------- Contacto: tarjeta botón y reunión presencial ---------- */
button.ccard { font: inherit; width: 100%; text-align: left; cursor: pointer; }
.ccard:hover { border-color: var(--accent); }
.ccard--wa:hover { border-color: var(--wa); filter: brightness(1.05); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog { border: 0; padding: 0; border-radius: 26px; background: var(--surface); color: var(--text); width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(4, 7, 18, .62); backdrop-filter: blur(4px); }
.dialog__in { position: relative; padding: 26px 22px 22px; display: grid; gap: 14px; }
.dialog__in h2 { font-size: 26px; padding-right: 40px; letter-spacing: -.02em; }
.dialog__note { color: var(--text-2); font-size: 15px; }
.dialog__x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.footer__seo { color: #6B769C; font-size: 13.5px; max-width: 80ch; }
.footer__brand { display: grid; gap: 12px; max-width: 46ch; }
@media (min-width: 960px) {
  .footer__in { grid-template-columns: 1fr auto; }
  .footer__seo { grid-column: 1 / -1; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 30px; }
  .pjs { grid-auto-columns: 46%; }
  .iphone { --w: 290px; }
  .panel { grid-template-columns: 1.4fr 1fr; padding: 30px; }
  .panel__side { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 26px; }
  .contact { grid-template-columns: 1fr 1fr; }
  .choices { grid-template-columns: repeat(3, 1fr); }
  .wizard { padding: 28px; }
}

/* =========================================================
   PC
   ========================================================= */
@media (min-width: 960px) {
  :root { --gutter: 40px; --topbar-h: 76px; }
  body { padding-bottom: 0; font-size: 17px; }
  .tabbar { display: none; }
  .brand img { height: 25px; }
  .nav { display: flex; gap: 28px; margin-left: 20px; }
  .nav a { text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--text-2); padding: 6px 0; border-bottom: 2px solid transparent; }
  .nav a:hover, .nav a.is-active { color: var(--text); border-color: var(--accent); }
  .topbar__cta { display: inline-flex; margin-left: 4px; }

  .hero { padding: 40px 0 70px; }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; min-height: 700px; }
  .hero__copy { order: 1; }
  .hero__stage { order: 2; grid-template-columns: auto 220px; grid-template-areas: "phone now" "dock dock"; align-items: center; column-gap: 34px; row-gap: 26px; justify-content: center; }
  .iphone { --w: 300px; grid-area: phone; }
  .now { grid-area: now; text-align: left; justify-items: start; }
  .dock { grid-area: dock; justify-self: center; }
  .dock button { width: 52px; height: 52px; }
  .hero__spot { width: 640px; height: 640px; margin-left: -380px; top: -2%; }

  .trust { padding: 30px 0; }
  .trust__logos img { height: 48px; }

  .sec { padding: 112px 0; }
  .sec__head { margin-bottom: 44px; }

  .pjs { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 22px; }
  .pj__shot { height: 290px; }
  .pj__shot img { width: 190px; }
  .pj:hover .pj__shot img { transform: translateY(-8px); }
  .rail__dots { display: none; }

  .models { grid-template-columns: 1fr auto; gap: 80px; align-items: center; }
  .device--light { width: 300px; }
  .rub { grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
  .rub__box { grid-template-columns: 280px 1fr; padding: 18px; gap: 26px; }
  .rub__list { flex-direction: column; overflow: visible; }
  .rub__list button { white-space: normal; }
  .rub__panel { padding: 14px 10px; }

  .tabs__list { margin: 0 0 18px; padding: 0; }
  .panel { padding: 40px; gap: 40px; }

  .soft { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
  .sys { grid-template-columns: 190px 1fr; gap: 22px; padding: 12px; }
  .sys img { width: 190px; height: 118px; }
  .sys h3 { font-size: 21px; }

  #proceso .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; }
  #proceso .sec__head { grid-column: 1 / -1; }
  .need { margin-top: 0; align-self: start; padding: 30px; }

  .demo { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
  .demo__intro { position: sticky; top: calc(var(--topbar-h) + 40px); }
  .wizard { padding: 36px; }

  .contact { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .ccard { flex-direction: column; align-items: flex-start; padding: 22px; }
  .ccard:hover { border-color: var(--accent); }

  .footer__in { grid-template-columns: 1fr auto; align-items: center; gap: 22px 40px; }
  .footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(160,178,235,.14); padding-top: 18px; }

  .wa-float { display: grid; place-items: center; position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(37,211,102,.35); }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
