/* =========================================================
   ABC POS — Sitio oficial de la app
   Diseño: SaaS moderno y refinado · Navy + Azul + Cielo
   ========================================================= */

:root {
  /* Marca */
  --navy:        #0F1C2C;
  --navy-700:    #15263A;
  --navy-600:    #1B324C;
  --azure:       #007FFF;
  --azure-600:   #0069d6;
  --sky:         #6BC5EA;
  --sky-soft:    #d4ecf8;

  /* Neutros */
  --ink:         #0F1C2C;
  --body:        #475667;
  --muted:       #7C8A99;
  --line:        #E6ECF3;
  --line-strong: #d4deea;
  --bg:          #F5F8FC;
  --bg-2:        #EDF3FA;
  --white:       #FFFFFF;
  --card:        #FFFFFF;

  /* Sistema */
  --radius:      18px;
  --radius-sm:   12px;
  --radius-lg:   28px;
  --shadow-sm:   0 1px 2px rgba(15,28,44,.06), 0 2px 6px rgba(15,28,44,.04);
  --shadow:      0 14px 40px -18px rgba(15,28,44,.28), 0 4px 14px -8px rgba(15,28,44,.12);
  --shadow-lg:   0 40px 80px -28px rgba(15,28,44,.40), 0 12px 30px -16px rgba(15,28,44,.20);
  --ring:        0 0 0 4px rgba(0,127,255,.18);

  --font-display: "Sora", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1160px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Decoración hexagonal de fondo ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs::before, .bg-orbs::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.bg-orbs::before { width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(107,197,234,.55), transparent 70%); }
.bg-orbs::after { width: 560px; height: 560px; top: 380px; left: -200px;
  background: radial-gradient(circle, rgba(0,127,255,.18), transparent 70%); }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,248,252,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

/* Lockup del logo */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.brand-text .abc { color: var(--ink); }
.brand-text .bar { width: 2px; height: 19px; background: var(--azure); border-radius: 2px; }
.brand-text .pos { color: var(--azure); font-weight: 700; }
.brand-sub { font-family: var(--font-body); font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .01em; margin-left: 1px; align-self: flex-end; padding-bottom: 3px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--navy-700); opacity: .82; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--azure); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: .25s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   Botones
   ========================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: transform .18s, box-shadow .25s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--azure); color: #fff; box-shadow: 0 10px 26px -10px rgba(0,127,255,.6); }
.btn-primary:hover { background: var(--azure-600); box-shadow: 0 16px 34px -10px rgba(0,127,255,.65); transform: translateY(-2px); }
.btn-ghost { background: rgba(15,28,44,.04); color: var(--navy-700); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; border-color: var(--azure); color: var(--azure); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* Botones tipo "store" */
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 11px 20px 11px 18px; border-radius: 14px; box-shadow: 0 12px 30px -14px rgba(15,28,44,.55); transition: transform .2s, box-shadow .25s; }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(15,28,44,.6); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .store-meta { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn .store-meta small { font-size: 10.5px; opacity: .72; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-body); }
.store-btn .store-meta strong { font-size: 16px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; background: rgba(0,127,255,.08); color: var(--azure-600); border: 1px solid rgba(0,127,255,.18); padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 0 4px rgba(0,127,255,.18); }

.hero h1 { font-size: clamp(36px, 5.2vw, 58px); margin: 22px 0 20px; font-weight: 800; }
.hero h1 .accent { color: var(--azure); }
.hero-lead { font-size: 19px; color: var(--body); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-meta .pill { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--azure); }
.hero-by { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.hero-by b { color: var(--navy-700); font-weight: 700; }

/* Mockup teléfono */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage .halo { position: absolute; inset: -6% -10%; background: radial-gradient(circle at 60% 40%, rgba(107,197,234,.35), transparent 62%); filter: blur(10px); z-index: 0; }
.phone { position: relative; z-index: 2; width: 290px; aspect-ratio: 9/19.5; background: var(--navy); border-radius: 42px; padding: 11px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06); }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: var(--navy); border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.hex-float { position: absolute; z-index: 3; border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; padding: 12px 15px; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 14px; }
.hex-float .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.hex-float small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11px; color: var(--muted); }
.hex-float.f1 { top: 14%; left: -34px; }
.hex-float.f2 { bottom: 16%; right: -40px; }
.hex-float .b-azure { background: var(--azure); }
.hex-float .b-sky   { background: var(--sky); }

/* =========================================================
   Tira de confianza / valores
   ========================================================= */
.section { padding: 84px 0; position: relative; }
.section-head { max-width: 660px; margin: 0 auto 54px; text-align: center; }
.section-head .kicker { color: var(--azure); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-display); }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--body); }

/* =========================================================
   Funciones (grid de tarjetas)
   ========================================================= */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--azure), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::after { transform: scaleX(1); }
.feat-ico { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(150deg, var(--sky-soft), #eaf6fc); display: grid; place-items: center; margin-bottom: 18px; }
.feat-ico svg { width: 26px; height: 26px; color: var(--azure-600); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--body); line-height: 1.6; }

/* =========================================================
   Sección "Solo consulta"
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border-radius: var(--radius-lg); padding: 38px 36px; }
.panel h3 { font-size: 23px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.panel .panel-sub { font-size: 14.5px; margin-bottom: 24px; }
.panel-yes { background: linear-gradient(165deg, #fff, var(--bg-2)); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.panel-no { background: var(--navy); color: rgba(255,255,255,.78); border: 1px solid var(--navy-600); }
.panel-no h3 { color: #fff; } .panel-no .panel-sub { color: rgba(255,255,255,.55); }

.check-list li { display: flex; align-items: flex-start; gap: 13px; padding: 11px 0; font-size: 15.5px; font-weight: 500; }
.check-list li + li { border-top: 1px solid var(--line); }
.panel-no .check-list li + li { border-top: 1px solid rgba(255,255,255,.1); }
.tick { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; margin-top: 1px; }
.tick svg { width: 15px; height: 15px; }
.tick-yes { background: rgba(0,127,255,.12); color: var(--azure-600); }
.tick-no { background: rgba(255,255,255,.08); color: #ff8a8a; }
.panel-yes .check-list li { color: var(--navy-700); }

.note-bar { margin-top: 26px; display: flex; align-items: flex-start; gap: 12px; background: rgba(0,127,255,.06); border: 1px solid rgba(0,127,255,.15); border-radius: 14px; padding: 16px 18px; font-size: 14px; color: var(--navy-700); }
.note-bar svg { width: 20px; height: 20px; color: var(--azure); flex: none; margin-top: 1px; }

/* =========================================================
   Galería de capturas
   ========================================================= */
.shots-wrap { position: relative; }
.shots { display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 30px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 100px; }
.shot { flex: none; width: 232px; scroll-snap-align: center; }
.shot .frame { background: var(--navy); border-radius: 30px; padding: 8px; box-shadow: var(--shadow); }
.shot .frame img { border-radius: 23px; aspect-ratio: 9/19.5; object-fit: cover; object-position: top center; width: 100%; }
.shot .cap { text-align: center; margin-top: 16px; font-family: var(--font-display); font-weight: 600; color: var(--navy-700); font-size: 15px; }
.shot .cap small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* =========================================================
   Banda de privacidad (oscura)
   ========================================================= */
.privacy-band { background: linear-gradient(135deg, var(--navy) 0%, #122c47 100%); border-radius: var(--radius-lg); padding: 56px 50px; position: relative; overflow: hidden; }
.privacy-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(107,197,234,.22), transparent 70%); }
.privacy-band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; position: relative; z-index: 1; }
.privacy-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.privacy-band p { color: rgba(255,255,255,.72); font-size: 16.5px; margin-bottom: 26px; }
.safety-list { display: grid; gap: 14px; }
.safety-list li { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 15px 18px; color: #fff; font-weight: 600; font-size: 15px; }
.safety-list .si { width: 38px; height: 38px; border-radius: 11px; background: rgba(0,127,255,.18); display: grid; place-items: center; flex: none; }
.safety-list .si svg { width: 20px; height: 20px; color: var(--sky); }

/* =========================================================
   Soporte
   ========================================================= */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.support-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; text-align: center; transition: transform .25s, box-shadow .25s; }
.support-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.support-card .si { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px; background: linear-gradient(150deg, var(--sky-soft), #eaf6fc); display: grid; place-items: center; }
.support-card .si svg { width: 28px; height: 28px; color: var(--azure-600); }
.support-card h3 { font-size: 18px; margin-bottom: 8px; }
.support-card p { font-size: 14.5px; margin-bottom: 14px; }
.support-card a.link { color: var(--azure); font-weight: 700; font-size: 15px; }
.support-card a.link:hover { text-decoration: underline; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--navy); color: rgba(255,255,255,.62); padding: 64px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand-text .abc { color: #fff; }
.footer .f-about { margin-top: 18px; font-size: 14.5px; max-width: 320px; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-display); }
.footer ul li { margin-bottom: 12px; }
.footer ul a { font-size: 14.5px; transition: color .2s; }
.footer ul a:hover { color: var(--sky); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; font-size: 13.5px; }
.footer-bottom .by b { color: rgba(255,255,255,.85); }

/* =========================================================
   Páginas legales
   ========================================================= */
.legal-hero { background: linear-gradient(135deg, var(--navy), #122c47); color: #fff; padding: 64px 0 56px; }
.legal-hero .back { display: inline-flex; align-items: center; gap: 8px; color: var(--sky); font-weight: 600; font-size: 14.5px; margin-bottom: 22px; }
.legal-hero .back:hover { text-decoration: underline; }
.legal-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); }
.legal-hero p { color: rgba(255,255,255,.66); margin-top: 14px; font-size: 16px; }
.legal-hero .updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; color: #fff; }

.legal-body { max-width: 800px; margin: 0 auto; padding: 56px 24px 90px; }
.legal-body .toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 44px; box-shadow: var(--shadow-sm); }
.legal-body .toc strong { font-family: var(--font-display); color: var(--ink); display: block; margin-bottom: 12px; font-size: 15px; }
.legal-body .toc ol { margin-left: 18px; columns: 2; column-gap: 32px; }
.legal-body .toc li { margin-bottom: 8px; }
.legal-body .toc a { color: var(--azure-600); font-size: 14.5px; font-weight: 500; }
.legal-body .toc a:hover { text-decoration: underline; }

.legal-body section { margin-bottom: 38px; scroll-margin-top: 90px; }
.legal-body h2 { font-size: 23px; margin-bottom: 14px; padding-top: 6px; display: flex; gap: 12px; align-items: baseline; }
.legal-body h2 .num { color: var(--azure); font-size: 16px; font-weight: 800; font-family: var(--font-display); }
.legal-body h3 { font-size: 17px; margin: 22px 0 8px; color: var(--navy-700); }
.legal-body p { margin-bottom: 14px; font-size: 16px; color: var(--body); }
.legal-body ul.dot { margin: 6px 0 16px; }
.legal-body ul.dot li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 15.5px; color: var(--body); }
.legal-body ul.dot li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--azure); }
.legal-body a.inline { color: var(--azure-600); font-weight: 600; }
.legal-body a.inline:hover { text-decoration: underline; }
.legal-body .ph { background: #fff6e6; border: 1px dashed #e7b85c; color: #8a5a12; padding: 1px 7px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.callout { background: rgba(0,127,255,.05); border: 1px solid rgba(0,127,255,.15); border-left: 4px solid var(--azure); border-radius: 12px; padding: 18px 22px; margin: 18px 0; }
.callout p { margin: 0; font-size: 15px; color: var(--navy-700); }

/* =========================================================
   Animaciones de entrada
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .phone-stage { order: -1; }
  .hero-lead { max-width: none; }
  .split { grid-template-columns: 1fr; }
  .privacy-band-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 18px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open .nav-links a { padding: 14px 6px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav.open .nav-links .btn { display: inline-flex; margin-top: 14px; justify-content: center; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .panel { padding: 30px 24px; }
  .privacy-band { padding: 40px 26px; }
  .hex-float.f1 { left: -8px; transform: scale(.9); }
  .hex-float.f2 { right: -6px; transform: scale(.9); }
  .legal-body .toc ol { columns: 1; }
}
@media (max-width: 460px) {
  .features { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .hero-cta .store-btn { justify-content: center; }
}
