/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0b1220;
    background: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled { background: rgba(255, 255, 255, 0.88); border-bottom-color: #e5e7eb; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #4a5568; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #0b1220; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: #667eea; color: white; border-color: #667eea; }
.btn-primary:hover { background: #5a6fd8; border-color: #5a6fd8; }
.btn-secondary { background: white; color: #2d3748; border-color: #e5e7eb; }
.btn-secondary:hover { background: #fafafa; border-color: #cbd5e0; }
.btn-dark { background: #0b1220; color: white; border-color: #0b1220; }
.btn-dark:hover { background: #1f2a44; }
.btn-accent { background: #667eea; color: white; border-color: #667eea; }
.btn-accent:hover { background: #5a6fd8; border-color: #5a6fd8; }
.btn-lg { padding: 14px 22px; font-size: 15px; }

.hero { padding: 72px 0 56px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 10px;
    background: #eef0fc; color: #4c51bf;
    font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
    margin-bottom: 24px;
}
.hero h1 { margin: 0 0 20px; font-size: 56px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; max-width: 820px; }
.hero h1 span { color: #667eea; }
.hero p { font-size: 19px; color: #4a5568; max-width: 640px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 32px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid #f0f1f3; margin-top: 24px; }
.hero-trust .stat-num { font-size: 22px; font-weight: 700; color: #0b1220; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-trust .stat-label { font-size: 13px; color: #718096; margin-top: 4px; }

.mockup-wrap { margin-top: 32px; }
.mockup { background: white; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.mockup-topbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fafafa; border-bottom: 1px solid #e5e7eb; }
.mockup-topbar .dot { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.mockup-topbar .url { margin-left: 14px; padding: 4px 10px; background: white; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 11px; color: #718096; font-family: 'SF Mono', Menlo, monospace; }

.mk-appnav { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid #e5e7eb; background: white; }
.mk-appnav-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.mk-appnav-tabs { display: flex; gap: 20px; }
.mk-appnav-tab { font-size: 12px; color: #718096; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.mk-appnav-tab.active { color: #667eea; border-bottom-color: #667eea; font-weight: 600; }
.mk-appnav-user { display: flex; align-items: center; }
.mk-avatar { width: 28px; height: 28px; border-radius: 10px; background: #667eea; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }

.mk-dashboard { padding: 24px; background: #f7f8fa; }
.mk-kpis-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.mk-kpi-big { background: white; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px; position: relative; overflow: hidden; }
.mk-kpi-big-label { font-size: 11px; color: #718096; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.mk-kpi-big-value { font-size: 22px; font-weight: 700; color: #0b1220; font-variant-numeric: tabular-nums; }
.mk-kpi-big-value.money { font-size: 18px; }
.mk-kpi-big-icon { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }

.mk-bottom-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.mk-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: 10px 4px; margin-top: 6px; }
.mk-bar { flex: 1; background: #cbd5e0; border-radius: 6px 6px 0 0; transition: height 1.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mk-bar.active { background: #667eea; }
.mk-chart-labels { display: flex; justify-content: space-around; font-size: 10px; color: #718096; margin-top: 4px; }

@keyframes mk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.mk-blink { animation: mk-pulse 2s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-up { transition-delay: 0.15s; }

.hero h1 .typing { border-right: 3px solid #667eea; padding-right: 2px; animation: typing-caret 0.9s step-end infinite; }
@keyframes typing-caret { 0%, 100% { border-color: #667eea; } 50% { border-color: transparent; } }

.flow-step { transition: border-color 0.2s ease, background 0.2s ease; }
.flow-step:hover { border-color: #667eea; background: #fafbff; }

.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.mk-kpi { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; }
.mk-kpi-label { font-size: 10px; color: #718096; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.mk-kpi-value { font-size: 20px; font-weight: 700; color: #0b1220; }
.mk-kpi-delta { font-size: 11px; color: #19d895; margin-top: 4px; }
.mk-row { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; }
.mk-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mk-row-title { font-size: 13px; font-weight: 600; color: #0b1220; }
.mk-row-link { font-size: 12px; color: #667eea; font-weight: 500; }
.mk-list { display: flex; flex-direction: column; gap: 8px; }
.mk-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-radius: 10px; background: #fafafa; font-size: 12px; }
.mk-item-left { display: flex; align-items: center; gap: 10px; }
.mk-item-ic { width: 28px; height: 28px; border-radius: 10px; background: #eef0fc; color: #4c51bf; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; }
.mk-badge { padding: 3px 10px; border-radius: 10px; font-size: 10px; font-weight: 600; }
.mk-badge.ok { background: #e8f9f2; color: #19d895; }
.mk-badge.pend { background: #fbeae7; color: #c0392b; }
.mk-badge.warn { background: #fdecdc; color: #d35400; }

section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; padding: 5px 12px; border-radius: 10px; background: #f0f1f3; color: #4a5568; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 14px; }
.section-head h2 { margin: 0 0 12px; font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.section-head p { margin: 0 auto; font-size: 17px; color: #4a5568; max-width: 640px; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-tag { display: inline-block; padding: 5px 12px; border-radius: 10px; background: #eef0fc; color: #4c51bf; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 14px; }
.feature-row h3 { margin: 0 0 14px; font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.feature-row p { margin: 0 0 20px; color: #4a5568; font-size: 16px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: #2d3748; font-size: 14px; }
.feature-list li i { color: #19d895; font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.mk-statement { padding: 24px; }
.mk-statement-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid #e5e7eb; margin-bottom: 18px; }
.mk-statement-title { font-size: 18px; font-weight: 700; }
.mk-statement-meta { font-size: 11px; color: #718096; margin-top: 4px; }
.mk-statement-total { text-align: right; }
.mk-statement-total .label { font-size: 10px; color: #718096; text-transform: uppercase; letter-spacing: 0.5px; }
.mk-statement-total .value { font-size: 22px; font-weight: 700; color: #0b1220; margin-top: 4px; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mk-table th { padding: 8px 10px; text-align: left; color: #718096; font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e5e7eb; }
.mk-table td { padding: 12px 10px; border-bottom: 1px solid #f0f1f3; color: #2d3748; }

.mk-quote { padding: 24px; }
.mk-quote-tag { display: inline-block; padding: 4px 10px; border-radius: 10px; background: #eef0fc; color: #4c51bf; font-size: 11px; font-weight: 600; margin-bottom: 10px; }

.mk-client { padding: 24px; }
.mk-client-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.mk-client-avatar { width: 56px; height: 56px; border-radius: 10px; background: #667eea; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; }
.mk-client-name { font-size: 16px; font-weight: 700; }
.mk-client-sub { font-size: 12px; color: #718096; }
.mk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mk-stat { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; }
.mk-stat-label { font-size: 10px; color: #718096; text-transform: uppercase; letter-spacing: 0.5px; }
.mk-stat-value { font-size: 16px; font-weight: 700; margin-top: 4px; }
.mk-stat-value.accent { color: #667eea; }

.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flow-step { border: 1px solid #e5e7eb; border-radius: 10px; padding: 28px; position: relative; }
.flow-step-num { width: 36px; height: 36px; border-radius: 10px; background: #0b1220; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 18px; }
.flow-step h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.flow-step p { margin: 0; font-size: 14px; color: #4a5568; }

.pricing-card { max-width: 440px; margin: 0 auto; border: 1px solid #e5e7eb; border-radius: 10px; padding: 36px; background: white; }
.pricing-card .plan-name { font-size: 13px; font-weight: 600; color: #667eea; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.pricing-card .plan-price { font-size: 48px; font-weight: 800; letter-spacing: -1px; margin-bottom: 2px; }
.pricing-card .plan-price small { font-size: 16px; color: #718096; font-weight: 500; }
.pricing-card .plan-sub { font-size: 13px; color: #718096; margin-bottom: 24px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 28px; }
.pricing-features li { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; color: #2d3748; }
.pricing-features li i { color: #19d895; font-size: 18px; flex-shrink: 0; }
.pricing-note { text-align: center; font-size: 12px; color: #718096; margin-top: 14px; }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid #e5e7eb; border-radius: 10px; background: white; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; font-size: 15px; font-weight: 600; color: #0b1220; display: flex; justify-content: space-between; align-items: center; }
.faq-q i { color: #718096; font-size: 20px; transition: transform 0.2s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 22px 18px; font-size: 14px; color: #4a5568; line-height: 1.6; }

.cta-final { text-align: center; padding: 80px 40px; background: #667eea; color: white; border-radius: 10px; position: relative; overflow: hidden; }
.cta-final::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 28px 28px; }
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { margin: 0 0 14px; font-size: 36px; font-weight: 800; letter-spacing: -0.5px; }
.cta-final p { margin: 0 auto 28px; font-size: 17px; color: rgba(255, 255, 255, 0.88); max-width: 540px; }
.cta-final .btn { background: white; color: #667eea; border-color: white; }
.cta-final .btn:hover { background: #f7f8fa; color: #5a6fd8; }

footer { padding: 48px 0 32px; border-top: 1px solid #f0f1f3; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-inner p { margin: 0; color: #718096; font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #4a5568; font-size: 13px; }

/* Reveal init states */
.feature-row.reveal-init, .flow-step.reveal-init, .pricing-card.reveal-init, .faq-item.reveal-init, .mk-kpi-big.reveal-init, .hero-trust > div.reveal-init { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.feature-row.is-visible, .flow-step.is-visible, .pricing-card.is-visible, .faq-item.is-visible, .mk-kpi-big.is-visible, .hero-trust > div.is-visible { opacity: 1; transform: translateY(0); }
.mk-kpi-big:nth-child(1) { transition-delay: 0s; }
.mk-kpi-big:nth-child(2) { transition-delay: 0.08s; }
.mk-kpi-big:nth-child(3) { transition-delay: 0.16s; }
.mk-kpi-big:nth-child(4) { transition-delay: 0.24s; }
.hero-trust > div:nth-child(1) { transition-delay: 0s; }
.hero-trust > div:nth-child(2) { transition-delay: 0.1s; }
.hero-trust > div:nth-child(3) { transition-delay: 0.2s; }
.hero-trust > div:nth-child(4) { transition-delay: 0.3s; }
.flow-step:nth-child(1) { transition-delay: 0s; }
.flow-step:nth-child(2) { transition-delay: 0.12s; }
.flow-step:nth-child(3) { transition-delay: 0.24s; }

@media (max-width: 900px) {
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 17px; }
    .feature-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
    .feature-row.reverse { direction: ltr; }
    .flow-grid { grid-template-columns: 1fr; }
    .mk-kpis-big { grid-template-columns: repeat(2, 1fr); }
    .mk-bottom-grid { grid-template-columns: 1fr; }
    .mk-appnav-tabs { display: none; }
    .nav-links { display: none; }
    section { padding: 56px 0; }
    .section-head h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Flow v2: cards con icono MDI grande y badge */
.flow-step-v2 { padding: 32px 28px 28px; position: relative; }
.flow-step-badge {
    display: inline-block;
    padding: 4px 10px; border-radius: 10px;
    background: #f0f1f3; color: #718096;
    font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.flow-step-icon {
    width: 64px; height: 64px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.flow-step-icon i { font-size: 34px; }
.flow-step-v2 h4 { margin: 0 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.flow-step-v2 p { margin: 0 0 16px; font-size: 14px; color: #4a5568; line-height: 1.55; }
.flow-step-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #f0f1f3; padding-top: 14px; }
.flow-step-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: #2d3748; }
.flow-step-list li i { color: #19d895; font-size: 16px; }

/* Sutil resalte al pasar: borde morado + slight background */
.flow-step-v2:hover { border-color: #667eea; background: #fafbff; }

/* Reset bullets de flow-step-list por si alguna regla default los muestra */
.flow-step-list, .flow-step-list li { list-style: none !important; }
.flow-step-list { padding-left: 0; }
/* Asegurar icono cuadrado */
.flow-step-icon { flex-shrink: 0; }

/* Banner de cookies */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1045; display: none; background: white; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 18px; max-width: 520px; width: calc(100% - 32px); }
.cookie-banner.is-visible { display: block; }
.cookie-banner-inner { display: flex; align-items: flex-start; gap: 12px; }
.cookie-banner-icon { width: 36px; height: 36px; background: #eef0fc; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cookie-banner-icon i { color: #4c51bf; font-size: 20px; }
.cookie-banner-body { flex: 1; min-width: 0; }
.cookie-banner-title { margin: 0 0 4px; font-weight: 600; color: #2d3748; font-size: 14px; }
.cookie-banner-text { margin: 0 0 12px; color: #718096; font-size: 13px; line-height: 1.5; }
.cookie-banner-text a { color: #667eea; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner-actions .btn { padding: 9px 16px; font-size: 13px; }

/* btn-sm */
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Wrap estrecho para páginas legales (mejor legibilidad) */
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Layout legal */
.legal-header { padding: 56px 0 32px; }
.legal-tag { display:inline-block; padding:5px 12px; border-radius:10px; background:#eef0fc; color:#4c51bf; font-size:11px; font-weight:600; letter-spacing:0.5px; text-transform:uppercase; margin-bottom:14px; }
.legal-header h1 { margin:0 0 10px; font-size:40px; font-weight:800; letter-spacing:-1px; line-height:1.1; }
.legal-header .updated { color:#718096; font-size:13px; margin:0; }

.legal-content { padding:20px 0 80px; }
.legal-content h2 { margin:36px 0 12px; font-size:22px; font-weight:700; color:#0b1220; letter-spacing:-0.3px; }
.legal-content h3 { margin:24px 0 10px; font-size:17px; font-weight:700; color:#2d3748; }
.legal-content p { margin:0 0 14px; color:#2d3748; font-size:15px; }
.legal-content ul, .legal-content ol { margin:0 0 16px; padding-left:22px; color:#2d3748; }
.legal-content li { margin:6px 0; font-size:15px; }
.legal-content strong { color:#0b1220; font-weight:600; }
.legal-content a { color:#667eea; }
.legal-content a:hover { color:#5a6fd8; text-decoration:underline; }
.legal-content .note { background:#f7f8fa; border-left:3px solid #667eea; border-radius:10px; padding:14px 16px; margin:18px 0; font-size:14px; color:#4a5568; }
.legal-content .contact-block { background:#eef0fc; border-radius:10px; padding:18px 20px; margin:24px 0; }
.legal-content .contact-block p { margin:4px 0; font-size:14px; color:#2d3748; }

.legal-toc { background:#f7f8fa; border:1px solid #e2e8f0; border-radius:10px; padding:18px 20px; margin-bottom:32px; }
.legal-toc-title { font-size:11px; font-weight:700; letter-spacing:0.5px; color:#718096; text-transform:uppercase; margin:0 0 10px; }
.legal-toc ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:4px; }
.legal-toc li { font-size:14px; }
.legal-toc a { color:#4a5568; text-decoration:none; }
.legal-toc a:hover { color:#667eea; }

@media (max-width: 700px) {
    .legal-header h1 { font-size:30px; }
}
