/* Landing pages Initio. Un tema por producto sobre componentes compartidos. */
:root {
  --ink: #0f172a; --muted: #55627a; --line: #e2e8f0; --bg: #ffffff; --soft: #f6f7f9;
  --brand: #1e293b; --brand-dark: #0f172a; --brand-deep: #0a0f2c; --accent: #475569; --tint: #f1f5f9;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif; --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --display-weight: 800; --display-track: -0.025em;
  --ok: #15803d; --radius: 16px; --gutter: max(20px, env(safe-area-inset-left, 0px));
}
body[data-theme="sis"] { --ink: #172b4d; --muted: #52627d; --brand: #1582c8; --brand-dark: #103f72; --brand-deep: #0b6b5e; --accent: #00a99d; --tint: #eff7ff; --soft: #f5f9fc;
  --font-display: 'Libre Baskerville', Georgia, serif; --font-body: 'Manrope', system-ui, sans-serif; --display-weight: 700; --display-track: -0.01em; }
body[data-theme="crm"] { --ink: #0f172a; --brand: #2557d6; --brand-dark: #1d46b8; --brand-deep: #0e2570; --accent: #5b8af7; --tint: #eef2ff; --soft: #f5f7fe; }
body[data-theme="spa"] { --ink: #2a1620; --muted: #6b5560; --line: #eddfe4; --brand: #944d63; --brand-dark: #612f4d; --brand-deep: #3f1f33; --accent: #b5607a; --tint: #fbf1f4; --soft: #fdf8f9;
  --font-display: 'Cormorant Garamond', Georgia, serif; --font-body: 'Nunito', system-ui, sans-serif; --display-weight: 600; --display-track: -0.01em; }
body[data-theme="erp"] { --ink: #1c1917; --muted: #5f5a54; --line: #ebe5dc; --brand: #a36015; --brand-dark: #7a4710; --brand-deep: #3a2108; --accent: #c97a1a; --tint: #fef6e8; --soft: #fbf9f5;
  --font-display: 'Inter', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif; --display-weight: 700; --display-track: -0.03em; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: 72px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
body[data-theme="erp"] .eyebrow { color: var(--brand); }
.sec-title { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.sec-lead { color: var(--muted); max-width: 60ch; font-size: 17px; margin-bottom: 40px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; font-family: var(--font-display); }
.brand img { height: 34px; width: auto; display: block; }
.brand .tag { font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); background: var(--tint); padding: 2px 8px; border-radius: 5px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.plan .price, .stats strong, .cmp .tp, .cmp .num { font-variant-numeric: lining-nums tabular-nums; }
.nav-links a, .btn-link, .btn { white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px var(--font-body); padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--tint); }
.btn-ghost { color: inherit; border-color: currentColor; opacity: .85; }
.btn-ghost:hover { opacity: 1; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 8px; }
.btn-link { font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 10px; }
.btn-link:hover { color: var(--ink); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-deep) 100%); color: #fff; padding-block: 72px 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border-radius: 100px; padding: 5px 14px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 22px; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 18px; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.78); max-width: 52ch; margin-bottom: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-center { text-align: center; }
.hero-center .wrap { display: block; }
.hero-center p.lead { margin-inline: auto; }
.hero-center .actions { justify-content: center; }

/* Paneles ilustrativos del hero (datos ficticios, solo ilustran el producto) */
.panel { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; }
.panel-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--tint); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.panel-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.panel-top b { margin-left: 6px; color: var(--ink); }
.panel-body { padding: 8px 8px 12px; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 10px; font-size: 14px; }
.row-item + .row-item { border-top: 1px solid var(--line); border-radius: 0; }
.row-item .time { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 46px; color: var(--brand); }
.row-item .who { flex: 1; min-width: 0; }
.row-item .who small { display: block; color: var(--muted); font-size: 12px; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: var(--tint); color: var(--brand-dark); white-space: nowrap; }
.pill.ok { background: #dcfce7; color: #166534; }
.meter { padding: 12px 14px; }
.meter + .meter { border-top: 1px solid var(--line); }
.meter .lab { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.meter .lab span:last-child { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter .bar { height: 8px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.meter .bar b { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 14px; }
.slot { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 9px; border: 1.5px solid var(--line); font-variant-numeric: tabular-nums; }
.slot.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.panel-note { padding: 0 16px 14px; font-size: 12px; color: var(--muted); }
.caption { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.55); text-align: center; }

/* Datos clave */
.stats { padding-block: 0; border-bottom: 1px solid var(--line); background: #fff; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 22px 22px; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: var(--display-weight); line-height: 1.2; margin-bottom: 2px; }
.stats span { font-size: 13.5px; color: var(--muted); }

/* Funciones */
.features { background: var(--soft); }
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 17px; margin: 16px 0 8px; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.card p { font-size: 14.5px; color: var(--muted); }
.ico { width: 44px; height: 44px; border-radius: 11px; background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }

/* Para quién */
.who-grid .card { background: var(--tint); border-color: transparent; }
.who-grid h3 { margin-top: 0; }

/* Planes */
.plans { align-items: start; }
.plan { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; position: relative; display: flex; flex-direction: column; }
.plan h3 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); }
.plan .price { font-family: var(--font-display); font-size: 38px; font-weight: var(--display-weight); line-height: 1; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.plan .per { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.plan .tagline { font-size: 14px; color: var(--ink); min-height: 44px; margin-bottom: 18px; }
.plan .btn { width: 100%; margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--ok); }
.plan li.inc svg { color: var(--brand); }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0 4px; }
.plan.featured { background: linear-gradient(160deg, var(--brand-dark), var(--brand-deep)); color: #fff; border: 2px solid var(--accent); }
.plan.featured h3, .plan.featured .per { color: rgba(255,255,255,.7); }
.plan.featured .tagline { color: rgba(255,255,255,.9); }
.plan.featured li svg { color: #fff; } .plan.featured hr { border-color: rgba(255,255,255,.18); }
.plan .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 14px; border-radius: 100px; white-space: nowrap; }
body[data-theme="erp"] .plan .flag { background: var(--brand); }
.saving { margin-top: 16px; background: var(--tint); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--brand-dark); }
.fineprint { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 28px; }

/* Tabla comparativa */
.compare { background: var(--soft); }
.cmp-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 16px; font-size: 14px; }
.cmp-tools label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; }
.cmp-tools input { width: 18px; height: 18px; accent-color: var(--brand); }
.cmp-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: 14.5px; }
.cmp caption { text-align: left; padding: 16px 18px; font-weight: 700; color: var(--muted); font-size: 13.5px; caption-side: top; }
.cmp thead th { text-align: left; vertical-align: bottom; padding: 18px 16px 14px; border-bottom: 2px solid var(--brand); background: #fff; font-weight: 400; }
.cmp thead th:first-child { min-width: 240px; width: 28%; }
.cmp .tn { display: block; font-weight: 800; font-size: 16px; }
.cmp .tp { display: block; font-family: var(--font-display); font-size: 24px; font-weight: var(--display-weight); line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cmp .tp small { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 500; }
.cmp tbody th[scope="row"] { text-align: left; font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.cmp tbody th[scope="row"] small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cmp thead th:first-child, .cmp tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; }
.cmp tr.band th { background: var(--tint); color: var(--brand-dark); text-align: left; padding: 14px 16px 12px; font-size: 14px; border-top: 2px solid var(--brand); border-bottom: 1px solid var(--line); position: sticky; left: 0; }
.cmp tr.band th b { font-family: var(--font-display); font-size: 17px; margin-right: 10px; }
.cmp tr.sec th { background: var(--soft); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; color: var(--muted); padding: 9px 16px; text-align: left; border-bottom: 1px solid var(--line); position: sticky; left: 0; }
.cmp .yes { color: var(--ok); display: inline-flex; } .cmp .yes svg { width: 18px; height: 18px; }
.cmp .no { color: #a3abb9; }
.cmp .num { font-weight: 700; }
.cmp.only-diff tr.same { display: none; }
.cmp.only-diff tr.sec.empty { display: none; }

/* Extras y preguntas */
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; list-style: none; padding: 0; }
.extras li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.extras b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 20px 4px; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 70ch; }
.faq .wrap { max-width: 860px; }

/* Cierre y pie */
.cta { background: var(--brand-deep); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.7); max-width: 52ch; margin: 0 auto 30px; font-size: 17px; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
footer.site { background: #0a0f2c; color: #94a3b8; padding-block: 44px; font-size: 14px; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
footer.site .fh { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #e2e8f0; margin-bottom: 12px; font-weight: 700; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a:hover { color: #fff; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 12.5px; }

/* Home */
.prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.prod-card:hover { box-shadow: 0 10px 34px rgba(15,23,42,.12); transform: translateY(-2px); }
.prod-card .bar { height: 5px; background: var(--pc); }
.prod-card .in { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-mark { width: 44px; height: 44px; border-radius: 11px; background: var(--pc-tint); color: var(--pc); display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; }
.pc-mark img { width: 44px; height: 44px; object-fit: cover; }
.pc-mark svg { width: 24px; height: 24px; }
.pc-head h3 { font-size: 20px; font-family: var(--font-body); letter-spacing: -.01em; }
.pc-head .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pc); background: var(--pc-tint); padding: 2px 8px; border-radius: 5px; margin-left: 8px; vertical-align: middle; }
.prod-card p { color: var(--muted); font-size: 15px; }
.prod-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.prod-card li { display: flex; gap: 8px; }
.prod-card li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--pc); flex: none; }
.prod-card .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prod-card .foot small { display: block; color: var(--muted); font-size: 12px; }
.prod-card .foot strong { font-size: 18px; font-family: var(--font-display); }
.btn-pc { background: var(--pc); color: #fff; }
.btn-pc:hover { filter: brightness(.9); }
.eco { background: var(--brand-deep); color: #fff; }
.eco .grid > div { padding: 4px 0; }
.eco h3 { font-size: 22px; margin-bottom: 8px; }
.eco p { color: rgba(255,255,255,.7); font-size: 15px; }
.eco .sec-lead { color: rgba(255,255,255,.7); }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pick a { display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--pc); border-radius: 12px; padding: 20px; transition: box-shadow .2s; }
.pick a:hover { box-shadow: 0 8px 24px rgba(15,23,42,.1); }
.pick strong { display: block; font-size: 16px; margin-bottom: 4px; }
.pick span { font-size: 14px; color: var(--muted); }
.pick em { display: block; margin-top: 10px; font-style: normal; font-weight: 800; font-size: 14px; color: var(--pc); }

/* Carruseles de funciones */
.carousel + .carousel { margin-top: 56px; }
.car-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.car-head h3 { font-size: 22px; }
.car-ctrl { display: flex; gap: 8px; }
.car-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, background .15s; }
.car-btn svg { width: 18px; height: 18px; }
.car-btn:hover:not(:disabled) { border-color: var(--brand); background: var(--tint); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; position: relative; }
.car-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.slide-text .ico { margin-bottom: 14px; }
.slide-text h4 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 26px; line-height: 1.15; margin: 0 0 10px; text-wrap: balance; }
.slide-lead { color: var(--muted); margin-bottom: 16px; }
.slide-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.slide-points li { display: flex; gap: 9px; align-items: flex-start; }
.slide-points svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--brand); }
.slide-media { margin: 0; min-width: 0; }
.slide-media img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(15,23,42,.12); }
.slide-media.tint { background: var(--tint); border-radius: 14px; padding: 28px; display: grid; align-content: center; min-height: 300px; }
.slide-media .panel { box-shadow: 0 14px 40px rgba(15,23,42,.14); border: 1px solid var(--line); }
.caption.dark { color: var(--muted); }
.car-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.car-dot { width: 10px; height: 10px; border-radius: 6px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: width .2s, background .2s; }
.car-dot[aria-current="true"] { width: 28px; background: var(--brand); }
.pill.btn-pill { background: var(--brand); color: #fff; }
.chat { padding: 16px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 10px; line-height: 1.45; }
.bubble.in { background: #eef1f5; border-top-left-radius: 4px; }
.bubble.out { background: #d9f7d6; border-top-right-radius: 4px; margin-left: auto; color: #14301a; }

/* Animación de las diapositivas. Con JavaScript las diapositivas se apilan y se animan; sin él, el carrusel se desplaza. */
.showcase { --ms: 560ms; --ease: cubic-bezier(.22, .8, .3, 1); --dir: 1; }
.carousel[data-anim="slide"] { --anim-in: a-slide-in; --anim-out: a-slide-out; }
.carousel[data-anim="fade"]  { --anim-in: a-fade-in;  --anim-out: a-fade-out; }
.carousel[data-anim="zoom"]  { --anim-in: a-zoom-in;  --anim-out: a-zoom-out; }
.carousel[data-anim="flip"]  { --anim-in: a-flip-in;  --anim-out: a-flip-out; }
.carousel[data-anim="rise"]  { --anim-in: a-rise-in;  --anim-out: a-rise-out; }
@keyframes a-slide-in  { from { transform: translateX(calc(var(--dir) * 105%)); } to { transform: none; } }
@keyframes a-slide-out { from { transform: none; } to { transform: translateX(calc(var(--dir) * -105%)); } }
@keyframes a-fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes a-fade-out  { from { opacity: 1; } to { opacity: 0; } }
@keyframes a-zoom-in   { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes a-zoom-out  { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.1); } }
@keyframes a-flip-in   { from { opacity: 0; transform: rotateY(calc(var(--dir) * -75deg)) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes a-flip-out  { from { opacity: 1; transform: none; } to { opacity: 0; transform: rotateY(calc(var(--dir) * 75deg)) scale(.96); } }
@keyframes a-rise-in   { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes a-rise-out  { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-36px); } }

.carousel.is-enhanced .car-track { display: grid; gap: 0; overflow: hidden; scroll-snap-type: none; perspective: 1800px; touch-action: pan-y; }
.carousel.is-enhanced .slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; pointer-events: none; backface-visibility: hidden; will-change: transform, opacity; }
.carousel.is-enhanced .slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; z-index: 2; }
.carousel.is-enhanced .slide.is-entering, .carousel.is-enhanced .slide.is-leaving { visibility: visible; opacity: 1; }
.anim-item.is-leaving { visibility: visible; z-index: 1; animation: var(--anim-out) var(--ms) var(--ease) both; }
.anim-item.is-entering { visibility: visible; z-index: 2; animation: var(--anim-in) var(--ms) var(--ease) both; }

@media (prefers-reduced-motion: reduce) { .anim-item.is-entering, .anim-item.is-leaving { animation: none !important; } }

/* Más información */
.detail { background: #fff; }
.detail-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.detail-tabs a { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 700; color: var(--ink); background: #fff; transition: background .15s, border-color .15s, color .15s; }
.detail-tabs a:hover { background: var(--tint); border-color: var(--brand); }
.detail-block { padding-block: 44px; border-top: 1px solid var(--line); }
/* Con JavaScript: pestañas con un solo panel visible */
.detail.is-tabs .detail-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 0; scrollbar-width: none; }
.detail.is-tabs .detail-tabs::-webkit-scrollbar { display: none; }
.detail.is-tabs .detail-tabs a { flex: none; border: 0; border-bottom: 3px solid transparent; border-radius: 10px 10px 0 0; margin-bottom: -2px; padding: 12px 18px; background: transparent; color: var(--muted); }
.detail.is-tabs .detail-tabs a:hover { color: var(--ink); background: var(--tint); }
.detail.is-tabs .detail-tabs a[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); background: var(--tint); }
.detail.is-tabs .detail-block { border-top: 0; padding-top: 32px; }
.detail.is-tabs .detail-block[hidden] { display: none; }
.detail.is-tabs .detail-block.is-entering { animation: tab-in .4s var(--ease, cubic-bezier(.22, .8, .3, 1)) both; }
@keyframes tab-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .detail.is-tabs .detail-block.is-entering { animation: none; } }
.car-pause .i-play, .car-pause[aria-pressed="true"] .i-pause { display: none; }
.car-pause[aria-pressed="true"] .i-play { display: block; }
.dh-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.detail-block header h3 { font-size: 28px; }
.detail-block header p { color: var(--muted); max-width: 64ch; margin-top: 8px; }
/* Insignia «Desde plan X»: el color sube con el nivel del plan (0 = Free … 3 = el más alto) */
.plan-badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 100px; border: 1.5px solid transparent; font: 800 12px/1.2 var(--font-body); letter-spacing: .03em; white-space: nowrap; vertical-align: middle; }
.plan-t0 { background: #dcfce7; color: #166534; }
.plan-t1 { background: var(--tint); color: var(--brand-dark); border-color: var(--brand); }
.plan-t2 { background: var(--brand-dark); color: #fff; }
.plan-t3 { background: var(--brand-deep); color: #fff; }
.di-text h4 .plan-badge { margin-left: 10px; font-size: 11px; padding: 3px 9px; }
.detail-items { display: grid; gap: 36px; margin-top: 28px; }
.detail-item { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.detail-item.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.detail-item.flip .slide-media { order: -1; }
.detail-item.no-media { grid-template-columns: 1fr; max-width: 72ch; background: var(--tint); border-radius: 14px; padding: 20px 24px; }
.di-text h4 { font-family: var(--font-body); font-weight: 800; letter-spacing: 0; font-size: 19px; margin-bottom: 8px; }
.di-text p { color: var(--muted); }
.back-link { display: inline-block; margin-top: 24px; font-weight: 700; font-size: 14px; color: var(--brand); }
.back-link:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .slide { grid-template-columns: 1fr; padding: 24px; gap: 24px; align-content: start; }
  .detail-item { grid-template-columns: 1fr; gap: 20px; }
  .detail-item.flip { grid-template-columns: 1fr; }
  .detail-item.flip .slide-media { order: 0; }
}
@media (max-width: 1040px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-4, .pick { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2) { border-right: 0; } .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  section { padding-block: 52px; }
  .nav-links { display: none; } .nav-cta { margin-left: auto; } .btn-link { display: none; }
  .grid-4, .grid-2, .pick { grid-template-columns: 1fr; }
  footer.site .wrap { grid-template-columns: 1fr; }
  .brand .tag { display: none; }
}
.cmp.only-diff tr.band.empty { display: none; }
.hero-light { background: linear-gradient(180deg, #eef2f7 0%, #ffffff 100%); color: var(--ink); }
.hero-light p.lead { color: var(--muted); }
.hero-light .badge { background: #e2e8f0; }
.hero-light .badge i { background: #2557d6; }
.hero-light .btn-primary { background: #0f172a; }
.hero-light .btn-primary:hover { background: #1e293b; }
.cmp tr.band th a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
