/* =============================================
   eCF Suite — Landing
   Tema claro, B2B, Inter, navy + emerald
   Independiente de Eyber Auto Asesores
   ============================================= */

:root {
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-muted: #f1f5f9;
    --bg-dark: #0a2540;
    --bg-dark-soft: #0e2e52;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-muted: #475569;
    --text-soft: #64748b;
    --primary: #0a2540;
    --primary-h: #0e2e52;
    --accent: #10b981;
    --accent-h: #059669;
    --accent-soft: #ecfdf5;
    --link: #2563eb;
    --code-bg: #0f172a;
    --code-text: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
    --shadow: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
    --shadow-lg: 0 10px 30px rgba(15,23,42,0.10), 0 4px 8px rgba(15,23,42,0.06);
    --radius: 10px;
    --radius-lg: 14px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Selection */
::selection { background: rgba(16,185,129,0.2); color: var(--text); }

/* ---------- TOP BAR ---------- */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    max-width: 1180px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 28px; height: 28px;
    background: var(--primary); color: #fff;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.78rem; letter-spacing: -0.02em;
}
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.72rem; color: var(--text-soft); padding: 2px 8px; background: var(--bg-muted); border-radius: 999px; font-weight: 500; }

.top-nav { display: flex; gap: 4px; align-items: center; }
.top-nav a { color: var(--text-muted); padding: 8px 12px; font-size: 0.88rem; font-weight: 500; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.top-nav a:hover { color: var(--text); background: var(--bg-muted); text-decoration: none; }

.top-actions { display: flex; align-items: center; gap: 12px; }
.back-link { font-size: 0.82rem; color: var(--text-soft); }
.back-link:hover { color: var(--text); }

.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px 0; transition: 0.2s; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: 8px;
    font-family: var(--font); font-size: 0.9rem; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: all 0.15s ease; line-height: 1; letter-spacing: -0.01em;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--text-soft); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-h); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 100px 0 80px;
    background:
        radial-gradient(ellipse 800px 400px at 50% -100px, rgba(10,37,64,0.06), transparent),
        var(--bg);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(15,23,42,0.06) 1px, transparent 0);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 80%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 60px; align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600; color: var(--accent-h);
    background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
    letter-spacing: -0.005em;
    border: 1px solid rgba(16,185,129,0.2);
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.hero h1 .accent { color: var(--primary); }
.hero-sub {
    font-size: 1.12rem; color: var(--text-muted);
    line-height: 1.6; margin-bottom: 32px; max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta {
    font-size: 0.82rem; color: var(--text-soft);
    display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.hero-meta i { color: var(--accent); margin-right: 6px; }

/* Hero side card (mock) */
.hero-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-lg);
}
.hero-card-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
    font-size: 0.78rem; color: var(--text-soft); font-family: var(--font-mono);
}
.hero-card-dots span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.hero-card-dots span:nth-child(1) { background: #ef4444; }
.hero-card-dots span:nth-child(2) { background: #eab308; }
.hero-card-dots span:nth-child(3) { background: #22c55e; }
.hero-card-rows { display: flex; flex-direction: column; gap: 10px; }
.hcrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--bg-soft); border-radius: 8px; font-size: 0.84rem; }
.hcrow .k { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.78rem; }
.hcrow .v { font-weight: 600; color: var(--text); }
.hcrow .v.ok { color: var(--accent-h); }
.hcrow .v.ok::before { content: '✓ '; }

/* ---------- TRUST BAR ---------- */
.trust {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; align-items: center;
}
.trust-item {
    text-align: center;
    font-size: 0.85rem; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.trust-item i { color: var(--accent-h); font-size: 1rem; }
.trust-item strong { color: var(--text); font-weight: 600; }

/* ---------- SECTIONS ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: rgba(255,255,255,0.85); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .label {
    font-size: 0.78rem; font-weight: 600; color: var(--accent-h);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700;
    letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 14px;
    color: var(--text);
}
.section-dark .section-head h2 { color: #fff; }
.section-head p {
    font-size: 1.05rem; color: var(--text-muted); line-height: 1.65;
}
.section-dark .section-head p { color: rgba(255,255,255,0.7); }
.section-dark .section-head .label { color: #5eead4; }

/* ---------- PRODUCT OVERVIEW (3 columns) ---------- */
.overview-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.overview-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 30px 26px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.overview-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.overview-card .icon {
    width: 40px; height: 40px;
    background: var(--bg-muted); color: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; margin-bottom: 18px;
}
.overview-card h3 {
    font-size: 1.05rem; font-weight: 700; letter-spacing: -0.015em;
    margin-bottom: 8px; color: var(--text);
}
.overview-card p {
    font-size: 0.92rem; color: var(--text-muted); line-height: 1.65;
}

/* ---------- WIZARD STEPS (timeline) ---------- */
.wizard-intro {
    max-width: 720px; margin: 0 auto 48px;
    padding: 22px 26px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    font-size: 0.95rem; color: rgba(255,255,255,0.78); line-height: 1.7;
}
.wizard-intro i { color: var(--accent); margin-right: 8px; }
.wizard-intro strong { color: #fff; font-weight: 600; }

.steps {
    list-style: none; max-width: 820px; margin: 0 auto;
    position: relative; padding-left: 0;
}
.steps::before {
    content: ''; position: absolute;
    left: 22px; top: 12px; bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(94,234,212,0.6), rgba(94,234,212,0.05));
}
.step {
    display: flex; gap: 22px; padding: 12px 0;
    align-items: flex-start; position: relative;
}
.step-num {
    flex-shrink: 0; width: 46px; height: 32px;
    background: rgba(94,234,212,0.12);
    border: 1px solid rgba(94,234,212,0.35);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #5eead4; font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem;
    position: relative; z-index: 1;
}
.step h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; color: #fff; letter-spacing: -0.01em; }
.step p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ---------- FEATURES ---------- */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    align-items: stretch;
}
.feature {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex; flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature .icon {
    width: 38px; height: 38px;
    background: var(--accent-soft); color: var(--accent-h);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature h3 {
    font-size: 1rem; font-weight: 700; letter-spacing: -0.015em;
    margin-bottom: 8px; color: var(--text);
}
.feature > p {
    font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px;
}
.feature ul {
    list-style: none; padding: 0; margin: auto 0 0;
    border-top: 1px solid var(--border); padding-top: 14px;
}
.feature li {
    font-size: 0.85rem; color: var(--text-soft); line-height: 1.55;
    padding: 5px 0 5px 22px; position: relative;
}
.feature li::before {
    content: ''; position: absolute; left: 4px; top: 11px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.feature li code {
    font-family: var(--font-mono); font-size: 0.78rem;
    background: var(--bg-muted); padding: 1px 6px; border-radius: 4px;
    color: var(--primary);
}

/* ---------- e-CF TYPES TABLE ---------- */
.types-table {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.types-row {
    display: grid; grid-template-columns: 80px 1fr 2fr;
    gap: 16px; padding: 14px 22px; align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.types-row:last-child { border-bottom: none; }
.types-row.head {
    background: var(--bg-soft);
    font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft);
}
.types-code {
    font-family: var(--font-mono); font-weight: 600; color: var(--primary);
    background: var(--bg-muted); padding: 4px 10px; border-radius: 6px;
    font-size: 0.85rem; text-align: center; width: fit-content;
}
.types-name { font-weight: 500; color: var(--text); }
.types-desc { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- TECH SPECS ---------- */
.specs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.spec {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.spec h4 {
    font-size: 0.82rem; font-weight: 600; color: var(--text-soft);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.spec ul { list-style: none; padding: 0; }
.spec li {
    font-size: 0.88rem; color: var(--text); line-height: 1.55;
    padding: 6px 0;
}
.spec li code {
    font-family: var(--font-mono); font-size: 0.8rem;
    background: var(--bg-muted); padding: 1px 6px; border-radius: 4px;
    color: var(--primary);
}

.code-block {
    margin-top: 40px; max-width: 720px; margin-left: auto; margin-right: auto;
    background: var(--code-bg); color: var(--code-text);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    overflow-x: auto;
    font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.7;
    box-shadow: var(--shadow-md);
}
.code-block .cm { color: #94a3b8; }
.code-block .cmd { color: #5eead4; }

/* ---------- FINAL CTA ---------- */
.final-cta {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.9);
    padding: 96px 0;
    position: relative; overflow: hidden;
}
.final-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 600px 300px at 50% 0%, rgba(16,185,129,0.12), transparent);
    pointer-events: none;
}
.final-cta-card {
    max-width: 720px; margin: 0 auto; text-align: center; position: relative;
}
.final-cta .label { color: #5eead4; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.final-cta h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 700;
    letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 16px;
    color: #fff;
}
.final-cta p {
    font-size: 1.05rem; color: rgba(255,255,255,0.72);
    line-height: 1.65; max-width: 540px; margin: 0 auto 32px;
}
.final-cta .actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 28px;
}
.final-cta .meta {
    font-size: 0.82rem; color: rgba(255,255,255,0.5);
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.final-cta .meta i { color: #5eead4; margin-right: 6px; }

/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}
.footer-brand p {
    font-size: 0.88rem; color: var(--text-muted);
    line-height: 1.65; margin-top: 12px; max-width: 360px;
}
.footer-col h4 {
    font-size: 0.78rem; font-weight: 600; color: var(--text-soft);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}
.footer-col a, .footer-col span {
    display: block; font-size: 0.88rem; color: var(--text-muted);
    text-decoration: none; padding: 4px 0;
}
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
    padding-top: 24px; font-size: 0.82rem; color: var(--text-soft);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--text-soft); }

/* ---------- ANIMATIONS ---------- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- TOP BUTTON ---------- */
#top-btn {
    position: fixed; bottom: 24px; right: 24px;
    width: 40px; height: 40px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 50%; cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
    z-index: 50;
}
#top-btn.visible { opacity: 1; transform: translateY(0); }
#top-btn:hover { background: var(--primary-h); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { max-width: 480px; margin: 0 auto; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .overview-grid, .features-grid, .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .top-nav { display: none; }
    .menu-btn { display: block; }
    .top-nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 12px 24px;
    }
    .back-link { display: none; }
    .section { padding: 64px 0; }
    .hero { padding: 60px 0 50px; }
    .overview-grid, .features-grid, .specs-grid { grid-template-columns: 1fr; }
    .types-row { grid-template-columns: 60px 1fr; }
    .types-desc { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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