/* ClubRut — landing v2. Moderna, premium, con profundidad y micro-animaciones. */
:root {
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-deep: #1e3a8a;
  --navy: #0b1733;
  --navy-2: #0e1f44;
  --blue-tint: #eff4ff;
  --canvas: #f4f7fc;
  --ink: #0f172a;
  --muted: #5b6677;
  --line: #e6ebf3;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --err: #dc2626;
  --err-bg: #fef2f2;
  --r: 16px;
  --r-lg: 22px;
  --sh-sm: 0 1px 2px rgba(15,23,42,.05), 0 2px 6px rgba(15,23,42,.06);
  --sh: 0 10px 30px rgba(15,23,42,.10);
  --sh-lg: 0 30px 70px rgba(15,30,80,.28);
  --t-fast: 150ms ease; --t-base: 220ms ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; font-weight: 800; line-height: 1.08; }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
svg { display: block; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- nav ---------- */
.lnav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.lnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; font-weight: 900; font-size: 26px; letter-spacing: -.04em; color: var(--ink); }
.brand .logo { border-radius: 9px; box-shadow: 0 4px 12px rgba(37,99,235,.35); margin-right: 10px; }
.brand span { color: var(--blue); }
.lnav nav { display: flex; align-items: center; gap: 24px; }
.lnav nav a.link { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.lnav nav a.link:hover { color: var(--ink); }
/* Navbar mobile: hamburguesa + drawer lateral.
   .lnav … para ganar especificidad sobre .btn-login (si no, el 'Ingresar' mobile se ve en desktop). */
.lnav .nav-login-m, .lnav .navburger { display: none; }
.navburger { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; flex: none; }
.navburger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform var(--t-base), opacity var(--t-base); }
.navdrawer-ov {
  position: fixed; inset: 0; z-index: 60; background: rgba(10,18,40,.5);
  opacity: 0; visibility: hidden; transition: opacity var(--t-base), visibility var(--t-base);
}
.navdrawer-ov.open { opacity: 1; visibility: visible; }
.navdrawer {
  position: absolute; top: 0; right: 0; height: 100dvh; width: 80vw; max-width: 320px;
  background: #fff; box-shadow: -12px 0 40px rgba(10,18,40,.18);
  transform: translateX(100%); transition: transform var(--t-base);
  display: flex; flex-direction: column; gap: 4px; padding: 70px 22px calc(22px + env(safe-area-inset-bottom,0px));
}
.navdrawer-ov.open .navdrawer { transform: translateX(0); }
.nd-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.nd-link { padding: 15px 6px; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.nd-link:last-of-type { border-bottom: 0; }
.navdrawer .btn { margin-top: auto; width: 100%; }

@media (max-width: 760px) {
  .lnav nav { display: none; }
  .lnav .nav-login-m { display: inline-flex; height: 38px; padding: 0 16px; margin-left: auto; }
  .lnav .navburger { display: block; }
  .brand { font-size: 22px; }
}

/* Pricing: carrusel con swipe + snap + dots en mobile (.pricing .plans para ganar especificidad) */
.plan-dots { display: none; }
@media (max-width: 760px) {
  .pricing .plans {
    display: flex; grid-template-columns: none; gap: 14px; max-width: none;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 6px 4px 10px; margin: 28px -16px 0; scrollbar-width: none;
    scroll-padding: 0 7.5vw;
  }
  .pricing .plans::-webkit-scrollbar { display: none; }
  .pricing .plans .plan { flex: 0 0 85vw; max-width: 360px; scroll-snap-align: center; }
  .pricing .plans .plan:first-child { margin-left: 7.5vw; }
  .pricing .plans .plan:last-child { margin-right: 7.5vw; }
  .plan-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .plan-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all var(--t-base); }
  .plan-dots i.on { background: var(--blue); width: 22px; border-radius: 999px; }
}
/* "Ingresar": pill diferenciada (outline azul) para distinguirla del CTA sólido. */
.btn-login { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px;
  border-radius: 999px; border: 2px solid var(--blue); color: var(--blue); font-weight: 800; font-size: 15px;
  background: #fff; transition: all .15s; }
.btn-login:hover { background: var(--blue-tint); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37,99,235,.18); }
/* "Mi ClubRut": óvalo distinto (para el consumidor) con un circulito de estrella. */
.lnav .btn-mi { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px;
  border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); font-weight: 800; font-size: 14px; transition: all .15s; }
.lnav .btn-mi:hover { background: #e2eafe; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37,99,235,.16); }
.lnav .btn-mi .mi-ic { width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; }
.lnav .btn-mi .mi-ic svg { width: 15px; height: 15px; fill: #fff; stroke: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative;
  border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; padding: 12px 20px;
  background: var(--blue); color: #fff; white-space: nowrap; overflow: hidden;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease; }
.btn:hover { background: var(--blue-hover); box-shadow: 0 10px 26px rgba(37,99,235,.4); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); transition: left .5s ease; }
.btn:hover::after { left: 140%; }
.btn.lg { padding: 16px 28px; font-size: 17px; border-radius: 14px; }
.btn.ghost { background: var(--blue-tint); color: var(--blue); }
.btn.ghost:hover { background: #e2eafe; box-shadow: none; }
.btn.soft { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn.soft:hover { background: rgba(255,255,255,.18); box-shadow: none; }
.btn.dark { background: #fff; color: var(--navy); }
.btn.dark:hover { background: #eef3ff; }

/* ---------- hero (dark, premium) ---------- */
.hero { position: relative; overflow: hidden; color: #eaf0ff;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(79,134,255,.45), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(37,99,235,.35), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #122a5e 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-top: 76px; padding-bottom: 90px; }
.tag { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #cfe0ff; font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin: 20px 0 0; color: #fff; }
.hero h1 .accent { background: linear-gradient(90deg, #7ea2ff, #4f86ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: #b9c6e6; margin: 22px 0 30px; max-width: 540px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .micro { margin-top: 22px; display: flex; gap: 20px; flex-wrap: wrap; color: #9fb0d6; font-size: 14px; }
.hero .micro span { display: inline-flex; align-items: center; gap: 7px; }
.hero .micro .icon { width: 17px; height: 17px; color: #34d399; stroke-width: 2.6; }

/* ---------- browser-frame product mock ---------- */
.heroviz { position: relative; }
.browser { background: #fff; border-radius: 14px; box-shadow: var(--sh-lg); overflow: hidden; transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transition: transform .4s ease; }
.heroviz:hover .browser { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.browser .chrome { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #f1f4f9; border-bottom: 1px solid var(--line); }
.browser .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.browser .chrome i:nth-child(1){background:#f3a4a4} .browser .chrome i:nth-child(2){background:#f3d488} .browser .chrome i:nth-child(3){background:#9fdcab}
.browser .url { margin-left: 10px; flex: 1; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; color: var(--muted); padding: 5px 10px; }
.browser .url .lock { width: 11px; height: 11px; fill: none; stroke: #94a3b8; stroke-width: 2; }
.browser .body { padding: 16px; background: linear-gradient(180deg,#f6f8fc,#fff); }

/* ===== Mockup del producto en el HERO (todo scopeado a .browser para no
        afectar la sección "El panel" que reusa estos nombres de clase) ===== */
.browser .dashhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.browser .dh-t { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.browser .dh-s { font-size: 11px; color: var(--muted); margin-top: 1px; }
.browser .dh-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #059669; background: #ecfdf5; border: 1px solid #bbf7d0; padding: 4px 9px; border-radius: 999px; }
.browser .pulse { width: 7px; height: 7px; border-radius: 50%; background: #10b981; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.browser .mtiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.browser .tile { border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.browser .tile .n { font-size: 18px; font-weight: 800; color: var(--blue-deep); letter-spacing: -.02em; }
.browser .tile .l { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; font-weight: 600; }
.browser .tile.accent { background: linear-gradient(155deg, var(--blue), var(--blue-hover)); border: 0; box-shadow: 0 6px 16px rgba(37,99,235,.32); }
.browser .tile.accent .n { color: #fff; }
.browser .tile.accent .l { color: rgba(255,255,255,.85); }

.browser .mgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; margin-top: 8px; }
.browser .panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.browser .panel .ct { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.browser .bars { display: flex; align-items: flex-end; gap: 7px; height: 74px; padding-top: 4px; border-bottom: 1px solid var(--line); }
.browser .bars .b { flex: 1; background: linear-gradient(180deg,#8fb2ff,var(--blue)); border-radius: 5px 5px 0 0; box-shadow: inset 0 -1px 0 rgba(255,255,255,.22); }
.browser .bars .b.peak { background: linear-gradient(180deg,#34d399,#059669); }
.browser .axis { display: flex; gap: 7px; margin-top: 6px; }
.browser .axis span { flex: 1; text-align: center; font-size: 8.5px; color: var(--muted); }
.browser .donutwrap { display: flex; justify-content: center; padding: 2px 0 6px; }
.browser .donut { width: 100px; height: 100px; border-radius: 50%; background: conic-gradient(var(--blue) 0 67%, #e8edf6 67% 100%); display: flex; align-items: center; justify-content: center; }
.browser .donut .dhole { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line); }
.browser .donut .dhole b { font-size: 20px; font-weight: 800; color: var(--blue-deep); letter-spacing: -.02em; }
.browser .donut .dhole small { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.browser .panel .up { text-align: center; font-size: 11px; font-weight: 800; color: #059669; margin-top: 4px; }

.browser .toplist { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.browser .tl-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 12px; color: var(--ink); border-top: 1px solid var(--line); }
.browser .tl-row:first-child { border-top: 0; }
.browser .tl-row.tl-head { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.browser .tl-row .who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.browser .tl-row b { font-weight: 800; color: var(--blue-deep); }
.browser .av { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; font-style: normal; }
.browser .av1 { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.browser .av2 { background: linear-gradient(135deg,#0ea5e9,#2563eb); }
.floatcard { position: absolute; right: -18px; bottom: -34px; background: #fff; border-radius: 14px; box-shadow: var(--sh-lg);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; animation: floaty 4s ease-in-out infinite; }
.floatcard .ring { width: 40px; height: 40px; border-radius: 12px; background: #ecfdf5; color: #059669; display: flex; align-items: center; justify-content: center; }
.floatcard b { display: block; color: var(--ink); font-size: 15px; }
.floatcard small { color: var(--muted); font-size: 12px; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }

/* ---------- sections ---------- */
section { padding: 88px 0; scroll-margin-top: 84px; }
.center { text-align: center; }
.eyebrow { color: var(--blue); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 14px; }
.sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 660px; }
.center .sub { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 22px; margin-top: 48px; }
.c3 { grid-template-columns: repeat(3,1fr); }
.c4 { grid-template-columns: repeat(4,1fr); }

.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease; position: relative; }
.feat:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: #cfe0ff; }
.feat .ic { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(160deg,#eff4ff,#dbe7ff); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: transform .2s ease; }
.feat:hover .ic { transform: scale(1.08) rotate(-3deg); }
.feat .ic .icon { width: 25px; height: 25px; }
.feat h3 { font-size: 19px; margin-bottom: 7px; }
.feat p { color: var(--muted); font-size: 15px; }

/* ---------- cómo funciona (steps) ---------- */
.how { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 48px; }
@media (max-width:820px){ .steps { grid-template-columns: 1fr; } }
.stepc { background: linear-gradient(180deg,#fff,#f7faff); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px;
  transition: transform .18s ease, box-shadow .22s ease; }
.stepc:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.stepc .num { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(160deg,var(--blue),var(--blue-deep)); color: #fff;
  font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(37,99,235,.35); }
.stepc h3 { font-size: 18px; margin: 16px 0 6px; }
.stepc p { color: var(--muted); font-size: 15px; }

/* ---------- por qué (dark band) ---------- */
.why { background: linear-gradient(160deg, var(--navy), #122a5e); color: #fff; }
.why .eyebrow { color: #8fb0ff; } .why .h2 { color: #fff; } .why .sub { color: #b9c6e6; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 28px; text-align: center;
  transition: transform .18s ease, background .2s ease; }
.stat:hover { transform: translateY(-5px); background: rgba(255,255,255,.1); }
.stat .n { font-size: clamp(36px,4.4vw,48px); font-weight: 800; background: linear-gradient(90deg,#9dc0ff,#fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: #b9c6e6; font-size: 14px; margin-top: 6px; }
.why .foot { color: #7f93bd; font-size: 12.5px; margin-top: 18px; }
.bullets { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.bullets li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 14px 16px; color: #d6e0f5; transition: transform .15s ease; }
.bullets li:hover { transform: translateX(4px); }
.bullets li b { color: #fff; }
.grid.two { grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .grid.two { grid-template-columns: 1fr; } }
.scene { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 16px; }

/* ---------- showcase (panel) ---------- */
.showcase { background: var(--canvas); }
/* align-items:start evita que la tarjeta izquierda se estire y deje un gran vacío */
.showcase .panel { margin-top: 44px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .showcase .panel { grid-template-columns: 1fr; } }
.showcase .col { display: flex; flex-direction: column; gap: 20px; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 20px; transition: transform .18s ease, box-shadow .22s; }
.scard:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.scard h3 { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; font-weight: 700; }

/* KPIs legibles, sin sobredimensionar */
.kpis4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width:560px){ .kpis4 { grid-template-columns: repeat(2,1fr); } }
.kpis4 .tile { border: 1px solid var(--line); border-radius: 12px; padding: 13px 12px; background: linear-gradient(180deg,#fbfcff,#fff); }
.kpis4 .tile .n { font-size: clamp(20px,1.7vw,26px); font-weight: 800; color: var(--blue-deep); letter-spacing: -.02em; line-height: 1; }
.kpis4 .tile .l { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; font-weight: 600; }

/* gráfico de barras (llena la tarjeta sin pasarse) */
.showcase .chart { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: linear-gradient(180deg,#fbfcff,#fff); }
.showcase .chart .ct { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.showcase .bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; border-bottom: 1px solid var(--line); padding-top: 6px; }
.showcase .bars .b { flex: 1; background: linear-gradient(180deg,#8fb2ff,var(--blue)); border-radius: 6px 6px 0 0; box-shadow: inset 0 -2px 0 rgba(255,255,255,.25); transition: height .5s ease; }
.showcase .bars .b.peak { background: linear-gradient(180deg,#34d399,#059669); }
.showcase .axis { display: flex; gap: 10px; margin-top: 6px; }
.showcase .axis span { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); }

/* dona */
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.showcase .donut { width: 124px; height: 124px; border-radius: 50%; flex: none; background: conic-gradient(var(--blue) 0 67%, #e7ebf3 67% 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(37,99,235,.15); }
.showcase .donut .hole { width: 90px; height: 90px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line); }
.showcase .donut .hole b { font-size: 29px; font-weight: 800; color: var(--blue-deep); letter-spacing: -.02em; line-height: 1; }
.showcase .donut .hole span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* tabla mejores clientes */
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 9px 8px; border-bottom: 1px solid var(--line); }
table.mini td { padding: 11px 8px; border-bottom: 1px solid var(--line); }
table.mini tr:last-child td { border-bottom: 0; }
table.mini td b { color: var(--blue-deep); }
table.mini .medal { font-size: 16px; }
.medal { font-weight: 800; }

/* ---------- pricing ---------- */
.pricing { background: #fff; }
.plan { max-width: 460px; margin: 44px auto 0; border-radius: 24px; padding: 2px;
  background: linear-gradient(160deg, var(--blue), #7ea2ff 60%, #34d399); box-shadow: var(--sh-lg); }
.plan-inner { background: #fff; border-radius: 22px; padding: 36px; text-align: center; position: relative; }
.plan .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg,var(--blue),var(--blue-deep)); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 999px; box-shadow: 0 8px 18px rgba(37,99,235,.4); letter-spacing: .03em; }
.plan .name { font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.plan .price { font-size: 60px; font-weight: 900; margin: 10px 0 0; letter-spacing: -.04em; }
.plan .price small { font-size: 19px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.plan li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 11px; align-items: center; color: #334155; }
.plan li:last-child { border-bottom: 0; }
.plan li .icon { width: 19px; height: 19px; color: var(--ok); stroke-width: 2.6; flex: none; }
.plan .btn { width: 100%; }

/* grilla de 3 planes (Starter / Growth / Enterprise) */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 40px auto 0; align-items: stretch; }
.plans .plan { max-width: none; margin: 0; transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease; will-change: transform; }
/* Interacción: la tarjeta se eleva y crece levemente al pasar el cursor. */
.plans .plan:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 28px 56px rgba(37,99,235,.30); z-index: 2; }
.plans .plan:hover .btn { box-shadow: 0 12px 28px rgba(37,99,235,.45); }
.plans .plan-inner { height: 100%; display: flex; flex-direction: column; padding: 34px 26px 30px; }
.plans .plan .name { font-size: 15px; }
.plans .plan .cover { font-size: 13px; font-weight: 800; color: var(--muted); margin-top: 4px; }
.plans .plan .price { font-size: 44px; margin-top: 8px; }
.plans .plan .price small { font-size: 16px; }
.plans .plan .annual-total { font-size: 18px; font-weight: 800; color: var(--blue-deep); margin: 6px auto 0; min-height: 0; }
.plans .plan .annual-total:empty { margin: 0; }
.plans .plan .trialnote { font-size: 12.5px; margin: 8px auto 0; color: var(--muted); }
.plans .plan ul { flex: 1 1 auto; margin: 20px 0; }
.plans .plan li { padding: 9px 0; font-size: 14.5px; }
/* Las 3 tarjetas del mismo tamaño; solo el ribbon distingue cada plan. */
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; gap: 26px; }
}

/* chip del plan elegido dentro del popup de checkout */
.co-plan { text-align: center; margin: 8px auto 0; }
.co-plan .chip { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-tint); color: var(--blue-deep); font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.co-plan .chip b { font-weight: 900; }
.co-plan .chip .px { color: var(--muted); font-weight: 700; }

/* íconos de industria (duotone) */
.feat .ic .iconind { width: 30px; height: 30px; }

/* toggle de precio mensual / anual */
.billtoggle { display: inline-flex; background: var(--blue-tint); border-radius: 999px; padding: 4px; gap: 4px; margin: 28px auto 0; }
.billtoggle button { border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 15px; padding: 10px 22px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billtoggle button.active { background: #fff; color: var(--blue-deep); box-shadow: var(--sh); }
.billtoggle .save { font-size: 11px; font-weight: 800; color: #fff; background: #16a34a; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }

/* bloque de cuentas adicionales */
.accounts { max-width: 520px; margin: 22px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; text-align: left; }
.accounts h3 { font-size: 18px; margin: 0 0 6px; }
.accounts p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.accounts .acct-price { font-size: 30px; font-weight: 900; color: var(--blue-deep); letter-spacing: -.02em; }
.accounts .acct-unit { font-size: 15px; font-weight: 600; color: var(--muted); }
.accounts .acct-foot { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }

/* ---------- contact ---------- */
.contact { background: var(--canvas); }
.contact .panel { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 44px; align-items: start; }
@media (max-width: 820px) { .contact .panel { grid-template-columns: 1fr; } }
form.lead { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh-sm); }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.lead .actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.lead .actions .btn { flex: 1; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: 11px; font-size: 14px; }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.note.err { background: var(--err-bg); color: var(--err); }
.infocard { background: linear-gradient(160deg,#fff, var(--blue-tint)); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.infocard h3 { font-size: 19px; margin-bottom: 10px; }
.infocard p { color: var(--muted); margin-bottom: 12px; }
.infocard .row { display: flex; gap: 11px; align-items: center; margin-bottom: 10px; }
.infocard .row .ic { width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); flex: none; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: #93a4c0; font-size: 14px; }
footer .wrap { display: block; }
footer .brand { color: #fff; font-size: 22px; }
.foot-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: flex-start; padding: 48px 0; }
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col .brand { margin-bottom: 4px; }
.foot-muted { color: #93a4c0; font-size: 13px; margin: 0; opacity: .9; }
.foot-label { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; opacity: .4; font-weight: 600; color: #fff; margin-bottom: 3px; }
.foot-link { color: #93a4c0; text-decoration: none; transition: color var(--t-fast); }
.foot-link:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 13px; }
@media (max-width: 768px) {
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* aceptación de términos en el checkout */
.modal .co-terms { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 0; font-size: 13.5px; font-weight: 400; color: var(--muted); cursor: pointer; }
.modal .co-terms input { width: 18px; height: 18px; min-height: 18px; margin-top: 1px; flex: none; accent-color: var(--blue); }
.modal .co-terms a { color: var(--blue); font-weight: 600; }

/* ---------- modal ---------- */
.hidden { display: none !important; }
.modal-ov { position: fixed; inset: 0; background: rgba(8,15,35,.6); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal { position: relative; background: #fff; border-radius: 20px; padding: 30px 28px; width: 100%; max-width: 430px; box-shadow: var(--sh-lg); max-height: 92vh; overflow-y: auto; animation: pop .25s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0 } to { transform: none; opacity: 1 } }
.modal .brand { font-size: 22px; }
.modal h2 { font-size: 23px; }
.modal label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
.modal input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.modal input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.modal-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-x:hover { color: var(--ink); }
.modal-foot { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.form-group { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--blue);
  margin: 18px 0 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-group:first-of-type { border-top: 0; padding-top: 4px; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 64px; }
  .browser { transform: none; } .heroviz:hover .browser { transform: none; }
  .heroviz { max-width: 460px; margin: 8px auto 0; }
  .floatcard { right: 6px; bottom: -16px; }
  .c4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .mtiles { grid-template-columns: 1fr 1fr; }
  .mgrid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .c3, .c4 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

/* =====================================================================
   v3 — landing más viva: entrada del hero, fondo con movimiento, stagger,
   barras/dona animadas al aparecer. Solo estética; estructura intacta.
   ===================================================================== */

/* Entrada del hero al cargar (los .reveal del hero usan keyframes, no el observer) */
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroSide { from { opacity: 0; transform: translateX(46px) scale(.97); } to { opacity: 1; transform: none; } }
.hero .tag    { animation: heroUp .65s cubic-bezier(.2,.7,.2,1) .05s both; }
.hero h1      { animation: heroUp .7s  cubic-bezier(.2,.7,.2,1) .14s both; }
.hero .lead   { animation: heroUp .7s  cubic-bezier(.2,.7,.2,1) .26s both; }
.hero .cta    { animation: heroUp .7s  cubic-bezier(.2,.7,.2,1) .38s both; }
.hero .micro  { animation: heroUp .7s  cubic-bezier(.2,.7,.2,1) .5s  both; }
.hero .heroviz.reveal { opacity: 1; transform: none; transition: none; animation: heroSide .85s cubic-bezier(.2,.7,.2,1) .3s both; }

/* Aurora: dos halos que derivan lento detrás del contenido del hero */
.hero::after { content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: .55;
  background:
    radial-gradient(480px 320px at 78% 18%, rgba(126,162,255,.28), transparent 70%),
    radial-gradient(420px 300px at 12% 85%, rgba(52,211,153,.14), transparent 70%);
  animation: aurora 16s ease-in-out infinite alternate; }
@keyframes aurora { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2.5%, 0) scale(1.08); } }
.hero .wrap { z-index: 1; }

/* Degradado del acento del H1 en movimiento sutil */
.hero h1 .accent { background: linear-gradient(90deg, #7ea2ff, #4f86ff, #34d399, #7ea2ff); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; animation: accentshift 7s linear infinite; }
@keyframes accentshift { to { background-position: 300% 0; } }

/* CTA principal del hero: aro de brillo que respira */
.hero .cta .btn.lg { animation: heroUp .7s cubic-bezier(.2,.7,.2,1) .38s both, ctaglow 3.2s ease-in-out 1.4s infinite; }
@keyframes ctaglow { 0%,100% { box-shadow: 0 10px 26px rgba(37,99,235,.35); } 50% { box-shadow: 0 10px 34px rgba(79,134,255,.65), 0 0 0 6px rgba(79,134,255,.12); } }

/* Barras del mock del hero crecen al cargar */
.browser .bars .b { transform-origin: bottom; animation: growbar .8s cubic-bezier(.2,.7,.2,1) both; }
.browser .bars .b:nth-child(1){animation-delay:.7s} .browser .bars .b:nth-child(2){animation-delay:.78s}
.browser .bars .b:nth-child(3){animation-delay:.86s} .browser .bars .b:nth-child(4){animation-delay:.94s}
.browser .bars .b:nth-child(5){animation-delay:1.02s} .browser .bars .b:nth-child(6){animation-delay:1.1s}
@keyframes growbar { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Reveal con stagger por posición dentro de su grilla */
.grid .feat.reveal:nth-child(2), .steps .stepc.reveal:nth-child(2), .grid .stat.reveal:nth-child(2) { transition-delay: .1s; }
.grid .feat.reveal:nth-child(3), .steps .stepc.reveal:nth-child(3), .grid .stat.reveal:nth-child(3) { transition-delay: .2s; }
.grid .feat.reveal:nth-child(4) { transition-delay: .3s; }

/* Al aparecer una tarjeta del panel: barras crecen y la dona barre */
.scard .bars .b { transform: scaleY(0); transform-origin: bottom; }
.scard.in .bars .b { animation: growbar .9s cubic-bezier(.2,.7,.2,1) both; }
.scard.in .bars .b:nth-child(1){animation-delay:.15s} .scard.in .bars .b:nth-child(2){animation-delay:.23s}
.scard.in .bars .b:nth-child(3){animation-delay:.31s} .scard.in .bars .b:nth-child(4){animation-delay:.39s}
.scard.in .bars .b:nth-child(5){animation-delay:.47s} .scard.in .bars .b:nth-child(6){animation-delay:.55s}
.scard .donut { opacity: 0; }
.scard.in .donut { animation: sweep .7s cubic-bezier(.2,.7,.2,1) .2s both; }
@keyframes sweep { from { opacity: 0; transform: rotate(-70deg) scale(.82); } to { opacity: 1; transform: none; } }

/* Feature cards: filo superior de color que se enciende al pasar el cursor */
.feat::before { content: ""; position: absolute; top: -1px; left: 14%; right: 14%; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #34d399); opacity: 0; transform: scaleX(.4); transition: opacity .25s ease, transform .3s ease; }
.feat:hover::before { opacity: 1; transform: scaleX(1); }

/* Pasos: el número gira levemente al pasar el cursor */
.stepc .num { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.stepc:hover .num { transform: rotate(-6deg) scale(1.08); }

/* KPIs del panel con lift sutil */
.kpis4 .tile { transition: transform .18s ease, box-shadow .2s ease; }
.kpis4 .tile:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }

/* Nav: sombra al scrollear (clase la pone landing.js) */
.lnav { transition: box-shadow .25s ease; }
.lnav.scrolled { box-shadow: 0 8px 30px rgba(15,23,42,.08); }

/* Respeto total a reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero .tag, .hero h1, .hero .lead, .hero .cta, .hero .micro, .hero .heroviz.reveal,
  .hero .cta .btn.lg, .browser .bars .b, .scard .bars .b, .scard .donut, .hero::after, .hero h1 .accent, .floatcard {
    animation: none !important; opacity: 1; transform: none; }
  .scard .bars .b { transform: none; }
}
