/* =========================================================
   DATHIUM — paneles interactivos y secciones de página
   1. Portadas   2. Vitrina del inicio   3. Panel de control
   4. Explorador de módulos   5. Casos de uso   6. Vitrina de demo
   7. Rubros   8. Planes   9. Funcionalidades   10. Contacto
   11. Piezas pequeñas compartidas   12. Responsive
   ========================================================= */

/* ---------- 1. Portadas ---------- */
.phero { position: relative; padding: 40px 0 88px; text-align: center; overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(16, 29, 53, .03) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(16, 29, 53, .03) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.phero > .container { position: relative; }
.phero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.phero__badge .i { color: var(--acc); }
.phero h1 { max-width: 1000px; margin: 22px auto 0; font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.phero .lead { max-width: 700px; margin-inline: auto; }
.phero .hero__actions { justify-content: center; }
.phero__note { margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); }
.phero__note b { color: var(--ink); }
.phero__stage { position: relative; max-width: 1180px; margin: 48px auto 0; text-align: left; }
.phero--sm { padding-bottom: 48px; }
.phero--sm h1 { font-size: clamp(32px, 4.2vw, 50px); }
.rot { position: relative; display: inline-grid; vertical-align: bottom; }
.rot > span { grid-area: 1 / 1; padding: 0 .12em; color: var(--acc); white-space: nowrap; transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .3, 1); will-change: transform, opacity; }
/* La palabra nueva baja desde arriba y la anterior sale hacia abajo */
.rot > span:not(.is-on) { opacity: 0; transform: translateY(-.55em); }
.rot > span.is-out { opacity: 0; transform: translateY(.55em); }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.hero-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); font-size: var(--fs-ui); color: var(--ink-2); }
.hero-chips .i { color: var(--acc); }
.demo-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.demo-hints span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-2); }
.demo-hints .i { color: var(--acc); }
.demo-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); text-align: center; }

/* ---------- 2. Vitrina del inicio (una ventana por solución) ---------- */
.switcher { display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 14px; padding: 5px; border-radius: var(--r); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.switcher button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 0; border-radius: var(--r-sm); background: none; font-size: var(--fs-ui); font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.switcher button:hover { color: var(--ink); }
.switcher button.is-active { background: #fff; color: var(--acc); box-shadow: 0 2px 8px -2px rgba(16, 29, 53, .2); }
.showwin { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #fff; border-top: 3px solid var(--acc); box-shadow: var(--shadow-lg); transition: border-color .4s; }
.showwin__body { position: relative; min-height: 340px; padding: 24px 26px 34px; }
.hv { display: none; animation: fadeUp .45s ease; }
.hv.is-active { display: block; }

/* ---------- 3. Panel de control (facturación) ---------- */
.dash { overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 60px 120px -50px rgba(16, 29, 53, .45), 0 0 0 8px rgba(255, 255, 255, .6); }
.dash__bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--blue-50); font-size: var(--fs-sm); color: var(--muted); }
.dash__bar .win__title { flex: 1; text-align: center; }
.dash__body { display: grid; grid-template-columns: 210px 1fr; min-height: 560px; }
.dash__side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; border-right: 1px solid var(--blue-50); background: var(--bg-soft); }
.dash__brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 18px; font-family: var(--font-head); font-weight: 800; color: var(--brand); }
.dash__brand img { width: 28px; height: 28px; border-radius: var(--r-s); }
.dash__nav { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid transparent; border-radius: var(--r-sm); background: none; font-size: var(--fs-ui); font-weight: 600; color: var(--muted); text-align: left; transition: all .2s; }
.dash__nav:hover { color: var(--ink); background: var(--frame); }
.dash__nav.is-active { color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, #fff); border-color: color-mix(in srgb, var(--acc) 18%, #fff); }
.dash__nav.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--acc); }
.dash__help { margin-top: auto; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-size: var(--fs-xs); color: var(--muted); }
.dash__help b { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--ink); }
.dash__main { min-width: 0; background: var(--bg-soft); }
.dash__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 26px; background: #fff; border-bottom: 1px solid var(--blue-50); }
.dash__top small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.dash__top b { font-size: var(--fs-md); }
.dash__view { padding: 26px; animation: fadeUp .4s ease; }
.dash__vhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.dash__kicker { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.dash__vhead h3 { margin-top: 4px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.dash__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.dash__grid > * { min-width: 0; }
.dcard { padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.dcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dcard__head > b { font-size: var(--fs-ui); }
.dcard__label { font-size: var(--fs-sm); color: var(--muted); }
.dcard__big { display: block; margin-top: 4px; font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--acc); }
.dcard__sub { font-size: var(--fs-sm); color: var(--muted); }
.chart { position: relative; margin-top: 14px; }
.chart svg { display: block; width: 100%; height: 230px; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-dasharray: 4 5; }
.chart .area { fill: url(#dashFill); }
.chart .line { fill: none; stroke: var(--acc); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .pt { fill: #fff; stroke: var(--acc); stroke-width: 3; }
.chart .pt.is-last { r: 7; }
.chart__x { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.chart__y { position: absolute; top: -4px; left: 0; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 4. Explorador de módulos ---------- */
.xp__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.xp__tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: var(--fs-ui); color: var(--ink-2); transition: all .2s; }
.xp__tabs button .i { color: var(--acc); }
.xp__tabs button:hover { border-color: color-mix(in srgb, var(--acc) 30%, var(--line)); }
.xp__tabs button.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: 0 10px 20px -14px rgba(16, 29, 53, .6); }
.xp__tabs button.is-active .i { color: #fff; }
.frame { padding: 14px; border-radius: var(--r-lg); background: var(--frame); border: 1px solid var(--line); }
.xp__panel { animation: fadeUp .4s ease; }
.xp__top { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
.xp__top > * { min-width: 0; }
.xp__info { display: flex; flex-direction: column; padding: 36px 34px; border-radius: var(--r); color: var(--muted-lg); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-500); }
.xp__info .tag { align-self: flex-start; }
.xp__info h3 { margin-top: 20px; color: var(--ink); font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.xp__info p { margin-top: 14px; font-size: var(--fs-base); line-height: 1.65; }
.xp__note { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; font-size: var(--fs-ui); font-weight: 700; color: var(--blue-500); }
.xp__info .btn { align-self: flex-start; margin-top: 18px; }
.xp__mock { display: flex; flex-direction: column; justify-content: center; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.xp__feats { margin-top: 14px; padding: 22px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.xp__feats-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.xp__feats-head > span { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); }
.xp__feats-head > span > .i { width: 32px; height: 32px; padding: 7px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); }
.xp__feats-head b { display: block; font-size: var(--fs-md); color: var(--ink); }
.xp__feats-head a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-ui); font-weight: 600; color: var(--acc); }
.xp__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.xp__list div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-soft); font-size: var(--fs-ui); font-weight: 600; }
.xp__list .i { color: var(--blue-500); }

/* ---------- 5. Casos de uso / problemas ---------- */
.cs__cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.cs__cats button { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-size: var(--fs-ui); font-weight: 600; color: var(--ink-2); text-align: left; transition: all .2s; }
.cs__cats button > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); flex: none; background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); }
.cs__cats button.is-active { border-color: var(--acc); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 13%, transparent); }
.cs { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
.cs > * { min-width: 0; }
.cs__list { padding: 10px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.cs__list h6 { margin: 8px 10px 10px; font-family: var(--font); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.cs__list button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-bottom: 4px; padding: 14px; border: 1px solid transparent; border-radius: var(--r); background: none; text-align: left; font-size: var(--fs-md); font-weight: 500; color: var(--ink-2); transition: all .15s; }
.cs__list button:hover { background: var(--bg-soft); }
.cs__list button.is-active { background: var(--acc); color: #fff; box-shadow: 0 12px 24px -14px var(--acc); }
.cs__card { padding: 28px; border-radius: var(--r-lg); color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-500); animation: fadeUp .35s ease; }
.cs__card > small { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-500); }
.cs__card h3 { margin: 8px 0 18px; color: var(--ink); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.cs__boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs__box { padding: 16px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); }
.cs__box h6 { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-family: var(--font); font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-500); }
.cs__box p { font-size: var(--fs-ui); line-height: 1.55; color: var(--ink-2); }
.cs__box--wide { grid-column: 1 / -1; background: var(--green-50); border-color: color-mix(in srgb, var(--green) 25%, #fff); }
.cs__box--wide h6 { color: var(--green); }
.cs__card .btn { margin-top: 18px; }

/* ---------- 6. Vitrina de demo (panel azul) ---------- */
.showcase { padding: 88px 0 72px; }
.showcase__panel { position: relative; padding: 56px 48px 40px; border-radius: var(--r-lg); color: var(--muted-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.showcase__head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.showcase__head h2 { color: var(--ink); font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.showcase__head p:not(.eyebrow) { margin-top: 14px; font-size: var(--fs-body); color: var(--muted-lg); }

/* ---------- 7. Rubros ---------- */
.rb-detail { display: grid; grid-template-columns: 1fr 1.15fr; margin-top: 24px; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: 100px; animation: fadeUp .4s ease; }
.rb-detail > * { min-width: 0; }
.rb-detail h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.rb-detail h6 { margin: 24px 0 10px; font-family: var(--font); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rb-pains { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rb-pains li { display: flex; gap: 10px; align-items: center; font-size: var(--fs-ui); color: var(--ink-2); }
.rb-pains .i { width: 22px; height: 22px; padding: 4px; border-radius: var(--r-s); background: var(--red-50); color: var(--red); }
.rb-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rb-feats span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-soft); font-size: var(--fs-sm); font-weight: 500; }
.rb-feats .i { color: var(--acc); }
.rb-plan { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 16px 18px; border-radius: var(--r); background: color-mix(in srgb, var(--acc) 7%, #fff); border: 1px solid color-mix(in srgb, var(--acc) 20%, var(--line)); }
.rb-plan > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm); flex: none; background: var(--acc); color: #fff; font-size: var(--fs-2xl); }
.rb-plan small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.rb-plan b { font-size: var(--fs-base); }
.rb-plan a { margin-left: auto; }

/* ---------- 8. Planes ---------- */
.ptease { display: grid; grid-template-columns: repeat(3, 1fr) 1fr; gap: 14px; align-items: stretch; }
.ptease__card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.ptease__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ptease__card.is-featured { border: 2px solid var(--acc); }
.ptease__card.is-featured::before { content: "Recomendado"; position: absolute; top: -12px; left: 20px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--acc); color: #fff; font-size: var(--fs-2xs); font-weight: 700; }
.ptease__card small { font-size: var(--fs-xs); color: var(--muted); }
.ptease__card > b { font-family: var(--font-head); font-size: var(--fs-2xl); }
.ptease__price { margin: 10px 0; font-family: var(--font-head); }
.ptease__price strong { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.ptease__price span { font-size: var(--fs-ui); color: var(--muted); }
.ptease__card ul { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-2); }
.ptease__card li { display: flex; gap: 8px; }
.ptease__card li .i { margin-top: 2px; color: var(--blue-500); }
.ptease__card .btn { margin-top: auto; }
.ptease__side { display: grid; gap: 14px; }
.ptease__side a { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 20px; border-radius: var(--r); color: var(--muted); background: #fff; border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.ptease__side a:hover { transform: translateY(-3px); border-color: var(--blue-500); box-shadow: var(--shadow-sm); }
.ptease__side .i { font-size: var(--fs-3xl); color: var(--blue-500); }
.ptease__side b { font-family: var(--font-head); font-size: var(--fs-xl); color: var(--ink); }
.ptease__side em { font-style: normal; font-size: var(--fs-sm); }

.biz-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px; }
.biz-tabs button { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; text-align: left; transition: border-color .2s, box-shadow .2s, transform .2s; }
.biz-tabs button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--acc) 35%, var(--line)); }
.biz-tabs button.is-active { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 15%, transparent), var(--shadow-sm); }
.biz-tabs button > span:first-child { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-sm); flex: none; background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); font-size: var(--fs-3xl); transition: all .2s; }
.biz-tabs button.is-active > span:first-child { background: var(--acc); color: #fff; }
.biz-tabs b { display: block; font-family: var(--font-head); font-size: var(--fs-xl); }
.biz-tabs small { display: block; margin-top: 3px; font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
.biz-tabs em { position: absolute; top: 16px; right: 16px; font-style: normal; font-size: var(--fs-xs); font-weight: 700; color: var(--acc); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--acc); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--acc) 60%, transparent); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: var(--r-pill); background: var(--acc); color: #fff; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.plan__tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.plan h3 { margin-top: 4px; font-size: var(--fs-4xl); }
.plan__desc { margin-top: 8px; min-height: 63px; font-size: var(--fs-ui); color: var(--muted); }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 4px; }
.plan__price strong { font-family: var(--font-head); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan__price span { font-size: var(--fs-ui); color: var(--muted); }
.plan__price span:first-child { font-weight: 700; color: var(--acc); }
.plan .btn { margin: 18px 0; }
.plan__limits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; padding: 14px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--acc) 18%, var(--line)); background: color-mix(in srgb, var(--acc) 5%, #fff); }
.plan__limits > div { font-size: var(--fs-xs); line-height: 1.35; color: var(--muted); }
.plan__limits > div b { display: block; font-size: var(--fs-md); color: var(--ink); }
.plan__limits .is-wide { grid-column: 1 / -1; padding: 8px 10px; border-radius: var(--r-sm); background: #fff; }
.plan__limits .is-wide b { font-size: var(--fs-lg); color: var(--acc); }
.plan__extra { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line); }
.plan__extra b { display: inline !important; font-size: var(--fs-sm) !important; color: var(--acc) !important; }
.plan__list-title { margin: 4px 0 12px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.plan__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; font-size: var(--fs-ui); font-weight: 600; color: var(--acc); }
.plans-note { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; font-size: var(--fs-ui); color: var(--ink-2); text-align: center; }
.plans-note .i { color: var(--blue-500); }
.ticks { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-ui); color: var(--ink-2); }
.ticks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: var(--r-s); background: color-mix(in srgb, var(--acc) 12%, #fff); color: var(--acc); font-size: var(--fs-2xs); font-weight: 800; }
.cfg { display: grid; grid-template-columns: minmax(300px, .85fr) 1.4fr; gap: 20px; align-items: start; animation: fadeUp .4s ease; }
.cfg > * { min-width: 0; }
.cfg__base { padding: 30px 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 6%, #fff), #fff 50%); }
.cfg__base h3 { margin-top: 6px; font-size: 26px; }
.cfg__base .plan__desc { min-height: 0; }
.cfg__base .plan__price { margin: 16px 0 18px; }
.cfg__includes { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.cfg__includes li { font-size: var(--fs-sm); }
.cfg__builder { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.cfg__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cfg__head h4 { font-size: 19px; }
.cfg__head p { margin-top: 4px; font-size: var(--fs-ui); color: var(--muted); }
.cfg__total { flex: none; padding: 10px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--acc) 8%, #fff); text-align: right; }
.cfg__total small { display: block; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cfg__total strong { font-family: var(--font-head); font-size: 28px; }
.cfg__total strong span { font-family: var(--font); font-size: var(--fs-sm); color: var(--muted); }
.cfg__addons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.addon { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.addon:hover { border-color: color-mix(in srgb, var(--acc) 35%, var(--line)); }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon__check { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: var(--r-s); border: 2px solid #c8d1e0; color: transparent; font-size: var(--fs-xs); transition: all .15s; }
.addon:has(input:checked) { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, #fff); }
.addon:has(input:checked) .addon__check { background: var(--acc); border-color: var(--acc); color: #fff; }
.addon:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 30%, transparent); }
.addon__copy b { display: block; font-size: var(--fs-ui); }
.addon__copy small { display: block; margin-top: 3px; font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
.addon__price { font-size: var(--fs-sm); font-weight: 700; color: var(--acc); white-space: nowrap; }
.cfg__note { display: flex; align-items: center; gap: 8px; margin: 16px 0; font-size: var(--fs-sm); color: var(--muted); }
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.extra { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.extra:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.extra__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.extra__top > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); font-size: var(--fs-2xl); }
.extra__price { font-size: var(--fs-md); color: var(--acc); white-space: nowrap; }
.extra__price small { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.extra__name { font-size: var(--fs-md); line-height: 1.35; }
.extra__name em { padding: 2px 7px; border-radius: var(--r-pill); background: var(--amber-50); color: var(--amber); font-style: normal; font-size: var(--fs-2xs); vertical-align: 2px; }
.extra__who { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.extra p { margin-top: 4px; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.cmp-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.cmp { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: var(--fs-ui); }
.cmp th, .cmp td { padding: 12px 16px; border-bottom: 1px solid var(--frame); text-align: center; }
.cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; }
.cmp thead th { padding: 18px 16px; vertical-align: bottom; background: #fff; }
.cmp thead th b { display: block; font-family: var(--font-head); font-size: var(--fs-lg); }
.cmp thead th small { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.cmp thead th.is-featured { color: var(--acc); }
.cmp td.is-featured { background: color-mix(in srgb, var(--acc) 4%, #fff); }
.cmp .cmp__cat td { background: var(--bg-soft) !important; font-weight: 700; font-size: var(--fs-sm); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
.cmp .cmp__cat td .i { margin-right: 6px; color: var(--acc); }
.cmp .cmp__chev { float: right; color: var(--muted); transition: transform .2s; }
.cmp .cmp__cat.is-closed .cmp__chev { transform: rotate(-90deg); }
.cmp tr.is-hidden { display: none; }
.cmp .yes { color: var(--green); }
.cmp .no { color: #c3cbd8; }
.cmp td small { color: var(--muted); }

/* ---------- 9. Funcionalidades ---------- */
.fx { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; }
.fx > * { min-width: 0; }
.fx__nav { position: sticky; top: 100px; display: grid; gap: 14px; }
.fx__search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--muted); }
.fx__search input { flex: 1; min-width: 0; padding: 11px 0; border: 0; outline: 0; background: none; font-size: var(--fs-ui); }
.fx__search:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 15%, transparent); }
.fx__cats { display: grid; gap: 2px; margin: 0; padding: 6px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; list-style: none; }
.fx__cats a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: var(--fs-ui); font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.fx__cats a:hover { background: var(--bg-soft); }
.fx__cats a.is-active { background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); font-weight: 600; }
.fx__cats a .i { color: var(--muted); }
.fx__cats a.is-active .i { color: var(--acc); }
.fx__cats em { margin-left: auto; padding: 1px 7px; border-radius: var(--r-pill); background: var(--bg-soft); font-style: normal; font-size: var(--fs-xs); color: var(--muted); }
.fx__plan { padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.fx__plan h6 { margin-bottom: 10px; font-family: var(--font); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 6px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); transition: all .15s; }
.chips button.is-active { background: var(--acc); border-color: var(--acc); color: #fff; }
.fx__cat { margin-bottom: 20px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; scroll-margin-top: 100px; }
.fx__cat-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.fx__cat-head > span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: var(--r); flex: none; background: var(--acc); color: #fff; font-size: 23px; }
.fx__cat-head h2 { font-size: var(--fs-3xl); }
.fx__cat-head p { margin-top: 2px; font-size: var(--fs-ui); color: var(--muted); }
.fx__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fx__item { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid transparent; transition: border-color .2s, background .2s, opacity .2s; }
.fx__item:hover { background: #fff; border-color: var(--line); }
.fx__item > span { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: var(--r-sm); background: #fff; color: var(--acc); font-size: var(--fs-xl); box-shadow: var(--shadow-sm); }
.fx__item b { font-size: var(--fs-ui); }
.fx__item small { flex: 1; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.fx__item em { align-self: flex-start; margin-top: 6px; padding: 3px 8px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--acc) 25%, var(--line)); background: #fff; color: var(--acc); font-style: normal; font-size: var(--fs-2xs); font-weight: 700; }
.fx__item.is-off { opacity: .35; }
.fx__item mark { border-radius: 3px; background: color-mix(in srgb, var(--acc) 20%, #fff); color: inherit; }
.fx__empty { padding: 40px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; color: var(--muted); }

/* ---------- 10. Contacto ---------- */
.field { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: var(--fs-md); font-weight: 400; outline: none; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 15%, transparent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }

/* ---------- 11. Piezas pequeñas compartidas ---------- */
.mock-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: var(--fs-ui); }
.mock-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 8px; padding: 12px; border-radius: var(--r); border: 1px solid var(--blue-50); background: var(--bg-soft); font-size: var(--fs-sm); }
.mock-row > span:nth-child(2) { min-width: 0; }
.mock-row small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.mock-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.mock-pay span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.mock-pay span.is-on { border-color: var(--acc); color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, #fff); }
.mock-btn { margin-top: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--acc); color: #fff; text-align: center; font-weight: 700; font-size: var(--fs-ui); }
.bubble { max-width: 85%; margin-bottom: 8px; padding: 10px 13px; border-radius: var(--r); font-size: var(--fs-sm); }
.bubble--c { background: var(--frame); border-bottom-left-radius: 4px; }
.bubble--a { margin-left: auto; background: var(--acc); color: #fff; border-bottom-right-radius: 4px; }
.bubble small { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; font-size: var(--fs-2xs); font-weight: 600; opacity: .8; }
.feed { margin: 12px 0 0; padding: 0; list-style: none; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--frame); font-size: var(--fs-sm); }
.feed li:last-child { border-bottom: 0; }
.feed li.is-new { animation: slideIn .5s ease; }
.feed__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); }
.feed b { display: block; font-size: var(--fs-sm); }
.feed small { font-size: var(--fs-xs); color: var(--muted); }
.feed strong { font-size: var(--fs-ui); white-space: nowrap; }
.dnote { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 11px 13px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--acc) 7%, #fff); font-size: var(--fs-xs); color: var(--ink-2); }
.dnote .i { color: var(--acc); }
.sbar { display: grid; grid-template-columns: 1fr 120px 52px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--frame); font-size: var(--fs-sm); }
.sbar:last-child { border-bottom: 0; }
.sbar small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.sbar__track { height: 8px; border-radius: var(--r-pill); background: var(--blue-50); overflow: hidden; }
.sbar__track i { display: block; height: 100%; border-radius: inherit; background: var(--acc); transition: width .6s ease; }
.sbar > b { text-align: right; }
.kgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kgrid > div { padding: 12px 14px; border-radius: var(--r); background: var(--bg-soft); min-width: 0; }
.kgrid small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.kgrid b { font-family: var(--font-head); font-size: var(--fs-3xl); }
.ring { position: relative; width: 170px; height: 170px; margin: 10px auto 16px; border-radius: 50%; }
.ring span { position: absolute; inset: 24px; display: grid; place-content: center; border-radius: 50%; background: #fff; text-align: center; }
.ring b { font-family: var(--font-head); font-size: var(--fs-2xl); }
.ring small { font-size: var(--fs-xs); color: var(--muted); }
.legend2 { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.legend2 li { display: flex; align-items: center; gap: 8px; }
.legend2 i { width: 10px; height: 10px; border-radius: 3px; }
.legend2 b { margin-left: auto; }
.spark { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-bottom: 4px; border-bottom: 1px dashed var(--line); }
.spark i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--acc), color-mix(in srgb, var(--acc) 35%, #fff)); transform-origin: bottom; animation: grow .7s ease backwards; }
.spark i:last-child { background: var(--navy-900); }
.mini-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-kanban > div { padding: 10px; border-radius: var(--r-sm); background: var(--bg-soft); }
.mini-kanban small { display: block; margin-bottom: 8px; font-size: var(--fs-2xs); font-weight: 700; color: var(--muted); }
.mini-kanban span { display: block; margin-bottom: 6px; padding: 8px; border-radius: var(--r-s); background: #fff; border: 1px solid var(--blue-50); font-size: var(--fs-xs); font-weight: 600; }
.mini-site { overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); }
.mini-site__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--frame); font-size: var(--fs-2xs); color: var(--muted); }
.mini-site__hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; padding: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 12%, #fff), #fff); }
.mini-site__hero b { display: block; font-family: var(--font-head); font-size: var(--fs-lg); line-height: 1.2; }
.mini-site__hero i { display: block; height: 7px; margin-top: 8px; border-radius: var(--r-xs); background: var(--line); }
.mini-site__hero em { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--acc); color: #fff; font-style: normal; font-size: var(--fs-2xs); font-weight: 700; }
.mini-site__img { border-radius: var(--r-sm); background: linear-gradient(135deg, var(--blue-300), var(--acc)); min-height: 90px; }
.mini-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 18px 18px; }
.mini-site__cards i { height: 44px; border-radius: var(--r-sm); background: var(--frame); }

/* Dato destacado y "Por qué DATHIUM" (inicio) */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.why > * { min-width: 0; }
.why__logo { display: block; margin-bottom: 20px; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.why h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.why__txt > p:not(.eyebrow) { margin-top: 14px; font-size: var(--fs-lg); color: var(--muted-lg); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.why__grid li { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.why__grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.why__grid li > span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); font-size: 21px; }
.why__grid b { font-size: var(--fs-base); }
.why__grid small { font-size: var(--fs-ui); line-height: 1.5; color: var(--muted); }

/* ---------- Rubros: portada ilustrada y demo interactiva ---------- */
.rb-detail__cover { grid-column: 1 / -1; position: relative; }
.rbcover { position: relative; height: 220px; overflow: hidden; background: var(--navy-900); }
.rbcover__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.rbcover--img { background-size: cover; background-position: center; }
.rbcover--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 22, 49, .85), rgba(6, 22, 49, .2)); }
.rb-detail__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 22, 49, .7), rgba(6, 22, 49, .15) 70%, transparent); pointer-events: none; }
.rb-detail__title { position: absolute; left: 36px; bottom: 28px; right: 40%; z-index: 1; color: #fff; }
.rb-detail__title .tag { margin-bottom: 10px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; }
.rb-detail__title h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.rb-detail__title p { margin-top: 6px; color: #dbe6f7; font-size: var(--fs-md); }
.rb-detail__info { padding: 30px 32px 34px; }
.rb-detail__info > h6:first-child { margin-top: 0; }
.rb-detail__demo { padding: 26px; background: var(--frame); border-left: 1px solid var(--line); }
.rb-detail__demo .hero__actions { margin-top: 16px; }
.rbx { position: relative; overflow: hidden; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -34px rgba(16, 29, 53, .45); }
.rbx__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--blue-50); font-size: var(--fs-ui); }
.rbx__bar b { flex: 1; }
.rbx__bar .live { padding: 4px 9px; font-size: var(--fs-2xs); }
.rbx__hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; background: color-mix(in srgb, var(--acc) 7%, #fff); font-size: var(--fs-sm); color: var(--ink-2); }
.rbx__hint .i { color: var(--acc); }
.rbx__body { padding: 16px; font-size: var(--fs-sm); }
.rbx__split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.rbx__split > * { min-width: 0; }
.rbx__toast { position: absolute; left: 50%; bottom: 14px; z-index: 3; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: var(--r-sm); background: var(--navy-900); color: #fff; font-size: var(--fs-sm); box-shadow: var(--shadow); transform: translateX(-50%); animation: fadeUp .3s ease; }
.rbx__toast .i { color: #4ade80; flex: none; }
.tiles { display: grid; gap: 8px; align-content: start; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--r-sm); border: 1.5px solid transparent; font-size: var(--fs-xs); transition: transform .15s, box-shadow .15s; }
.tile .i { font-size: var(--fs-lg); }
.tile b { font-size: var(--fs-sm); }
.tile small { font-size: var(--fs-2xs); opacity: .85; }
.tile:hover { transform: translateY(-2px); }
.tile.is-sel { border-color: currentColor; box-shadow: 0 8px 18px -10px currentColor; }
.ticket { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--blue-50); }
.ticket__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ticket__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ticket__list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: #fff; animation: fadeUp .25s ease; }
.ticket__list li.muted { justify-content: center; background: none; }
.ticket__total { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed #d6deea; }
.ticket__total b { font-family: var(--font-head); font-size: var(--fs-2xl); }
.ticket__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ticket__actions .btn-s { flex: 1; padding: 10px 12px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.chips2 button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); transition: all .15s; }
.chips2 button:hover { border-color: var(--acc); color: var(--acc); }
.chips2 button.is-on { background: var(--acc); border-color: var(--acc); color: #fff; }
.scan { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 22px 12px; border-radius: var(--r); border: 2px dashed color-mix(in srgb, var(--acc) 40%, var(--line)); background: color-mix(in srgb, var(--acc) 5%, #fff); color: var(--acc); }
.scan .i { font-size: 34px; }
.scan small { color: var(--muted); }
.scan.is-beep { animation: beep .35s ease; }
@keyframes beep { 40% { transform: scale(.97); background: color-mix(in srgb, var(--green) 18%, #fff); border-color: var(--green); } }
.qrow { display: grid; grid-template-columns: 1.3fr 1fr 44px 96px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--frame); }
.qrow small { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.qrow small span { padding: 2px 6px; border-radius: var(--r-s); background: var(--bg-soft); font-size: var(--fs-2xs); color: var(--muted); }
.qrow small span.is-on { background: var(--green-50); color: var(--green); font-weight: 700; }
.qrow input[type="range"], .scale input { width: 100%; accent-color: var(--acc); }
.qrow > b:last-child { text-align: right; }
.matrix { display: grid; grid-template-columns: 90px repeat(4, 1fr); gap: 6px; align-items: center; text-align: center; }
.matrix > b { font-size: var(--fs-xs); color: var(--muted); }
.matrix__c { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; text-align: left; }
.matrix__c i { width: 12px; height: 12px; border-radius: var(--r-xs); border: 1px solid #cbd5e1; }
.mcell { padding: 12px 0; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--green-50); color: #0f7a3d; font-weight: 800; font-size: var(--fs-md); transition: transform .15s; }
.mcell:hover:not(:disabled) { transform: scale(1.06); }
.mcell.is-low { background: var(--amber-50); color: var(--amber); }
.mcell.is-out { background: var(--red-50); color: var(--red); }
.check-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-bottom: 6px; padding: 11px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); cursor: pointer; transition: all .15s; }
.check-row input { accent-color: var(--acc); }
.check-row.is-on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, #fff); }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r-sm); background: var(--bg-soft); font-size: var(--fs-2xs); font-weight: 600; color: var(--muted); text-align: center; }
.stepper li.is-done { background: var(--green-50); color: var(--green); }
.stepper li.is-cur { background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
.scale { margin: 12px 0; padding: 16px; border-radius: var(--r); background: var(--navy-900); color: #fff; text-align: center; }
.scale small { display: block; color: #93a3c2; }
.scale b { display: block; margin: 4px 0 8px; font-family: var(--font-head); font-size: 30px; color: var(--blue-300); }
.transfer { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 8px; align-items: end; margin-top: 12px; padding: 12px; border-radius: var(--r); background: var(--bg-soft); }
.transfer label { display: grid; gap: 4px; font-size: var(--fs-2xs); font-weight: 600; color: var(--muted); }
.transfer select, .transfer input { width: 100%; padding: 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: var(--fs-sm); }
.transfer .btn-s { grid-column: 1 / -1; padding: 10px; }

/* ---------- Mejoras visuales de los paneles ---------- */
/* Brillo detrás de las ventanas de demostración */
.phero__stage::before { content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: var(--r-xl); background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 30%, transparent), transparent); filter: blur(30px); }
/* Ventana tipo app alrededor de la vista del módulo */
.mockwin { overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.mockwin__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--blue-50); background: var(--bg-soft); font-size: var(--fs-xs); color: var(--muted); }
.mockwin__bar b { flex: 1; color: var(--ink); }
.mockwin__body { padding: 20px; }
.xp__mock.mockwin { padding: 0; display: block; }
.xp__mock .mock-row, .xp__mock .sbar, .xp__mock .bubble, .xp__mock .kgrid > div, .xp__mock .mini-kanban > div { animation: fadeUp .4s ease backwards; }
.xp__mock .mock-row:nth-of-type(2), .xp__mock .bubble:nth-of-type(2), .xp__mock .sbar:nth-of-type(2) { animation-delay: .08s; }
.xp__mock .mock-row:nth-of-type(3), .xp__mock .sbar:nth-of-type(3) { animation-delay: .16s; }
.xp__mock .mock-row:nth-of-type(4) { animation-delay: .24s; }
/* Pestañas con avance automático */
.xp__tabs button { position: relative; overflow: hidden; }
.xp__tabs button .xp__prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--blue-300); }
.xp__tabs button.is-active .xp__prog.is-run { animation: prog var(--dur, 7s) linear forwards; }
@keyframes prog { to { width: 100%; } }
/* Flujo situación → solución → resultado */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 18px; }
.flow span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: center; }
.flow span .i { width: 40px; height: 40px; padding: 10px; border-radius: var(--r-sm); background: var(--bg-soft); color: var(--ink); }
.flow span:nth-child(1) .i { background: var(--red-50); color: var(--red); }
.flow span:nth-child(3) .i { background: var(--blue-500); color: #fff; }
.flow span:nth-child(5) .i { background: var(--green-50); color: var(--green); }
.flow em { position: relative; height: 2px; min-width: 24px; background: var(--line); overflow: hidden; }
.flow em::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--blue-500), transparent); animation: flowline 1.6s linear infinite; }
@keyframes flowline { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* Pistas de demo que ejecutan la acción */
.demo-hints button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); transition: all .2s; }
.demo-hints button:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.demo-hints button .i { color: var(--acc); }
.demo-hints button em { font-style: normal; color: var(--muted); font-weight: 500; }
.is-pulse { position: relative; z-index: 2; animation: pulsering 1.2s ease 3; border-radius: var(--r-sm); }
@keyframes pulsering { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1180px) {
  .ptease { grid-template-columns: 1fr 1fr; }
  .ptease__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .extras { grid-template-columns: repeat(3, 1fr); }
  .cfg { grid-template-columns: 1fr; }
  .fx__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { flex-direction: row; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--blue-50); scrollbar-width: none; }
  .dash__brand, .dash__help { display: none; }
  .dash__nav { flex: none; }
  .dash__nav.is-active::after { display: none; }
  .xp__top, .cs, .why { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .biz-tabs, .plans { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr 1fr; }
  .rb-detail { grid-template-columns: 1fr; }
  .fx { grid-template-columns: 1fr; gap: 20px; }
  .fx__nav { top: 76px; z-index: 5; gap: 8px; margin: 0 -10px; padding: 10px; border-radius: var(--r); background: rgba(244, 247, 252, .95); backdrop-filter: blur(10px); }
  .fx__cats { display: flex; overflow-x: auto; padding: 4px; scrollbar-width: none; }
  .fx__cats li { flex: none; }
  .fx__cats em, .fx__plan { display: none; }
  .showcase__panel { padding: 40px 20px 28px; border-radius: var(--r-lg); }
}
@media (max-width: 760px) {
  .dash__grid { grid-template-columns: 1fr; }
  .xp__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .phero { padding: 20px 0 64px; }
  .rot { display: grid; width: 100%; }
  .rot > span { white-space: normal; }
  .phero__stage { margin-top: 32px; }
  .phero .container > .phero__stage { width: calc(100% + 16px); margin-left: -8px; }
  .hero-chips { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-chips li { font-size: var(--fs-sm); }
  .showwin__body { padding: 16px 14px 30px; }
  .dash { border-radius: var(--r); box-shadow: 0 40px 80px -40px rgba(16, 29, 53, .45); }
  .dash__bar .win__title { display: none; }
  .dash__top { padding: 12px 14px; }
  .dash__top small { display: none; }
  .dash__view { padding: 14px; }
  .dash__vhead { flex-direction: column; align-items: flex-start; }
  .dcard { padding: 16px; }
  .chart svg { height: 170px; }
  .sbar { grid-template-columns: 1fr 70px 40px; }
  .kgrid b { font-size: var(--fs-xl); }
  .xp__tabs, .cs__cats { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .xp__tabs button, .cs__cats button { flex: none; }
  .frame { padding: 8px; border-radius: var(--r-lg); }
  .xp__info { padding: 24px 20px; }
  .xp__mock, .xp__feats { padding: 16px; }
  .xp__list { grid-template-columns: 1fr; }
  .cs__card { padding: 20px; }
  .cs__boxes { grid-template-columns: 1fr; }
  .showcase { padding: 56px 0 48px; }
  .showcase .container { width: calc(100% - 16px); }
  .showcase__panel { padding: 32px 10px 18px; border-radius: var(--r-lg); }
  .ptease, .ptease__side, .extras { grid-template-columns: 1fr; }
  .biz-tabs { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
  .biz-tabs button { flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; text-align: center; }
  .biz-tabs button.is-active { box-shadow: none; background: color-mix(in srgb, var(--acc) 8%, #fff); }
  .biz-tabs button > span:first-child { width: 38px; height: 38px; font-size: var(--fs-xl); }
  .biz-tabs small { display: none; }
  .biz-tabs b { font-size: var(--fs-ui); }
  .biz-tabs em { position: static; font-size: var(--fs-2xs); }
  .plan__desc { min-height: 0; }
  .cfg__base, .cfg__builder { padding: 20px 16px; }
  .cfg__head { flex-direction: column; align-items: stretch; }
  .cfg__total { text-align: left; }
  .cfg__addons { grid-template-columns: 1fr; }
  .rb-feats { grid-template-columns: 1fr; }
  .rb-plan { flex-wrap: wrap; }
  .rb-plan a { width: 100%; margin-left: 0; }
  .fx__grid { grid-template-columns: 1fr; }
  .fx__cat { padding: 20px 16px; }
  .why__grid { grid-template-columns: 1fr; }
  .rbcover { height: 250px; }
  .rbcover__deco { display: none; }
  .rb-detail__cover::after { background: linear-gradient(0deg, rgba(6, 22, 49, .92), rgba(6, 22, 49, .55) 60%, rgba(6, 22, 49, .1)); }
  .rb-detail__title { left: 18px; right: 18px; bottom: 18px; }
  .rb-detail__info { padding: 22px 18px; }
  .rb-detail__demo { padding: 14px 10px; }
  .rbx__split { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 1fr 52px; }
  .qrow input { grid-column: 1 / -1; grid-row: 2; }
  .qrow .qrow__n { display: none; }
  .matrix { grid-template-columns: 70px repeat(4, 1fr); }
  .transfer { grid-template-columns: 1fr 1fr; }
  .flow span { font-size: 10px; }
}
@media (max-width: 1080px) {
  .rb-detail { grid-template-columns: 1fr; }
  .rb-detail__demo { border-left: 0; border-top: 1px solid var(--line); }
}

/* Rubros: información en una fila y demo a todo el ancho */
.rb-detail { grid-template-columns: 1fr; }
.rb-detail__info { display: grid; grid-template-columns: 1fr 1.4fr .8fr; gap: 28px; }
.rb-detail__info h6 { margin-top: 0; }
.rb-detail__info .rb-plan { margin-top: 0; }
.rb-detail__demo { border-left: 0; border-top: 1px solid var(--line); padding: 28px; }
.rb-detail__demo-h { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--fs-md); color: var(--ink-2); }
.rb-detail__demo-h .i { color: var(--acc); }
.rb-detail__demo .hero__actions { justify-content: center; }
@media (max-width: 1080px) { .rb-detail__info { grid-template-columns: 1fr 1fr; } .rb-detail__info > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .rb-detail__info { grid-template-columns: 1fr; gap: 20px; } .rb-detail__demo { padding: 14px 10px; } }

/* =========================================================
   Contacto: canales, próximos pasos y formulario con vista previa
   ========================================================= */
.ct { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: 24px; align-items: start; }
.ct__side { display: grid; gap: 12px; position: sticky; top: 100px; }
/* Canales */
.ct-ch { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ct-ch:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue-500) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.ct-ch__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); }
.ct-ch__ico .i { width: 22px; height: 22px; }
.ct-ch__txt { flex: 1; min-width: 0; }
.ct-ch__txt b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--fs-base); color: var(--ink); }
.ct-ch__txt small { display: block; margin-top: 2px; font-size: var(--fs-ui); color: var(--muted); }
.ct-ch__go { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-2); transition: background .2s, color .2s, transform .2s; }
.ct-ch:hover .ct-ch__go { background: var(--blue-500); color: #fff; transform: translateX(2px); }
.ct-ch--wa { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); background: linear-gradient(120deg, #fff 55%, #effaf3); }
.ct-ch--wa:hover .ct-ch__go { background: var(--green); }
.ct-ch:hover .ct-ch__ico.tone-green { background: var(--green) !important; color: #fff !important; }
.ct-ch:hover .ct-ch__ico.tone-il { background: #2b3cb0 !important; color: #fff !important; }
.ct-ch:hover .ct-ch__ico.tone-pink { background: #e6336d !important; color: #fff !important; }
.ct-live { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--green-50); color: #15803d; font-style: normal; font-size: var(--fs-2xs); font-weight: 700; }
.ct-live i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.ct-live i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #16a34a; opacity: 0; animation: moWave 1.8s ease-out infinite; }
/* Próximos pasos */
.ct-next { padding: 20px; border-radius: var(--r-md); background: linear-gradient(160deg, var(--bg-soft), var(--blue-50)); border: 1px solid var(--line-2); }
.ct-next__k { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--fs-sm); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-500); }
.ct-next ol { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ct-next ol::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--green), #2b3cb0, #8e9cf1); opacity: .35; }
.ct-next li { position: relative; display: flex; gap: 12px; }
.ct-next li > span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); font-weight: 800; font-size: var(--fs-ui); }
.ct-next b { display: block; font-size: var(--fs-md); color: var(--ink); }
.ct-next small { font-size: var(--fs-sm); color: var(--muted); }
.ct-social { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: var(--fs-sm); color: var(--muted); }
.ct-social span { margin-right: 4px; }
.ct-social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink-2); transition: all .2s; }
.ct-social a:hover { border-color: var(--blue-500); color: var(--blue-500); }
/* Formulario */
.ct-form { position: relative; display: grid; gap: 14px; padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.ct-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #e6336d, #8e9cf1 40%, var(--blue-500) 70%, var(--green)); }
.ct-form__head { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.ct-form__head > span { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); }
.ct-form__head .i { width: 22px; height: 22px; }
.ct-form__head h2 { font-size: var(--fs-4xl); }
.ct-form__head p { margin-top: 2px; font-size: var(--fs-ui); color: var(--muted); }
.ct-step { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: var(--fs-md); color: var(--ink); }
.ct-step em { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-s); background: var(--navy-900); color: #fff; font-style: normal; font-size: var(--fs-xs); font-weight: 800; }
.ct-topics button { padding: 9px 13px; font-size: var(--fs-ui); }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: grid; gap: 6px; margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.ct-in { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft); transition: border-color .15s, box-shadow .15s, background .15s; }
.ct-in .i { flex: none; color: var(--muted); }
.ct-in input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; font-size: var(--fs-md); font-weight: 400; color: var(--ink); outline: none; }
.ct-in:focus-within { border-color: var(--blue-500); background: #fff; box-shadow: var(--ring); }
.ct-in:focus-within .i { color: var(--blue-500); }
.ct-in:has(input:user-invalid) { border-color: var(--red); }
.ct-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft); font-size: var(--fs-md); font-weight: 400; color: var(--ink); outline: none; resize: vertical; transition: border-color .15s, box-shadow .15s, background .15s; }
.ct-field textarea:focus { border-color: var(--blue-500); background: #fff; box-shadow: var(--ring); }
.ct-field textarea:user-invalid { border-color: var(--red); }
.ct-count { justify-self: end; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
/* Vista previa del mensaje */
.ct-preview { padding: 14px; border-radius: var(--r); background: #efeae2 radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px) 0 0 / 14px 14px; }
.ct-preview > p { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #15803d; }
.ct-bubble { position: relative; max-width: 92%; margin-left: auto; padding: 10px 12px 18px; border-radius: 12px 12px 4px 12px; background: #d9fdd3; color: #111b21; font-size: var(--fs-sm); line-height: 1.5; white-space: pre-line; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.ct-bubble::after { content: "✓✓"; position: absolute; right: 10px; bottom: 3px; font-size: 10px; letter-spacing: -2px; color: #53bdeb; }
.ct-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-fine { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

@media (max-width: 980px) {
  .ct { grid-template-columns: 1fr; }
  .ct__side { position: static; }
}
@media (max-width: 640px) {
  .ct-form { padding: 20px; }
  .ct-row, .ct-actions { grid-template-columns: 1fr; }
  .ct-ch { padding: 14px; }
  .ct-ch__txt small { font-size: var(--fs-sm); }
}

/* ---------- Pago mensual / anual ---------- */
.bill { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: -8px 0 34px; }
.bill__sw { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bill__sw::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: var(--r-pill); background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); box-shadow: 0 6px 16px -6px rgba(36, 88, 166, .6); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.bill.is-year .bill__sw::before { transform: translateX(100%); }
.bill__sw button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 164px; padding: 10px 16px; border: 0; border-radius: var(--r-pill); background: none; font: inherit; font-size: var(--fs-md); font-weight: 700; color: var(--ink-2); cursor: pointer; transition: color .25s; }
.bill__sw button.is-active { color: #fff; }
.bill__sw em { padding: 3px 8px; border-radius: var(--r-pill); background: var(--green-50); color: #12805c; font-style: normal; font-size: var(--fs-2xs); font-weight: 800; transition: background .25s, color .25s; }
.bill__sw button.is-active em { background: rgba(255, 255, 255, .22); color: #fff; }
.bill__hint { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-ui); color: var(--muted); }
.bill__hint .i { color: #e0457b; }
.bill__hint b { color: #12805c; }
.plan__pricing.is-flip .plan__price, .plan__pricing.is-flip .plan__bill { animation: billIn .35s ease; }
@keyframes billIn { from { opacity: 0; transform: translateY(6px); } }
.plan__price strong small { font-size: .5em; letter-spacing: 0; }
.plan__bill { min-height: 20px; margin: 6px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.plan__bill s { color: #9aa6bb; }
.plan__bill b { color: #12805c; font-weight: 700; }

.cfg__total em { display: block; font-style: normal; font-size: var(--fs-xs); font-weight: 700; }
.cfg__total em s { margin-right: 4px; color: #9aa6bb; font-weight: 600; }
.cfg__total em:empty { display: none; }
@media (max-width: 640px) {
  .bill__sw button { width: 142px; padding: 10px 12px; font-size: var(--fs-ui); }
}
@media (prefers-reduced-motion: reduce) { .bill__sw::before { transition: none; } .plan__pricing.is-flip .plan__price, .plan__pricing.is-flip .plan__bill { animation: none; } }
.ptease__card .plan__bill { margin: -4px 0 14px; font-size: var(--fs-xs); }

/* ---------- Inicio: ecosistema DATHIUM detrás de la portada ---------- */
/* El texto queda en el centro libre de la ilustración; el halo claro lo mantiene legible */
.phero__eco { --w: clamp(1060px, 94vw, 1500px); position: absolute; z-index: -1; left: 50%; top: calc(196px - var(--w) * .318); width: var(--w); transform: translateX(-48%); pointer-events: none; animation: ecoIn 1s ease both; will-change: transform; }
/* Se desvanece antes de las pestañas de la vitrina para que no asome entre ellas */
.phero__eco { -webkit-mask-image: linear-gradient(#000 calc(170px + var(--w) * .318), transparent calc(250px + var(--w) * .318)); mask-image: linear-gradient(#000 calc(170px + var(--w) * .318), transparent calc(250px + var(--w) * .318)); }
.phero__eco img { display: block; width: 100%; height: auto; }
.phero__eco::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 33% 31% at 48% 49%, rgba(248, 251, 255, .97) 58%, rgba(248, 251, 255, 0) 100%); }
@keyframes ecoIn { from { opacity: 0; } }
/* En celular: más pequeña, enmarcando el título; se desvanece antes del párrafo para que se lea limpio */
@media (max-width: 760px) {
  .phero__eco { --w: 520px; top: calc(110px - var(--w) * .318);
    -webkit-mask-image: linear-gradient(#000 calc(55px + var(--w) * .318), transparent calc(135px + var(--w) * .318)); mask-image: linear-gradient(#000 calc(55px + var(--w) * .318), transparent calc(135px + var(--w) * .318)); }
  .phero__eco::after { background: radial-gradient(ellipse 40% 30% at 48% 50%, rgba(248, 251, 255, .96) 55%, rgba(248, 251, 255, 0) 100%); }
}
@media (prefers-reduced-motion: reduce) { .phero__eco { animation: none; } }

/* ---------- Inicio: vitrina desplegable ---------- */
/* Cerrada solo muestra las pestañas; al elegir una se abre la ventana con sus módulos */
[data-showcase]:not(.is-open) .showwin { display: none; }
[data-showcase].is-open .showwin { animation: swOpen .45s cubic-bezier(.2, .8, .3, 1); transform-origin: top center; }
@keyframes swOpen { from { transform: translateY(-14px) scale(.985); } }
.switcher__chev { width: 13px; height: 13px; margin-left: -1px; opacity: .55; transform: rotate(90deg); transition: transform .3s, opacity .2s; }
.switcher button.is-active .switcher__chev { opacity: 1; transform: rotate(-90deg); }
[data-showcase]:not(.is-open) .switcher { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { [data-showcase].is-open .showwin { animation: none; } }
/* En celular las cuatro pestañas van en 2 × 2 para que se vean completas */
@media (max-width: 640px) {
  [data-showcase] .switcher { display: grid; grid-template-columns: 1fr 1fr; width: 100%; overflow: visible; }
  [data-showcase] .switcher button { justify-content: center; padding: 10px 8px; }
}

/* ---------- Facturación: foto de fondo en la portada ---------- */
/* Caja con punto de venta detrás del título; se funde hacia abajo y deja un halo claro para el texto */
.phero__photo { position: absolute; left: 0; right: 0; top: 0; height: 640px; z-index: 0; pointer-events: none; background: url(/assets/img/fotos/caja-punto-de-venta.jpg) center 30% / cover no-repeat; opacity: .55; -webkit-mask-image: linear-gradient(#000 35%, transparent 100%); mask-image: linear-gradient(#000 35%, transparent 100%); }
.phero__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 42% 55% at 50% 42%, rgba(246, 249, 253, .97) 45%, rgba(246, 249, 253, .55) 75%, rgba(246, 249, 253, .2) 100%); }
@media (max-width: 760px) {
  .phero__photo { height: 560px; opacity: .4; }
  .phero__photo::after { background: radial-gradient(ellipse 80% 55% at 50% 45%, rgba(246, 249, 253, .97) 50%, rgba(246, 249, 253, .5) 100%); }
}

/* ---------- Rubros: portada con foto completa y degradado claro ---------- */
/* Igual que la portada de Facturación: la foto se ve entera a la derecha y se funde con el fondo */
.rbcover--img { height: 340px; background: linear-gradient(120deg, var(--bg-soft) 35%, var(--blue-50)); }
.rbcover--img::after { display: none; }
.rbcover__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; background-size: cover; background-repeat: no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.rb-detail__cover:has(.rbcover--img)::after { display: none; }
.rb-detail__cover:has(.rbcover--img) .rb-detail__title { right: 56%; bottom: auto; top: 50%; transform: translateY(-50%); color: var(--ink); }
.rb-detail__cover:has(.rbcover--img) .rb-detail__title h2 { color: var(--ink); }
.rb-detail__cover:has(.rbcover--img) .rb-detail__title p { color: var(--muted-lg); }
.rb-detail__cover:has(.rbcover--img) .rb-detail__title .tag { background: var(--blue-50); border-color: color-mix(in srgb, var(--blue-500) 25%, transparent); color: var(--blue-500); }
@media (max-width: 760px) {
  .rbcover--img { height: 420px; }
  .rbcover__photo { left: 0; width: auto; bottom: 34%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .rb-detail__cover:has(.rbcover--img) .rb-detail__title { top: auto; bottom: 18px; right: 18px; transform: none; }
}

/* ---------- Facturación: escenario de la demostración principal ---------- */
.showcase__panel--stage { overflow: hidden; padding: 60px 48px 40px; border-color: var(--line-2); background:
  radial-gradient(560px 300px at 8% 0%, rgba(36, 88, 166, .16), transparent 70%),
  radial-gradient(520px 300px at 95% 8%, rgba(230, 51, 109, .09), transparent 70%),
  radial-gradient(700px 360px at 50% 100%, rgba(21, 160, 80, .07), transparent 70%),
  linear-gradient(180deg, var(--bg-soft), var(--blue-50)); }
.showcase__panel--stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(36, 88, 166, .14) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(#000, transparent 55%); mask-image: linear-gradient(#000, transparent 55%); }
.showcase__panel--stage > * { position: relative; }
.stage-live { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--green-50); color: var(--green); font-size: var(--fs-2xs); }
.stage-live i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.stage-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.stage-facts li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.stage-facts .i { width: 16px; height: 16px; color: var(--blue-500); }
/* Guía en 4 pasos */
.demo-hints--steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; counter-reset: none; }
.demo-hints--steps button { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, .88); text-align: left; font-size: inherit; box-shadow: 0 10px 24px -18px rgba(16, 29, 53, .45); backdrop-filter: blur(6px); }
.demo-hints--steps button:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue-500) 40%, var(--line)); box-shadow: 0 16px 30px -18px rgba(36, 88, 166, .5); color: inherit; }
.demo-hints--steps button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm); }
.demo-hints--steps button > span .i { width: 20px; height: 20px; color: inherit; }
.demo-hints--steps b { align-self: end; font-size: var(--fs-ui); color: var(--ink); }
.demo-hints--steps small { align-self: start; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.demo-hints--steps em { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50); color: var(--blue-500); font-size: var(--fs-2xs); font-weight: 800; }
.demo-hints--steps button.is-done em { background: var(--green); color: #fff; font-size: 0; }
.demo-hints--steps button.is-done em::after { content: "✓"; font-size: var(--fs-xs); }
/* La ventana del sistema con un halo detrás */
.stage-win { position: relative; }
.stage-win::before { content: ""; position: absolute; inset: 6% 4% -4%; z-index: -1; border-radius: var(--r-xl); background: radial-gradient(closest-side, rgba(36, 88, 166, .28), transparent); filter: blur(28px); pointer-events: none; }
@media (max-width: 1080px) { .demo-hints--steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .showcase__panel--stage { padding: 36px 12px 18px; }
  .demo-hints--steps { gap: 8px; }
  .demo-hints--steps button { grid-template-columns: 1fr; padding: 12px; }
  .demo-hints--steps button > span { grid-row: auto; width: 36px; height: 36px; margin-bottom: 8px; }
  .demo-hints--steps small { display: none; }
}

/* ---------- Guías de facturación ---------- */
.gmeta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); }
.gmeta .i { width: 14px; height: 14px; }
.guide { font-size: var(--fs-body); line-height: 1.7; color: var(--ink-2); }
.guide h2 { margin: 36px 0 12px; font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.guide p { margin: 0 0 14px; }
.guide b { color: var(--ink); }
.guide ul, .guide ol { margin: 0 0 16px; padding-left: 22px; }
.guide li { margin-bottom: 6px; }
.guide a:not(.btn) { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.gquick { margin-bottom: 8px; padding: 20px 22px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--blue-50), var(--bg-soft)); border: 1px solid var(--line-2); border-left: 4px solid var(--blue-500); }
.gquick > b { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: var(--fs-sm); letter-spacing: .04em; text-transform: uppercase; color: var(--blue-500); }
.gquick > b .i { width: 15px; height: 15px; }
.gquick p { margin: 0; font-size: var(--fs-lg); color: var(--ink); }
.gsteps { list-style: none; padding: 0 !important; counter-reset: gs; }
.gsteps li { position: relative; margin-bottom: 12px; padding: 14px 16px 14px 58px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); counter-increment: gs; }
.gsteps li::before { content: counter(gs); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--blue-500); color: #fff; font-weight: 800; font-size: var(--fs-ui); }
.gtbl { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.gtbl table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); }
.gtbl th, .gtbl td { padding: 12px 14px; border-bottom: 1px solid var(--frame); text-align: left; vertical-align: top; }
.gtbl th { background: var(--bg-soft); font-size: var(--fs-sm); color: var(--ink); }
.gtbl tr:last-child td { border-bottom: 0; }
.gtbl td:first-child { font-weight: 700; color: var(--ink); }
.gpros { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; padding: 0 !important; }
.gpros li { margin: 0; padding: 10px 12px 10px 36px; position: relative; border-radius: var(--r-sm); font-size: var(--fs-md); }
.gpros li::before { position: absolute; left: 12px; top: 10px; font-weight: 800; }
.gpros .is-pro { background: var(--green-50); }
.gpros .is-pro::before { content: "✓"; color: var(--green); }
.gpros .is-con { background: var(--red-50); }
.gpros .is-con::before { content: "–"; color: #d6365e; }
.guide .faq { margin-bottom: 8px; }
.gcta { display: flex; align-items: center; gap: 16px; margin: 32px 0 20px; padding: 20px 22px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--navy-900), var(--blue-600)); color: #dbe6f7; }
.gcta > span { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--r); background: rgba(255, 255, 255, .12); color: #fff; }
.gcta p { flex: 1; margin: 0; font-size: var(--fs-md); color: var(--line); }
.gcta .btn { flex: none; background: #fff; color: var(--blue-600); box-shadow: none; }
.gcta .btn::after { display: none; }
.gsrc { padding: 18px 20px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); font-size: var(--fs-ui); }
.gsrc h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--fs-md); color: var(--ink); }
.gsrc h3 .i { color: var(--green); }
.gsrc ul { margin: 0 0 10px; padding-left: 18px; }
.gsrc p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.grel { margin-top: 48px; }
.grel h2 { margin-bottom: 16px; font-size: var(--fs-3xl); }
.ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: transform .2s, box-shadow .2s, border-color .2s; }
.gcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue-500) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.gcard > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--blue-50); color: var(--blue-500); }
.gcard b { font-size: var(--fs-body); line-height: 1.35; color: var(--ink); }
.gcard small { flex: 1; font-size: var(--fs-ui); line-height: 1.5; color: var(--muted); }
.gcard em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: var(--fs-sm); font-weight: 700; color: var(--blue-500); }
.gcard em .i { width: 14px; height: 14px; }
@media (max-width: 920px) { .ggrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .ggrid, .gpros { grid-template-columns: 1fr; }
  .gcta { flex-direction: column; align-items: flex-start; }
  .guide { font-size: var(--fs-base); }
}

/* ---------- Contenido propio de las páginas de rubro y lista de rubros ---------- */
.guide h3 { margin: 22px 0 6px; font-size: var(--fs-xl); font-weight: 700; color: var(--ink); }
/* Página de rubro: tarjetas de lo que resuelve, plan recomendado y "sigue explorando" */
.rbsol h3 { font-size: var(--fs-xl); }
.rbplan { display: flex; align-items: center; gap: 18px; max-width: 980px; margin: 24px auto 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); }
.rbplan .process__ico { flex: none; }
.rbplan__txt { flex: 1; min-width: 0; }
.rbplan__txt small { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.rbplan__txt b { display: block; margin-top: 2px; font-family: var(--font-head); font-size: var(--fs-xl); color: var(--ink); }
.rbplan__txt b span { font-family: var(--font-body, inherit); font-size: var(--fs-md); font-weight: 600; color: var(--muted); }
.rbplan__txt b span::before { content: "· "; }
.rbplan__txt p { margin-top: 4px; font-size: var(--fs-ui); color: var(--muted); }
.rbplan__txt a, .rbnext__all { color: var(--blue-500); font-weight: 700; }
.rbplan .btn { flex: none; }
.rbnext { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; max-width: 1080px; margin: 0 auto; }
.rbnext .faq__g { margin: 0 0 12px; }
.rblist--1 { grid-template-columns: 1fr; }
.rblist--2 { grid-template-columns: 1fr 1fr; }
.rblist a .process__ico { width: 44px; height: 44px; }
.rbnext__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: var(--fs-ui); }
@media (max-width: 920px) { .rbnext { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .rbplan { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .process.rbsol { grid-template-columns: 1fr; }
  .rbplan .btn { width: 100%; }
  .rbplan__txt b span { display: block; }
  .rbplan__txt b span::before { content: none; }
  .rblist--2 { grid-template-columns: 1fr; }
}
.rblist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rblist a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rblist a:hover { border-color: color-mix(in srgb, var(--blue-500) 35%, var(--line)); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.rblist .pic { flex: none; width: 44px; height: 44px; }
.rblist b { display: block; font-size: var(--fs-md); color: var(--ink); line-height: 1.3; }
.rblist small { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
/* Texto de los módulos que se muestra un instante antes de que cargue el explorador interactivo */
.xp-pre { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; max-height: 560px; overflow: hidden; }
.xp-pre article { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.xp-pre h3 { font-size: var(--fs-xl); }
.xp-pre p, .xp-pre ul { margin: 8px 0 0; font-size: var(--fs-ui); color: var(--muted); }
.xp-pre ul { padding-left: 18px; }
.xp-pre a { display: inline-block; margin-top: 10px; font-size: var(--fs-ui); font-weight: 700; color: var(--blue-500); }
/* En el celular la demo interactiva no se muestra: tampoco la frase que invita a probarla */
@media (max-width: 760px) { .rbmore__demo { display: none; } }

/* ---------- Buscador de código de producto SUNAT ---------- */
.cps { padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.cps__label { display: block; margin-bottom: 8px; font-size: var(--fs-ui); font-weight: 700; color: var(--ink); }
.cps__field { position: relative; }
.cps__field > .i { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.cps__field input { width: 100%; min-height: 52px; padding: 12px 14px 12px 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: var(--fs-base); color: var(--ink); background: var(--bg-soft); }
.cps__field input:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); background: #fff; }
.cps__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cps__opts button { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); cursor: pointer; }
.cps__opts button.is-active { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.cps__hint { margin: 12px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.cps__out:not(:empty) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cps__msg { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: var(--fs-ui); color: var(--muted); }
.cps__list { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.cps__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft); }
.cps__code { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cps__code b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--fs-lg); letter-spacing: .04em; color: var(--ink); }
.cps__code button { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; font: inherit; font-size: var(--fs-2xs); font-weight: 700; color: var(--blue-500); cursor: pointer; }
.cps__code button .i { width: 12px; height: 12px; }
.cps__desc span { display: block; font-weight: 700; color: var(--ink); line-height: 1.35; }
.cps__desc small { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.cps__ok, .cps__warn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--fs-2xs); font-weight: 800; white-space: nowrap; }
.cps__ok { background: var(--green-50); color: var(--green); }
.cps__warn { background: var(--amber-50); color: var(--amber); }
.cps__ok .i, .cps__warn .i { width: 13px; height: 13px; }
.cps__verdict { display: flex; gap: 12px; margin-bottom: 14px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid; }
.cps__verdict > .i { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.cps__verdict b { display: block; color: var(--ink); }
.cps__verdict p { margin: 4px 0 0; font-size: var(--fs-ui); color: var(--ink-2); }
.cps__verdict.is-good { background: var(--green-50); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--green); }
.cps__verdict.is-warn { background: var(--amber-50); border-color: color-mix(in srgb, var(--amber) 30%, transparent); color: var(--amber); }
.cps__verdict.is-bad { background: var(--red-50); border-color: color-mix(in srgb, var(--red) 30%, transparent); color: var(--red); }
.cps-table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); }
.cps-table th, .cps-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cps-table th { background: var(--bg-soft); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cps-table tr:last-child td { border-bottom: 0; }
.guide .cmp-wrap { margin: 0 0 16px; }
.guide code { padding: 1px 6px; border-radius: var(--r-xs); background: var(--frame); font-size: .88em; word-break: break-all; }
@media (max-width: 640px) {
  .cps { padding: 16px; }
  .cps__item { grid-template-columns: 1fr; gap: 8px; }
  .cps__code { flex-direction: row; align-items: center; justify-content: space-between; }
  .cps__ok, .cps__warn { justify-self: start; }
  .cps-table th, .cps-table td { padding: 10px; font-size: var(--fs-xs); }
}

/* ---------- Catálogo N.° 25: índice y páginas por segmento ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.c25grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.c25seg { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.c25seg:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.c25seg b { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-s); background: var(--blue-50); color: var(--blue-500); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--fs-md); }
.c25seg span { font-size: var(--fs-ui); font-weight: 700; line-height: 1.35; }
.c25seg small { font-size: var(--fs-xs); color: var(--muted); }
.c25seg.is-current { border-color: var(--blue-500); background: var(--blue-50); }
.c25find { position: relative; display: flex; gap: 8px; max-width: 640px; margin: 0 auto 16px; }
.c25find > .i { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.c25find input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 12px 10px 40px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: var(--fs-md); background: #fff; color: var(--ink); }
.c25find input:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); }
.c25note { display: flex; gap: 10px; max-width: 860px; margin: 0 auto 20px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--amber-50); color: var(--amber); }
.c25note > .i { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.c25note p { margin: 0; font-size: var(--fs-ui); color: var(--ink-2); }
.c25note a { color: var(--blue-500); font-weight: 700; }
.c25toc { max-width: 860px; margin: 0 auto 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.c25toc summary { display: flex; align-items: center; gap: 8px; padding: 13px 16px; list-style: none; cursor: pointer; font-weight: 700; font-size: var(--fs-md); }
.c25toc summary::-webkit-details-marker { display: none; }
.c25toc summary .i { color: var(--blue-500); }
.c25toc summary em { margin-left: auto; font-style: normal; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.c25toc ol { margin: 0; padding: 0 16px 14px 38px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; font-size: var(--fs-ui); }
.c25toc a { color: var(--ink-2); }
.c25body { max-width: 860px; margin: 0 auto; }
.c25fam { padding-top: 8px; scroll-margin-top: 80px; }
.c25fam h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 28px 0 4px; font-size: clamp(19px, 2.2vw, 23px); color: var(--ink); }
.c25fam h2 span { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--fs-md); font-weight: 700; color: var(--blue-500); }
.c25fam__n { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--muted); }
.c25cls { display: grid; gap: 10px; }
.c25c { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.c25c__h { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.4; }
.c25c__h b, .c25c li b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--blue-500); letter-spacing: .02em; }
.c25c__h small { font-weight: 600; font-size: var(--fs-xs); color: var(--muted); }
.c25c ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; margin: 10px 0 0; padding: 0; list-style: none; }
.c25c li { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.c25c li b { margin-right: 4px; font-size: var(--fs-xs); }
.c25c > a { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--blue-500); }
.c25c > a .i { width: 14px; height: 14px; }
.c25src { display: flex; gap: 8px; max-width: 860px; margin: 28px auto 0; font-size: var(--fs-xs); color: var(--muted); }
.c25src .i { flex: none; width: 16px; height: 16px; }
.section__head a { color: var(--blue-500); font-weight: 700; }
@media (max-width: 640px) {
  .c25grid { grid-template-columns: 1fr; }
  .c25find .btn { padding-inline: 12px; }
  .c25c ul { grid-template-columns: 1fr; }
}
.c25off { margin: 12px auto 4px; max-width: 720px; font-size: var(--fs-sm); color: var(--muted); }
.c25off b { font-weight: 700; color: var(--ink-2); }
