/* ==========================================================================
   Sitio público y autenticación
   ========================================================================== */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }
.section { padding: 5.5rem 0; }
@media (min-width: 992px) { .section { padding: 8rem 0; } }
.section-head { max-width: 680px; margin-bottom: 3.5rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(var(--fs-28), 3.6vw, var(--fs-50)); margin-bottom: 1rem; }
.section-head p { font-size: var(--fs-18); line-height: 1.65; margin: 0; }
.lead-sm { font-size: var(--fs-16); }

/* ---------- Encabezado -------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248,250,252,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--tp-line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1.5rem; }
.site-nav { display: flex; gap: .15rem; }
.site-nav a { color: var(--tp-ink-2); font-weight: 500; font-size: var(--fs-14); text-decoration: none; padding: .45rem .8rem; border-radius: var(--r-sm); transition: color .15s, background-color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--tp-ink); background: rgba(15,23,42,.04); }
.site-header__actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.2rem; color: inherit; padding: .4rem .5rem; border-radius: var(--r-sm); }

/* Variante oscura sobre el hero de la portada */
.page-home .site-header:not(.is-scrolled):not(.is-open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home .site-header:not(.is-scrolled):not(.is-open) .logo { color: #fff; --logo-bg: var(--tp-primary); }
.page-home .site-header:not(.is-scrolled):not(.is-open) .site-nav a { color: #A9B6CA; }
.page-home .site-header:not(.is-scrolled):not(.is-open) .site-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.page-home .site-header:not(.is-scrolled):not(.is-open) .btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #E2E8F0; box-shadow: none; }
.page-home .site-header:not(.is-scrolled):not(.is-open) .nav-toggle { color: #fff; }
.page-home main { margin-top: -68px; }

@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav, .site-header__actions .btn-ghost { display: none; }
  .site-header.is-open { background: var(--tp-bg); }
  .site-header.is-open .site-nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; background: var(--tp-bg); padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--tp-line); box-shadow: var(--sh-3); }
  .site-header.is-open .site-nav a { padding: .85rem .5rem; font-size: var(--fs-16); border-bottom: 1px solid var(--tp-line); border-radius: 0; }
}

/* ---------- Hero (oscuro) ----------------------------------------------- */
.hero { position: relative; display: flow-root; background: var(--tp-dark); color: #CBD5E1; padding: calc(68px + 4.5rem) 0 0; isolation: isolate; }
body { overflow-x: clip; }
@media (min-width: 992px) { .hero { padding-top: calc(68px + 6.5rem); } }
/* Retícula técnica muy tenue + un solo resplandor de marca */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: min(900px, 100%); height: 600px; left: 50%; top: -240px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(37,99,235,.38), rgba(37,99,235,0)); filter: blur(10px); }
.hero__copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.6vw, var(--fs-67)); letter-spacing: -0.045em; margin-bottom: 1.5rem; font-weight: 700; }
.hero__lead { font-size: clamp(var(--fs-16), 1.5vw, var(--fs-18)); max-width: 58ch; margin: 0 auto 2.25rem; color: #A9B6CA; line-height: 1.7; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: center; }
.hero__note { margin-top: 1.25rem; font-size: var(--fs-13); color: #7C8AA3; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; justify-content: center; }
.hero__note span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__note i { color: var(--tp-success); font-size: 11px; }

/* El producto como protagonista */
.product { color: var(--tp-ink); position: relative; z-index: 2; margin: 4.5rem auto -10rem; max-width: 1120px; padding: 8px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); box-shadow: var(--sh-4); }
.product__frame { background: var(--tp-white); border-radius: 15px; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; min-height: 470px; }
.pm-side { background: var(--tp-dark-900); color: #8592A8; padding: 1.1rem .75rem; font-size: var(--fs-13); }
.pm-side .logo { font-size: var(--fs-16); margin: 0 .5rem 1.4rem; color: #fff; --logo-bg: var(--tp-primary); }
.pm-side .logo__mark { width: 22px; height: 22px; }
.pm-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.pm-side li { display: flex; align-items: center; gap: .65rem; padding: .48rem .6rem; border-radius: var(--r-xs); font-weight: 500; }
.pm-side li i { width: 15px; text-align: center; font-size: 12px; }
.pm-side li.on { background: rgba(255,255,255,.07); color: #fff; }
.pm-side li.ai { color: #67D8EA; }
.pm-main { padding: 1rem 1.35rem 1.5rem; background: var(--tp-bg); min-width: 0; }
.pm-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; position: relative; }
.pm-search { flex: 1; max-width: 400px; display: flex; align-items: center; gap: .6rem; background: var(--tp-white); border: 1px solid var(--tp-line-2); border-radius: var(--r-sm); padding: .5rem .75rem; font-size: var(--fs-13); color: var(--tp-ink-3); box-shadow: var(--sh-1); }
.pm-search.is-active { border-color: var(--tp-primary); box-shadow: var(--focus); }
.pm-typed { color: var(--tp-ink); font-weight: 700; letter-spacing: .05em; }
.pm-caret { width: 1.5px; height: 1.05em; background: var(--tp-primary); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pm-pill { margin-left: auto; font-size: var(--fs-12); font-weight: 600; color: #047857; background: var(--tp-success-050); padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; }
.pm-result { position: absolute; top: calc(100% + 8px); left: 0; width: min(440px, 100%); z-index: 3; background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--r-md); box-shadow: var(--sh-3);
  padding: .9rem; opacity: 0; transform: translateY(-6px) scale(.99); transform-origin: top left; transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.pm-result.is-shown { opacity: 1; transform: none; }
.pm-result__head { display: flex; align-items: center; gap: .8rem; padding-bottom: .75rem; border-bottom: 1px solid var(--tp-line); margin-bottom: .5rem; }
.pm-result__head strong { display: block; font-size: var(--fs-14); }
.pm-result__head small { color: var(--tp-ink-3); font-size: var(--fs-12); }
.pm-hist { list-style: none; margin: 0; padding: 0; font-size: var(--fs-13); }
.pm-hist li { display: grid; grid-template-columns: 58px 1fr auto; gap: .6rem; padding: .42rem 0; align-items: center; }
.pm-hist time { color: var(--tp-ink-3); font-variant-numeric: tabular-nums; }
.pm-hist b { font-variant-numeric: tabular-nums; font-weight: 600; }
.pm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin-bottom: .9rem; }
.pm-kpi { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--r-sm); padding: .75rem .85rem; box-shadow: var(--sh-1); }
.pm-kpi small { display: block; color: var(--tp-ink-3); font-size: 11px; font-weight: 500; }
.pm-kpi b { font-size: var(--fs-18); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pm-kpi b.up { color: #047857; }
.pm-board { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--r-sm); box-shadow: var(--sh-1); }
.pm-row { display: grid; grid-template-columns: 96px 1.4fr 1fr 110px; gap: 1rem; align-items: center; padding: .65rem 1rem; border-top: 1px solid var(--tp-line); font-size: var(--fs-13); }
.pm-row:first-child { border-top: 0; }
.pm-row strong { display: block; font-weight: 600; }
.pm-row small { color: var(--tp-ink-3); font-size: var(--fs-12); }
.pm-row .status { justify-self: start; }
@media (max-width: 991.98px) { .product__frame { grid-template-columns: 1fr; } .pm-side { display: none; } .pm-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
  .product { margin-bottom: -6rem; padding: 5px; border-radius: 16px; }
  .product__frame { border-radius: 12px; }
  .pm-top { flex-wrap: wrap; } .pm-search { max-width: none; }
  .pm-result { position: static; width: 100%; margin-top: .25rem; }
  .pm-row { grid-template-columns: auto 1fr; } .pm-row > :nth-child(3), .pm-row > :nth-child(4) { display: none; }
  .pm-pill { display: none; }
}

/* ---------- Franja de módulos ------------------------------------------- */
.modules { padding: 14rem 0 4.5rem; text-align: center; border-bottom: 1px solid var(--tp-line); }
@media (max-width: 575.98px) { .modules { padding-top: 9rem; } }
.modules h2 { font-size: var(--fs-21); letter-spacing: -0.02em; margin-bottom: 1.75rem; color: var(--tp-ink-2); font-weight: 600; }
.modules ul { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 2rem; }
.modules li { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: var(--fs-16); color: var(--tp-ink); }
.modules li i { color: var(--tp-ink-4); font-size: 14px; }
.modules li.is-auto i { color: var(--tp-cyan); }

/* ---------- Problema / solución ----------------------------------------- */
.split { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 992px) { .split { grid-template-columns: 5fr 7fr; gap: 5rem; } .split .section-head { position: sticky; top: 110px; margin-bottom: 0; } }
.compare { display: grid; gap: .75rem; }
.compare__row { display: grid; grid-template-columns: 1fr 1fr; background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; }
.compare__row > div { padding: 1.1rem 1.25rem; display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-14); line-height: 1.55; }
.compare__row > div:first-child { color: var(--tp-ink-3); background: var(--tp-surface-2); }
.compare__row > div:last-child { color: var(--tp-ink); font-weight: 500; }
.compare__row i { margin-top: .22rem; font-size: 12px; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.compare__row > div:first-child i { color: #94A3B8; background: #E6EBF2; }
.compare__row > div:last-child i { color: #fff; background: var(--tp-success); }
.compare__labels { display: grid; grid-template-columns: 1fr 1fr; font-size: var(--fs-12); font-weight: 600; color: var(--tp-ink-3); padding: 0 1.25rem .25rem; }
@media (max-width: 767.98px) { .compare__row { grid-template-columns: 1fr; } .compare__labels { display: none; } }

/* ---------- Funciones: mosaico con fragmentos reales del producto -------- */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.tile { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; overflow: hidden; }
.tile h3 { font-size: var(--fs-18); margin: 0 0 .4rem; }
.tile p { margin: 0; font-size: var(--fs-14); line-height: 1.6; }
.tile__ui { background: var(--tp-surface-2); border: 1px solid var(--tp-line); border-radius: var(--r-md); padding: 1rem; margin-top: auto; }
@media (min-width: 768px) {
  .tile--4 { grid-column: span 4; } .tile--2 { grid-column: span 2; } .tile--3 { grid-column: span 3; }
  .tile--wide { flex-direction: row; align-items: center; } .tile--wide > div:first-child { flex: 0 0 38%; } .tile--wide .tile__ui { margin-top: 0; flex: 1; }
}
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.timeline li { display: grid; grid-template-columns: 22px 1fr auto; gap: .75rem; align-items: center; font-size: var(--fs-13); font-weight: 500; padding: .38rem 0; position: relative; color: var(--tp-ink-3); }
.timeline li::before { content: ""; position: absolute; left: 10px; top: calc(50% + 11px); height: calc(100% - 14px); width: 2px; background: var(--tp-line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--tp-primary); }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; background: var(--tp-white); box-shadow: inset 0 0 0 2px var(--tp-line-2); position: relative; z-index: 1; color: transparent; }
.timeline .done { color: var(--tp-ink); }
.timeline .done .dot { background: var(--tp-primary); box-shadow: none; color: #fff; }
.timeline .now { color: var(--tp-ink); font-weight: 700; }
.timeline .now .dot { box-shadow: inset 0 0 0 2px var(--tp-primary), 0 0 0 4px var(--tp-primary-050); color: var(--tp-primary); }
.timeline small { color: var(--tp-ink-3); font-variant-numeric: tabular-nums; font-weight: 500; }
.mini-hist { display: grid; gap: .5rem; }
.mini-hist div { display: flex; justify-content: space-between; gap: .75rem; font-size: var(--fs-13); padding: .5rem .65rem; background: var(--tp-white); border-radius: var(--r-xs); border: 1px solid var(--tp-line); }
.mini-hist span { color: var(--tp-ink-3); }
.doc { background: var(--tp-white); border-radius: var(--r-sm); border: 1px solid var(--tp-line); padding: 1rem; font-size: var(--fs-12); box-shadow: var(--sh-2); }
.doc__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .6rem; margin-bottom: .5rem; border-bottom: 1px solid var(--tp-line); }
.doc__head strong { font-size: var(--fs-13); }
.doc__line { display: flex; justify-content: space-between; padding: .25rem 0; color: var(--tp-ink-2); }
.doc__total { display: flex; justify-content: space-between; padding-top: .55rem; margin-top: .4rem; border-top: 1px solid var(--tp-line); font-weight: 700; font-size: var(--fs-14); }
.doc__approve { margin-top: .8rem; display: flex; gap: .4rem; }
.doc__approve span { flex: 1; text-align: center; padding: .4rem; border-radius: var(--r-xs); font-weight: 600; font-size: 11px; }
.stock { display: grid; gap: .65rem; }
.stock__row { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; font-size: var(--fs-13); }
.stock__row b { font-weight: 600; }
.stock__bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--tp-line); overflow: hidden; }
.stock__bar i { display: block; height: 100%; border-radius: 3px; background: var(--tp-success); }
.stock__bar i.low { background: var(--tp-warning); } .stock__bar i.out { background: var(--tp-danger); }
.cash { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.cash div { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--r-xs); padding: .65rem .75rem; }
.cash small { display: block; font-size: 11px; color: var(--tp-ink-3); font-weight: 500; }
.cash b { font-size: var(--fs-16); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cash .ok b { color: #047857; }
.more-link { margin-top: 2.5rem; text-align: center; }

/* ---------- Proceso: secuencia real ------------------------------------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: paso; }
@media (min-width: 992px) { .process { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; } }
.process li { counter-increment: paso; position: relative; padding-top: 3.25rem; }
.process li::before { content: counter(paso); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--tp-white); border: 1px solid var(--tp-line-2); color: var(--tp-ink); font-weight: 700; font-size: var(--fs-14); display: grid; place-items: center; box-shadow: var(--sh-1); z-index: 1; }
@media (min-width: 992px) { .process li::after { content: ""; position: absolute; top: 18px; left: 44px; right: -1rem; height: 1px; background: var(--tp-line-2); } .process li:last-child::after { display: none; } }
.process li:last-child::before { background: var(--tp-success); border-color: var(--tp-success); color: #fff; }
.process h4 { font-size: var(--fs-16); margin: 0 0 .35rem; }
.process p { font-size: var(--fs-14); margin: 0; line-height: 1.55; }

/* ---------- Bloque oscuro: automatizaciones + IA ------------------------ */
.dark { background: var(--tp-dark); color: #CBD5E1; position: relative; overflow: hidden; isolation: isolate; }
.dark::after { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -200px; bottom: -350px; background: radial-gradient(closest-side, rgba(6,182,212,.18), transparent); }
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p { color: #94A3B8; }
.auto-grid { display: grid; gap: 4rem; align-items: start; }
@media (min-width: 992px) { .auto-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.rules { list-style: none; padding: 0; margin: 0; border: 1px solid rgba(148,163,184,.16); border-radius: var(--r-lg); background: rgba(255,255,255,.02); overflow: hidden; }
.rules li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid rgba(148,163,184,.12); }
.rules li:first-child { border-top: 0; }
.rules strong { color: #F1F5F9; display: block; font-size: var(--fs-14); font-weight: 600; }
.rules small { color: #8592A8; font-size: var(--fs-13); }
.switch { width: 36px; height: 20px; border-radius: 999px; background: #334155; position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch.on { background: var(--tp-cyan); } .switch.on::after { left: 18px; }
.ai-panel { border: 1px solid rgba(6,182,212,.28); border-radius: var(--r-lg); padding: 1.25rem; background: rgba(6,182,212,.04); }
.ai-q { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.ai-q span { background: var(--tp-primary); color: #fff; padding: .6rem .9rem; border-radius: 14px 14px 4px 14px; font-weight: 500; font-size: var(--fs-14); max-width: 85%; }
.ai-a { background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.16); color: #CBD5E1; padding: .9rem 1rem; border-radius: 14px 14px 14px 4px; font-size: var(--fs-14); margin-bottom: 1rem; line-height: 1.6; }
.ai-a b { color: #fff; font-weight: 600; }
.ai-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ai-chips span { font-size: var(--fs-12); font-weight: 500; color: #67D8EA; border: 1px solid rgba(6,182,212,.28); padding: .35rem .7rem; border-radius: 999px; }
.badge-soon { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-12); font-weight: 600; color: #67D8EA; background: rgba(6,182,212,.1); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1.25rem; }
.badge-soon--light { color: #0E7490; background: var(--tp-cyan-050); }

/* ---------- Página web del taller --------------------------------------- */
.feature-lead { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .feature-lead { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }
.feature-lead h2 { font-size: clamp(var(--fs-28), 3.6vw, var(--fs-50)); margin-bottom: 1rem; }
.feature-lead p { font-size: var(--fs-18); line-height: 1.65; }
.browser { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--tp-line); background: var(--tp-surface-2); }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--tp-line-2); }
.browser__url { margin-left: .75rem; font-size: var(--fs-12); color: var(--tp-ink-3); background: var(--tp-white); padding: .25rem .8rem; border-radius: 999px; border: 1px solid var(--tp-line); }
.browser__body { padding: 1.5rem; }
.shop-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--tp-line); }
.shop-item:first-of-type { border-top: 0; padding-top: 0; }
.shop-item__img { width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--tp-surface-2); display: grid; place-items: center; color: var(--tp-ink-3); }
.shop-item strong { display: block; font-weight: 600; font-size: var(--fs-14); }
.shop-item small { color: #047857; font-weight: 500; font-size: var(--fs-13); }
.shop-item b { font-variant-numeric: tabular-nums; font-size: var(--fs-16); font-weight: 700; }
.sync-note { display: inline-flex; gap: .5rem; align-items: center; font-size: var(--fs-13); font-weight: 500; color: #0E7490; margin-top: 1.25rem; }

/* ---------- Precios ------------------------------------------------------ */
.plans { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 992px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: center; } }
.plan { background: var(--tp-white); border: 1px solid var(--tp-line); padding: 2rem; display: flex; flex-direction: column; border-radius: var(--r-lg); box-shadow: var(--sh-1); height: 100%; }
.plan.is-featured { background: var(--tp-dark); border-color: var(--tp-dark); box-shadow: var(--sh-4); position: relative; }
@media (min-width: 992px) { .plan.is-featured { padding: 2.5rem 2rem; height: calc(100% + 2rem); } }
.plan.is-featured .plan__name, .plan.is-featured .plan__price, .plan.is-featured li { color: #fff; }
.plan.is-featured .plan__desc, .plan.is-featured .plan__trial, .plan.is-featured .plan__price small { color: #94A3B8; }
.plan.is-featured ul { border-top-color: rgba(148,163,184,.18); }
.plan__name { font-size: var(--fs-18); margin-bottom: .35rem; display: flex; align-items: center; gap: .6rem; }
.plan__tag { font-size: 11px; font-weight: 600; color: #fff; background: var(--tp-primary); padding: .2rem .6rem; border-radius: 999px; letter-spacing: 0; }
.plan__desc { font-size: var(--fs-14); min-height: 3.2em; margin-bottom: 1.25rem; }
.plan__price { font-size: var(--fs-50); font-weight: 700; letter-spacing: -0.045em; color: var(--tp-ink); font-variant-numeric: tabular-nums; line-height: 1; }
.plan__price small { font-size: var(--fs-14); font-weight: 500; color: var(--tp-ink-3); letter-spacing: 0; margin-left: .15rem; }
.plan__trial { font-size: var(--fs-13); color: var(--tp-ink-3); margin: .6rem 0 0; }
.plan ul { list-style: none; padding: 1.5rem 0 0; margin: 1.5rem 0 2rem; display: grid; gap: .65rem; font-size: var(--fs-14); border-top: 1px solid var(--tp-line); }
.plan li { display: flex; gap: .65rem; color: var(--tp-ink); align-items: flex-start; }
.plan li i { color: var(--tp-success); margin-top: .3rem; font-size: 12px; }
.plan .btn { margin-top: auto; }
.plans-empty { padding: 2rem; border: 1px dashed var(--tp-line-2); border-radius: var(--r-lg); text-align: center; }

/* ---------- Preguntas frecuentes ---------------------------------------- */
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 992px) { .faq-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.faq details { border-bottom: 1px solid var(--tp-line); }
.faq details:first-child { border-top: 1px solid var(--tp-line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 600; font-size: var(--fs-16); position: relative; color: var(--tp-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .35rem; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--tp-ink-3); border-bottom: 1.5px solid var(--tp-ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 2rem 1.35rem 0; margin: 0; max-width: 64ch; font-size: var(--fs-14); line-height: 1.7; }

/* ---------- Llamado final ------------------------------------------------ */
.cta-final { padding: 2rem 0 6rem; }
.cta-final__box { background: var(--tp-dark); border-radius: var(--r-xl); padding: 3.5rem 2rem; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-final__box::before { content: ""; position: absolute; z-index: -1; inset: -40% 10% auto; height: 380px; background: radial-gradient(closest-side, rgba(37,99,235,.42), transparent); }
@media (min-width: 992px) { .cta-final__box { padding: 5rem 4rem; } }
.cta-final h2 { color: #fff; font-size: clamp(var(--fs-28), 3.6vw, var(--fs-50)); margin: 0 0 .9rem; }
.cta-final p { color: #A9B6CA; margin: 0 auto 2rem; font-size: var(--fs-18); max-width: 48ch; }

/* ---------- Pie de página ----------------------------------------------- */
.site-footer { background: var(--tp-dark); color: #8592A8; padding: 4.5rem 0 2rem; font-size: var(--fs-14); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 992px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .logo { color: #fff; --logo-bg: var(--tp-primary); }
.site-footer h4 { font-size: var(--fs-13); margin-bottom: 1rem; color: #E2E8F0; font-weight: 600; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: #8592A8; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #8592A8; }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 992px) { .site-footer__brand { grid-column: auto; } }
.site-footer__bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(148,163,184,.14); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: var(--fs-13); }

/* ---------- Páginas internas -------------------------------------------- */
.page-hero { padding: 5rem 0 2.5rem; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, var(--fs-50)); letter-spacing: -0.04em; max-width: 18ch; margin-bottom: 1.25rem; }
.page-hero p { font-size: var(--fs-18); max-width: 56ch; line-height: 1.65; }
.prose { max-width: 66ch; }
.prose p { font-size: var(--fs-18); line-height: 1.75; }
.values { display: grid; gap: 1rem; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values div { padding: 1.75rem; background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.values h4 { font-size: var(--fs-16); }
.values p { margin: 0; font-size: var(--fs-14); }
.feature-group { margin-bottom: 4rem; }
.feature-group > h3 { font-size: var(--fs-21); margin-bottom: 1.25rem; }
.feature-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 1.5rem; background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--r-md); }
.feature i { font-size: 15px; color: var(--tp-primary); margin-bottom: 1rem; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--tp-primary-050); display: grid; place-items: center; }
.feature h4 { font-size: var(--fs-16); margin-bottom: .35rem; }
.feature p { margin: 0; font-size: var(--fs-14); line-height: 1.6; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 992px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 5rem; } }
.panel { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--sh-2); }

/* ==========================================================================
   Autenticación
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--tp-white); }
@media (min-width: 992px) { .auth { grid-template-columns: minmax(480px, 1fr) 1fr; } }
.auth__form { padding: 1.75rem 1.5rem; display: flex; flex-direction: column; }
@media (min-width: 576px) { .auth__form { padding: 2rem 3rem; } }
.auth__inner { width: 100%; max-width: 400px; margin: auto; padding: 3rem 0; }
.auth__inner--wide { max-width: 540px; }
.auth h1 { font-size: var(--fs-28); letter-spacing: -0.035em; margin-bottom: .5rem; }
.auth__sub { margin-bottom: 2rem; font-size: var(--fs-14); }
.auth .btn-lg { font-size: var(--fs-14); padding: .75rem 1.2rem; }
.auth__aside { display: none; background: var(--tp-dark); color: #CBD5E1; padding: 3.5rem; position: relative; overflow: hidden; isolation: isolate; }
.auth__aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 70%); }
.auth__aside::after { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; left: -100px; top: 10%; background: radial-gradient(closest-side, rgba(37,99,235,.28), transparent); }
@media (min-width: 992px) { .auth__aside { display: flex; flex-direction: column; justify-content: center; } }
.auth__aside h2 { color: #fff; font-size: var(--fs-37); max-width: 15ch; margin-bottom: 2.5rem; letter-spacing: -0.04em; }
.auth-card { background: var(--tp-white); color: var(--tp-ink); border-radius: var(--r-lg); padding: 1.25rem; max-width: 400px; box-shadow: var(--sh-4); }
.auth-card + .auth-card { margin-top: -1rem; margin-left: 3.5rem; position: relative; }
.auth-card__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-card strong { font-weight: 600; }
.auth-card small { color: var(--tp-ink-3); font-size: var(--fs-12); }
.auth-quote { margin-top: 2.5rem; color: #8592A8; font-size: var(--fs-14); display: flex; gap: 1.5rem; flex-wrap: wrap; }
.auth-quote span { display: inline-flex; align-items: center; gap: .5rem; }
.auth-quote i { color: var(--tp-success); font-size: 12px; }
.auth__foot { font-size: var(--fs-13); color: var(--tp-ink-3); }
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--tp-ink-3); font-size: var(--fs-13); margin: 1.75rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--tp-line); }
.demo-box { background: var(--tp-primary-050); border: 1px solid #D6E2FD; border-radius: var(--r-md); padding: .85rem 1rem; font-size: var(--fs-13); color: #1E3A8A; display: flex; gap: .75rem; }
.demo-box i { margin-top: .2rem; }
.demo-box code { color: var(--tp-ink); font-weight: 700; background: none; font-size: var(--fs-13); font-family: inherit; }
.fieldset-title { font-size: var(--fs-13); font-weight: 600; color: var(--tp-ink-3); margin: 1.75rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--tp-line); }
.fieldset-title:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

/* WhatsApp de ventas: botón flotante y botón en Contacto */
.btn-wa { background: #fff; color: #128C4B; border: 1px solid #BDE8CF; }
.btn-wa:hover { background: #F0FBF4; color: #0E7A40; border-color: #94DBB2; }
.btn-wa i, .wa-flotante i { margin-right: .45rem; }
.btn-row-site { display: flex; flex-wrap: wrap; gap: .5rem; }
.wa-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: .1rem; padding: .7rem 1.05rem; border-radius: 999px;
  background: #1FAF5A; color: #fff; font-weight: 700; font-size: var(--fs-14); text-decoration: none; box-shadow: 0 10px 28px rgba(15,23,42,.25); }
.wa-flotante i { font-size: 20px; }
.wa-flotante:hover { background: #179A4E; color: #fff; }
@media (max-width: 575.98px) { .wa-flotante span { display: none; } .wa-flotante { padding: .85rem; } .wa-flotante i { margin: 0; font-size: 24px; } }
@media print { .wa-flotante { display: none; } }

/* Precios: lo que traen todos los planes */
.plans-todos { margin-top: 1.5rem; padding: 1.4rem 1.6rem; border: 1px solid var(--tp-line); border-radius: var(--r-lg); background: var(--tp-white); }
.plans-todos h3 { font-size: var(--fs-16); margin: 0 0 .9rem; }
.plans-todos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .plans-todos ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans-todos ul { grid-template-columns: repeat(3, 1fr); } }
.plans-todos li { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-14); color: var(--tp-ink-2); }
.plans-todos i { color: var(--tp-primary); width: 18px; text-align: center; margin-top: .2rem; }

/* Inicio: inspección con semáforo y recepción con firma */
.semaforo { display: grid; gap: .5rem; }
.semaforo > div { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: 10px; padding: .55rem .7rem; font-size: var(--fs-13); }
.semaforo small { color: var(--tp-ink-3); }
.semaforo .dot { width: 11px; height: 11px; border-radius: 50%; }
.semaforo .is-urgente { background: #DC2626; } .semaforo .is-pronto { background: #F59E0B; } .semaforo .is-ok { background: #10B981; }
.firma { display: grid; gap: .8rem; }
.firma small { display: block; color: var(--tp-ink-3); font-size: var(--fs-12); }
.firma__fuel > div { display: flex; gap: 4px; margin-top: .35rem; }
.firma__fuel i { flex: 1; height: 8px; border-radius: 4px; background: var(--tp-line); }
.firma__fuel i.on { background: var(--tp-primary); }
.firma__linea { background: var(--tp-white); border: 1px dashed var(--tp-line-2); border-radius: 10px; padding: .4rem .7rem .5rem; color: #1E293B; }
.firma__linea svg { width: 100%; height: 40px; display: block; }
.feature__plan { display: inline-block; vertical-align: middle; margin-left: .35rem; font-size: 11px; font-weight: 700; color: var(--tp-primary-600); background: var(--tp-primary-050); border-radius: 999px; padding: .1rem .5rem; letter-spacing: 0; }

/* Términos y privacidad */
.legal { max-width: 74ch; }
.legal h2 { font-size: var(--fs-20, 1.25rem); margin: 2rem 0 .6rem; letter-spacing: -.01em; }
.legal p, .legal li { font-size: var(--fs-16); line-height: 1.7; color: var(--tp-ink-2); }
.legal ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .35rem; }
