/* Páginas de cada sistema (/software-para-...). Se suma a site.css. */
.hd-cta { padding: .6rem 1.1rem; font-size: .95rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .92rem; color: var(--muted); margin-bottom: 1.75rem; }
.crumbs a { color: var(--muted); }
.ps-hero { background: var(--sky); padding: 2.5rem 0 4rem; border-bottom: 1px solid var(--line); }
.ps-hero-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .ps-hero-grid { grid-template-columns: 1.4fr 1fr; } }
.ps-ic { width: 3.25rem; height: 3.25rem; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--teal-text); border: 1px solid var(--line); }
.ps-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.05; letter-spacing: -.025em; margin: 1.1rem 0 1rem; max-width: 18ch; }
.ps-lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin: 0; }
.ps-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.ps-price { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 1.75rem; box-shadow: 0 30px 60px -40px rgba(14, 42, 71, .45); }
.ps-from, .ps-per { display: block; color: var(--muted); font-weight: 600; }
.ps-price strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 2.15rem); line-height: 1.05; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ps-price ul { list-style: none; padding: 1.1rem 0 0; margin: 1.1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.ps-price li { padding-left: 1.6rem; position: relative; color: var(--text); font-size: .98rem; }
.ps-price li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .95rem; height: .55rem; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }

.ps-sec { padding: 4.5rem 0; }
.ps-alt { background: var(--sky); }
.ps-sec h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; }
.ps-sub { color: var(--muted); margin: 0 0 2rem; max-width: 60ch; }
.ps-hl { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 700px) { .ps-hl { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .ps-hl { grid-template-columns: repeat(4, 1fr); } }
.ps-hl article { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.ps-hl h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0 0 .4rem; }
.ps-hl p { margin: 0; color: var(--muted); }

.ps-groups { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .ps-groups { grid-template-columns: repeat(2, 1fr); } }
.ps-group { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.5rem; }
.ps-group h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0 0 .75rem; }
.ps-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ps-group li b { display: block; color: var(--ink); font-size: 1.08rem; }
.ps-group li span { color: var(--muted); font-size: .95rem; }
.ps-note { color: var(--muted); font-size: .92rem; margin: 1.5rem 0 0; }

.ps-steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .ps-steps { grid-template-columns: repeat(4, 1fr); } }
.ps-steps li { counter-increment: s; }
.ps-steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand-grad); color: #fff; font-weight: 800; margin-bottom: .8rem; }
.ps-steps b { display: block; font-family: var(--display); font-size: 1.15rem; }
.ps-steps span { color: var(--muted); }

.ps-faq-wrap { max-width: 50rem; }
.ps-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
.ps-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.ps-faq p { margin: .7rem 0 0; color: var(--text); }

.ps-cta { background: var(--deep); color: #fff; border-radius: 26px; padding: clamp(1.75rem, 5vw, 3rem); text-align: center; }
.ps-cta h2 { color: #fff; }
.ps-cta p { color: rgba(255, 255, 255, .8); margin: 0 0 1.5rem; }
.ps-more-h { margin-top: 3.5rem !important; font-size: 1.5rem !important; }
.ps-more { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.ps-more a { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); }
.ps-more a:hover { border-color: var(--teal); }
@media (max-width: 520px) { .hd .back { display: none; } }

/* Captura del sistema */
.ps-shot-sec { padding: 0 0 1rem; margin-top: -2.5rem; }

/* Precio: base + ejemplo, y armado de cada función */
.ps-base-note { margin: .9rem 0 0; color: var(--muted); font-size: .95rem; }
.ps-base-note b { color: var(--ink); }
.ps-example { margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--sky); border: 1px solid var(--line); }
.ps-ex-h { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-text); }
.ps-example p { margin: .35rem 0 .7rem; font-weight: 600; color: var(--ink); font-size: .95rem; }
.ps-example dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ps-example dt { font-size: .82rem; color: var(--muted); }
.ps-example dd { margin: .1rem 0 0; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.ps-example small { display: block; margin-top: .6rem; color: var(--muted); font-size: .82rem; }
.ps-see { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--teal-text); text-decoration: underline; text-underline-offset: 3px; }
.ps-base-box { margin: 0 0 1.25rem; padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--sky); border: 1px solid var(--line); }
.ps-base-box h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0 0 .8rem; }
.ps-base-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem 1.5rem; }
@media (min-width: 800px) { .ps-base-box ul { grid-template-columns: repeat(2, 1fr); } }
.ps-base-box li { position: relative; padding-left: 1.5rem; color: var(--ink); font-size: .95rem; }
.ps-base-box li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .9rem; height: .5rem; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.ps-fd { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }
.ps-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.ps-group li .ps-tag { font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--sky); color: var(--ink); border: 1px solid var(--line); }
.ps-group li .ps-tag-m { background: rgba(234, 88, 12, .1); color: var(--warn, #C2410C); border-color: transparent; }
.ps-group li .ps-tag-s { background: rgba(19, 156, 151, .12); color: #086B67; border-color: transparent; }
[data-theme="dark"] .ps-group li .ps-tag-s { color: var(--teal-text); }

/* Desglose del ejemplo */
.ps-ex-rows { margin: .55rem 0 .8rem; padding-bottom: .7rem; border-bottom: 1px dashed var(--line); display: grid; gap: .35rem; }
.ps-ex-rows div { display: flex; justify-content: space-between; gap: .75rem; font-size: .9rem; color: var(--ink); }
.ps-ex-rows small { color: var(--muted); font-size: .8rem; }
.ps-ex-rows b { white-space: nowrap; font-weight: 700; }
.ps-example .ps-ex-warn { margin: .75rem 0 0; font-weight: 400; font-size: .88rem; color: var(--ink); }

/* Vista en computador y celular */
.ps-devices { position: relative; margin: 0; padding: 0 4% 0 0; }
.ps-laptop { max-width: 92%; }
.ps-screen { background: #10161f; border-radius: 18px 18px 0 0; padding: 2.2% 2.2% 2.6%; box-shadow: 0 40px 80px -50px rgba(14, 42, 71, .6); }
.ps-screen img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; }
.ps-base { height: clamp(10px, 1.6vw, 20px); margin: 0 -4%; background: linear-gradient(#d9dee5, #aab2bd); border-radius: 0 0 14px 14px; position: relative; }
.ps-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 40%; transform: translateX(-50%); background: #c3c9d1; border-radius: 0 0 8px 8px; }
.ps-phone { position: absolute; right: 0; bottom: -6%; width: 22%; min-width: 120px; aspect-ratio: 9 / 19; background: #10161f; border-radius: 26px; padding: 3.2% 1.6%; box-shadow: 0 30px 60px -30px rgba(14, 42, 71, .7); overflow: hidden; }
.ps-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; background: #fff; }
.ps-devices figcaption { margin-top: 2.6rem; font-size: .9rem; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .ps-devices { padding: 0; }
  .ps-laptop { max-width: 100%; }
  .ps-phone { width: 30%; min-width: 0; border-radius: 18px; bottom: auto; top: 12vw; }
  .ps-phone img { border-radius: 12px; }
  .ps-devices figcaption { margin-top: calc(12vw + 1.2rem); }
}

/* Galería */
.ps-gl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.4rem; }
.ps-gl figure { margin: 0; }
.ps-gl a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 20px 40px -32px rgba(14, 42, 71, .55); transition: transform .2s ease; }
.ps-gl a:hover, .ps-gl a:focus-visible { transform: translateY(-3px); }
.ps-gl img { display: block; width: 100%; height: auto; }
.ps-gl figcaption { margin-top: .6rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) { .ps-gl { grid-template-columns: 1fr; } }
.ps-lb { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; }
.ps-lb::backdrop { background: rgba(8, 14, 22, .85); }
.ps-lb img { display: block; max-width: 100%; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; }
.ps-lb p { margin: .7rem 0 0; color: #fff; text-align: center; font-size: .95rem; }
.ps-lb-x { position: absolute; top: .5rem; right: .5rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ps-gl a { transition: none; } }

@media (max-width: 420px) { .hd-cta { padding: .55rem .85rem; font-size: .88rem; } }
/* Video corto del sistema */
.ps-video-sec { padding: 7rem 0 1rem; }
.ps-video-sec h2 { margin: 0 0 .6rem; }
.ps-video-sec .wrap { max-width: 60rem; }
.ps-video-sec h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.ps-video { margin-top: 1.5rem; border-radius: 18px; overflow: hidden; background: #050F1A; box-shadow: 0 30px 60px -30px rgba(14, 42, 71, .55); aspect-ratio: 16 / 9; }
.ps-video video { display: block; width: 100%; height: 100%; }
/* Foto del tipo de negocio en el encabezado */
.ps-photo { display: block; width: 100%; max-width: 36rem; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 2rem; border-radius: 20px; box-shadow: 0 30px 60px -32px rgba(14, 42, 71, .55); }
/* Calculadora: casilla en cada función y resumen fijo al pie mientras se recorre la lista */
.ps-pick { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.ps-pick input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex-shrink: 0; accent-color: var(--teal); cursor: pointer; }
.ps-group li { padding: .55rem .6rem; margin: 0 -.6rem; border-radius: 12px; transition: background-color .15s; }
.ps-group li.on { background: color-mix(in srgb, var(--teal) 9%, transparent); }
.ps-group li .ps-fd, .ps-group li .ps-req, .ps-group li .ps-tags { margin-left: 1.75rem; }
.ps-req { margin: .3rem 0 0; font-size: .85rem; font-weight: 600; color: var(--ink-2, var(--ink)); }
.ps-req::before { content: "↳ "; color: var(--teal-text); }
.ps-group li .ps-tag-x { background: #FFF4E5; color: #8A4B00; border-color: #F5D7A8; }
[data-theme="dark"] .ps-group li .ps-tag-x { background: rgba(251, 146, 60, .14); color: #FDBA74; border-color: rgba(251, 146, 60, .35); }
.ps-calc { position: sticky; bottom: .75rem; z-index: 20; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-radius: 18px; background: var(--paper); border: 1.5px solid var(--teal); box-shadow: 0 20px 40px -24px rgba(14, 42, 71, .55); }
.ps-calc-main { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem; }
.ps-calc-h { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.ps-calc-n { font-size: .9rem; color: var(--muted); }
.ps-calc dl { display: flex; gap: 1.5rem; margin: 0; }
.ps-calc dl div { display: flex; flex-direction: column; }
.ps-calc dt { font-size: .8rem; color: var(--muted); }
.ps-calc dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--teal-text); line-height: 1.1; }
.ps-calc dl small { font-size: .78rem; color: var(--muted); }
.ps-calc-note { flex-basis: 100%; font-size: .78rem; color: var(--muted); }
.ps-calc-act { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.ps-calc-reset { font: inherit; font-size: .88rem; font-weight: 600; color: var(--teal-text); background: none; border: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) { .ps-calc { bottom: .4rem; padding: .8rem .9rem; } .ps-calc-note { display: none; } .ps-calc-act .btn { width: 100%; justify-content: center; } }
/* Menú compartido del sitio (src/partials/header.html): igual que en el inicio y fijo arriba al bajar, también en el celular */
.hd { position: sticky; top: 0; z-index: 50; background: var(--hd-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.scrolled { border-bottom-color: var(--line); }
.hd nav { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.hd .logo, .hd .nav-links a, .hd .mobile a { color: var(--ink); text-decoration: none; }
.nav-links { display: none; gap: 2rem; font-weight: 500; font-size: .95rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; padding: .25rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: none; padding: .65rem 1.25rem; font-size: .92rem; }
.burger { padding: .5rem; color: var(--ink); background: none; border: 0; cursor: pointer; }
.mobile { display: none; border-top: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; max-height: calc(100vh - 4.25rem); overflow-y: auto; }
.mobile.open { display: block; }
.mobile a { display: block; padding: .8rem 0; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.mobile a[aria-current="page"] { color: var(--teal-text); }
.hd-right { gap: .6rem; }
@media (min-width: 880px) { .nav-links, .nav-cta { display: flex; } .burger { display: none; } .mobile.open { display: none; } }
/* El resumen de la calculadora queda por debajo del menú fijo */
.ps-calc { z-index: 20; }
/* Los enlaces internos (#funciones, #video) no quedan tapados por el menú fijo */
section[id], div[id] { scroll-margin-top: 5rem; }
.nav-cta { white-space: nowrap; }
@media (min-width: 880px) and (max-width: 1180px) { .nav-links { gap: 1.1rem; font-size: .9rem; } .nav-cta { padding: .6rem 1rem; font-size: .86rem; } .hd .logo { font-size: 1.45rem; } .hd .logo svg { width: 36px; } }
@media (min-width: 880px) and (max-width: 1000px) { .nav-links li:has(a[href="/soporte/"]) { display: none; } }
/* Plan único: funciones incluidas, sin casilla */
.ps-group li.ps-inc .ps-fd, .ps-group li.ps-inc .ps-tags { margin-left: 0; }
