/* ==========================================================================
   Ventaflow — estilos
   1. Variables  2. Base  3. Componentes  4. Secciones  5. Responsive
   ========================================================================== */

/* 1. VARIABLES ------------------------------------------------------------ */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --night: #0f172a;
  --night-2: #1e293b;
  --accent: #10b981;
  --accent-strong: #059669;
  --accent-soft: #d1fae5;
  --blue: #2563eb;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, .15), 0 4px 10px -4px rgba(15, 23, 42, .06);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .3);
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --header-h: 68px;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65;
  color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
section { padding: clamp(2.25rem, 5vw, 4rem) 0; }

/* 3. COMPONENTES ---------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong);
  background: var(--accent-soft); padding: .35rem .8rem; border-radius: 999px;
}
.eyebrow.on-dark { background: rgba(16, 185, 129, .14); color: #6ee7b7; }
.section-head { max-width: 720px; margin-bottom: 1.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 1rem 0 .9rem; }
.section-head p { font-size: 1.08rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .96rem; padding: .85rem 1.5rem; border-radius: 12px;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .7); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 12px 26px -8px rgba(16, 185, 129, .8); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* 4. SECCIONES ------------------------------------------------------------ */

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(248, 250, 252, .85); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 23, 42, .2); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; }
.logo-mark svg { width: 100%; height: 100%; }
.logo span em { font-style: normal; color: var(--accent-strong); }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: .94rem; font-weight: 600; color: var(--ink-2); position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; padding: .65rem 1.2rem; font-size: .9rem; }
.menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, background .25s; }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem; display: grid; gap: .25rem; box-shadow: var(--shadow-md);
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s; z-index: 49;
}
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a:not(.btn) { padding: .85rem .5rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: .9rem; }

/* Hero */
.hero {
  position: relative; background: var(--night); color: #cbd5e1; padding: clamp(3.5rem, 8vw, 6rem) 0 0; overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(37, 99, 235, .35), transparent 70%),
    radial-gradient(500px 380px at 10% 0%, rgba(16, 185, 129, .25), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; padding-bottom: 4rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.6vw, 3.6rem); letter-spacing: -.035em; margin: 1.2rem 0 1.2rem; }
.hero h1 .hl { background: linear-gradient(90deg, #34d399, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 560px; color: #94a3b8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.8rem; font-size: .88rem; color: #94a3b8; }
.hero-trust li { display: flex; align-items: center; gap: .45rem; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Mock dashboard (visual del hero) */
.mock {
  background: linear-gradient(180deg, #1e293b, #172033); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px; padding: 1.1rem; box-shadow: var(--shadow-lg); position: relative;
}
.mock-bar { display: flex; gap: 6px; margin-bottom: 1rem; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.mock-title { display: flex; justify-content: space-between; align-items: center; color: #e2e8f0; font-weight: 700; font-size: .95rem; margin-bottom: .9rem; }
.pill { font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.col-h { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin-bottom: .5rem; }
.deal { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: .6rem .7rem; margin-bottom: .5rem; font-size: .78rem; color: #e2e8f0; }
.deal small { display: block; color: #94a3b8; font-size: .68rem; margin-top: 2px; }
.deal.win { border-color: rgba(16, 185, 129, .5); background: rgba(16, 185, 129, .12); }
.ai-bubble {
  margin-top: .8rem; display: flex; gap: .7rem; align-items: flex-start; background: rgba(37, 99, 235, .16);
  border: 1px solid rgba(96, 165, 250, .3); border-radius: 12px; padding: .75rem .9rem; font-size: .8rem; color: #dbeafe;
}
.ai-bubble b { color: #fff; }
.ai-bubble svg { width: 18px; height: 18px; flex: none; color: #93c5fd; margin-top: 2px; }
.float-chip {
  position: absolute; right: -6px; bottom: -22px; background: var(--surface); color: var(--ink); border-radius: 14px;
  padding: .7rem 1rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .7rem; font-size: .82rem; font-weight: 700;
  animation: bob 5s ease-in-out infinite;
}
.float-chip .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; }
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.stats { border-top: 1px solid rgba(255, 255, 255, .1); }
.stats ul { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats li { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid rgba(255, 255, 255, .08); }
.stats li:nth-child(2n) { border-right: 0; }
.stats li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.stats strong { display: block; font-size: clamp(1.6rem, 4vw, 2.2rem); color: #fff; letter-spacing: -.03em; }
.stats span { font-size: .85rem; color: #94a3b8; }

/* Problema vs Solución */
.versus { display: grid; gap: 1rem; }
.vs-card { padding: 2rem 1.6rem; position: relative; }
.vs-card h3 { font-size: 1.3rem; margin: 1rem 0 1.2rem; }
.vs-tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; }
.vs-bad .vs-tag { background: var(--danger-soft); color: #b91c1c; }
.vs-good { border-color: rgba(16, 185, 129, .45); box-shadow: 0 20px 50px -25px rgba(16, 185, 129, .5); }
.vs-good .vs-tag { background: var(--accent-soft); color: var(--accent-strong); }
.vs-list { display: grid; gap: .9rem; }
.vs-list li { display: flex; gap: .75rem; align-items: flex-start; }
.vs-list svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.vs-bad .vs-list svg { color: var(--danger); }
.vs-good .vs-list svg { color: var(--accent); }
.vs-list b { color: var(--ink); }

/* Comparativa */
.compare { background: var(--surface); border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip {
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .88rem; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink-2); transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool-grid { display: grid; gap: 1.25rem; }
.tool { padding: 1.6rem; display: flex; flex-direction: column; position: relative; }
.tool.featured { border: 2px solid var(--accent); box-shadow: 0 20px 50px -25px rgba(16, 185, 129, .55); }
.tool-badge { position: absolute; top: -13px; left: 1.4rem; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; }
.tool-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.tool-logo { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.25rem; flex: none; }
.tool-top h3 { font-size: 1.3rem; }
.tool-top small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.tool-ideal { font-size: .94rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.tool-ideal b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.tool-feats { display: grid; gap: .6rem; margin-bottom: 1.2rem; font-size: .92rem; flex: 1; }
.tool-feats li { display: flex; gap: .6rem; align-items: flex-start; }
.tool-feats svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.ease { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-bottom: 1.3rem; padding: .7rem .9rem; background: var(--bg); border-radius: var(--radius-sm); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 22px; height: 7px; border-radius: 4px; background: var(--line); }
.dots i.on { background: var(--accent); }
.tool[hidden] { display: none; }
.compare-note { margin-top: 1.8rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* Criterios */
.criteria { display: grid; gap: 1.25rem; }
.criterion { padding: 1.6rem; }
.criterion .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 1.1rem; }
.criterion .ic svg { width: 24px; height: 24px; }
.criterion h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.criterion p { font-size: .94rem; color: var(--muted); }

/* Guías */
.guides-wrap { background: var(--night); color: #cbd5e1; position: relative; overflow: hidden; isolation: isolate; }
.guides-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 90% 0%, rgba(16, 185, 129, .18), transparent 70%); }
.guides-wrap h2 { color: #fff; }
.guides-wrap .section-head p { color: #94a3b8; }
.guides { display: grid; gap: 1.25rem; }
.guide { background: var(--night-2); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); padding: 1.7rem; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, background .25s; }
.guide:hover { transform: translateY(-5px); border-color: rgba(16, 185, 129, .5); background: #223049; }
.guide-meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: #94a3b8; margin-bottom: 1.2rem; }
.guide-tag { color: #6ee7b7; font-weight: 700; background: rgba(16, 185, 129, .14); padding: .25rem .7rem; border-radius: 999px; }
.guide h3 { color: #fff; font-size: 1.25rem; margin-bottom: .8rem; line-height: 1.3; }
.guide p { font-size: .94rem; color: #94a3b8; margin-bottom: 1.3rem; }
.guide .steps { display: grid; gap: .55rem; font-size: .88rem; margin-bottom: 1.5rem; flex: 1; }
.guide .steps li { display: flex; gap: .6rem; align-items: flex-start; }
.guide .steps b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #6ee7b7; font-size: .75rem; display: grid; place-items: center; margin-top: 2px; }
.guide .more { color: #6ee7b7; font-weight: 700; font-size: .92rem; display: inline-flex; gap: .4rem; align-items: center; }
.guide:hover .more .arrow { transform: translateX(4px); }
.guide .more .arrow { transition: transform .2s; }

/* CTA final */
.cta-band { padding: clamp(2rem, 4vw, 3rem) 0; }
.cta-box {
  background: linear-gradient(135deg, var(--accent-strong), #047857 45%, #1d4ed8); border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: 1.6rem; align-items: center; color: #d1fae5; box-shadow: var(--shadow-md);
}
.cta-box h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: .6rem; }
.cta-box .btn { background: #fff; color: var(--ink); }
.cta-box .btn:hover { background: #f0fdf4; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.3rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 1.15rem 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-strong); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--muted); font-size: .96rem; }

/* Footer */
.site-footer { background: var(--night); color: #94a3b8; padding: 2.5rem 0 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer .logo span em { color: #34d399; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a:hover { color: #fff; }
.transparency { margin-top: 2rem; padding: 1.1rem 1.3rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: .85rem; line-height: 1.6; }
.transparency b { color: #e2e8f0; }
.copy { margin-top: 1.6rem; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* Páginas de guía */
.narrow { width: min(100% - 2rem, 780px); margin-inline: auto; }
.article-hero { background: var(--night); padding: clamp(3rem, 7vw, 5rem) 0; position: relative; isolation: isolate; overflow: hidden; }
.article-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 320px at 85% 0%, rgba(37, 99, 235, .3), transparent 70%), radial-gradient(420px 300px at 5% 0%, rgba(16, 185, 129, .22), transparent 70%); }
.article-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); margin: 1.1rem 0; letter-spacing: -.03em; }
.article-hero .hero-lead { color: #94a3b8; font-size: 1.12rem; }
.crumbs { font-size: .85rem; color: #94a3b8; margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a:hover { color: #fff; }
.article { padding: 2rem 0 1rem; }
.tldr { background: var(--accent-soft); border: 1px solid #a7f3d0; border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2rem; color: #065f46; }
.tldr b { display: block; margin-bottom: .6rem; color: #064e3b; }
.tldr li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .4rem; font-size: .96rem; }
.tldr svg { flex: none; margin-top: 4px; color: var(--accent-strong); }
.lead-p { font-size: 1.12rem; color: var(--ink-2); margin-bottom: 2rem; }
.step { padding: 0; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; margin-bottom: 2rem; }
.step-n { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step h2, .h2-s { font-size: 1.35rem; margin-bottom: .6rem; }
.h2-s { margin: 2.5rem 0 1rem; }
.step p { margin-bottom: .9rem; }
blockquote { margin: 1rem 0; padding: 1rem 1.2rem; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; box-shadow: var(--shadow-sm); font-style: italic; color: var(--ink); }
.tipbox { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; padding: .9rem 1.1rem; border-radius: 12px; font-size: .94rem; }
.check-list { display: grid; gap: .6rem; }
.check-list li { padding-left: 1.7rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 800; }
.article-cta { margin-top: 3rem; padding: 1.8rem; background: var(--night); border-radius: 20px; color: #94a3b8; }
.article-cta h3 { color: #fff; font-size: 1.35rem; margin-bottom: .6rem; }
.article-cta .hero-actions { margin-top: 1.2rem; }
.article-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.disclosure { margin-top: 1.2rem; font-size: .82rem; color: var(--muted); }
.more-guides { padding: 1.5rem 0 3rem; }
.more-guides h2 { font-size: 1.6rem; margin-bottom: 1.4rem; }
.more-grid { display: grid; gap: 1rem; }
.more-card { padding: 1.4rem; display: block; }
.guide-tag-l { font-size: .75rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); padding: .2rem .65rem; border-radius: 999px; }
.more-card h3 { font-size: 1.05rem; margin: .8rem 0; line-height: 1.35; }
.more-l { font-weight: 700; color: var(--accent-strong); font-size: .9rem; }
@media (min-width: 640px) { .more-grid { grid-template-columns: 1fr 1fr; } }

/* 5. RESPONSIVE ----------------------------------------------------------- */
@media (min-width: 640px) {
  .tool-grid, .guides, .criteria { grid-template-columns: repeat(2, 1fr); }
  .stats ul { grid-template-columns: repeat(4, 1fr); }
  .stats li { border-bottom: 0 !important; border-right: 1px solid rgba(255, 255, 255, .08) !important; }
  .stats li:last-child { border-right: 0 !important; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .menu-toggle, .mobile-menu { display: none; }
  .nav-links, .nav-cta { display: flex; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .versus { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .guides { grid-template-columns: repeat(3, 1fr); }
  .criteria { grid-template-columns: repeat(4, 1fr); }
  .cta-box { grid-template-columns: 1fr auto; }
}
@media (min-width: 1100px) {
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .tool-grid[data-count="3"], .tool-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .float-chip { right: 4px; }
}

/* Logo */
.logo img { height: 44px; width: auto; display: block; }
.logo-footer { background: #fff; padding: .6rem 1rem; border-radius: 14px; }
.logo-footer img { height: 38px; }
@media (max-width: 420px) { .logo img { height: 38px; } }

/* Guías y legales (v2) */
.sec { padding: 0; margin: 0 0 1.8rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.sec h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 0 0 1rem; }
.sec p { margin: 0 0 1rem; }
.sec h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.small { font-size: .85rem; color: var(--muted); }
.updated { margin-top: 1rem; font-size: .85rem; color: #94a3b8; }
.tick { flex: none; color: var(--accent-strong); font-weight: 800; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin-bottom: 2.4rem; }
.toc b { display: block; margin-bottom: .6rem; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .95rem; }
.toc a { color: var(--blue); font-weight: 600; } .toc a:hover { text-decoration: underline; }
.num-list { margin: 0 0 1rem; padding-left: 1.4rem; display: grid; gap: .6rem; }
.num-list li::marker { color: var(--accent-strong); font-weight: 800; }
.warnbox { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; padding: .9rem 1.1rem; border-radius: 12px; font-size: .94rem; }
.msg { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: .9rem 1.1rem; margin: 0 0 1rem; box-shadow: var(--shadow-sm); }
.msg-l { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: .3rem; }
.msg p { margin: 0; color: var(--ink); font-size: .96rem; }
.tbl-wrap { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); min-width: 480px; }
.tbl th { text-align: left; background: var(--bg); color: var(--ink); padding: .7rem .9rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.tbl td { padding: .75rem .9rem; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td[data-first] { font-weight: 700; color: var(--ink); white-space: nowrap; }
.crm-cards { display: grid; gap: 1rem; margin: 1.2rem 0; }
.crm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.crm-need { font-size: .78rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); padding: .3rem .7rem; border-radius: 10px; align-self: flex-start; margin-bottom: .8rem; line-height: 1.35; }
.crm-card .check-list { margin-bottom: 1.1rem; font-size: .92rem; flex: 1; }
.crm-card p { font-size: .94rem; }
.faq-in { max-width: none; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .7rem; }
.legal p, .legal ul { margin-bottom: 1rem; }
.legal a, .sec a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal code { background: var(--line); padding: .1rem .4rem; border-radius: 6px; font-size: .88em; }
.plain { display: grid; gap: .3rem; }
.pend { background: #fef08a; color: #713f12; padding: .05rem .4rem; border-radius: 6px; font-weight: 600; }
.legal-hero { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.disclosure a { text-decoration: underline; }
.transparency a { text-decoration: underline; color: #e2e8f0; }
@media (min-width: 900px) { .crm-cards { grid-template-columns: repeat(3, 1fr); } .narrow:has(.crm-cards) { } }

/* ===== Enfoque dolor económico: calculadora ===== */
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.pill-red { background: rgba(239, 68, 68, .16); color: #FCA5A5; }
.ledger { display: grid; gap: .5rem; margin-bottom: .9rem; }
.ledger li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: .65rem .8rem; font-size: .82rem; color: #E2E8F0; }
.ledger b { color: #FCA5A5; font-size: .95rem; white-space: nowrap; }
.ledger li.total { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.35); font-weight: 700; }
.ledger li.total b { font-size: 1.15rem; color: #fff; }
.calc { display: grid; gap: 1.25rem; align-items: start; }
.calc-form { padding: 1.5rem; display: grid; gap: 1.15rem; }
.calc-form:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.calc-note { background: var(--accent-soft); color: #065f46; border-radius: 10px; padding: .6rem .9rem; font-size: .88rem; }
.calc-note.own { background: var(--bg); color: var(--muted); }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: .45rem; line-height: 1.35; }
.field label small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.field input[type=number] { width: 100%; font: inherit; font-size: 1.05rem; padding: .7rem .9rem; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--ink); }
.field input[type=number]:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field.two { display: grid; gap: 1rem; }
.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent-strong); height: 28px; }
.range-row output { min-width: 3.4rem; text-align: right; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.calc-privacy { font-size: .8rem; color: var(--muted); }
.calc-result { background: var(--night); color: #cbd5e1; border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow-md); display: grid; gap: 1rem; position: relative; overflow: hidden; isolation: isolate; }
.calc-result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 260px at 100% 0%, rgba(239,68,68,.22), transparent 70%), radial-gradient(380px 240px at 0% 100%, rgba(16,185,129,.2), transparent 70%); }
.calc-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #FCA5A5; }
.big { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.big span { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.big small { color: #94a3b8; font-weight: 600; }
.big.sub span { font-size: clamp(1.5rem, 4.5vw, 2rem); color: #FCA5A5; }
.breakdown { display: grid; gap: .5rem; }
.breakdown li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: .6rem; font-size: .92rem; }
.breakdown small { display: block; color: #94a3b8; font-size: .78rem; }
.breakdown b { color: #fff; white-space: nowrap; }
.scen { background: rgba(255,255,255,.06); border-radius: 14px; padding: .9rem 1rem; }
.scen p { font-size: .82rem; color: #94a3b8; margin-bottom: .5rem; }
.scen-row { display: flex; justify-content: space-between; font-size: .92rem; padding: .2rem 0; }
.scen-row b { color: #6EE7B7; }
.calc-fine { font-size: .78rem; color: #94a3b8; }
.center-cta { text-align: center; margin-top: 2rem; }
.calc-banner { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; border-radius: 12px; padding: .8rem 1.1rem; margin-bottom: 1.4rem; font-size: .94rem; }
.calc-banner a { color: #b91c1c; font-weight: 700; text-decoration: underline; }
@media (min-width: 640px) { .field.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr .9fr; } .calc-result { position: sticky; top: calc(var(--header-h) + 20px); } }

/* Logotipos oficiales de las herramientas */
.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; }
.tool-top { flex-direction: column; align-items: flex-start; gap: .55rem; }
.tool-logo-img { height: 32px; width: auto; max-width: 100%; display: block; object-fit: contain; }
.tool-top small { display: block; }
.crm-card .tool-logo-img { margin-bottom: .6rem; }
.cta-logo { display: inline-flex; background: #fff; border-radius: 12px; padding: .5rem .9rem; margin-bottom: .9rem; }
.cta-logo img { height: 30px; width: auto; display: block; }

/* Etiqueta destacada m�s compacta y sin tapar el logo */
.tool.featured { padding-top: 2.3rem; }
.tool-badge { top: -10px; left: 1.2rem; font-size: .62rem; letter-spacing: .04em; padding: .22rem .65rem; line-height: 1.2; }

/* Tarjeta de ejemplo del hero */
.ledger li small { display: block; color: #94a3b8; font-size: .68rem; font-weight: 500; margin-top: 1px; }
.ledger li.total.year { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.ledger li.total.year b { font-size: 1rem; color: #FCA5A5; }
.mock-note { font-size: .72rem; line-height: 1.5; color: #94a3b8; margin-top: .2rem; }
.mock-note b { color: #cbd5e1; }

.mock .pill { white-space: nowrap; }
.mock-title span:first-child { flex: 1; padding-right: .6rem; }
.mock-note { margin-bottom: 1.6rem; max-width: 78%; }
.mock .float-chip { bottom: -30px; }

/* Hero: caso cotidiano en línea de tiempo */
.tl { position: relative; display: grid; gap: .55rem; margin: 0 0 .9rem; padding-left: 1.2rem; }
.tl::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px; background: rgba(255,255,255,.18); }
.tl li { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: .6rem .8rem; font-size: .84rem; color: #E2E8F0; display: grid; gap: 2px; }
.tl li::before { content: ""; position: absolute; left: -1.2rem; top: 1rem; width: 10px; height: 10px; border-radius: 50%; background: #64748b; box-shadow: 0 0 0 3px #172033; }
.tl li b { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.tl li strong { color: #fff; }
.tl li.gap { border-color: rgba(251,191,36,.35); } .tl li.gap::before { background: #fbbf24; }
.tl li.lost { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.4); } .tl li.lost::before { background: #ef4444; }
.tl li.lost b { color: #fca5a5; }
.tl-result { background: rgba(239,68,68,.1); border: 1px dashed rgba(239,68,68,.45); border-radius: 12px; padding: .75rem .9rem; margin-bottom: .8rem; }
.tl-result strong { display: block; color: #fff; font-size: 1.05rem; }
.tl-result span { display: block; color: #cbd5e1; font-size: .8rem; margin-top: 2px; }
.mock-link { display: inline-flex; align-items: center; gap: .4rem; color: #6EE7B7; font-weight: 700; font-size: .9rem; margin-bottom: 1.2rem; }
.mock-link:hover { color: #fff; }
.mock-link:hover .arrow { transform: translateX(3px); } .mock-link .arrow { transition: transform .2s; }

/* Carrusel de casos del hero */
.cases-track { display: grid; }
.case { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .45s ease, visibility .45s; }
.case.on { visibility: visible; opacity: 1; }
.case-tag { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #6EE7B7; margin-bottom: .6rem; }
.cases-nav { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .2rem; padding-bottom: 1.5rem; }
.cn-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #e2e8f0; display: grid; place-items: center; transition: background .2s; }
.cn-btn:hover { background: rgba(255,255,255,.14); }
.cn-dots { display: flex; gap: .45rem; align-items: center; }
.cn-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.28); padding: 0; transition: width .25s, background .25s; }
.cn-dots button.on { width: 26px; border-radius: 6px; background: #10B981; }
.cases-nav .mock-link { margin: 0 0 0 auto; }
.cn-btn:focus-visible, .cn-dots button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .case { transition: none; } }

/* Pie de página renovado */
.site-footer { position: relative; background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%); border-top: 0; padding: 2.75rem 0 1.4rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--blue)); }
.site-footer::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(37,99,235,.22), transparent 70%); pointer-events: none; }
.site-footer .container { position: relative; z-index: 1; }
.footer-top { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.ft-brand p { margin-top: .8rem; max-width: 34ch; color: #94a3b8; line-height: 1.55; }
.footer-grid { border-bottom: 0 !important; padding-bottom: 1.5rem !important; gap: 1.8rem; }
.site-footer h4 { color: #e2e8f0; margin-bottom: .8rem; }
.site-footer li { margin-bottom: .5rem; }
.site-footer li a { color: #94a3b8; transition: color .2s, padding-left .2s; }
.site-footer li a:hover { color: #fff; padding-left: 4px; }
.copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem; margin-top: .5rem !important; color: #64748b; }
@media (min-width: 640px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: center; } .footer-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 900px) { .footer-grid { gap: 3rem; } }

/* Guías: herramienta recomendada y tarjetas destacadas */
.tool-callout { display: grid; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0 0 2.2rem; box-shadow: var(--shadow-md); }
.tool-callout img { height: 32px; width: auto; display: block; }
.tool-callout b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .2rem; }
.tool-callout p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.tool-callout .btn { justify-self: start; box-shadow: 0 10px 24px -10px rgba(16,185,129,.7); }
.crm-card.featured { position: relative; border: 2px solid var(--accent); box-shadow: 0 20px 45px -25px rgba(16,185,129,.55); }
.crm-badge { position: absolute; top: -12px; right: 1rem; background: var(--accent-strong); color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.crm-card .btn-primary { box-shadow: 0 10px 24px -10px rgba(16,185,129,.7); }
.hub { padding: 2rem 0 3rem; }
.hub-grid { display: grid; gap: 1rem; }
.hub-card { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.hub-card h2 { font-size: 1.1rem; line-height: 1.3; }
.hub-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.guides-wrap .center-cta .btn-ghost { background: rgba(255,255,255,.06); }
@media (min-width: 640px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } .tool-callout { grid-template-columns: auto 1fr auto; gap: 1.4rem; } .tool-callout .btn { justify-self: end; } }

/* Pie de página: un solo bloque compacto */
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.2rem; padding-bottom: 1.3rem; }
.ft-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.ft-brand p { margin: 0; font-size: .85rem; max-width: 30ch; }
.btn-sm { padding: .55rem 1rem; font-size: .82rem; border-radius: 10px; gap: .4rem; }
.footer-main h4 { font-size: .7rem; letter-spacing: .09em; margin-bottom: .6rem; }
.footer-main li { margin-bottom: .3rem; }
.footer-main li a { font-size: .8rem; line-height: 1.4; }
.site-footer .copy { font-size: .78rem; padding-top: 1rem; }
.logo-footer img { height: 32px; }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1.5fr 1fr 1.25fr 1fr; gap: 2rem; } .ft-brand { grid-column: auto; } }

/* ===== Demo animada: embudo visual ===== */
.demo { margin: 0 0 1rem; }
.dm-win { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden; }
.dm-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.dm-bar i { width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; } .dm-bar i:nth-child(2) { background: #fde68a; } .dm-bar i:nth-child(3) { background: #86efac; }
.dm-bar span { margin-left: .8rem; font-size: .74rem; color: var(--muted); font-weight: 600; }
.dm-stage { display: grid; background: linear-gradient(180deg, #f8fafc, #eef2f7); }
.dm-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; padding: 1rem 1rem 0; min-width: 0; }
.dm-slide.on { opacity: 1; visibility: visible; }
.dm-cap { padding: .9rem .2rem 1.1rem; } .dm-cap h3 { font-size: 1.05rem; margin: 0 0 .2rem; } .dm-cap p { font-size: .88rem; color: var(--muted); margin: 0; }
.dm-chip { background: var(--blue-soft, #dbeafe); color: #1e40af; font-size: .65rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; margin-left: auto; }
.dm-chip.abs { position: absolute; top: .6rem; right: .6rem; margin: 0; }
/* 1 · tablero */
.dm-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 215px; }
.dm-col { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 12px; padding: .5rem; display: grid; align-content: start; gap: .45rem; min-width: 0; }
.dm-col h4 { font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0; display: flex; justify-content: space-between; gap: .3rem; }
.dm-col h4 em { font-style: normal; background: #e2e8f0; border-radius: 99px; padding: 0 .4rem; }
.dm-col.win { background: #f0fdf8; border-color: #a7f3d0; } .dm-col.win h4 { color: var(--accent-strong); }
.dm-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: .4rem .5rem; box-shadow: 0 1px 2px rgba(15,23,42,.06); display: grid; gap: 1px; min-width: 0; }
.dm-card b { font-size: .72rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dm-card small { font-size: .6rem; color: var(--muted); }
.dm-card.done { border-color: #6ee7b7; background: #ecfdf5; }
.dm-slide.on .dm-card.move { position: relative; z-index: 3; animation: dmMove 5.5s ease-in-out infinite; }
@keyframes dmMove { 0%,22% { transform: none; } 38% { transform: translateY(-6px) scale(1.05); box-shadow: 0 14px 26px -10px rgba(15,23,42,.4); } 62%,86% { transform: translate(calc(100% + 28px), 0) scale(1.02); border-color: #10b981; background: #ecfdf5; box-shadow: 0 6px 16px -8px rgba(16,185,129,.6); } 93% { opacity: 1; transform: translate(calc(100% + 28px), 0); } 95% { opacity: 0; transform: translate(calc(100% + 28px), 0); } 96% { opacity: 0; transform: none; } 100% { opacity: 1; transform: none; } }
/* 2 · detalle */
.dm-detail { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; max-width: 540px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.dm-head { display: flex; align-items: center; gap: .7rem; } .dm-head b { display: block; color: var(--ink); } .dm-head small { color: var(--muted); font-size: .78rem; }
.dm-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex: none; }
.dm-tl { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1.2rem; position: relative; display: grid; gap: .7rem; }
.dm-tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: #e2e8f0; }
.dm-tl li { position: relative; display: flex; } .dm-tl li i { position: absolute; left: -1.2rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }
.dm-tl li.next i { background: #fff; border: 3px solid var(--blue); }
.dm-tl li span { display: block; padding: .5rem .7rem; border-radius: 10px; background: var(--bg); flex: 1; } .dm-tl li span b { display: block; font-size: .85rem; color: var(--ink); } .dm-tl li span small { font-size: .72rem; color: var(--muted); }
.dm-tl li.next span { background: #eff6ff; border: 1px solid #bfdbfe; }
.dm-slide.on .dm-tl li { animation: dmIn .6s ease both; } .dm-slide.on .t1 { animation-delay: .2s; } .dm-slide.on .t2 { animation-delay: .8s; } .dm-slide.on .t3 { animation-delay: 1.4s; }
.dm-slide.on .t3 span { animation: dmPulse 2s ease-in-out 2.2s infinite; }
@keyframes dmIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dmPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } 50% { box-shadow: 0 0 0 5px rgba(37,99,235,.18); } }
/* 3 · hoy */
.dm-today { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; max-width: 540px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.dm-today-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; } .dm-today-h b { color: var(--ink); font-size: 1rem; }
.dm-bell { position: relative; color: var(--ink-2); display: inline-grid; } .dm-bell i { position: absolute; top: -7px; right: -9px; background: var(--danger); color: #fff; font-style: normal; font-size: .6rem; font-weight: 800; min-width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center; }
.dm-slide.on .dm-bell i { animation: dmPop .6s cubic-bezier(.3,1.6,.5,1) .3s both; } @keyframes dmPop { from { transform: scale(0); } to { transform: scale(1); } }
.dm-today ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.dm-today li { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .6rem .7rem; background: var(--bg); border-radius: 10px; }
.dm-today li b { font-size: .85rem; color: var(--ink); } .dm-today li small { color: var(--muted); font-size: .72rem; }
.dm-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #cbd5e1; background: #fff; position: relative; }
.dm-check::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .8rem; font-weight: 800; opacity: 0; }
.dm-slide.on .k1 .dm-check, .dm-slide.on .k2 .dm-check, .dm-slide.on .k3 .dm-check { animation: dmTick .35s ease both; }
.dm-slide.on .k1 .dm-check { animation-delay: 1s; } .dm-slide.on .k2 .dm-check { animation-delay: 2s; } .dm-slide.on .k3 .dm-check { animation-delay: 3s; }
.dm-slide.on .k1 .dm-check::after, .dm-slide.on .k2 .dm-check::after, .dm-slide.on .k3 .dm-check::after { animation: dmShow .2s ease both; }
.dm-slide.on .k1 .dm-check::after { animation-delay: 1s; } .dm-slide.on .k2 .dm-check::after { animation-delay: 2s; } .dm-slide.on .k3 .dm-check::after { animation-delay: 3s; }
.dm-slide.on .k1 b, .dm-slide.on .k2 b, .dm-slide.on .k3 b { animation: dmDone .3s ease both; } .dm-slide.on .k1 b { animation-delay: 1s; } .dm-slide.on .k2 b { animation-delay: 2s; } .dm-slide.on .k3 b { animation-delay: 3s; }
@keyframes dmTick { from { background: #fff; border-color: #cbd5e1; } to { background: var(--accent); border-color: var(--accent); } }
@keyframes dmShow { from { opacity: 0; } to { opacity: 1; } }
@keyframes dmDone { from { color: var(--ink); } to { color: #94a3b8; text-decoration: line-through; } }
.dm-prog { height: 8px; background: #e2e8f0; border-radius: 99px; margin-top: .9rem; overflow: hidden; } .dm-prog i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #34d399, #10b981); border-radius: 99px; }
.dm-slide.on .dm-prog i { animation: dmFill 3.4s ease 1s both; } @keyframes dmFill { from { width: 0; } to { width: 100%; } }
/* 4 · informes */
.dm-report { position: relative; display: grid; gap: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1rem 1rem; box-shadow: var(--shadow-sm); }
.dm-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; border-bottom: 2px solid #e2e8f0; margin-bottom: 1.3rem; }
.dm-bars span { flex: 1; height: var(--h); background: linear-gradient(180deg, #34d399, #10b981); border-radius: 8px 8px 0 0; position: relative; transform-origin: bottom; }
.dm-bars span em { position: absolute; left: 0; right: 0; bottom: -1.3rem; text-align: center; font-style: normal; font-size: .68rem; color: var(--muted); }
.dm-slide.on .dm-bars span { animation: dmGrow .9s cubic-bezier(.2,.8,.2,1) both; } .dm-slide.on .dm-bars span:nth-child(2) { animation-delay: .12s; } .dm-slide.on .dm-bars span:nth-child(3) { animation-delay: .24s; } .dm-slide.on .dm-bars span:nth-child(4) { animation-delay: .36s; } .dm-slide.on .dm-bars span:nth-child(5) { animation-delay: .48s; }
@keyframes dmGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dm-funnel { display: grid; gap: 8px; align-content: center; } .dm-funnel div { width: var(--w); background: linear-gradient(90deg, #2563eb, #60a5fa); color: #fff; border-radius: 8px; padding: .45rem .7rem; font-size: .72rem; white-space: nowrap; overflow: hidden; }
.dm-slide.on .dm-funnel div { animation: dmWidth .9s ease both; } .dm-slide.on .dm-funnel div:nth-child(2) { animation-delay: .2s; } .dm-slide.on .dm-funnel div:nth-child(3) { animation-delay: .4s; } .dm-slide.on .dm-funnel div:nth-child(4) { animation-delay: .6s; }
@keyframes dmWidth { from { width: 0; padding-left: 0; padding-right: 0; } to { width: var(--w); } }
/* 5 · automatización */
.dm-auto { display: grid; justify-items: center; max-width: 440px; margin: 0 auto; }
.dm-node { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; width: 100%; box-shadow: var(--shadow-sm); } .dm-node small { display: block; color: var(--accent-strong); font-weight: 800; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; } .dm-node b { font-size: .88rem; color: var(--ink); }
.dm-line { width: 2px; height: 26px; background: #cbd5e1; position: relative; overflow: hidden; } .dm-line i { position: absolute; left: 0; top: -10px; width: 100%; height: 10px; background: var(--accent); }
.dm-slide.on .dm-line i { animation: dmFlow 1.1s linear infinite; } @keyframes dmFlow { to { top: 26px; } }
.dm-slide.on .dm-node { animation: dmGlow 3.6s ease-in-out infinite; } .dm-slide.on .dm-node.b { animation-delay: 1.2s; } .dm-slide.on .dm-node.c { animation-delay: 2.4s; }
@keyframes dmGlow { 0%,100% { border-color: var(--line); } 15%,35% { border-color: var(--accent); box-shadow: 0 8px 22px -10px rgba(16,185,129,.55); } }
/* navegación clara */
.dm-nav { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .9rem; }
.dm-nav .cn-btn { border-color: #cbd5e1; background: #fff; color: var(--ink-2); } .dm-nav .cn-btn:hover { background: var(--bg); }
.dm-nav .cn-dots button { background: #cbd5e1; } .dm-nav .cn-dots button.on { background: var(--accent); }
@media (max-width: 560px) { .dm-card small { display: none; } .dm-card b { font-size: .64rem; } .dm-col h4 { font-size: .56rem; } .dm-board { gap: 6px; } .dm-col { padding: .35rem; } .dm-report { gap: 1rem; } }
@media (min-width: 640px) { .dm-report { grid-template-columns: 1.1fr 1fr; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .dm-slide { transition: none; } .dm-slide *, .dm-slide *::after { animation: none !important; } }

.dm-slide { display: flex; flex-direction: column; } .dm-cap { margin-top: auto; } .dm-board { min-height: 230px; }

.dm-report { padding-top: 2.4rem; }

/* ===== Demos animadas de las guías: piezas reutilizables ===== */
.dm-slide.on .a { animation: dmIn .55s ease both; animation-delay: var(--d, 0s); }
.dm-slide.on .pop { animation: dmPopIn .5s cubic-bezier(.3,1.5,.5,1) both; animation-delay: var(--d, 0s); }
@keyframes dmPopIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.dm-slide.on .grow { animation: dmGrowW .8s ease both; animation-delay: var(--d, 0s); }
@keyframes dmGrowW { from { width: 0; } to { width: var(--w); } }
.grow { width: var(--w); }
.dm-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-sm); display: grid; gap: .7rem; }
.dm-rel, .rel { position: relative; }
.dm-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.dm-rows li { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .6rem .75rem; background: var(--bg); border-radius: 10px; }
.rw { display: grid; min-width: 0; } .rw b { font-size: .84rem; color: var(--ink); } .rw small { font-size: .7rem; color: var(--muted); }
.pl { display: inline-block; font-size: .66rem; font-weight: 800; padding: .22rem .6rem; border-radius: 999px; white-space: nowrap; }
.pl.green { background: #d1fae5; color: #047857; } .pl.amber { background: #fef3c7; color: #92400e; } .pl.red { background: #fee2e2; color: #b91c1c; } .pl.blue { background: #dbeafe; color: #1d4ed8; }
.sw { display: inline-grid; } .sw > span { grid-area: 1 / 1; justify-self: end; }
.sw .s1 { opacity: 0; } .sw .s2 { opacity: 1; }
.dm-slide.on .sw .s1 { animation: dmFadeOut .35s ease both; animation-delay: var(--d, 0s); }
.dm-slide.on .sw .s2 { animation: dmFadeIn .35s ease both; animation-delay: var(--d, 0s); }
@keyframes dmFadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes dmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.rt { display: inline-flex; align-items: center; gap: .4rem; }
.badge { font-style: normal; background: var(--danger); color: #fff; font-size: .62rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; }
/* chat */
.dm-chat { display: grid; gap: .5rem; }
.b { max-width: 82%; padding: .5rem .75rem; border-radius: 13px; font-size: .82rem; line-height: 1.4; }
.b.in { background: var(--bg); border: 1px solid var(--line); justify-self: start; border-bottom-left-radius: 4px; color: var(--ink); }
.b.out { background: #d1fae5; justify-self: end; border-bottom-right-radius: 4px; color: #064e3b; }
.b.typing { display: inline-flex; gap: 4px; padding: .65rem .8rem; } .b.typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: dmDot 1s infinite ease-in-out; } .b.typing i:nth-child(2) { animation-delay: .15s; } .b.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dmDot { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.dm-slide.on .b.typing { animation: dmIn .4s ease both, dmGone .3s ease 1.1s forwards; animation-delay: var(--d, 0s), calc(var(--d, 0s) + .8s); }
@keyframes dmGone { to { opacity: 0; height: 0; padding: 0; margin: -.25rem 0; } }
/* escritura */
.typed { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: var(--w, 12ch); max-width: 100%; }
.dm-slide.on .typed { animation: dmType 1.1s steps(var(--n, 12)) both; animation-delay: var(--d, 0s); border-right: 2px solid var(--ink); }
@keyframes dmType { from { width: 0; } to { width: var(--w); border-right-color: transparent; } }
/* formulario / correo / documento */
.dm-form { display: grid; gap: .4rem; } .dm-form label { font-size: .7rem; font-weight: 700; color: var(--muted); }
.inp { border: 1px solid #cbd5e1; border-radius: 9px; padding: .5rem .65rem; font-size: .85rem; color: var(--ink); min-height: 2.1rem; background: #fff; }
.chk { font-size: .75rem; color: var(--ink-2); } .chk i { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--accent); color: #fff; font-size: .65rem; margin-right: .35rem; }
.fbtn { justify-self: start; background: var(--accent-strong); color: #fff; font-weight: 800; font-size: .8rem; padding: .5rem 1rem; border-radius: 9px; } .fbtn.alt { background: var(--blue); }
.sent { justify-self: start; color: var(--accent-strong); font-weight: 800; font-size: .8rem; background: #ecfdf5; border-radius: 99px; padding: .3rem .8rem; }
.dm-mail { display: grid; gap: .5rem; font-size: .85rem; color: var(--ink-2); } .dm-mail p { margin: 0; } .mh { background: var(--bg); border-radius: 8px; padding: .5rem .7rem; font-size: .8rem; } .mbtn { justify-self: start; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 700; padding: .45rem .9rem; border-radius: 8px; }
.dm-doc { display: grid; gap: .55rem; } .dh { display: flex; justify-content: space-between; align-items: center; } .dh b { font-size: 1rem; color: var(--ink); } .dh small { color: var(--muted); font-size: .72rem; }
.ln { height: 10px; border-radius: 6px; background: #e2e8f0; width: var(--w); }
.tot { display: flex; justify-content: space-between; border-top: 2px solid #e2e8f0; padding-top: .55rem; font-size: .85rem; color: var(--ink-2); } .tot b { color: var(--ink); }
.stamp { border: 2px solid #f59e0b; color: #b45309; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 6px; transform: rotate(-4deg); }
.dm-toast { position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); display: inline-flex; gap: .5rem; align-items: center; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; padding: .55rem .9rem; border-radius: 99px; box-shadow: var(--shadow-md); white-space: nowrap; z-index: 5; }
.dm-toast span { color: #34d399; }
.dm-panel .dm-toast { position: static; transform: none; justify-self: center; }
.rel .dm-toast { }
.dm-slide.on .rel .dm-toast.pop { animation-name: dmToast; } @keyframes dmToast { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.9); } to { opacity: 1; transform: translateX(-50%); } }
/* tableros de 2-3 columnas */
.dm-board.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dm-board.c3 { min-height: 190px; }
.dm-card.hot { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.dm-slide.on .dm-card.pop { animation: dmPopIn .6s cubic-bezier(.3,1.5,.5,1) 1s both; }
/* medidores, etapas, chips, etc. */
.mt { display: grid; gap: .25rem; } .mt-h { display: flex; justify-content: space-between; align-items: baseline; } .mt-h b { font-size: .82rem; color: var(--ink); } .mt-h small { font-size: .7rem; color: var(--muted); }
.stages { display: flex; flex-wrap: wrap; gap: .5rem; } .st { background: var(--blue-soft, #dbeafe); color: #1d4ed8; font-weight: 800; font-size: .8rem; padding: .5rem .9rem; border-radius: 10px; }
.note { margin: 0; font-size: .82rem; color: var(--ink-2); background: var(--bg); padding: .6rem .8rem; border-radius: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; } .chips span { font-size: .74rem; font-weight: 700; padding: .35rem .7rem; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); } .chips span.on { background: #d1fae5; border-color: #6ee7b7; color: #047857; }
.etp { display: flex; align-items: center; gap: .6rem; margin: .8rem 0 0; } .etp small { color: var(--muted); font-weight: 700; font-size: .72rem; }
.tm i.shrink { width: 100%; background: linear-gradient(90deg, #2563eb, #60a5fa); } .dm-slide.on .tm i.shrink { animation: dmShrink 5s linear .4s both; } @keyframes dmShrink { from { width: 100%; } to { width: 6%; } }
.ai-p, .ai-d { background: var(--bg); border-radius: 10px; padding: .65rem .8rem; font-size: .82rem; color: var(--ink-2); } .ai-p small, .ai-d small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: .2rem; } .ai-d p { margin: .15rem 0; color: var(--ink); }
.ph { background: #fef3c7; border-radius: 4px; padding: 0 .2rem; } .ph2 { display: none; }
.dm-slide.on .ph { animation: dmFadeOut .3s ease both; animation-delay: var(--d, 1s); animation-delay: 1s; position: absolute; visibility: hidden; }
.dm-slide.on .ph2 { display: inline; animation: dmIn .4s ease both 1s; background: #d1fae5; border-radius: 4px; padding: 0 .2rem; }
.rev { display: inline-flex; gap: .5rem; align-items: center; background: #ecfdf5; color: #047857; font-weight: 700; font-size: .8rem; padding: .45rem .8rem; border-radius: 99px; justify-self: start; } .rev span { background: #10b981; color: #fff; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; }
/* flujo horizontal (editor visual) */
.dm-hflow { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .6rem 0; }
.hn { position: relative; display: grid; justify-items: center; gap: .15rem; text-align: center; background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; padding: .8rem .6rem; width: 112px; box-shadow: var(--shadow-sm); }
.hn .ic { font-size: 1.5rem; } .hn b { font-size: .8rem; color: var(--ink); } .hn small { font-size: .66rem; color: var(--muted); }
.hn em.ok { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; background: #10b981; color: #fff; font-style: normal; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.dm-slide.on .hn em.ok { animation: dmPopIn .4s cubic-bezier(.3,1.5,.5,1) both; animation-delay: var(--d, 99s); }
.hl { position: relative; flex: 1; height: 3px; background: #cbd5e1; border-radius: 3px; overflow: hidden; min-width: 20px; } .hl i { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: #10b981; }
.dm-slide.on .hl i { animation: dmRun 1s ease-in-out both; animation-delay: var(--d, 99s); } @keyframes dmRun { from { left: -30%; } to { left: 100%; } }
.dm-slide.on .hn { }
@media (max-width: 560px) { .hn { width: 86px; padding: .6rem .3rem; } .hn small { display: none; } .dm-rows li { flex-wrap: wrap; } }

.dm-board.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 190px; }

/* Logo oficial de Make: su archivo incluye el espacio libre de marca; se muestra a 44 px de alto (ancho útil > 96 px, mínimo que exige su guía) */
.tool-logo-img[src*='make'], .tool-callout img[src*='make'], .hub-card img[src*='make'], .cta-logo img { height: 44px; width: auto; }

/* Aviso de cookies */
.cookie-bar{position:fixed;left:0;right:0;bottom:0;z-index:200;display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:16px max(16px,calc((100vw - 1180px)/2));background:#0F172A;color:#E2E8F0;box-shadow:0 -8px 30px rgba(15,23,42,.25);font-size:.92rem;line-height:1.5}
.cookie-bar p{margin:0;flex:1 1 420px}
.cookie-bar a{color:#6EE7B7;text-decoration:underline}
.cookie-actions{display:flex;gap:10px;flex:0 0 auto}
.cookie-btn{font:inherit;font-weight:700;padding:10px 22px;border-radius:10px;border:2px solid #059669;background:#059669;color:#fff;cursor:pointer}
.cookie-btn.ghost{background:transparent;border-color:#64748B;color:#E2E8F0}
.cookie-btn:hover{filter:brightness(1.1)}
.cookie-btn:focus-visible{outline:3px solid #6EE7B7;outline-offset:2px}
@media(max-width:560px){.cookie-actions{width:100%}.cookie-btn{flex:1}}
.ctable{width:100%;border-collapse:collapse;margin:14px 0;font-size:.92rem;display:block;overflow-x:auto}
.ctable th,.ctable td{border:1px solid #E2E8F0;padding:8px 10px;text-align:left;vertical-align:top}
.ctable th{background:#F1F5F9}
