/* ============================================================
   Préstamo Claro MX — Estilos del sitio (H5 / responsive)
   ============================================================ */

:root {
    --bg: #F5F7FC;
    --bg-soft: #EEF2FA;
    --surface: #FFFFFF;
    --ink: #0B1430;
    --ink-2: #26314D;
    --muted: #67718C;
    --muted-2: #8B94AA;
    --line: #E5EAF4;
    --line-2: #D7DEEE;
    --brand: #2653F5;
    --brand-600: #1C43D8;
    --brand-2: #7C3AED;
    --pink: #DB2777;
    --green: #0B9E6E;
    --green-soft: #E7F8F1;
    --amber: #B45309;
    --amber-soft: #FEF3C7;
    --red: #D92D3A;
    --red-soft: #FEE9EA;
    --violet-soft: #F1EBFF;
    --blue-soft: #E9EFFF;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 4px 14px -6px rgba(16, 24, 40, .14);
    --shadow: 0 18px 40px -22px rgba(16, 24, 40, .28);
    --shadow-lg: 0 40px 80px -32px rgba(16, 24, 40, .35);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max: 1180px;
    --header-h: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(38, 83, 245, .35); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(38, 83, 245, .16); }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: .95rem; line-height: 1;
    padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 12px 24px -12px rgba(38, 83, 245, .8); }
.btn-primary:hover { box-shadow: 0 18px 30px -14px rgba(38, 83, 245, .9); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #16213f; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--line-2); }
.btn-white { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: #F4F7FF; }
.btn-soft { background: var(--blue-soft); color: var(--brand); }
.btn-soft:hover { background: #DCE6FF; }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); }
.btn-sm { padding: 10px 16px; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 17px 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn .btn-arrow { transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .01em; }
.pill-brand { background: var(--blue-soft); color: var(--brand); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-violet { background: var(--violet-soft); color: var(--brand-2); }
.pill-slate { background: var(--bg-soft); color: var(--muted); }
.pill-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; }
.badge-blue { background: var(--blue-soft); color: var(--brand); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-violet { background: var(--violet-soft); color: var(--brand-2); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-rose { background: #FCE7F3; color: #BE185D; }

/* ============================================================
   Topbar + header
   ============================================================ */
.topbar { background: linear-gradient(90deg, #0B1430, #1B2450 55%, #2A1B58); color: #C9D2EC; font-size: .78rem; }
.topbar-inner { display: flex; align-items: center; gap: 14px; min-height: 38px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-item svg { color: #63E4B8; }
.topbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.topbar-link { margin-left: auto; color: #fff; font-weight: 700; opacity: .85; }
.topbar-link:hover { opacity: 1; }
@media (max-width: 760px) { .topbar-item:nth-child(3), .topbar-sep { display: none; } }

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(229, 234, 244, .8);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(16,24,40,.4); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 6px 10px rgba(38,83,245,.28)); }
.brand-text strong { font-weight: 800; background: linear-gradient(100deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-light { color: #fff; }
.brand-light .brand-text strong { background: linear-gradient(100deg, #8FB0FF, #D3B4FF); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.main-nav a { padding: 9px 13px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.main-nav a.is-active { color: var(--brand); background: var(--blue-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); margin-inline: auto; border-radius: 2px; transition: .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(8,14,32,.5); backdrop-filter: blur(2px); z-index: 55; }

@media (max-width: 1020px) {
    .main-nav { position: fixed; top: 0; right: 0; z-index: 70; height: 100dvh; width: min(320px, 84vw); background: #fff; flex-direction: column; align-items: stretch; gap: 4px; padding: 92px 22px 24px; margin: 0; transform: translateX(105%); transition: transform .26s ease; box-shadow: -20px 0 60px -30px rgba(0,0,0,.4); }
    .main-nav.open { transform: translateX(0); }
    .main-nav a { padding: 14px 16px; font-size: 1rem; }
    .nav-toggle { display: flex; }
    .header-account { display: none; }
}
@media (max-width: 520px) {
    .header-actions .btn-primary { display: none; }
    .brand { font-size: 1.08rem; }
    .container { width: calc(100% - 32px); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 12% -10%, #E5ECFF 0%, transparent 60%), radial-gradient(900px 460px at 100% 0%, #F2E9FF 0%, transparent 55%), linear-gradient(180deg, #FAFBFF, #F5F7FC); }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(11,20,48,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,20,48,.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; padding: 62px 0 70px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 7px 13px 7px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-xs); }
.hero-eyebrow .flag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #0B9E6E 33%, #fff 33% 66%, #D92D3A 66%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.hero h1 { margin-top: 20px; font-size: clamp(2.35rem, 4.4vw, 3.85rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.grad-text { background: linear-gradient(100deg, #2653F5 5%, #7C3AED 55%, #DB2777 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 20px; max-width: 545px; font-size: 1.05rem; color: var(--muted); line-height: 1.65; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.hero-ticks li { display: flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 600; color: var(--ink-2); }
.tick { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--green-soft); color: var(--green); flex: 0 0 auto; }
.tick svg { width: 11px; height: 11px; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; box-shadow: var(--shadow-xs); }
.avatar-stack span:first-child { margin-left: 0; }
.hero-proof-text { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.hero-proof-text strong { display: block; color: var(--ink); font-size: .88rem; }
.stars { display: inline-flex; gap: 2px; color: #F59E0B; vertical-align: -2px; }
.stars svg { width: 13px; height: 13px; }

/* Calculadora */
.calc-card { position: relative; background: #fff; border: 1px solid rgba(229,234,244,.9); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-lg); }
.calc-card::before { content: ''; position: absolute; inset: -1px; border-radius: 28px; padding: 1px; background: linear-gradient(160deg, rgba(38,83,245,.5), rgba(124,58,237,.1) 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.calc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.calc-head h2 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.calc-head p { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.calc-live { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; color: var(--green); background: var(--green-soft); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.calc-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.calc-amount { margin-top: 22px; }
.calc-amount-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.calc-amount-value { font-size: clamp(2.1rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-top: 4px; }
.calc-amount-value small { font-size: .9rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.calc-range { margin-top: 14px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) var(--fill, 40%), #E4E9F5 var(--fill, 40%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 3px 10px rgba(38,83,245,.4); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 3px 10px rgba(38,83,245,.4); cursor: grab; }
.calc-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted-2); margin-top: 8px; }
.calc-terms { margin-top: 18px; }
.term-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 8px; }
.term-pill { padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: .82rem; font-weight: 700; color: var(--ink-2); transition: .15s; }
.term-pill:hover { border-color: var(--brand); color: var(--brand); }
.term-pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc-result { margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #0B1430, #232A56); color: #fff; position: relative; overflow: hidden; }
.calc-result::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.55), transparent 70%); top: -60px; right: -40px; }
.calc-result-row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.calc-result-label { font-size: .76rem; color: #AEB8DA; }
.calc-result-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.calc-result-value small { font-size: .78rem; color: #AEB8DA; font-weight: 600; letter-spacing: 0; }
.calc-result-meta { position: relative; display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: .72rem; color: #AEB8DA; border-top: 1px solid rgba(255,255,255,.12); padding-top: 9px; }
.calc-result-meta b { color: #fff; font-weight: 700; }
.calc-btn { margin-top: 16px; width: 100%; }
.calc-note { margin-top: 10px; font-size: .68rem; color: var(--muted-2); text-align: center; line-height: 1.45; }

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 38px; padding: 44px 0 54px; }
    .hero-sub { max-width: none; }
    .calc-card { max-width: 560px; }
}
@media (max-width: 520px) {
    .hero-inner { padding: 34px 0 44px; }
    .hero-actions .btn { flex: 1; }
    .hero-actions .btn-ghost { flex: 0 0 auto; }
    .calc-card { padding: 22px; border-radius: 24px; }
    .term-pills { grid-template-columns: repeat(4, 1fr); }
    .hero-proof { margin-top: 26px; }
}

/* ============================================================
   Stats
   ============================================================ */
.stats-wrap { position: relative; z-index: 2; margin-top: -30px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.stat-item { padding: 24px 26px; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 26%; height: 48%; width: 1px; background: var(--line); }
.stat-value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-value .accent { color: var(--brand); }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 820px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } .stat-item:nth-child(3)::before { display: none; } .stat-item:nth-child(odd)::before { display: none; } .stat-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .stat-item { padding: 18px; } .stat-value { font-size: 1.5rem; } .stats-wrap { margin-top: -22px; } }

/* ============================================================
   Secciones
   ============================================================ */
.section { padding: 78px 0; }
.section-tight { padding: 54px 0; }
.section-alt { background: var(--bg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.03em; line-height: 1.15; margin-top: 10px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 600px; font-size: .98rem; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--brand); white-space: nowrap; padding-bottom: 4px; }
.section-link:hover { text-decoration: underline; }
@media (max-width: 680px) { .section { padding: 54px 0; } .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; } }

/* Socios */
.partners { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: space-between; }
.partners-label { font-size: .78rem; color: var(--muted); font-weight: 600; max-width: 170px; line-height: 1.4; }
.partner-logos { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; flex: 1; justify-content: space-between; }
.partner-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #7C86A2; font-size: .98rem; letter-spacing: -.01em; opacity: .9; }
.partner-logo i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #C7D0E6, #9AA6C6); display: inline-block; }
@media (max-width: 780px) { .partners { flex-direction: column; align-items: flex-start; gap: 16px; } .partner-logos { gap: 18px 26px; width: 100%; justify-content: flex-start; } }

/* Categorías */
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .86rem; font-weight: 700; color: var(--ink-2); transition: .16s; }
.cat-chip .ico { font-size: 1rem; }
.cat-chip:hover { border-color: #B9C6E8; color: var(--brand); }
.cat-chip.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 10px 20px -12px rgba(38,83,245,.8); }
@media (max-width: 600px) { .cat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; } .cat-chips::-webkit-scrollbar { display: none; } .cat-chip { flex: 0 0 auto; } }

/* Tarjetas de producto */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D5DEF5; }
.product-card.is-featured { border-color: rgba(38,83,245,.28); box-shadow: 0 20px 45px -30px rgba(38,83,245,.55); }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: #fff; flex: 0 0 auto; box-shadow: 0 10px 20px -12px rgba(16,24,40,.5); }
.product-icon-logo { background: #fff; overflow: hidden; }
.product-icon-logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.product-lender { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.product-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; margin-top: 2px; }
.product-tagline { font-size: .86rem; color: var(--muted); line-height: 1.5; min-height: 2.6em; }
.product-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #F7F9FE; border: 1px solid #EEF2FA; border-radius: 14px; padding: 12px; }
.metric-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 700; }
.metric-value { font-size: .84rem; font-weight: 800; color: var(--ink); margin-top: 3px; line-height: 1.2; }
.product-foot { display: flex; gap: 8px; margin-top: auto; }
.product-foot .btn { flex: 1; }
.product-foot .btn-apply { flex: 1.2; }
.product-note { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--muted-2); }
.product-note svg { color: var(--green); }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } .product-card { padding: 20px; } }

/* ============================================================
   Cómo funciona
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; padding: 30px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.step-card::before { counter-increment: step; content: '0' counter(step); position: absolute; top: 10px; right: 18px; font-size: 4.2rem; font-weight: 800; letter-spacing: -.06em; color: #F0F3FB; line-height: 1; }
.step-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--blue-soft); color: var(--brand); margin-bottom: 18px; position: relative; }
.step-card:nth-child(2) .step-icon { background: var(--violet-soft); color: var(--brand-2); }
.step-card:nth-child(3) .step-icon { background: var(--green-soft); color: var(--green); }
.step-card h3 { font-size: 1.05rem; font-weight: 800; position: relative; }
.step-card p { font-size: .88rem; color: var(--muted); margin-top: 8px; position: relative; }
.step-tag { display: inline-flex; margin-top: 16px; font-size: .72rem; font-weight: 700; color: var(--brand); background: var(--blue-soft); padding: 5px 10px; border-radius: 999px; }
.steps-line { position: relative; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   Ventajas
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: .2s; }
.feature-card:hover { border-color: #D5DEF5; box-shadow: var(--shadow-sm); }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #EEF2FF, #E5EBFF); color: var(--brand); margin-bottom: 15px; }
.feature-card:nth-child(2) .feature-icon { background: linear-gradient(135deg, #E7F8F1, #D5F3E6); color: var(--green); }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, #F3EBFF, #EADDFF); color: var(--brand-2); }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #B45309; }
.feature-card:nth-child(5) .feature-icon { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); color: #BE185D; }
.feature-card:nth-child(6) .feature-icon { background: linear-gradient(135deg, #E0F2FE, #BAE6FD); color: #0369A1; }
.feature-card h3 { font-size: .98rem; font-weight: 800; }
.feature-card p { font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.55; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CAT / educación
   ============================================================ */
.cat-section { background: linear-gradient(150deg, #0B1430 0%, #151C42 55%, #241A4E 100%); color: #fff; position: relative; overflow: hidden; }
.cat-section::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(38,83,245,.4), transparent 68%); top: -220px; right: -120px; }
.cat-section::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(219,39,119,.24), transparent 68%); bottom: -220px; left: -120px; }
.cat-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.cat-copy .eyebrow { color: #8FB0FF; }
.cat-copy .eyebrow::before { background: linear-gradient(90deg, #8FB0FF, #D3B4FF); }
.cat-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; margin-top: 12px; line-height: 1.15; }
.cat-copy > p { color: #AEB8DA; margin-top: 14px; font-size: .96rem; max-width: 520px; }
.cat-points { display: grid; gap: 12px; margin-top: 24px; }
.cat-points li { display: flex; gap: 11px; font-size: .9rem; color: #D7DEF2; }
.cat-points .tick { background: rgba(62,224,166,.14); color: #3EE0A6; }
.cat-card { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 26px; backdrop-filter: blur(10px); }
.cat-card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #8FB0FF; font-weight: 800; }
.example-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.1); font-size: .88rem; }
.example-row:last-child { border-bottom: 0; }
.example-row span { color: #AEB8DA; }
.example-row b { font-weight: 800; }
.example-highlight { margin-top: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(38,83,245,.28), rgba(124,58,237,.28)); border: 1px solid rgba(143,176,255,.28); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.example-highlight span { font-size: .8rem; color: #C9D2EC; }
.example-highlight b { font-size: 1.3rem; letter-spacing: -.02em; }
.cat-foot { font-size: .68rem; color: #7E89AD; margin-top: 14px; line-height: 1.5; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ============================================================
   Testimonios
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.testi-stars { display: flex; gap: 2px; color: #F59E0B; }
.testi-stars svg { width: 15px; height: 15px; }
.testi-quote { font-size: .92rem; color: var(--ink-2); line-height: 1.62; }
.testi-person { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .82rem; flex: 0 0 auto; }
.testi-name { font-size: .86rem; font-weight: 800; }
.testi-meta { font-size: .74rem; color: var(--muted); }
.testi-product { margin-left: auto; font-size: .68rem; font-weight: 700; color: var(--muted-2); white-space: nowrap; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Guías
   ============================================================ */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-thumb { height: 132px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; position: relative; overflow: hidden; }
.guide-thumb::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 18px 18px; opacity: .5; }
.guide-thumb span { position: relative; z-index: 1; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); }
.guide-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide-tag { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.guide-card h3 { font-size: 1rem; font-weight: 800; line-height: 1.35; }
.guide-meta { font-size: .74rem; color: var(--muted-2); margin-top: auto; display: flex; align-items: center; gap: 8px; }
.guide-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.faq-aside h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.15; margin-top: 10px; }
.faq-aside p { color: var(--muted); margin-top: 12px; font-size: .94rem; }
.faq-contact { margin-top: 24px; padding: 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.faq-contact strong { display: block; font-size: .9rem; }
.faq-contact span { font-size: .82rem; color: var(--muted); }
.faq-contact a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .84rem; font-weight: 800; color: var(--brand); }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .18s; }
.faq-item[open] { border-color: rgba(38,83,245,.35); box-shadow: 0 10px 30px -24px rgba(38,83,245,.7); }
.faq-item summary { list-style: none; cursor: pointer; padding: 17px 20px; font-size: .93rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; transition: .2s; font-size: 1rem; color: var(--brand); }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-answer { padding: 0 20px 18px; font-size: .88rem; color: var(--muted); line-height: 1.65; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   CTA final
   ============================================================ */
.cta-panel { position: relative; overflow: hidden; border-radius: 30px; background: linear-gradient(120deg, #2653F5, #5B3BE8 50%, #9333EA 100%); color: #fff; padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-panel::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); top: -160px; right: 80px; }
.cta-panel::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); bottom: -120px; left: 30%; }
.cta-panel h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.15; position: relative; }
.cta-panel p { color: rgba(255,255,255,.8); margin-top: 10px; font-size: .94rem; position: relative; max-width: 520px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; flex: 0 0 auto; }
.cta-actions .btn { min-width: 180px; }
@media (max-width: 860px) { .cta-panel { flex-direction: column; align-items: flex-start; padding: 34px 26px; border-radius: 24px; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #080F24; color: #AEB8DA; padding: 60px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 2.4fr; gap: 50px; }
.footer-desc { font-size: .85rem; line-height: 1.65; margin-top: 16px; max-width: 330px; color: #8E98B8; }
.social-row { display: flex; gap: 8px; margin-top: 18px; }
.social-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #C9D2EC; border: 1px solid rgba(255,255,255,.08); transition: .18s; }
.social-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col a, .footer-col .footer-muted { display: block; font-size: .82rem; color: #8E98B8; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-muted { margin-top: 4px; line-height: 1.5; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.fbadge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: #AEB8DA; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); padding: 7px 12px; border-radius: 999px; }
.fbadge svg { color: #63E4B8; }
.footer-legal { margin-top: 24px; display: grid; gap: 8px; font-size: .7rem; color: #6D7797; line-height: 1.6; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: .75rem; color: #7E89AD; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: #fff; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 34px; } .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 520px) { .site-footer { padding: 44px 0 24px; } .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   WhatsApp / toast / boot
   ============================================================ */
.whatsapp-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); transition: transform .18s; }
.whatsapp-fab:hover { transform: scale(1.06); }
@media (max-width: 520px) { .whatsapp-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; } }

.toast-wrap { position: fixed; z-index: 200; right: 20px; bottom: 90px; display: grid; gap: 10px; max-width: 340px; }
.toast { background: #0B1430; color: #fff; padding: 13px 16px; border-radius: 12px; font-size: .85rem; box-shadow: var(--shadow-lg); display: flex; align-items: flex-start; gap: 9px; animation: toastIn .25s ease; }
.toast.is-error { background: #8C1D27; }
.toast.is-success { background: #0A6B4E; }
.toast svg { flex: 0 0 auto; margin-top: 1px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.boot-screen { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.boot-logo { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.boot-logo strong { background: linear-gradient(100deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot-bar { width: 190px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: boot 1.1s infinite ease-in-out; }
@keyframes boot { 0% { transform: translateX(-120%); } 100% { transform: translateX(420%); } }
.boot-screen p { font-size: .8rem; }

/* ============================================================
   Páginas internas
   ============================================================ */
.page-hero { background: radial-gradient(800px 340px at 15% 0%, #E5ECFF, transparent 60%), linear-gradient(180deg, #FAFBFF, #F5F7FC); border-bottom: 1px solid var(--line); padding: 30px 0 44px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--muted-2); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.035em; line-height: 1.1; margin-top: 14px; }
.page-hero p { color: var(--muted); margin-top: 10px; max-width: 620px; font-size: .96rem; }

.filters-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.search-input { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; height: 46px; }
.search-input svg { color: var(--muted-2); flex: 0 0 auto; }
.search-input input { border: 0; outline: none; width: 100%; background: transparent; font-size: .9rem; }
.select-input { height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; padding: 0 14px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.result-meta { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 20px; }
.empty-state .emoji { font-size: 2.4rem; }
.empty-state h3 { margin-top: 10px; font-size: 1.05rem; }
.empty-state p { color: var(--muted); font-size: .88rem; margin-top: 6px; }

/* Detalle de producto */
.detail-layout { display: grid; grid-template-columns: 1.5fr .85fr; gap: 26px; align-items: start; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.detail-head { display: flex; gap: 16px; align-items: flex-start; }
.detail-head .product-icon { width: 62px; height: 62px; font-size: 28px; border-radius: 18px; }
.detail-head h1 { font-size: 1.55rem; letter-spacing: -.025em; line-height: 1.2; }
.detail-head .lender { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.detail-tagline { color: var(--muted); margin-top: 12px; font-size: .94rem; }
.detail-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.detail-metric { background: #F7F9FE; border: 1px solid #EEF2FA; border-radius: 14px; padding: 14px; }
.detail-metric .metric-label { font-size: .64rem; }
.detail-metric .metric-value { font-size: 1rem; }
.detail-section { margin-top: 28px; }
.detail-section h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.detail-section p { font-size: .91rem; color: var(--muted); line-height: 1.7; }
.check-list { display: grid; gap: 10px; margin-top: 4px; }
.check-list li { display: flex; gap: 10px; font-size: .89rem; color: var(--ink-2); }
.check-list .tick { margin-top: 2px; }
.req-list { display: grid; gap: 8px; }
.req-list li { display: flex; gap: 10px; font-size: .88rem; color: var(--ink-2); background: #F7F9FE; border: 1px solid #EEF2FA; border-radius: 10px; padding: 11px 13px; }
.req-list .num { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .68rem; font-weight: 800; color: var(--muted); }

.apply-box { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.apply-box h3 { font-size: 1.05rem; font-weight: 800; }
.apply-box .muted { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.apply-calc { margin-top: 18px; }
.apply-calc label { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.apply-calc label b { color: var(--brand); }
.apply-calc + .apply-calc { margin-top: 16px; }
.apply-summary { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; }
.apply-summary-row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.apply-summary-row b { color: var(--ink); }
.apply-summary-row.total b { color: var(--brand); font-size: 1rem; }
.apply-box .btn { margin-top: 16px; }
.apply-trust { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 10px; font-size: .68rem; color: var(--muted-2); }
.apply-trust svg { color: var(--green); }

@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; }
    .apply-box { position: static; }
    .detail-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Formularios / solicitud
   ============================================================ */
.form-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 26px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step-pill { display: flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 700; color: var(--muted-2); }
.step-pill .n { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .74rem; }
.step-pill.is-active { color: var(--brand); }
.step-pill.is-active .n { background: var(--brand); color: #fff; border-color: var(--brand); }
.step-pill.is-done { color: var(--green); }
.step-pill.is-done .n { background: var(--green-soft); color: var(--green); border-color: #B8EBD8; }
.step-line { flex: 1; height: 2px; background: var(--line); margin: 0 12px; border-radius: 2px; }
.step-line.is-done { background: #B8EBD8; }
.form-step h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.form-step .sub { font-size: .86rem; color: var(--muted); margin-top: 4px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: block; }
.field-label { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field-label .req { color: var(--red); }
.input, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 11px; padding: 12px 13px; font-size: .9rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(38,83,245,.12); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field-error { font-size: .72rem; color: var(--red); margin-top: 5px; display: none; }
.field.has-error .field-error { display: block; }
.field .hint { font-size: .7rem; color: var(--muted-2); margin-top: 5px; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.form-actions .btn { min-width: 130px; }
.amount-display { text-align: center; padding: 18px 0 8px; }
.amount-display .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.amount-display .value { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.amount-display .value small { font-size: .85rem; color: var(--muted); letter-spacing: 0; }
.term-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.term-choice button { padding: 12px 8px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: .84rem; transition: .15s; }
.term-choice button.is-active { border-color: var(--brand); background: var(--blue-soft); color: var(--brand); }
.side-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card { background: linear-gradient(150deg, #0B1430, #202858); color: #fff; border-radius: 22px; padding: 24px; overflow: hidden; position: relative; }
.summary-card::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.45), transparent 70%); top: -70px; right: -50px; }
.summary-product { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.summary-product .product-icon { width: 44px; height: 44px; border-radius: 13px; font-size: 20px; }
.summary-product strong { font-size: .95rem; display: block; }
.summary-product span { font-size: .74rem; color: #AEB8DA; }
.summary-rows { position: relative; display: grid; gap: 10px; margin-top: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: .82rem; color: #AEB8DA; }
.summary-row b { color: #fff; }
.summary-row.total { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.summary-row.total b { color: #63E4B8; font-size: 1.1rem; }
.summary-note { position: relative; margin-top: 16px; font-size: .68rem; color: #8E98B8; line-height: 1.5; }
.summary-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.summary-badges span { font-size: .68rem; color: #C9D2EC; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px 10px; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } .side-summary { position: static; order: -1; } .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-card { padding: 20px; } .stepper .step-pill span.txt { display: none; } .step-pill .n { width: 30px; height: 30px; } }

/* Éxito */
.success-card { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 38px; text-align: center; box-shadow: var(--shadow); }
.success-icon { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.success-card h1 { font-size: 1.6rem; letter-spacing: -.03em; }
.success-card > p { color: var(--muted); margin-top: 10px; font-size: .92rem; }
.success-code { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 18px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2); font-weight: 800; letter-spacing: .06em; }
.success-code small { font-weight: 600; color: var(--muted); letter-spacing: 0; }
.success-details { margin-top: 24px; text-align: left; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 20px; }
.success-details .row { display: flex; justify-content: space-between; font-size: .87rem; color: var(--muted); }
.success-details .row b { color: var(--ink); }
.success-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.timeline { display: grid; gap: 0; margin-top: 24px; text-align: left; }
.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); margin-top: 4px; flex: 0 0 auto; position: relative; z-index: 1; }
.tl-item.done .tl-dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.tl-item.current .tl-dot { background: var(--brand); box-shadow: 0 0 0 4px var(--blue-soft); }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 18px; bottom: -4px; width: 2px; background: var(--line); }
.tl-item.done:not(:last-child)::before { background: #B8EBD8; }
.tl-title { font-size: .88rem; font-weight: 800; }
.tl-desc { font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* Rastrear / cuenta */
.lookup-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.lookup-card h2 { font-size: 1.2rem; }
.lookup-card p { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.lookup-form { display: flex; gap: 8px; margin-top: 20px; }
.lookup-form .input { flex: 1; }
.app-list { display: grid; gap: 12px; margin-top: 26px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.app-card:hover { border-color: #D5DEF5; }
.app-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: 0 0 auto; }
.app-main { flex: 1; min-width: 160px; }
.app-main strong { display: block; font-size: .92rem; }
.app-main span { font-size: .75rem; color: var(--muted); }
.app-amount { text-align: right; }
.app-amount b { display: block; font-size: .98rem; }
.app-amount span { font-size: .72rem; color: var(--muted); }
.app-code { font-size: .7rem; color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.account-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 24px; align-items: start; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.account-head { display: flex; align-items: center; gap: 14px; }
.account-avatar { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; }
.account-head h2 { font-size: 1.15rem; }
.account-head p { font-size: .8rem; color: var(--muted); }
.account-rows { display: grid; gap: 10px; margin-top: 20px; }
.account-row { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-row span { color: var(--muted); }
.account-row b { font-weight: 700; }
.account-form { margin-top: 18px; display: grid; gap: 10px; }
@media (max-width: 850px) { .account-grid { grid-template-columns: 1fr; } }

/* Artículos / legal */
.article-layout { display: grid; grid-template-columns: .28fr 1fr; gap: 40px; align-items: start; }
.article-toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.article-toc h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.article-toc a { display: block; font-size: .82rem; color: var(--ink-2); padding: 5px 0; }
.article-toc a:hover { color: var(--brand); }
.article-body { max-width: 760px; }
.article-body .lead { font-size: 1.05rem; color: var(--ink-2); line-height: 1.7; }
.article-body h2 { font-size: 1.3rem; letter-spacing: -.02em; margin-top: 30px; }
.article-body h3 { font-size: 1.02rem; margin-top: 22px; }
.article-body p { color: var(--muted); font-size: .94rem; line-height: 1.75; margin-top: 12px; }
.article-body ul { margin-top: 12px; display: grid; gap: 8px; }
.article-body ul li { position: relative; padding-left: 20px; font-size: .92rem; color: var(--ink-2); }
.article-body ul li::before { content: ''; position: absolute; left: 4px; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.article-body .callout { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: var(--blue-soft); border-left: 4px solid var(--brand); font-size: .9rem; color: var(--ink-2); }
.article-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.article-cta { margin-top: 30px; padding: 24px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.article-cta strong { display: block; font-size: 1rem; }
.article-cta span { font-size: .82rem; color: var(--muted); }
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 1.25rem; margin-top: 30px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: .92rem; line-height: 1.75; }
.legal-body p { margin-top: 12px; }
.legal-body ul { margin-top: 10px; display: grid; gap: 6px; list-style: disc; padding-left: 22px; }
.legal-updated { display: inline-flex; font-size: .75rem; color: var(--muted-2); background: var(--bg); border: 1px solid var(--line); padding: 6px 11px; border-radius: 999px; margin-bottom: 20px; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-toc { display: none; } }

/* Cómo funciona extendido */
.how-hero-steps { display: grid; gap: 16px; margin-top: 30px; }
.how-step { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.how-step .n { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.how-step h3 { font-size: 1rem; }
.how-step p { font-size: .86rem; color: var(--muted); margin-top: 4px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Puntos y recompensas
   ============================================================ */
.rewards-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.points-card { position: relative; overflow: hidden; border-radius: 26px; padding: 28px; background: linear-gradient(145deg, #0B1430 0%, #1A2350 55%, #2C1A5A 100%); color: #fff; box-shadow: var(--shadow); }
.points-card::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(38,83,245,.45), transparent 68%); top: -150px; right: -80px; }
.points-card::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(219,39,119,.3), transparent 70%); bottom: -140px; left: -60px; }
.points-card > * { position: relative; }
.points-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.points-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #AEB8DA; }
.tier-badge { font-size: .7rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; }
.tier-bronce { background: rgba(180,83,9,.28); border-color: rgba(245,158,11,.4); color: #FCD34D; }
.tier-plata { background: rgba(148,163,184,.2); border-color: rgba(203,213,225,.4); color: #E2E8F0; }
.tier-oro { background: rgba(245,158,11,.22); border-color: rgba(251,191,36,.45); color: #FDE68A; }
.tier-platino { background: rgba(124,58,237,.3); border-color: rgba(167,139,250,.5); color: #DDD6FE; }
.points-balance { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin-top: 14px; }
.points-balance small { font-size: 1rem; color: #AEB8DA; font-weight: 700; letter-spacing: 0; }
.points-equivalent { font-size: .86rem; color: #C9D2EC; margin-top: 4px; }
.tier-progress { margin-top: 22px; }
.tier-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .76rem; color: #AEB8DA; }
.tier-progress-top b { color: #fff; }
.progress-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 8px; }
.progress-track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #63E4B8, #8FB0FF); }
.tier-perk { font-size: .72rem; color: #8E98B8; margin-top: 8px; }
.points-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.points-mini div { display: grid; gap: 2px; }
.points-mini span { font-size: .68rem; color: #8E98B8; text-transform: uppercase; letter-spacing: .05em; }
.points-mini b { font-size: 1.05rem; font-weight: 800; }

.referral-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; }
.referral-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.referral-bonus { font-size: .82rem; font-weight: 800; color: var(--green); background: var(--green-soft); padding: 5px 10px; border-radius: 999px; }
.referral-card h2 { font-size: 1.35rem; letter-spacing: -.025em; margin-top: 14px; }
.referral-card > p { font-size: .86rem; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.referral-code-box { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line-2); }
.referral-code-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.referral-code-box strong { font-size: 1.05rem; letter-spacing: .12em; font-weight: 800; margin-left: auto; }
.referral-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.referral-actions .btn { flex: 1; }
.referral-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.referral-stats div { text-align: center; display: grid; gap: 2px; }
.referral-stats b { font-size: 1.2rem; font-weight: 800; }
.referral-stats span { font-size: .68rem; color: var(--muted); }

.reward-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.reward-stat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.rs-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); font-size: 18px; flex: 0 0 auto; }
.reward-stat b { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.reward-stat span { font-size: .72rem; color: var(--muted); }

.earn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.earn-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: .18s; }
.earn-card:hover { border-color: #D5DEF5; box-shadow: var(--shadow-sm); }
.earn-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #EEF2FF, #E5EBFF); font-size: 19px; flex: 0 0 auto; }
.earn-body { flex: 1; min-width: 0; }
.earn-body b { display: block; font-size: .86rem; }
.earn-body span { font-size: .72rem; color: var(--muted); }
.earn-points { font-size: .82rem; font-weight: 800; color: var(--green); background: var(--green-soft); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }

.reward-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reward-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; transition: .2s; }
.reward-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #D5DEF5; }
.reward-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.reward-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; flex: 0 0 auto; box-shadow: 0 8px 18px -10px rgba(16,24,40,.5); }
.reward-card h3 { font-size: .96rem; font-weight: 800; line-height: 1.3; }
.reward-card > p { font-size: .78rem; color: var(--muted); line-height: 1.5; flex: 1; }
.reward-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.reward-cost { font-size: 1.15rem; font-weight: 800; color: var(--brand); }
.reward-cost small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.reward-value { font-size: .74rem; color: var(--muted); font-weight: 700; }
.reward-stock { font-size: .68rem; color: var(--muted-2); }
.reward-note { font-size: .74rem; color: var(--muted-2); margin-top: 14px; line-height: 1.6; }
.reward-earn-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.reward-earn-mini div { text-align: center; display: grid; gap: 2px; }
.reward-earn-mini b { font-size: 1.3rem; font-weight: 800; color: var(--brand); }
.reward-earn-mini span { font-size: .7rem; color: var(--muted); }

.rewards-lower { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 34px; }
.rewards-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h3 { font-size: 1rem; font-weight: 800; }
.ledger { display: grid; }
.ledger-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; font-size: 16px; flex: 0 0 auto; }
.ledger-main { flex: 1; min-width: 0; }
.ledger-main b { display: block; font-size: .8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-main span { font-size: .68rem; color: var(--muted-2); }
.ledger-amount { font-size: .85rem; font-weight: 800; white-space: nowrap; }
.ledger-amount.is-pos { color: var(--green); }
.ledger-amount.is-neg { color: var(--muted); }
.ledger-side { display: grid; justify-items: end; gap: 3px; }

.leaderboard { display: grid; }
.leader-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.leader-row:last-child { border-bottom: 0; }
.leader-rank { width: 26px; height: 26px; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; font-size: .76rem; font-weight: 800; color: var(--muted); flex: 0 0 auto; }
.leader-rank.is-top { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #B45309; }
.leader-main { flex: 1; }
.leader-main b { display: block; font-size: .82rem; }
.leader-main span { font-size: .7rem; color: var(--muted-2); }
.leader-stats { text-align: right; }
.leader-stats b { display: block; font-size: .9rem; font-weight: 800; }
.leader-stats span { font-size: .66rem; color: var(--muted); }

.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(8,14,32,.58); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); animation: modalUp .25s ease; }
@keyframes modalUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--muted); display: grid; place-items: center; font-size: .86rem; }
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-reward { display: flex; gap: 14px; align-items: flex-start; padding-right: 28px; }
.modal-reward h3 { font-size: 1.15rem; }
.modal-reward p { font-size: .82rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.modal-rows { margin-top: 20px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; }

.success-points { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #E7F8F1, #EEF2FF); border: 1px solid #CFEEDF; text-align: left; }
.sp-emoji { font-size: 1.6rem; }
.success-points b { display: block; font-size: .9rem; color: var(--ink); }
.success-points span { font-size: .76rem; color: var(--muted); }
.success-points a { color: var(--brand); font-weight: 700; }

.account-points { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #F4F7FF, #F7F0FF); border: 1px solid #E0E7FB; transition: .18s; }
.account-points:hover { border-color: #C9D4F2; box-shadow: var(--shadow-xs); }
.account-points-icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
.account-points div { flex: 1; }
.account-points b { display: block; font-size: .86rem; }
.account-points span { font-size: .72rem; color: var(--muted); }
.account-points-arrow { color: var(--brand); }
.account-points-arrow svg { width: 16px; height: 16px; }

@media (max-width: 1000px) {
    .reward-grid { grid-template-columns: repeat(2, 1fr); }
    .rewards-top { grid-template-columns: 1fr; }
    .earn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .rewards-lower { grid-template-columns: 1fr; }
    .reward-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .reward-grid { grid-template-columns: 1fr; }
    .earn-grid { grid-template-columns: 1fr; }
    .points-card, .referral-card { padding: 22px; }
    .referral-stats { grid-template-columns: repeat(3, 1fr); }
    .reward-stat { padding: 13px; }
    .reward-stat b { font-size: 1rem; }
    .modal-card { padding: 22px; }
}

/* Animación de entrada */
.view-enter { animation: viewIn .3s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Cuenta / login / registro / redirección GP
   ============================================================ */
.auth-section { padding-top: 30px; }
.auth-card {
    max-width: 420px; margin: 0 auto; background: #fff;
    border: 1px solid var(--line); border-radius: 24px;
    padding: 30px; box-shadow: var(--shadow);
}
.auth-logo {
    width: 54px; height: 54px; border-radius: 16px;
    display: grid; place-items: center; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-weight: 800; font-size: 1.45rem;
    box-shadow: 0 12px 24px -12px rgba(38,83,245,.8);
}
.auth-card h2 { font-size: 1.5rem; letter-spacing: -.025em; }
.auth-sub { font-size: .86rem; color: var(--muted); margin-top: 5px; }
.auth-card form { margin-top: 20px; }
.auth-card form .field + .field { margin-top: 13px; }
.auth-card form > .btn[type="submit"] { margin-top: 18px; }
.auth-optional { margin-top: 14px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; }
.auth-optional summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: .78rem; font-weight: 700; color: var(--muted); }
.auth-optional summary::-webkit-details-marker { display: none; }
.auth-optional summary span { color: var(--brand); }
.auth-optional[open] { padding-bottom: 12px; }
.auth-optional .field { margin-top: 10px; }
.auth-consent { margin-top: 14px; display: flex; align-items: flex-start; gap: 9px; font-size: .76rem; color: var(--muted); line-height: 1.5; }
.auth-consent input { margin-top: 3px; accent-color: var(--brand); flex: 0 0 auto; }
.auth-consent a { color: var(--brand); font-weight: 700; }
.auth-pass { position: relative; display: block; }
.auth-pass input { padding-right: 62px !important; }
.auth-eye {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    font-size: .72rem; font-weight: 700; color: var(--brand);
    padding: 7px 9px; border-radius: 7px; background: var(--bg);
}
.auth-eye:hover { background: var(--blue-soft); }
.auth-switch { margin-top: 18px; text-align: center; font-size: .84rem; color: var(--muted); }
.auth-switch a { color: var(--brand); font-weight: 800; }
.auth-demo {
    margin-top: 16px; padding: 10px 12px; border-radius: 10px;
    background: var(--bg); border: 1px dashed var(--line-2);
    font-size: .72rem; color: var(--muted); text-align: center;
}
.auth-demo strong { color: var(--ink-2); }
.auth-legal { max-width: 420px; margin: 16px auto 0; text-align: center; font-size: .7rem; color: var(--muted-2); line-height: 1.55; }
.auth-legal a { color: var(--brand); font-weight: 700; }

.auth-gate {
    max-width: 560px; margin: 0 auto; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: 26px;
    padding: 34px 26px; box-shadow: var(--shadow);
}
.auth-gate-icon {
    width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 16px;
    display: grid; place-items: center; font-size: 28px;
    background: linear-gradient(135deg, #EEF2FF, #F3EBFF);
}
.auth-gate h2 { font-size: 1.3rem; letter-spacing: -.025em; }
.auth-gate > p { font-size: .88rem; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.auth-gate-actions { display: grid; gap: 9px; max-width: 300px; margin: 22px auto 0; }
.auth-gate-perks { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 20px; }
.auth-gate-perks span {
    font-size: .68rem; color: var(--muted); background: var(--bg);
    border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
}

.redirect-section { min-height: 62vh; display: flex; align-items: center; padding-top: 30px; }
.redirect-card {
    max-width: 440px; margin: 0 auto; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: 26px;
    padding: 32px 26px; box-shadow: var(--shadow);
}
.redirect-product {
    display: inline-flex; align-items: center; gap: 11px;
    text-align: left; padding: 10px 14px; border-radius: 14px;
    background: var(--bg); border: 1px solid var(--line);
}
.redirect-product .product-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
.redirect-product strong { display: block; font-size: .88rem; }
.redirect-product span { font-size: .72rem; color: var(--muted); }
.redirect-spinner {
    width: 50px; height: 50px; border-radius: 50%; margin: 26px auto 16px;
    border: 4px solid var(--blue-soft); border-top-color: var(--brand);
    animation: h5spin .9s linear infinite;
}
@keyframes h5spin { to { transform: rotate(360deg); } }
.redirect-card h1 { font-size: 1.35rem; letter-spacing: -.025em; }
.redirect-card > p { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.redirect-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.redirect-meta span { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; font-size: .66rem; color: var(--muted); }
.redirect-meta b { display: block; margin-top: 2px; font-size: .82rem; color: var(--ink); }
.redirect-actions { display: grid; gap: 8px; margin-top: 20px; }
.redirect-note { font-size: .68rem; color: var(--muted-2); margin-top: 18px; line-height: 1.55; }

/* Recompensas: pestañas */
.points-card-simple .tier-progress { margin-top: 16px; }
.reward-tabs {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
    margin-top: 14px; padding: 4px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px;
}
.reward-tabs button { padding: 9px 2px; border-radius: 8px; font-size: .7rem; font-weight: 800; color: var(--muted); }
.reward-tabs button.is-active { background: var(--ink); color: #fff; }
.reward-tab-panel { margin-top: 16px; }
.tab-head h2 { font-size: 1.12rem; letter-spacing: -.02em; }
.tab-head p { margin-top: 4px; font-size: .78rem; color: var(--muted); }
.ref-strip {
    display: flex; align-items: center; gap: 7px; margin-top: 12px;
    padding: 9px 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px;
}
.ref-strip-code { flex: 1; min-width: 0; }
.ref-strip-code span { display: block; font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ref-strip-code strong { font-size: .92rem; letter-spacing: .1em; }
.checkin-card {
    display: flex; align-items: center; gap: 9px; margin-top: 10px;
    padding: 9px 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px;
}
.checkin-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.checkin-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); font-size: 17px; flex: 0 0 auto; }
.checkin-main b { display: block; font-size: .82rem; }
.checkin-main span { display: block; font-size: .7rem; color: var(--muted); }
.checkin-card .btn, .checkin-card .pill { flex: 0 0 auto; }
.ref-strip-code strong.ref-link {
    font-size: .68rem; font-weight: 600; letter-spacing: 0; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mini-stats > div { padding: 11px 6px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mini-stats b { display: block; font-size: .96rem; font-weight: 800; }
.mini-stats span { font-size: .62rem; color: var(--muted); }
.invite-copy { margin-top: 6px; font-size: .8rem; color: var(--muted); line-height: 1.55; }
.info-acc { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.info-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: .82rem; font-weight: 800; }
.info-acc summary::-webkit-details-marker { display: none; }
.info-acc summary span { color: var(--brand); }
.info-acc .earn-grid { padding: 0 12px 12px; }
.rules-panel { margin-top: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.rules-panel h3 { font-size: .82rem; font-weight: 800; margin-bottom: 4px; }
.rule-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.rule-row:last-child { border-bottom: 0; padding-bottom: 0; }
.rule-row b { flex: 0 0 auto; font-size: .76rem; font-weight: 800; color: var(--ink); text-align: right; }
.rules-note { margin-top: 12px; font-size: .68rem; color: var(--muted-2); line-height: 1.6; }

/* ============================================================
   H5 手机版外壳（全尺寸强制单列 + 底部导航）
   ============================================================ */
html { background: #070D20; overflow-x: hidden; }
body {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 100px rgba(0, 0, 0, .55);
    overflow-x: hidden;
}
main { min-height: calc(100dvh - 180px); }

/* 顶部条 & 头部 */
.topbar { display: none; }
.header-inner { height: 56px; gap: 10px; }
.brand-mark svg { width: 34px; height: 34px; }
.brand-text { font-size: 1rem; }
.header-actions { gap: 6px; }
.header-actions .btn { display: none; }
.header-points {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .72rem; font-weight: 800; color: var(--brand-2);
    background: var(--violet-soft); padding: 7px 10px; border-radius: 999px;
    transition: .16s;
}
.header-points.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.nav-toggle { display: flex; width: 38px; height: 38px; }
.main-nav {
    position: fixed; top: 0;
    right: max(0px, calc(50% - 240px));
    height: 100dvh; width: min(300px, 82vw);
    display: flex; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 84px 20px 24px; margin: 0;
    background: #fff; box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .4);
    transform: translateX(108%); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .26s ease, opacity .2s ease, visibility 0s linear .26s;
    z-index: 70;
}
.main-nav.open {
    transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .26s ease, opacity .2s ease, visibility 0s;
}
.main-nav a { padding: 13px 15px; font-size: .98rem; }

/* 底部导航 */
.bottom-nav {
    position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 100%; max-width: 480px; z-index: 66; box-sizing: border-box;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 30px -22px rgba(16, 24, 40, .45);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border-radius: 10px; font-size: .6rem; font-weight: 700; color: var(--muted-2); }
.bottom-nav .bn-icon { width: 34px; height: 28px; display: grid; place-items: center; border-radius: 9px; transition: .16s; }
.bottom-nav a.is-active { color: var(--brand); }
.bottom-nav a.is-active .bn-icon { background: var(--blue-soft); }

/* 简化首页 */
.hero-simple .hero-inner { gap: 22px; padding: 26px 0 34px; }
.hero-simple h1 { font-size: clamp(1.95rem, 8vw, 2.35rem); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: .74rem; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 11px; height: 11px; color: var(--green); }
.trust-strip {
    position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: -16px; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.trust-strip > div { padding: 12px 6px; text-align: center; }
.trust-strip > div + div { border-left: 1px solid var(--line); }
.trust-strip b { display: block; font-size: .92rem; font-weight: 800; letter-spacing: -.02em; }
.trust-strip span { font-size: .62rem; color: var(--muted); }

.loan-list { display: grid; gap: 10px; }
.loan-row {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 11px 12px;
    transition: border-color .16s, box-shadow .16s;
}
.loan-row:hover { border-color: #D5DEF5; box-shadow: var(--shadow-xs); }
.loan-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; }
.loan-row .product-icon { width: 44px; height: 44px; border-radius: 13px; font-size: 20px; }
.loan-row-info { min-width: 0; display: grid; gap: 1px; }
.loan-row-lender { font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.loan-row-info strong { display: block; font-size: .9rem; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loan-row-meta { display: block; font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loan-row-btn {
    flex: 0 0 auto; padding: 9px 12px; border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-size: .7rem; font-weight: 800;
    box-shadow: 0 8px 16px -10px rgba(38,83,245,.8);
}
.loan-row-btn:active { transform: scale(.97); }

.simple-steps { display: grid; gap: 9px; }
.simple-steps > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.simple-steps .sn { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--brand); font-size: .76rem; font-weight: 800; }
.simple-steps b { display: block; font-size: .84rem; }
.simple-steps span { font-size: .7rem; color: var(--muted); }

.detail-cta-note { margin-top: 8px; text-align: center; font-size: .68rem; color: var(--muted-2); }
.detail-acc { border-top: 1px solid var(--line); }
.detail-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: .9rem; font-weight: 800; }
.detail-acc summary::-webkit-details-marker { display: none; }
.detail-acc summary span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--brand); font-size: .8rem; transition: .18s; }
.detail-acc[open] summary span { transform: rotate(45deg); background: var(--brand); color: #fff; }
.detail-acc .check-list, .detail-acc .req-list { padding-bottom: 14px; }
.detail-payment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 14px; }
.detail-payment > div { padding: 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.detail-payment span { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.detail-payment b { font-size: .82rem; }

/* Hero 单列 */
.hero-inner { grid-template-columns: 1fr; gap: 26px; padding: 30px 0 42px; }
.hero h1 { font-size: clamp(1.95rem, 8.4vw, 2.45rem); }
.hero-eyebrow { font-size: .7rem; }
.hero-sub { margin-top: 14px; font-size: .94rem; }
.hero-ticks { gap: 8px 14px; margin-top: 18px; }
.hero-ticks li { font-size: .82rem; }
.hero-actions { margin-top: 24px; gap: 10px; }
.hero-actions .btn { flex: 1; padding: 14px 14px; font-size: .9rem; }
.hero-proof { margin-top: 24px; }
.calc-card { padding: 20px; border-radius: 22px; }
.calc-header-note { display: none; }

/* 区块 */
.section { padding: 46px 0; }
.section-tight { padding: 34px 0; }
.section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.section-head h2 { font-size: 1.55rem; }
.section-head p { font-size: .9rem; }
.eyebrow { font-size: .7rem; }
.stats-wrap { margin-top: -22px; }
.stats-strip { grid-template-columns: repeat(2, 1fr); }
.stat-item { padding: 18px; }
.stat-item:nth-child(3)::before, .stat-item:nth-child(odd)::before { display: none; }
.stat-item:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat-value { font-size: 1.5rem; }
.partners { flex-direction: column; align-items: flex-start; gap: 14px; }
.partner-logos { gap: 14px 20px; width: 100%; justify-content: flex-start; }
.partner-logo { font-size: .84rem; }

/* 单列网格 */
.product-grid, .steps, .feature-grid, .testi-grid, .guide-grid,
.cat-grid, .faq-wrap, .detail-layout, .form-layout, .account-grid,
.article-layout, .rewards-top, .rewards-lower, .earn-grid, .reward-grid {
    grid-template-columns: 1fr;
}
.product-card { padding: 18px; }
.product-tagline { min-height: 0; }
.product-metrics { padding: 10px; }
.product-foot .btn { padding: 10px 10px; }
.detail-metrics { grid-template-columns: repeat(2, 1fr); }
.apply-box, .side-summary, .article-toc { position: static; }
.side-summary { order: -1; }
.article-toc { display: none; }
.article-layout { gap: 20px; }
.reward-stats-row { grid-template-columns: repeat(2, 1fr); }
.reward-grid { gap: 12px; }
.rewards-top, .rewards-lower { gap: 14px; }

/* 表单 */
.form-card, .detail-card, .account-card, .rewards-panel { padding: 20px; }
.form-grid { grid-template-columns: 1fr; }
.form-grid .full { grid-column: auto; }
.form-actions .btn { flex: 1; min-width: 0; }
.stepper .step-pill span.txt { display: inline; font-size: .72rem; }
.stepper .step-pill .n { width: 30px; height: 30px; }
.step-line { margin: 0 6px; }
.detail-mobile-cta { margin-top: 18px; }
.success-card { padding: 26px 20px; }
.success-actions .btn { flex: 1; }
.amount-display .value { font-size: 2rem; }
.lookup-card { padding: 22px; }
.lookup-form { flex-direction: column; }
.account-points { padding: 12px; }

/* 页头 */
.page-hero { padding: 22px 0 32px; }
.page-hero h1 { font-size: 1.7rem; }
.page-hero p { font-size: .9rem; }
.filters-bar { gap: 8px; }
.search-input { min-width: 0; width: 100%; }
.select-input { width: 100%; }
.cat-chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px 18px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; }

/* 页脚：移动端只保留品牌、法律与版权 */
.site-footer { padding: 34px 0 calc(92px + env(safe-area-inset-bottom)); }
.footer-top { grid-template-columns: 1fr; gap: 0; }
.footer-cols, .footer-badges, .footer-desc { display: none; }
.footer-legal { margin-top: 18px; }
.footer-legal p + p { display: none; }
.footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 18px; }
.footer-links { flex-wrap: wrap; }
.social-row { margin-top: 14px; }
.whatsapp-fab { display: none; }

/* 悬浮元素对齐手机画布 */
.whatsapp-fab { right: max(14px, calc(50% - 240px + 14px)); bottom: calc(82px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
.toast-wrap { right: max(14px, calc(50% - 240px + 14px)); bottom: calc(146px + env(safe-area-inset-bottom)); left: auto; max-width: min(340px, calc(100vw - 28px)); }

/* 手机宽度微调 */
@media (max-width: 420px) {
    .topbar-item:nth-child(3) { display: none; }
    .stepper .step-pill span.txt { font-size: .66rem; }
}
@media (max-width: 380px) {
    .container { width: calc(100% - 28px); }
    .hero h1 { font-size: 1.85rem; }
    .term-pills { grid-template-columns: repeat(2, 1fr); }
    .step-pill .n { width: 26px; height: 26px; }
    .detail-metrics, .reward-stats-row { grid-template-columns: 1fr; }
}
