/* ============================================================
   Thunderbird Marketing — shared LIGHT theme (Stripe/Linear style)
   Used by subpages. Redefines legacy class + variable names so
   existing inline styles keep working in the new look.
   ============================================================ */

:root {
    /* New tokens */
    --bg: #ffffff;
    --bg-soft: #f6f7f9;
    --bg-tint: #f1faf4;
    --ink: #0c1015;
    --ink-2: #49525f;
    --ink-3: #717a87;
    --green: #00c853;
    --green-d: #00803a;        /* small green text, ~AA */
    --green-strong: #00a046;   /* large green text / borders */
    --gold: #c89a3a;
    --gold-d: #a67a1e;
    --line: #e7e9ee;
    --line-2: #dfe2e8;
    --card: #ffffff;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(12,16,21,.04), 0 2px 6px rgba(12,16,21,.05);
    --shadow-md: 0 12px 30px rgba(12,16,21,.08);
    --shadow-lg: 0 40px 80px rgba(12,16,21,.14);
    --grad-green: linear-gradient(135deg, #00c853 0%, #34d97a 100%);
    --grad-brand: linear-gradient(120deg, #00a847 0%, #00c853 45%, #c89a3a 110%);

    /* Legacy names (kept so existing inline styles render correctly) */
    --bg-primary: #ffffff;
    --bg-secondary: #f6f7f9;
    --bg-card: #ffffff;
    --bg-dark: #0c1015;
    --bg-darker: #0c1015;
    --accent: #00c853;
    --accent-2: #34d97a;
    --accent-dim: rgba(0,200,83,.10);
    --accent-glow: rgba(0,200,83,.30);
    --accent-mark: rgba(0,200,83,.40);
    --headline: #0c1015;
    --gold-deep: #a67a1e;
    --gold-dim: rgba(200,154,58,.14);
    --text-primary: #0c1015;
    --text-secondary: #49525f;
    --text-muted: #717a87;
    --text-on-dark: rgba(255,255,255,.78);
    --text-on-dark-muted: rgba(255,255,255,.52);
    --border: #e7e9ee;
    --border-strong: #dfe2e8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink-2);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(0,200,83,.18); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, h5 { color: var(--ink); letter-spacing: -.022em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.mb-lg { margin-bottom: 48px; }

/* ───── NAV ───── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(12,16,21,.02); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-logo-text { font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: -.02em; }
.nav-logo-text span { color: var(--green); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 9px 18px; background: var(--ink); color: #fff !important; border-radius: 100px; font-weight: 600 !important; font-size: 14px !important; transition: transform .18s, box-shadow .18s, background .18s; }
.nav-cta:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }
@media (max-width: 880px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 20px 24px; gap: 18px; align-items: flex-start; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
}

/* ───── BUTTONS ───── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 26px; border-radius: 100px; font-family: inherit; font-weight: 600;
    font-size: 15px; cursor: pointer; border: 0; line-height: 1; text-align: center;
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.btn-primary { background: var(--grad-green); color: #fff; box-shadow: 0 10px 24px rgba(0,200,83,.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,200,83,.40); color: #fff; }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { transform: translateY(-2px); background: #000; box-shadow: var(--shadow-md); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 17px 32px; font-size: 16px; }

/* ───── SUBPAGE HERO ───── */
.subpage-hero { position: relative; padding: 96px 24px 80px; text-align: center; overflow: hidden; background: var(--bg); }
.subpage-hero::before {
    content: ''; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
    width: 1000px; height: 520px; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 46% 60% at 34% 30%, rgba(0,200,83,.18), transparent 64%),
        radial-gradient(ellipse 46% 60% at 68% 38%, rgba(200,154,58,.14), transparent 64%);
    filter: blur(18px);
}
.subpage-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(12,16,21,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12,16,21,.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 8%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 8%, transparent 72%);
}
.subpage-hero-decor { display: none; }
.subpage-hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 100px; background: #fff; border: 1px solid var(--line-2);
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--ink-2); box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,200,83,.16); }
.subpage-hero h1 { font-size: clamp(34px, 5.2vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin-bottom: 20px; }
.subpage-hero p { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.55; max-width: 680px; margin: 0 auto 30px; }

/* gradient highlight for heading accents */
.subpage-hero h1 .accent,
.section-title .accent,
.final h2 .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───── SECTIONS ───── */
.section { padding: 92px 24px; position: relative; }
.section-alt { background: var(--bg-soft); }
.section-decor { display: none; }
.section-header { max-width: 720px; margin: 0 auto 52px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-d); margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 3.8vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: var(--ink); margin-bottom: 16px; }
.section-sub { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); line-height: 1.6; }
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }

/* ───── STEPS ───── */
.steps { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; counter-reset: step; }
.step {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 30px; display: grid; grid-template-columns: 64px 1fr; gap: 26px; align-items: flex-start;
    box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.step .step-num { counter-increment: step; width: 64px; height: 64px; border-radius: 16px; background: var(--bg-tint); color: var(--green-d); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; letter-spacing: -1px; }
.step .step-num::before { content: counter(step); }
.step h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.step p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 16px; padding: 24px; } .step .step-num { width: 52px; height: 52px; font-size: 22px; border-radius: 13px; } }

/* ───── STATS ───── */
.stat-row { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card .stat-num { font-size: clamp(42px, 5.5vw, 64px); font-weight: 900; color: var(--green-strong); line-height: 1; letter-spacing: -2px; margin-bottom: 12px; }
.stat-card .stat-num span { font-size: .55em; vertical-align: super; }
.stat-card .stat-label { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.stat-card .stat-label strong { color: var(--ink); }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; max-width: 420px; } }

/* ───── PILLAR / FEATURE CARDS ───── */
.pillar-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 30px; position: relative; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.pillar-card h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; color: var(--ink); margin-bottom: 12px; line-height: 1.18; }
.pillar-card p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.pillar-card .pillar-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--bg-tint); color: var(--green-d); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pillar-card .pillar-icon svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 2.1; }
.pillar-card .pillar-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--green-d); font-weight: 700; font-size: 15px; padding-top: 18px; }
@media (max-width: 800px) { .pillar-grid { grid-template-columns: 1fr !important; max-width: 480px; } }

/* ───── FEATURE LIST ───── */
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.feature-list li strong { color: var(--ink); }
.feature-list li .check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 1px; }

/* ───── STRATEGY ───── */
.strategy-tag { display: inline-block; padding: 6px 13px; background: var(--bg-tint); color: var(--green-d); border-radius: 100px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.strategy-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 48px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.strategy-card.dark { background: var(--ink); color: #fff; border-color: rgba(255,255,255,.1); }
.strategy-card.dark h3 { color: #fff; }
.strategy-card.dark p { color: rgba(255,255,255,.74); }
.strategy-card.dark .strategy-tag { background: rgba(0,200,83,.18); color: #34d97a; }
.strategy-card h3 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: var(--ink); line-height: 1.12; margin-bottom: 16px; max-width: 760px; }
.strategy-card p { font-size: 16.5px; color: var(--ink-2); line-height: 1.6; max-width: 760px; }
.strategy-card p + p { margin-top: 14px; }
@media (max-width: 640px) { .strategy-card { padding: 32px 26px; } }

/* ───── PRICING ───── */
.pricing-grid { max-width: 1020px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; position: relative; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured { border: 2px solid var(--green); box-shadow: 0 24px 50px rgba(0,200,83,.18); }
.price-card.featured::before { content: 'Más popular'; position: absolute; top: -13px; left: 28px; padding: 5px 13px; background: var(--grad-green); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 100px; }
.price-card h4 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.price-card .price-tag { font-size: clamp(38px, 4vw, 46px); font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -1.5px; margin-bottom: 4px; }
.price-card .price-tag .currency { font-size: .5em; vertical-align: super; color: var(--ink-3); }
.price-card .price-period { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.price-card .price-annual { display: inline-block; padding: 4px 12px; background: var(--bg-tint); color: var(--green-d); border-radius: 100px; font-size: 12px; font-weight: 700; margin-bottom: 22px; }
.price-card .price-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card .price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.price-card .price-list li::before { content: ''; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-tint); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2300803a' d='M6.4 11.4 3 8l1.4-1.4L6.4 8.6l5.2-5.2L13 4.8z'/></svg>"); background-position: center; background-repeat: no-repeat; background-size: 16px; margin-top: 1px; }
.price-card .price-list li strong { color: var(--ink); }
.price-card .btn { width: 100%; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }

/* ───── TWO COLUMN ───── */
.two-col { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reverse > :first-child { order: 2; }
.two-col .section-title { margin-bottom: 18px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } .two-col.reverse > :first-child { order: 0; } }

/* ───── VISUAL / GRADIENT PANEL ───── */
.visual-card { position: relative; border-radius: 24px; padding: 48px 40px; overflow: hidden; min-height: 300px; display: flex; align-items: center; background: linear-gradient(150deg, #2ce070 0%, #00b54b 100%); color: #06351b; box-shadow: var(--shadow-md); }
.visual-card::before { content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.22); filter: blur(20px); }
.visual-card-inner { position: relative; z-index: 2; }
.visual-card .vc-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .72; margin-bottom: 14px; }
.visual-card .vc-stat { font-size: clamp(54px, 8vw, 110px); font-weight: 900; line-height: .9; letter-spacing: -3px; margin-bottom: 16px; }
.visual-card .vc-text { font-size: 15px; line-height: 1.55; opacity: .9; max-width: 460px; }

/* ───── CTA STRIP (dark banner) ───── */
.cta-strip { padding: 100px 24px; text-align: center; position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.cta-strip::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 48% 60% at 22% 20%, rgba(0,200,83,.26), transparent 60%), radial-gradient(ellipse 44% 56% at 80% 80%, rgba(200,154,58,.20), transparent 62%); }
.cta-strip-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta-strip h2 { font-size: clamp(28px, 4.2vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: #fff; margin-bottom: 22px; }
.cta-strip h2 .accent { color: #34d97a; }
.cta-strip p { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255,255,255,.74); margin-bottom: 32px; line-height: 1.6; }

/* ───── FOOTER ───── */
.footer { background: #0c1015; color: rgba(255,255,255,.66); padding: 72px 24px 36px; }
.footer-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { width: 40px; border-radius: 9px; margin-bottom: 16px; }
.footer-brand .footer-logo-text { font-weight: 800; font-size: 19px; color: #fff; margin-bottom: 12px; letter-spacing: -.02em; }
.footer-brand .footer-logo-text span { color: var(--green); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; max-width: 320px; }
.footer h5 { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14px; color: rgba(255,255,255,.62); transition: color .18s; }
.footer ul a:hover { color: #34d97a; }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(255,255,255,.4); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ───── SCROLL REVEAL ───── */
html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
html.reveal-ready [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.reveal-ready [data-reveal], html.reveal-ready [data-reveal].in { opacity: 1 !important; transform: none !important; transition: none !important; }
}
