/* ============================================================
   GU·SAFE — Sitio web
   Identidad de marca (Brandbook 2026):
     Ink        #0E1116   fondo dark / texto
     Mint       #3DDBB0   primario · CTA
     Mint deep  #1FB893   pressed / hover
     Mint soft  #D6F7EC   fondos suaves
     Cobalt GGU #1F45A8   co-branding (vínculo familiar GGU)
   ============================================================ */

:root {
  --ink: #0E1116;
  --ink-2: #171B23;
  --ink-3: #1F2632;
  --mint: #3DDBB0;
  --mint-deep: #1FB893;
  --mint-soft: #D6F7EC;
  --cobalt: #1F45A8;
  --cobalt-2: #2D5BC4;
  --white: #FFFFFF;
  --text: #0E1116;
  --text-muted: #5B6573;
  --text-on-dark: #E6EAF0;
  --text-on-dark-muted: #95A1B3;
  --border: #E6E9EE;
  --border-dark: #2A313C;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 14px;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.08; font-weight: 800; }

/* ---------------- NAV ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 17, 22, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border-dark);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--cobalt);
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(31, 69, 168, 0.4);
}
.brand__mark img { width: 22px; height: 22px; }
.brand__name {
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--white);
}
.brand__name .dot { color: var(--mint); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 15px; font-weight: 600; color: var(--text-on-dark-muted);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  background: var(--mint); color: var(--ink) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 700 !important;
}
.nav__cta:hover { background: var(--mint-deep); }
@media (max-width: 720px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(31, 69, 168, 0.55), transparent 60%),
    radial-gradient(900px 460px at 8% 14%, rgba(61, 219, 176, 0.18), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--text-on-dark);
  padding: 88px 0 72px;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 40px; align-items: center;
}
.hero h1 { font-size: clamp(40px, 6vw, 68px); color: var(--white); }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--mint), var(--mint-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--text-on-dark-muted);
  margin: 22px 0 32px; max-width: 30em;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__badges {
  display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap;
}
.hero__badge {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--text-on-dark-muted);
}
.hero__badge svg { width: 18px; height: 18px; flex: none; }

/* Phone showcase — el teléfono frontal (in-flow) define la altura;
   los traseros son absolutos respecto a él → altura determinista, sin clip. */
.hero__phones { position: relative; display: flex; justify-content: center; }
.phone {
  border-radius: 38px;
  border: 7px solid #0a0d12;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
  background: #000;
  overflow: hidden;
}
.phone img { width: 100%; display: block; }
.phone--front { position: relative; z-index: 3; width: 240px; }
.phone--back-l, .phone--back-r { position: absolute; top: 0; width: 210px; opacity: 0.9; }
.phone--back-l { transform: translateX(-130px) translateY(40px) rotate(-7deg); }
.phone--back-r { transform: translateX(130px) translateY(40px) rotate(7deg); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__phones { margin-top: 16px; }
}
/* Móvil chico: teléfonos más compactos para que el "fan" se lea completo */
@media (max-width: 480px) {
  .phone--front { width: 210px; }
  .phone--back-l, .phone--back-r { width: 178px; }
  .phone--back-l { transform: translateX(-98px) translateY(34px) rotate(-7deg); }
  .phone--back-r { transform: translateX(98px) translateY(34px) rotate(7deg); }
}

/* ---------------- App Store badge (placeholder oficial) ---------------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border: 1px solid #2a2a2a;
  padding: 11px 20px 11px 18px; border-radius: 14px;
  transition: transform 0.15s, border-color 0.15s;
}
.store-badge:hover { transform: translateY(-2px); border-color: #444; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb__top { display: block; font-size: 11px; color: #cfcfcf; letter-spacing: 0.02em; }
.store-badge .sb__main { display: block; font-size: 19px; font-weight: 700; line-height: 1.15; margin-top: -1px; }
.store-badge--soon { opacity: 0.96; }
.store-badge--soon .sb__main { font-size: 17px; }

/* ---------------- Trust strip ---------------- */
.trust {
  background: var(--ink-2); color: var(--text-on-dark-muted);
  border-top: 1px solid var(--border-dark);
  padding: 22px 0;
}
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 36px; font-size: 14px; font-weight: 600; }
.trust__inner b { color: var(--mint); }

/* ---------------- Sections ---------------- */
section.block { padding: 92px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--text-muted); font-size: 18px; margin-top: 16px; }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,17,22,0.08); border-color: var(--mint); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mint-soft); margin-bottom: 18px;
}
.feature__icon svg { width: 24px; height: 24px; stroke: var(--mint-deep); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* Steps "Cómo funciona" */
.steps-sec { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px 28px; background: linear-gradient(180deg, #FBFCFD, #fff);
}
.step__n {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--mint); font-weight: 800; font-size: 19px; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }
.step__line {
  position: absolute; top: 53px; right: -11px; width: 22px; height: 2px;
  background: var(--border);
}
@media (max-width: 860px) { .step__line { display: none; } }

/* Anti-corrupción highlight */
.shield { background: var(--ink-2); color: var(--text-on-dark); }
.shield__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .shield__inner { grid-template-columns: 1fr; gap: 26px; } }
.shield h2 { font-size: clamp(28px, 4vw, 40px); color: #fff; }
.shield p { color: var(--text-on-dark-muted); font-size: 17px; margin-top: 16px; }
.shield ul { list-style: none; margin-top: 20px; }
.shield li { display: flex; gap: 11px; align-items: flex-start; margin: 12px 0; font-size: 15.5px; color: var(--text-on-dark); }
.shield li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; stroke: var(--mint); }
.shield__art {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 420px at 50% 40%, rgba(31,69,168,0.45), transparent 70%),
    var(--ink);
  border: 1px solid var(--border-dark);
}
.shield__art svg { width: 150px; height: 150px; }

/* Availability / Android */
.availability {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px;
}
.avail-pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-dark);
  color: var(--text-on-dark-muted); background: rgba(255,255,255,0.02);
}
.avail-pill svg { width: 17px; height: 17px; flex: none; }
.avail-pill b { color: #fff; font-weight: 700; }

/* Showcase alternating */
.showcase { background: linear-gradient(180deg, #F7F9FB 0%, #FFFFFF 100%); }
.show-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0;
}
.show-row + .show-row { border-top: 1px solid var(--border); }
.show-row--flip .show-row__media { order: 2; }
.show-row__media { display: flex; justify-content: center; }
.show-row__phone {
  width: 270px; border-radius: 40px; border: 8px solid var(--ink);
  box-shadow: 0 26px 60px rgba(14,17,22,0.22); overflow: hidden; background: #000;
}
.show-row h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.show-row p { color: var(--text-muted); font-size: 17px; margin-bottom: 18px; }
.show-row ul { list-style: none; }
.show-row li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15.5px; }
.show-row li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; stroke: var(--mint-deep); }
@media (max-width: 860px) {
  .show-row, .show-row--flip { grid-template-columns: 1fr; gap: 28px; }
  .show-row--flip .show-row__media { order: 0; }
}

/* Privacy block */
.privacy { background: var(--ink); color: var(--text-on-dark); }
.privacy .section-head h2 { color: var(--white); }
.privacy .section-head p { color: var(--text-on-dark-muted); }
.privacy__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 860px) { .privacy__grid { grid-template-columns: 1fr; } }
.privacy__card {
  background: var(--ink-2); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 28px;
}
.privacy__card .feature__icon { background: rgba(61,219,176,0.12); }
.privacy__card .feature__icon svg { stroke: var(--mint); }
.privacy__card h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.privacy__card p { color: var(--text-on-dark-muted); font-size: 14.5px; }
.privacy__note { text-align: center; margin-top: 38px; color: var(--text-on-dark-muted); font-size: 14px; }
.privacy__note a { color: var(--mint); font-weight: 600; }

/* GGU co-brand band */
.ggu { background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-2) 100%); color: #fff; }
.ggu__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .ggu__inner { grid-template-columns: 1fr; gap: 24px; } }
.ggu h2 { font-size: clamp(28px, 4vw, 40px); }
.ggu p { color: rgba(255,255,255,0.86); font-size: 18px; margin-top: 16px; }
.ggu__stats { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.ggu__stat b { display: block; font-size: 36px; font-weight: 800; }
.ggu__stat span { font-size: 14px; color: rgba(255,255,255,0.8); }

/* CTA final */
.cta {
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(61,219,176,0.22), transparent 60%),
    var(--ink-2);
  color: #fff; padding: 96px 0;
}
.cta h2 { font-size: clamp(30px, 4.5vw, 50px); color: var(--white); }
.cta p { color: var(--text-on-dark-muted); font-size: 19px; margin: 18px auto 34px; max-width: 32em; }

/* ---------------- Footer ---------------- */
.footer { background: var(--ink); color: var(--text-on-dark-muted); padding: 64px 0 40px; border-top: 1px solid var(--border-dark); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: var(--white); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { display: block; color: var(--text-on-dark-muted); font-size: 14.5px; margin: 9px 0; transition: color 0.15s; }
.footer a:hover { color: var(--mint); }
.footer__brand p { font-size: 14px; margin-top: 14px; max-width: 28em; line-height: 1.6; }
.footer__legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-dark);
  font-size: 12.5px; line-height: 1.7; color: #6B7585;
}
.footer__legal strong { color: #9aa6b6; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; border-radius: 999px;
  padding: 13px 26px; cursor: pointer; border: none;
  transition: transform 0.15s, background 0.15s;
}
.btn--mint { background: var(--mint); color: var(--ink); }
.btn--mint:hover { background: var(--mint-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid var(--border-dark); }
.btn--ghost:hover { border-color: var(--mint); }

/* ============================================================
   RESPONSIVE — pantallas grandes y móvil
   ============================================================ */

/* ---- Pantallas grandes (≥1440px): aprovechar el ancho, escalar hero ---- */
@media (min-width: 1440px) {
  :root { --maxw: 1240px; }
  .hero h1 { font-size: clamp(56px, 4.6vw, 80px); }
  .hero__sub { font-size: 22px; max-width: 32em; }
  .hero__phones { transform: scale(1.08); }
  section.block { padding: 108px 0; }
  .section-head h2 { font-size: clamp(36px, 3vw, 50px); }
}

/* ---- Pantallas muy anchas (≥1800px): tope de inmersión ---- */
@media (min-width: 1800px) {
  :root { --maxw: 1320px; }
  .hero__phones { transform: scale(1.16); }
}

/* ---- Tablet (≤860px): ya colapsan grids a 1 columna en cada sección ---- */
@media (max-width: 860px) {
  section.block { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
}

/* ---- Móvil (≤600px): compactar ritmo vertical y reforzar legibilidad ---- */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  section.block { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16px; }
  .hero { padding: 76px 0 48px; }
  .hero__sub { margin: 18px 0 26px; }
  .trust__inner { gap: 8px 18px; font-size: 13px; }
  .trust__inner span:nth-child(even) { display: none; } /* ocultar separadores "·" */
  .feature { padding: 24px; }
  .show-row, .show-row--flip { padding: 32px 0; gap: 24px; }
  .show-row__phone { width: 230px; }
  .ggu__stats { gap: 24px; }
  .ggu__stat b { font-size: 30px; }
  .cta { padding: 64px 0; }
  .cta p { font-size: 17px; }
  .shield__art svg { width: 110px; height: 110px; }
  .footer { padding: 48px 0 32px; }
}

/* ---- Móvil chico (≤380px): evitar que el CTA del nav apriete el logo ---- */
@media (max-width: 380px) {
  .brand__name { font-size: 17px; }
  .nav__cta { padding: 8px 14px; }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--mint); color: var(--ink); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; transition: top 0.18s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}

/* ============================================================
   CTA STICKY (aparece al hacer scroll · controlado por site.js)
   ============================================================ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border-dark);
  transform: translateY(110%); transition: transform 0.28s ease;
  padding: 12px 0;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sticky-cta__text { color: var(--white); font-weight: 700; font-size: 15px; }
.sticky-cta__text span { display: block; color: var(--text-on-dark-muted); font-weight: 500; font-size: 12.5px; }
.sticky-cta .btn--mint { padding: 11px 20px; font-size: 15px; white-space: nowrap; }
@media (max-width: 480px) {
  .sticky-cta__text span { display: none; }
  .sticky-cta__text { font-size: 14px; }
}

/* ============================================================
   WAITLIST (captura de demanda pre-lanzamiento)
   ============================================================ */
.waitlist { max-width: 460px; margin: 28px auto 0; }
.waitlist__form { display: flex; gap: 10px; }
.waitlist__input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px;
  padding: 14px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-dark);
  color: var(--white); outline: none; transition: border-color 0.15s;
}
.waitlist__input::placeholder { color: var(--text-on-dark-muted); }
.waitlist__input:focus { border-color: var(--mint); }
.waitlist__btn { white-space: nowrap; }
.waitlist__hint { margin-top: 12px; font-size: 13px; color: var(--text-on-dark-muted); }
.waitlist__hint a { color: var(--mint); }
.waitlist__msg { margin-top: 14px; font-weight: 600; font-size: 15px; min-height: 1.2em; }
.waitlist__msg.is-ok { color: var(--mint); }
.waitlist__msg.is-err { color: #FF8A80; }
@media (max-width: 480px) {
  .waitlist__form { flex-direction: column; }
  .waitlist__btn { width: 100%; justify-content: center; }
}

/* ============================================================
   BLOQUE COMPARATIVO (vs solo una app de multas)
   ============================================================ */
.compare { background: var(--white); }
.compare__table {
  max-width: 760px; margin: 0 auto; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.compare__row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; }
.compare__row + .compare__row { border-top: 1px solid var(--border); }
.compare__row > div { padding: 16px 18px; font-size: 15px; }
.compare__row--head > div { font-weight: 700; font-size: 14px; background: #F7F9FB; }
.compare__row--head .compare__us { color: var(--mint-deep); }
.compare__feat { color: var(--text); font-weight: 600; }
.compare__cell { text-align: center; font-weight: 700; }
.compare__us { background: rgba(61,219,176,0.06); }
.compare__yes { color: var(--mint-deep); }
.compare__no { color: #C2C9D2; }
@media (max-width: 520px) {
  .compare__row { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
  .compare__row > div { padding: 13px 12px; font-size: 13.5px; }
}
