/* ════════════════════════════════════════════════════════════════
   FuturaCobros — Landing
   Sistema de diseño: "El recibo es la prueba"
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta */
  --ink:        #15171F;
  --ink-soft:   #3A3F4D;
  --blue:       #1565C0;
  --blue-deep:  #0B3D91;
  --blue-night: #082B68;
  --green:      #2E7D32;
  --green-br:   #43A047;
  --gold:       #FFB300;
  --paper:      #FBFAF4;
  --paper-line: #E7E2D6;
  --mist:       #EDF1F6;
  --mist-2:     #F6F8FB;
  --white:      #FFFFFF;
  --muted:      #6B7280;
  --line:       #E3E7EE;
  --danger:     #D32F2F;

  /* Tipografía */
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Forma */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(11, 61, 145, .10);
  --shadow-lg: 0 24px 60px rgba(8, 43, 104, .22);
  --maxw: 1140px;
}

/* ─────────── Reset ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }

/* Foco accesible */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─────────── Botones ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn-lg { font-size: 1.06rem; padding: 1em 1.7em; }
.btn-sm { font-size: .9rem; padding: .6em 1.1em; }
.btn-block { width: 100%; }

.btn-play { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(46,125,50,.32); }
.btn-play:hover { background: var(--green-br); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(46,125,50,.4); }
.play-glyph { fill: currentColor; flex-shrink: 0; }

.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.btn-ghost-dark { background: transparent; color: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost-dark:hover { background: var(--blue-deep); color: #fff; transform: translateY(-2px); }

/* ════════════════ HEADER ════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.brand-name { font-family: var(--f-display); font-weight: 500; font-size: 1.18rem; letter-spacing: -.01em; }
.brand-name strong { font-weight: 700; color: #1FA64A; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--blue); transition: width .2s ease;
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after { width: 100%; }
.header-cta { margin-left: 4px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 22px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 13px 6px; font-family: var(--f-display); font-weight: 500; border-bottom: 1px dashed var(--line); }
.mobile-nav .btn { margin-top: 12px; }

/* ════════════════ HERO ════════════════ */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(67,160,71,.28), transparent 60%),
    radial-gradient(900px 500px at 12% 8%, rgba(21,101,192,.55), transparent 60%),
    linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-night) 100%);
}
.hero-bg::after { /* trama de papel cuadriculado sutil */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center;
  padding-top: clamp(48px, 7vw, 86px); padding-bottom: clamp(40px, 6vw, 70px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  color: #cfe0ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  padding: 7px 14px; border-radius: 999px; margin: 0 0 22px;
}
.dot-on { width: 9px; height: 9px; border-radius: 50%; background: var(--green-br); box-shadow: 0 0 0 0 rgba(67,160,71,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(67,160,71,.6);} 70%{ box-shadow: 0 0 0 9px rgba(67,160,71,0);} 100%{ box-shadow:0 0 0 0 rgba(67,160,71,0);} }

.hero-title { font-size: clamp(2.2rem, 5.3vw, 3.7rem); font-weight: 700; }
.hero-title .hl { color: var(--gold); }
.hero-sub { font-size: clamp(1.04rem, 1.6vw, 1.22rem); color: #dce6f7; max-width: 30em; margin: 22px 0 32px; }
.hero-sub strong { color: #fff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-family: var(--f-mono); font-size: .9rem; color: #bcd0f0; }
.check { fill: none; stroke: var(--green-br); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ─────────── Recibo térmico (firma) ─────────── */
.hero-receipt { position: relative; display: flex; justify-content: center; perspective: 1200px; }
.ticket {
  --tooth: 13px;
  position: relative;
  width: 320px; max-width: 100%;
  background: var(--paper);
  color: #20242e;
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
  /* Bordes dentados arriba y abajo (recibo arrancado) */
  -webkit-mask:
    conic-gradient(from -45deg at top,    #0000 25%, #000 0) 0 0   / var(--tooth) 51% repeat-x,
    conic-gradient(from 135deg at bottom, #0000 25%, #000 0) 0 100% / var(--tooth) 51% repeat-x;
          mask:
    conic-gradient(from -45deg at top,    #0000 25%, #000 0) 0 0   / var(--tooth) 51% repeat-x,
    conic-gradient(from 135deg at bottom, #0000 25%, #000 0) 0 100% / var(--tooth) 51% repeat-x;
}
.hero-receipt .ticket { transform: rotate(1.6deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.ticket-body { font-family: var(--f-mono); font-size: .82rem; line-height: 1.5; }
.ticket-body p { margin: 0; }

.t-center { text-align: center; }
.t-right  { text-align: right; }
.t-biz    { font-weight: 700; font-size: 1.04rem; letter-spacing: .06em; }
.t-strong { font-weight: 700; letter-spacing: .05em; }
.t-mut    { color: #7c8089; }
.t-cut    { color: #b9bcc4; text-align: center; letter-spacing: .04em; user-select: none; margin: 9px 0; }
.t-row    { display: flex; justify-content: space-between; gap: 12px; }
.t-label  { color: #54585f; margin-top: 7px; }
.t-amt    { font-weight: 700; font-size: .96rem; }
.t-big    { font-size: 1.25rem; color: var(--green); }
.t-pay    { font-weight: 700; color: #20242e; }
.t-thanks { margin-top: 10px; font-weight: 700; }
.t-barcode{ margin-top: 8px; letter-spacing: -1px; font-size: .9rem; color: #1a1d24; }

.receipt-tag {
  position: absolute; bottom: -14px; right: 6px;
  font-family: var(--f-mono); font-size: .72rem; color: var(--blue-deep);
  background: var(--gold); padding: 6px 12px; border-radius: 999px;
  transform: rotate(-3deg); box-shadow: 0 6px 16px rgba(0,0,0,.25); font-weight: 700;
}

/* Trust strip */
.trust-strip { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.16); }
.trust-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-block: 16px; }
.trust-inner > span { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #9fb6dd; }
.trust-inner ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-inner li { position: relative; padding-left: 18px; font-size: .92rem; color: #e4ecf9; font-weight: 500; }
.trust-inner li::before { content: "›"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }

/* ════════════════ PROBLEMA ════════════════ */
.problem { background: var(--mist); }
.problem-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.kicker { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin: 0 0 14px; font-weight: 700; }
.kicker-red { color: var(--danger); }
.problem h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.lead { font-size: 1.1rem; color: var(--ink-soft); margin-top: 18px; }

.pain-list { display: grid; gap: 14px; }
.pain-list li {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: 1.02rem; font-weight: 500;
  color: var(--ink-soft);
}
.pain-x { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #fdeaea; color: var(--danger); font-weight: 700; font-size: .9rem; }

/* ════════════════ OFFLINE (destacado) ════════════════ */
.offline { background: linear-gradient(150deg, var(--blue-deep), var(--blue-night)); color: #fff; }
.offline-inner { display: flex; align-items: center; gap: 42px; }
.offline-seal {
  flex-shrink: 0; width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center; gap: 4px; text-align: center;
  border: 3px dashed rgba(255,255,255,.4); color: var(--gold);
  font-family: var(--f-mono); font-weight: 700; font-size: .8rem; letter-spacing: .1em; line-height: 1.2;
  transform: rotate(-7deg);
}
.offline-seal svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.offline-copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.offline-copy p { color: #d6e2f6; font-size: 1.12rem; margin-top: 16px; max-width: 46em; }
.offline-copy strong { color: var(--gold); }

/* ════════════════ FUNCIONES (libro mayor) ════════════════ */
.section-head { text-align: center; max-width: 40em; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

.ledger {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
}
.ledger-row {
  display: grid; grid-template-columns: 54px 60px 1fr; align-items: center; gap: 6px;
  padding: 22px 26px; border-bottom: 1px dashed var(--line);
  transition: background .2s ease;
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row:hover { background: var(--mist-2); }
.ledger-no { font-family: var(--f-mono); font-size: .9rem; color: #b6c0cf; font-weight: 700; }
.ledger-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); }
.ledger-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ledger-text h3 { font-size: 1.16rem; font-weight: 600; }
.ledger-text p { margin: 5px 0 0; color: var(--ink-soft); font-size: 1rem; }

/* Primera fila (sin Internet vive en su propia sección, aquí destacamos clientes) */
.ledger-row:nth-child(4) .ledger-ico { background: #e9f5ea; }
.ledger-row:nth-child(4) .ledger-ico svg { stroke: var(--green); }

/* ════════════════ CÓMO FUNCIONA ════════════════ */
.how { background: var(--mist-2); }
.steps { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; }
.step {
  position: relative; flex: 1 1 200px; max-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 22px 24px; text-align: center; box-shadow: var(--shadow);
}
.step-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700;
  box-shadow: 0 6px 14px rgba(21,101,192,.4);
}
.step-ico { width: 56px; height: 56px; margin: 8px auto 14px; border-radius: 14px; background: var(--mist); display: grid; place-items: center; }
.step-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.1rem; font-weight: 600; }
.step p { margin: 8px 0 0; color: var(--ink-soft); font-size: .96rem; }
.step-arrow { display: grid; place-items: center; color: var(--gold); font-size: 1.6rem; font-weight: 700; flex: 0 0 auto; }

/* ════════════════ PRECIO ════════════════ */
.pricing-inner { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.pricing-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.pricing-points { display: grid; gap: 12px; margin-top: 26px; }
.pricing-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 1.04rem; }
.pricing-points .check { stroke: var(--green); flex-shrink: 0; }

.pricing-ticket { display: flex; justify-content: center; perspective: 1200px; }
.ticket-price { width: 380px; padding: 30px 28px; }
.ticket-price .ticket-body { font-size: .9rem; }
.ticket-price .t-total { font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.ticket-price .t-total span:last-child { color: var(--green); font-size: 1.2rem; }
.t-free { color: var(--green); font-weight: 700; }
.t-mut2 { color: #8a8e96; }
.t-tiny { font-size: .72rem; margin-top: 8px; }
.ticket-price .btn { margin: 14px 0 12px; }
.pricing-ticket .ticket { transform: rotate(-1.4deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }

/* ════════════════ CTA FINAL ════════════════ */
.cta-final { background: linear-gradient(150deg, var(--blue-deep), var(--blue-night)); color: #fff; text-align: center; }
.cta-inner { max-width: 44em; margin-inline: auto; }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-final > .container > p, .cta-inner > p { color: #d6e2f6; font-size: 1.15rem; margin-top: 14px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-final .btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,.55); }
.cta-final .btn-ghost-dark:hover { background: #fff; color: var(--blue-deep); }
.cta-fine { margin-top: 26px; font-family: var(--f-mono); font-size: .9rem; color: #bcd0f0; }
.cta-fine a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ════════════════ FOOTER ════════════════ */
.site-footer { background: var(--ink); color: #c8ccd6; padding: 52px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--f-display); font-weight: 700; color: #fff; font-size: 1.2rem; margin: 0; }
.footer-by { margin: 2px 0 0; font-size: .92rem; }
.footer-by strong { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.footer-links a { color: #c8ccd6; font-size: .96rem; transition: color .18s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: .86rem; color: #8b909c; }
.footer-bottom p { margin: 0; }

/* ════════════════ Scroll reveal ════════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-on { animation: none; }
}

/* ════════════════ Responsive ════════════════ */
@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 38px; text-align: center; padding-top: 44px; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-receipt { order: -1; }
  .problem-inner { grid-template-columns: 1fr; gap: 34px; }
  .pricing-inner { grid-template-columns: 1fr; gap: 40px; }
  .offline-inner { flex-direction: column; text-align: center; gap: 28px; }
  .offline-seal { margin-inline: auto; }
}
@media (max-width: 620px) {
  .step-arrow { transform: rotate(90deg); flex-basis: 100%; height: 26px; }
  .step { max-width: 100%; }
  .ledger-row { grid-template-columns: 40px 1fr; }
  .ledger-no { display: none; }
  .footer-inner { flex-direction: column; }
  /* Recibo: centrado, sin rotación y acotado para no desbordar en pantallas chicas */
  .ticket, .ticket-price { width: min(100%, 330px); margin-inline: auto; }
  .hero-receipt .ticket, .pricing-ticket .ticket { transform: none; }
}
.mobile-nav.open { display: flex; }
