
:root {
  --brand: #12b5a5;
  --brand-600: #0e9c8e;
  --brand-700: #0b7e73;
  --brand-50: #eafaf8;
  --brand-100: #d3f3ef;
  --ink: #0f1b2d;
  --ink-soft: #33445a;
  --muted: #6b7a8d;
  --line: #e6ecf1;
  --bg: #ffffff;
  --bg-soft: #f5fbfa;
  --accent: #ffc83d;
  --ok: #16a34a;
  --danger: #e11d48;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 3px rgba(15, 27, 45, 0.05);
  --shadow-md: 0 10px 25px -10px rgba(15, 27, 45, 0.18);
  --shadow-lg: 0 24px 50px -16px rgba(11, 126, 115, 0.28);
  --radius: 18px;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 22px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 6px 12px; border-radius: 999px;
}
.section { padding-block: clamp(56px, 8vw, 84px); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 14px; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; border-radius: 999px; padding: 13px 26px;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 156, 142, 0.7);
}
.btn--primary:hover { box-shadow: 0 12px 26px -8px rgba(14, 156, 142, 0.85); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--brand-700); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(18, 181, 165, 0.12), transparent 60%),
    radial-gradient(50% 50% at 5% 90%, rgba(18, 181, 165, 0.08), transparent 60%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; padding-block: 78px 84px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: 20px; }
.hero h1 span { color: var(--brand-600); }
.hero__lead { color: var(--ink-soft); font-size: 1.15rem; margin-top: 20px; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-size: 1.5rem; color: var(--ink); }
.hero__trust small { color: var(--muted); font-size: 0.85rem; }
.hero__card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 26px; }
.hero__card h3 { font-size: 1.05rem; }
.hero__cardrow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.hero__cardrow:last-child { border-bottom: 0; }
.hero__ico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.2rem; background: var(--brand-50); color: var(--brand-700); }
.hero__cardrow b { display: block; font-size: 0.97rem; }
.hero__cardrow small { color: var(--muted); font-size: 0.85rem; }
.hero__badge {
  position: absolute; top: -16px; right: 20px; background: var(--ink); color: #fff;
  font-size: 0.78rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-md); display: inline-flex; align-items: center; gap: 7px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22e0a1; box-shadow: 0 0 0 4px rgba(34, 224, 161, 0.25); }
.capture { max-width: 560px; margin: 0 auto 46px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.capture label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 8px; }
.capture small { color: var(--muted); }
.field { display: flex; gap: 10px; margin-top: 10px; }
.field input { flex: 1; min-width: 0; font-family: inherit; font-size: 1rem; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18, 181, 165, 0.18); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--popular { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: scale(1.02); }
.plan--popular:hover { transform: scale(1.02) translateY(-4px); }
.plan__tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #5a3d00; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.plan__freq { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 0.82rem; font-weight: 600; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 6px 12px; border-radius: 999px; }
.plan__name { font-size: 1.5rem; margin-top: 16px; }
.plan__tagline { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; }
.plan__price b { font-size: 2.5rem; letter-spacing: -0.03em; }
.plan__price span { color: var(--muted); font-size: 0.95rem; }
.plan__per { margin-top: 6px; color: var(--ink-soft); font-size: 0.9rem; }
.plan__per s { color: var(--muted); }
.plan__save { color: var(--ok); font-weight: 600; }
.plan__features { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; }
.plan__features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.check { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; }
.plan__cta { margin-top: auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step__n { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); }
.step h3 { margin-top: 18px; font-size: 1.15rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit__ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; background: var(--brand-50); color: var(--brand-700); margin-bottom: 16px; }
.benefit h3 { font-size: 1.08rem; }
.benefit p { margin-top: 7px; color: var(--muted); font-size: 0.94rem; }
.cta-band { background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 100%); color: #fff; border-radius: 26px; padding: clamp(36px, 6vw, 54px) clamp(22px, 5vw, 40px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { margin: 14px auto 0; max-width: 520px; color: rgba(255, 255, 255, 0.9); }
.cta-band .btn { margin-top: 26px; background: #fff; color: var(--brand-700); }
.footer { border-top: 1px solid var(--line); padding-block: 48px; background: var(--bg-soft); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer p { color: var(--muted); font-size: 0.92rem; margin-top: 12px; max-width: 320px; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-soft); font-size: 0.94rem; }
.footer ul a:hover { color: var(--brand-700); }
.footer__bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 0.95rem; max-width: 90vw; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--error { background: var(--danger); }
.result { min-height: 70vh; display: grid; place-items: center; padding-block: 60px; }
.result__card { max-width: 540px; width: 100%; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 44px 38px; box-shadow: var(--shadow-md); }
.result__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 22px; }
.result__icon--ok { background: #e7f8ee; color: var(--ok); }
.result__icon--pending { background: #fff6e0; color: #b7791f; }
.result__icon--error { background: #fde8ee; color: var(--danger); }
.result__card h1 { font-size: 1.7rem; }
.result__card > p { color: var(--muted); margin-top: 12px; }
.result__detail { text-align: left; margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.result__detail div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 0.92rem; }
.result__detail div:nth-child(odd) { background: var(--bg-soft); }
.result__detail span { color: var(--muted); }
.result__detail b { color: var(--ink); text-align: right; word-break: break-all; }
.badge-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.badge-status.authorized { background: #e7f8ee; color: var(--ok); }
.badge-status.pending { background: #fff6e0; color: #b7791f; }
.badge-status.cancelled { background: #fde8ee; color: var(--danger); }
/* Texto largo (correos/tokens) dentro del banner demo no debe desbordar */
.demo-banner code { word-break: break-all; }

/* ===================== Confirmación / resultado ===================== */
.confirm { max-width: 560px; width: 100%; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); animation: confirm-rise 0.5s ease both; }
@keyframes confirm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.confirm__hero { text-align: center; padding: 44px 32px 30px; }
.confirm__hero--ok { background: linear-gradient(180deg, #e7f8ee 0%, #fff 100%); }
.confirm__hero--pending { background: linear-gradient(180deg, #fff6e0 0%, #fff 100%); }
.confirm__hero--error { background: linear-gradient(180deg, #fde8ee 0%, #fff 100%); }
.confirm__hero h1 { font-size: clamp(1.4rem, 4vw, 1.7rem); margin-top: 18px; }
.confirm__hero p { color: var(--ink-soft); margin-top: 10px; max-width: 420px; margin-inline: auto; }
.confirm__hint { display: inline-block; margin-top: 14px; color: var(--muted); font-size: 0.85rem; }
.confirm__emoji { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; font-size: 2.1rem; margin: 0 auto; background: #fde8ee; color: var(--danger); }
.confirm__body { padding: 6px 30px 36px; }
.confirm__actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.check-anim svg { width: 88px; height: 88px; }
.check-anim .circle { fill: #fff; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: check-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards; }
.check-anim .check { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: check-tick 0.35s 0.55s cubic-bezier(0.65, 0, 0.45, 1) forwards; }
@keyframes check-circle { to { stroke-dashoffset: 0; } }
@keyframes check-tick { to { stroke-dashoffset: 0; } }
.spinner { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 6px solid var(--brand-100); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nextsteps { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.nextsteps h3 { font-size: 1.05rem; text-align: center; margin-bottom: 18px; }
.nextsteps ol { list-style: none; counter-reset: ns; margin: 0; padding: 0; display: grid; gap: 14px; }
.nextsteps li { counter-increment: ns; display: flex; gap: 13px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); }
.nextsteps li::before { content: counter(ns); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.confetti-piece { position: fixed; top: -14px; width: 9px; height: 14px; border-radius: 2px; opacity: 0.92; z-index: 80; pointer-events: none; animation-name: confetti-fall; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes confetti-fall { 0% { transform: translateY(-14px) rotate(0deg); } 100% { transform: translateY(106vh) rotate(680deg); } }

/* ===================== Hero rework + secciones ===================== */
.hero__trustline { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--ink-soft); font-size: 0.9rem; }
.hero__trustline li { position: relative; padding-left: 18px; font-weight: 500; }
.hero__trustline li::before { content: '✓'; position: absolute; left: 0; top: -1px; color: var(--brand); font-weight: 700; }
.subcard__label { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-700); }
.subcard__date { font-size: 1.5rem; margin-top: 6px; }
.subcard__team { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.subcard__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px dashed var(--line); font-size: 0.95rem; }
.subcard__row:first-of-type { margin-top: 14px; }
.subcard__row span { color: var(--ink-soft); }
.subcard__row strong { font-weight: 700; color: var(--ink); }
.subcard__status { margin-top: 16px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); border-radius: 12px; padding: 11px 14px; font-size: 0.86rem; font-weight: 600; text-align: center; }
.benefits--3 { grid-template-columns: repeat(3, 1fr); }
.diff-note { max-width: 760px; margin: 42px auto 0; text-align: center; font-size: 1.05rem; color: var(--ink-soft); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 22px 28px; }
.diff-note strong { color: var(--brand-700); }

/* ===================== Responsive ===================== */
@media (max-width: 1040px) {
  .hero__grid { gap: 40px; }
  .plans { gap: 20px; }
  .benefits { gap: 18px; }
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-block: 54px 66px; }
  .hero__card { max-width: 460px; width: 100%; margin-inline: auto; }
  .hero__lead { max-width: none; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--popular { transform: none; }
  .plan--popular:hover { transform: translateY(-4px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 32px; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .nav { display: none; }
}
@media (max-width: 680px) {
  .hero__grid > div:first-child { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__trustline { justify-content: center; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .section__head { margin-bottom: 36px; }
}
@media (max-width: 520px) {
  .benefits { grid-template-columns: 1fr; }
  .field { flex-direction: column; }
  .header__inner { height: 62px; gap: 12px; }
  .header__phone { display: none; }
  .brand { font-size: 1.12rem; }
  .steps { grid-template-columns: 1fr; }
  .subcard__date { font-size: 1.3rem; }
  .hero__card { padding: 22px 18px; }
  .plan { padding: 26px 22px; }
  .plan__price b { font-size: 2.2rem; }
  .cta-band { border-radius: 20px; }
  .result__card { padding: 32px 22px; }
  .result__card h1 { font-size: 1.45rem; }
  .btn--lg { padding: 14px 24px; font-size: 1rem; }
  .toast { left: 16px; right: 16px; bottom: 16px; transform: translateY(20px); max-width: none; }
  .toast.show { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
