/* ==========================================================================
   Kuadras — Página principal del producto
   Paleta de marca: azul #06345A · teal #19B89A · esmeralda #12D3A2 · azul profundo #08213A · gris #64748B
   ========================================================================== */
:root {
  --navy: #06345A;
  --deep: #08213A;
  --teal: #19B89A;
  --emerald: #12D3A2;
  --teal-text: #0B7A66;          /* teal oscurecido para texto sobre blanco (5.3:1) */
  --ink: #06345A;                /* títulos */
  --text: #2C4157;               /* texto de párrafo */
  --muted: #5A6A7E;              /* texto secundario (≥5.3:1 sobre blanco y tinte) */
  --tint: #F7FAFC;
  --teal-tint: #E8F7F3;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --on-dark: #FFFFFF;
  --on-dark-muted: #A9BDD0;
  --gradient-strong: linear-gradient(135deg, #0B7A66 0%, #06345A 100%);
  --gradient-strong-hover: linear-gradient(135deg, #0C8370 0%, #0A4677 100%);
  --gradient-brand: linear-gradient(135deg, #19B89A 0%, #06345A 100%);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(6, 52, 90, 0.06), 0 1px 2px rgba(6, 52, 90, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(6, 52, 90, 0.12), 0 2px 6px -2px rgba(6, 52, 90, 0.06);
  --shadow-lg: 0 20px 48px -12px rgba(6, 52, 90, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0; }

a { color: var(--teal-text); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute; 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(--teal); outline-offset: 3px; border-radius: 6px; }

/* ================= BOTONES ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-lg { min-height: 52px; padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--gradient-strong); color: var(--white); box-shadow: 0 6px 18px -6px rgba(6, 52, 90, 0.45); }
.btn-primary:hover { background: var(--gradient-strong-hover); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(11, 122, 102, 0.5); }
.btn-outline { background: var(--white); color: var(--navy); border-color: #C7D3DF; }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--tint); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35); }
.btn:active { transform: translateY(0); }

/* ================= ENCABEZADO ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; border-radius: 8px;
}
.main-nav > a:hover { color: var(--navy); background: var(--tint); }
.header-actions { display: flex; gap: 8px; }
.nav-actions-mobile { display: none; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--navy); cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(25, 184, 154, 0.14), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(6, 52, 90, 0.06), transparent 70%),
    linear-gradient(180deg, var(--tint) 0%, var(--white) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
}
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.02em; }
.text-gradient {
  background: var(--gradient-strong);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin-top: 20px; font-size: 1.15rem; color: var(--text); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.trust-list li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.trust-list .icon { color: var(--teal-text); }

.hero-visual { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.hero-orb {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, var(--teal-tint) 55%, #D4EFE8 100%);
  box-shadow: inset 0 0 0 1px rgba(25, 184, 154, 0.25), var(--shadow-lg);
}
.hero-orb::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(6, 52, 90, 0.18);
}
.hero-orb img { width: 200px; height: auto; }
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  color: var(--text);
}
.float-badge strong { display: block; color: var(--ink); font-size: 0.9rem; }
.float-badge small { display: block; color: var(--muted); font-size: 0.8rem; }
.badge-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; background: var(--teal-tint); color: var(--teal-text);
}
.badge-a { top: 24px; left: 0; }
.badge-b { top: 46%; right: -8px; }
.badge-c { bottom: 18px; left: 24px; }

/* ================= PARA QUIÉN ================= */
.audience { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.audience-grid li { display: flex; gap: 14px; padding: 28px 24px; color: var(--muted); font-size: 0.92rem; }
.audience-grid li + li { border-left: 1px solid var(--border); }
.audience-grid .icon { width: 28px; height: 28px; color: var(--teal-text); margin-top: 2px; }
.audience-grid strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }

/* ================= SECCIONES ================= */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p:not(.eyebrow) { margin-top: 14px; font-size: 1.08rem; color: var(--muted); }

/* Antes / después */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.compare-card { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.compare-card h3 { font-size: 1.25rem; margin-bottom: 20px; }
.compare-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.compare-card li { display: flex; gap: 12px; align-items: flex-start; }
.compare-card li .icon { margin-top: 3px; }
.compare-before { background: var(--tint); }
.compare-before h3 { color: var(--muted); }
.compare-before li { color: var(--muted); }
.compare-before .icon { color: #B0464B; }
.compare-after { background: var(--white); border-color: rgba(25, 184, 154, 0.45); box-shadow: var(--shadow-md); }
.compare-after .icon { color: var(--teal-text); }

/* Funciones */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(25, 184, 154, 0.4); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 18px; border-radius: 12px;
  background: var(--gradient-brand); color: var(--white);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.97rem; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: none; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 16%;
  right: 16%;
  border-top: 2px dashed #C7D3DF;
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 20px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal); color: var(--navy);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 800;
  box-shadow: 0 0 0 8px var(--white);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Cumplimiento fiscal */
.section-dark {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(25, 184, 154, 0.16), transparent 70%),
    var(--deep);
  color: var(--on-dark-muted);
}
.section-dark h2 { color: var(--on-dark); }
.eyebrow-light { color: var(--emerald); }
.fiscal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fiscal-lead { margin-top: 18px; font-size: 1.1rem; color: #D4E1EC; }
.fiscal-note { margin-top: 18px; font-size: 0.88rem; color: var(--on-dark-muted); }
.fiscal-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.fiscal-list li {
  display: flex; gap: 16px; padding: 22px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md);
}
.fiscal-list .icon { width: 26px; height: 26px; color: var(--teal); margin-top: 2px; }
.fiscal-list strong { display: block; color: var(--on-dark); font-size: 1.02rem; margin-bottom: 4px; }

/* Seguridad */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.security-item { padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--white); }
.security-item > .icon { width: 30px; height: 30px; color: var(--teal-text); margin-bottom: 16px; }
.security-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.security-item p { color: var(--muted); font-size: 0.94rem; }

/* App Android */
.android-section { background: var(--white); border-top: 1px solid var(--border); }
.android-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.android-lead { margin-top: 16px; font-size: 1.08rem; color: var(--text); }
.android-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.android-meta { font-size: 0.9rem; color: var(--muted); }
.android-ios { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.android-steps {
  padding: 32px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.android-steps h3 { margin-bottom: 20px; }
.android-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.android-steps li { display: flex; gap: 14px; color: var(--muted); font-size: 0.95rem; }
.android-steps strong { display: block; color: var(--ink); margin-bottom: 2px; }
.step-dot {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient-strong); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.apk-verify { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); }
.apk-verify summary { cursor: pointer; color: var(--teal-text); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.apk-verify p { margin: 8px 0 6px; }
.apk-verify code {
  display: block; padding: 10px 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--border);
  font-size: 0.78rem; color: var(--ink); word-break: break-all;
}

/* Precios */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px;
  background: var(--white);
  border: 2px solid rgba(25, 184, 154, 0.55);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.pricing-top { text-align: center; padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--teal-text); text-transform: uppercase; letter-spacing: 0.06em; }
.plan-price { margin-top: 8px; font-family: var(--font-display); font-weight: 800; color: var(--ink); line-height: 1; }
.plan-price .currency { font-size: 1.8rem; vertical-align: top; position: relative; top: 8px; }
.plan-price [data-price-usd] { font-size: 4rem; }
.plan-price .period { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.plan-ves { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.plan-trial {
  display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--teal-tint); color: var(--teal-text); font-weight: 600; font-size: 0.9rem;
}
.plan-features { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features .icon { color: var(--teal-text); margin-top: 3px; }
.plan-methods { margin-top: 14px; text-align: center; font-size: 0.88rem; color: var(--muted); }

/* Preguntas */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(25, 184, 154, 0.5); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 20px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--teal-text); transition: transform 0.2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* Llamado final */
.cta-band { padding: 80px 0; background: var(--gradient-strong); text-align: center; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { margin: 14px auto 28px; max-width: 560px; font-size: 1.1rem; color: #DCEBF3; }

/* Pie */
.site-footer { background: var(--deep); color: var(--on-dark-muted); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav h3 { font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark); margin-bottom: 8px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-dark-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.86rem;
}

/* ================= APARICIÓN AL HACER SCROLL ================= */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

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

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .main-nav > a { padding: 0 9px; font-size: 0.9rem; }
}

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav > a { min-height: 48px; padding: 0 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-actions-mobile { display: grid; gap: 10px; margin-top: 16px; }
  .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 0; flex-direction: column; gap: 14px; }
  .hero-orb { width: 220px; height: 220px; margin-bottom: 18px; }
  .hero-orb img { width: 140px; }
  .float-badge { position: static; width: 100%; max-width: 360px; }

  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid li + li { border-left: 0; border-top: 1px solid var(--border); }
  .compare-grid, .fiscal-grid, .android-grid { grid-template-columns: 1fr; }
  .android-grid { gap: 32px; }
  .fiscal-grid { gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .feature-grid, .security-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .compare-card, .pricing-card, .android-steps { padding: 24px; }
  .android-cta .btn { width: 100%; }
  .brand img { height: 34px; }
}
