/* Página de venta. Paleta de la marca Zuma: marino para el texto, las acciones
   y los bloques oscuros; verde menta (el «+» del logo) para los acentos. */
:root {
  --navy: #0a2135;
  --navy-2: #0e3351;
  --blue: #0e3351;
  --blue-dark: #0a2135;
  --sky: #34d399;
  --sky-soft: #e3f7ee;
  --ink: #141e26;
  --muted: #5f6d79;
  --line: #d9e1e8;
  --soft: #f5f7f9;
  --radius: 20px;
  --shadow: 0 1px 2px #0a21350a, 0 12px 32px #0e335114;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; margin: 0; letter-spacing: -.025em; color: var(--navy); }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; max-width: 760px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.kicker {
  display: inline-block; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
  background: var(--sky-soft); color: var(--blue-dark);
  font: 700 11px 'Plus Jakarta Sans', sans-serif; letter-spacing: .1em;
}
.lead { font-size: 18px; color: var(--muted); }

/* ---- botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #34d39999; outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--blue), #164a73); color: #fff; box-shadow: 0 8px 22px #0e335140; }
.btn-primary:hover { box-shadow: 0 12px 28px #0e335155; }
.btn-outline { border-color: #ccd8e1; color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-sky { background: var(--sky); color: var(--navy); }

/* ---- barra superior ---- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: #ffffffcc; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #d9e1e899;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand b, .brand small { display: block; line-height: 1.25; }
.brand b { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--navy); }
.brand small { color: var(--muted); font-size: 11px; }
.brand .wordmark { font-size: 18px; letter-spacing: -.02em; }
.mark { display: block; flex: none; width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 16px #0e335140; }
.menu { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.menu a:not(.btn) { color: #3c4954; text-decoration: none; }
.menu a:not(.btn):hover { color: var(--blue); }
.menu .btn { padding: 10px 18px; font-size: 14px; }
.menu-toggle { display: none; border: 0; background: none; color: var(--navy); font-size: 22px; cursor: pointer; }

/* ---- portada ---- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; padding: 88px 0 104px;
  background:
    radial-gradient(60% 70% at 88% 10%, #bdeed8 0%, transparent 60%),
    radial-gradient(45% 55% at 5% 0%, #dfe8ee 0%, transparent 65%),
    linear-gradient(180deg, #f5f7f9 0%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(34px, 3.9vw, 48px); line-height: 1.03; letter-spacing: -.045em; font-weight: 800; }
.hero h1 i {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue) 10%, var(--sky) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* La frase clave va dentro del h1 (buscadores) con el aspecto de la etiqueta de siempre. */
.hero h1 .kicker { display: table; text-transform: uppercase; line-height: 1.6; }
.hero-tagline { margin-top: 22px; font: 700 20px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.01em; color: var(--navy); }
.hero .lead { margin: 10px 0 32px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #3c4954; font-size: 14px; }
.hero-trust li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--sky); vertical-align: 2px; }
.hero-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; color: #3c4954; font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sky-soft); color: var(--blue); font-size: 11px; font-weight: 800; flex: none;
}

.invoice-mock {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px;
  box-shadow: 0 40px 90px #0e33512e, 0 2px 6px #0a21350f; font-size: 13px;
}
.invoice-mock::before {
  content: ""; position: absolute; inset: 28px -22px -22px 28px; z-index: -1; border-radius: 28px;
  background: linear-gradient(135deg, var(--blue), var(--sky)); opacity: .22; filter: blur(2px);
}
.hero-grid > * { min-width: 0; }
/* Miniatura del PDF real que genera el portal (backend/src/printable.js). */
.invoice-mock { padding: 24px; font-size: 11px; line-height: 1.45; color: var(--ink); }
.invoice-mock small { display: block; font-size: 8.5px; letter-spacing: .08em; color: #818b94; }
.invoice-mock span { display: block; }
.pdf-muted { color: var(--muted); font-size: 9.5px; }
.pdf-head { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pdf-issuer { display: block; font-size: 15px; font-weight: 600; color: var(--blue); }
.pdf-rut { font-size: 11.5px; margin: 2px 0; }
.pdf-rut small { display: inline; }
.pdf-doc { text-align: right; }
.pdf-doc b { display: block; font-size: 17px; font-weight: 600; color: var(--blue); line-height: 1.2; }
.pdf-serie { font-size: 12px; margin: 2px 0; }
.pdf-receiver { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid #cfdbe4; border-radius: 9px; }
.pdf-receiver b { display: block; font-size: 12.5px; font-weight: 600; }
.pdf-buyer { flex: none; padding: 9px 16px; border: 1.5px solid #adc0cf; border-radius: 7px; text-align: center; }
.pdf-buyer b { font-size: 14px; font-weight: 500; color: var(--blue); }
.pdf-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; padding: 9px 4px; background: #f1f4f2; border-radius: 6px; }
.pdf-meta div { padding: 0 10px; border-left: 1px solid #d7ddd9; }
.pdf-meta div:first-child { border-left: 0; }
.pdf-table { margin-top: 12px; border-bottom: 1px solid #cfdbe4; }
.pdf-row { display: grid; grid-template-columns: 1fr 34px 42px 58px 62px; gap: 6px; padding: 7px 10px; text-align: right; }
.pdf-row span:first-child { text-align: left; }
.pdf-row:nth-child(odd) { background: #f5f7f6; }
.pdf-row.pdf-th { background: var(--blue); color: #fff; font-size: 8.5px; letter-spacing: .06em; border-radius: 6px 6px 0 0; }
.pdf-row:not(.pdf-th) span:nth-child(2) { color: var(--muted); }
.pdf-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: 12px; }
.pdf-verify { display: flex; align-items: flex-start; gap: 10px; }
.pdf-qr { flex: none; width: 54px; height: 54px; }
.pdf-totals { flex: 0 1 216px; font-size: 10px; }
.pdf-totals > div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.pdf-totals .pdf-total { margin-top: 7px; padding: 10px 12px; align-items: center; background: var(--blue); color: #fff; border-radius: 7px; letter-spacing: .04em; }
.pdf-total b { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.invoice-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 5px 10px; border-radius: 999px; background: #e0f5ec; color: #14724b; font: 700 9.5px 'Plus Jakarta Sans', sans-serif; }
.invoice-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #1fa56c; box-shadow: 0 0 0 4px #1fa56c2e; }

/* ---- portada oscura de la marca: marino, verde menta y el «+» del logo ---- */
.hero {
  padding: 96px 0 124px; color: #fff;
  background:
    radial-gradient(48% 62% at 82% 18%, #34d39938 0%, transparent 62%),
    radial-gradient(42% 55% at 8% 100%, #164a7399 0%, transparent 70%),
    linear-gradient(160deg, #0a2135 0%, #0e3351 58%, #10405f 100%);
}
/* Trama de «+» que se desvanece: la marca como textura. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cpath d='M23 18v10M18 23h10' stroke='%2334d399' stroke-opacity='.18' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(65% 75% at 75% 35%, #000 0%, transparent 78%);
  mask-image: radial-gradient(65% 75% at 75% 35%, #000 0%, transparent 78%);
}
.hero h1 { color: #fff; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; }
.hero h1 i { background: linear-gradient(100deg, #34d399 0%, #a7f3d0 100%); -webkit-background-clip: text; background-clip: text; }
.hero h1 .kicker { background: #34d3991f; color: #a7f3d0; border: 1px solid #34d39940; margin-bottom: 22px; }
.hero .lead { color: #c3d2de; font-size: 19px; max-width: 540px; margin: 24px 0 36px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 6px 16px 6px 6px;
  border: 1px solid #ffffff26; border-radius: 999px; background: #ffffff0f;
  color: #e3f7ee; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s;
}
.hero-badge:hover { background: #ffffff1a; border-color: #34d39980; }
.hero-badge-plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 800; font-size: 17px; line-height: 1; }
.btn-lg { padding: 16px 28px; font-size: 16px; gap: 8px; }
.hero .btn-sky { box-shadow: 0 12px 32px #34d39950; }
.hero .btn-sky:hover { box-shadow: 0 16px 40px #34d39970; background: #4ade9f; }
.hero .btn-ghost { border-color: #ffffff40; color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; background: #ffffff0d; }
.hero-trust { color: #c3d2de; margin-top: 26px; }

.hero-visual { position: relative; perspective: 1800px; }
.hero .invoice-mock {
  border-color: transparent; transform: rotateY(-9deg) rotateX(3deg); transform-origin: 60% 50%;
  box-shadow: 0 60px 120px #00000066, 0 0 0 1px #ffffff1f;
}
/* El resplandor va en el contenedor: con transform, un ::before de la factura quedaría sobre su fondo. */
.hero .invoice-mock::before { content: none; }
.hero-visual::before {
  content: ""; position: absolute; inset: 40px -30px -30px 40px; border-radius: 32px;
  background: linear-gradient(135deg, #34d399, #164a73); opacity: .45; filter: blur(40px);
}
.hero .invoice-mock { position: relative; }
.hero-toast {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 16px; background: #fff; box-shadow: 0 20px 44px #0a213559, 0 2px 6px #0a213526; font-size: 13px; line-height: 1.3;
  animation: toast-in .7s cubic-bezier(.2, .8, .2, 1) both, toast-float 7s ease-in-out infinite;
}
.hero-toast b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--navy); font-size: 14px; }
.hero-toast span { display: block; color: var(--muted); font-size: 12px; }
.toast-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--sky-soft); color: #14724b; font-style: normal; font-weight: 800; }
.toast-plus { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--sky); color: var(--navy); font: 800 22px/1 'Plus Jakarta Sans', sans-serif; font-style: normal; }
.toast-dgi { top: -22px; left: -38px; animation-delay: .5s, 1.3s; }
.toast-mail { bottom: -26px; left: -30px; animation-delay: 1.3s, 2.1s; }
.toast-sum { top: 34%; right: -40px; background: #0a2135; box-shadow: 0 20px 44px #00000066, 0 0 0 1px #34d39966; animation-delay: 2.1s, 2.9s; }
.toast-sum b { color: #fff; font-size: 18px; }
.toast-sum span { color: #a7f3d0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes toast-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---- menú: separador antes de «Ingresar» ---- */
.menu-sep { width: 1px; height: 22px; background: var(--line); }
.menu a.menu-login { color: var(--navy); font-weight: 600; }

@media (max-width: 1080px) {
  .menu { gap: 22px; }
}
@media (max-width: 900px) {
  .hero { padding: 64px 0 88px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero .invoice-mock { transform: none; }
  .toast-dgi { left: -8px; }
  .toast-mail { left: -8px; bottom: -24px; }
  .toast-sum { right: -8px; }
  .menu-sep { display: none; }
}
@media (max-width: 620px) {
  .hero .lead { font-size: 17px; }
  .hero-actions .btn-lg { flex: 1 1 100%; }
  .hero-toast { padding: 9px 12px 9px 9px; }
  .toast-mail { display: none; }
  .toast-dgi { top: -26px; }
  .toast-sum { top: auto; bottom: -24px; right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-toast { animation: none; }
}

/* ---- secciones ---- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-lead { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 640px; }

.section-head { display: grid; justify-items: center; text-align: center; }
.section-head h2 { max-width: 720px; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ---- franja de garantías bajo la portada ---- */
.trust-strip { background: #fff; border-block: 1px solid var(--line); padding: 30px 0; }
.trust-grid { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-grid li { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.trust-ico { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sky-soft); color: var(--navy); }
.trust-ico svg { width: 20px; height: 20px; }
.trust-grid b { font: 700 15px 'Plus Jakarta Sans', sans-serif; color: var(--navy); letter-spacing: -.01em; }
.trust-grid span:not(.trust-ico) { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ---- avisos del portal: el miedo a quedar frenado ---- */
.alerts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.alert-stack { list-style: none; padding: 10px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.alert-stack li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; }
.alert-stack li:nth-child(odd) { background: var(--soft); }
.alert-stack i { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: #d9a441; box-shadow: 0 0 0 4px #fbf0dc; }
.alert-stack b { display: block; font: 700 15px 'Plus Jakarta Sans', sans-serif; color: var(--navy); }
.alert-stack span { color: var(--muted); font-size: 14px; }
.demo-cta { display: flex; justify-content: center; margin-top: 28px; }

/* ---- por qué Zuma: texto corrido en tres momentos, sin tarjetas ---- */
.why-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px 64px; align-items: start; }
.why-text { display: grid; gap: 14px; color: #3c4954; font-size: 17px; line-height: 1.7; }
.why-perks { list-style: none; padding: 32px 0 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--line); }
.why-perks li { display: grid; gap: 6px; align-content: start; }
.why-perks b { font: 800 26px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.03em; color: var(--blue); }
.why-perks span { color: var(--muted); font-size: 15px; }

/* ---- producto: réplica del listado «Mis comprobantes» del portal (mismos colores y textos) ---- */
.product-shots { margin-top: 48px; display: grid; gap: 18px; }
.product-shot { display: block; width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 40px 90px #0e335124; }
.pm {
  display: grid; grid-template-columns: 220px 1fr; overflow: hidden; border-radius: 18px; background: #f5f8f9;
  border: 1px solid #d9e5e8; box-shadow: 0 40px 90px #0a3b4426; font: 12px/1.5 Inter, system-ui, sans-serif; color: #1f383c; text-align: left;
}
.pm-side { background: linear-gradient(180deg, #0f3554 0%, #09273f 100%); padding: 20px 14px; display: grid; align-content: start; gap: 2px; }
.pm-logo { display: flex; align-items: center; gap: 10px; padding: 0 6px 20px; }
.pm-logo img { border-radius: 10px; box-shadow: 0 0 0 1px #ffffff2e; }
.pm-logo b, .pm-logo small { display: block; line-height: 1.3; }
.pm-logo b { font: 800 15px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.03em; color: #fff; }
.pm-logo small { font-size: 10px; color: #a5c0c4; }
.pm-side p { margin: 14px 10px 6px; color: #92b1b7; font: 700 9px Inter, sans-serif; letter-spacing: .16em; }
.pm-nav { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: #b7d0d5; font-weight: 600; white-space: nowrap; }
.pm-nav svg { width: 16px; height: 16px; flex: none; }
.pm-nav.on { background: #ffffff24; color: #fff; box-shadow: inset 3px 0 #34d399; }
.pm-main { min-width: 0; }
.pm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 64px; padding: 0 24px; background: #fff; box-shadow: 0 2px 12px #0c384006; }
.pm-top small { display: block; color: #6d8084; font-size: 9px; letter-spacing: .12em; }
.pm-top b { display: block; font: 700 17px 'Plus Jakarta Sans', sans-serif; color: #162c30; }
.pm-user { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 11px; color: #162c30; white-space: nowrap; }
.pm-user i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e8f1f3; color: #0e4751; font-style: normal; font-weight: 800; }
.pm-body { display: grid; gap: 14px; padding: 18px 20px 22px; }
.pm-card { background: #fff; border: 1px solid #d9e5e8; border-radius: 14px; box-shadow: 0 8px 30px #0c30360b; }
.pm-filters { padding: 16px 18px 18px; }
.pm-filters-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pm-filters-head small { display: block; color: #6d8286; font: 700 9px 'Plus Jakarta Sans', sans-serif; letter-spacing: .12em; }
.pm-filters-head b { display: block; font: 700 17px 'Plus Jakarta Sans', sans-serif; color: #152d32; }
.pm-btn { padding: 9px 14px; border-radius: 9px; background: #0e4751; color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.pm-fields { display: grid; grid-template-columns: 1.8fr .6fr .8fr 1.2fr 1.2fr; gap: 10px; margin-top: 14px; }
.pm-fields label { display: grid; gap: 5px; color: #425a5e; font-size: 10px; font-weight: 700; min-width: 0; }
.pm-fields span { height: 34px; padding: 8px 10px; border: 1px solid #cad8db; border-radius: 9px; background: #fff; color: #6d8185; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-table { overflow: hidden; }
.pm-row { display: grid; grid-template-columns: 1.25fr .45fr .55fr 1.6fr .95fr .85fr 1.15fr; gap: 10px; align-items: center; padding: 11px 16px; border-top: 1px solid #e5edef; }
.pm-row > span { min-width: 0; }
.pm-th { border-top: 0; background: #f6f9fa; color: #61787c; font: 800 9px 'Plus Jakarta Sans', sans-serif; letter-spacing: .08em; }
.pm-type { font: 700 12px 'Plus Jakarta Sans', sans-serif; color: #1e3c41; }
.pm-series { font: 800 14px 'Plus Jakarta Sans', sans-serif; color: #214c54; }
.pm-num { font-weight: 700; color: #142326; }
.pm-recv, .pm-total b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-row small { display: block; color: #6d8185; font-size: 9.5px; }
.pm-total b { font-weight: 700; }
.pm-badge { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #e6f4ea; color: #276948; font: 700 9.5px 'Plus Jakarta Sans', sans-serif; font-style: normal; white-space: nowrap; }
.pm-date { color: #5c7073; white-space: nowrap; }

/* ---- demo interactiva (landing/demo.js) ---- */
.pm-demo .pm-main { position: relative; display: flex; flex-direction: column; height: 620px; }
.pm-demo .pm-body { flex: 1; overflow: auto; align-content: start; }
:where(.pm-demo) button { font: inherit; cursor: pointer; }
.pm-demo .pm-nav { border: 0; background: none; text-align: left; width: 100%; font-weight: 600; }
.pm-demo .pm-nav:hover { background: #ffffff17; color: #fff; }
.pm-demo .pm-nav.on { background: #ffffff24; color: #fff; box-shadow: inset 3px 0 #34d399; }
.pm-demo .pm-nav[data-soon] { opacity: .55; }
.pm-tabs { display: none; }
/* Marca de agua: deja claro que es una demo sin tapar los controles. */
.pm-demo-mark {
  position: absolute; left: 50%; top: 55%; z-index: 2; transform: translate(-50%, -50%) rotate(-22deg);
  font: 800 clamp(70px, 13vw, 150px) 'Plus Jakarta Sans', sans-serif; letter-spacing: .14em;
  color: #0e475112; pointer-events: none; user-select: none; white-space: nowrap;
}
.pm-demo .pm-btn { border: 0; }
.pm-demo .pm-btn:hover, .pm-emit:hover { filter: brightness(1.08); }
.pm-demo input, .pm-demo select {
  width: 100%; height: 36px; padding: 7px 10px; border: 1px solid #cad8db; border-radius: 9px; background: #fff;
  color: #142326; font: 400 12px Inter, system-ui, sans-serif;
}
.pm-demo input:focus, .pm-demo select:focus { outline: 3px solid #6ee7b766; border-color: #729344; }
.pm-fields-docs { grid-template-columns: 1.6fr 1fr 1fr; }
.pm-fields-2 { grid-template-columns: 1fr 1fr; }
.pm-fields-1 { grid-template-columns: 1fr; }
.pm-row-btn { width: 100%; border: 0; border-top: 1px solid #e5edef; background: #fff; color: inherit; text-align: left; }
.pm-row-btn:hover { background: #f6faf9; }
.pm-empty { padding: 26px; text-align: center; color: #6d8185; }
.pm-badge.wait { background: #f9eedb; color: #a66b18; }
.pm-badge.off { background: #ecf0f1; color: #627376; }
.pm-crow, .pm-prow { display: grid; gap: 10px; align-items: center; padding: 11px 16px; border-top: 1px solid #e5edef; }
.pm-crow { grid-template-columns: 1.5fr 1fr 1.6fr .9fr .6fr; }
.pm-prow { grid-template-columns: .6fr .7fr 1.5fr .9fr .9fr .7fr .6fr; }
.pm-crow.pm-th, .pm-prow.pm-th { border-top: 0; background: #f6f9fa; color: #61787c; font: 800 9px 'Plus Jakarta Sans', sans-serif; letter-spacing: .08em; }
.pm-crow > span, .pm-prow > span { min-width: 0; }
.pm-strong { font-weight: 700; color: #1e3c41; }
.pm-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-mini { padding: 6px 10px; border: 1px solid #d5e0e3; border-radius: 7px; background: #fff; color: #0f4a54; font-size: 11px; font-weight: 700; }
.pm-soft { padding: 8px 12px; border: 0; border-radius: 8px; background: #ecf3f4; color: #0f4a54; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pm-remove { border: 0; background: none; color: #b5473d; font-size: 18px; }
.pm-remove:disabled { opacity: .3; cursor: default; }
/* Nuevo comprobante: selector de tipo (pantalla «billing» del portal). */
.pm-bintro small { color: #6d8286; font: 700 9px 'Plus Jakarta Sans', sans-serif; letter-spacing: .12em; }
.pm-bintro h4 { margin: 4px 0 0; font: 700 21px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; color: #162c30; }
.pm-bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.pm-bcol { display: grid; gap: 8px; align-content: start; }
.pm-bcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid #d9e5e8; border-radius: 14px; background: #fff; color: inherit; text-align: left; }
.pm-bcard:hover { border-color: #9cc3ca; box-shadow: 0 8px 24px #0c30360f; }
.pm-bicon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #e8f3f5; color: #0e4751; }
.pm-bicon svg { width: 18px; height: 18px; }
.pm-btext { flex: 1; min-width: 0; }
.pm-btext b, .pm-btext small { display: block; }
.pm-btext b { font: 700 13px 'Plus Jakarta Sans', sans-serif; color: #162c30; }
.pm-bcol > .pm-bcard:first-child .pm-btext b { font-size: 15px; }
.pm-btext small { color: #5f7579; font-size: 10.5px; }
.pm-bcard code { padding: 3px 7px; border-radius: 6px; background: #f0f4f5; color: #5f7579; font: 700 10px 'Plus Jakarta Sans', sans-serif; }
.pm-bgroup { margin: 4px 0 0 2px; color: #6d8286; font: 700 9px 'Plus Jakarta Sans', sans-serif; letter-spacing: .12em; }

/* Nuevo comprobante: formulario (#page-new del portal). */
.pm-new { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 14px; align-items: start; }
.pm-newcol { display: grid; gap: 14px; min-width: 0; }
.pm-panel { padding: 18px; }
.pm-billbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; background: #e8f3f5; }
.pm-billbar small, .pm-billbar b, .pm-billbar span { display: block; }
.pm-billbar small { color: #5f7579; font-size: 9px; letter-spacing: .08em; }
.pm-billbar b { font: 700 15px 'Plus Jakarta Sans', sans-serif; color: #0a2e35; }
.pm-billbar span { color: #5f7579; font-size: 11px; }
.pm-billbar .pm-soft { background: #f2f7f8; }
.pm-final { margin-top: 12px; }
.pm-quick { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.pm-quick label, .pm-panel label { display: grid; gap: 5px; align-content: start; color: #425a5e; font-size: 10.5px; font-weight: 700; min-width: 0; }
.pm-quick select { font-weight: 700; }
.pm-hint { color: #5f7579; font-size: 10px; font-weight: 400; }
.pm-combo { position: relative; display: flex; min-width: 0; }
.pm-combo input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.pm-quick .pm-combo input { font-weight: 700; }
.pm-picker, .pm-create { flex: none; width: 34px; height: 36px; border: 1px solid #cad8db; border-left: 0; background: #fff; }
.pm-picker { position: relative; border-radius: 0 9px 9px 0; }
.pm-picker::after { content: ""; position: absolute; left: 12px; top: 13px; width: 7px; height: 7px; border: solid #425a5e; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pm-picker:disabled { opacity: .5; }
.pm-create { background: #f6f9fa; color: #106675; font: 800 16px 'Plus Jakarta Sans', sans-serif; }
.pm-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; display: grid; max-height: 190px; overflow: auto; padding: 4px; border: 1px solid #d5e1e4; border-radius: 10px; background: #fff; box-shadow: 0 14px 35px #0e2f3426; }
.pm-menu[hidden] { display: none; }
.pm-opt { display: grid; gap: 1px; padding: 8px 11px; border: 0; border-radius: 7px; background: #fff; color: #1b353a; text-align: left; }
.pm-opt:hover { background: #f2f7f8; }
.pm-opt strong { font-size: 11.5px; }
.pm-opt span { color: #5f767a; font-size: 10.5px; }
.pm-opt-create { color: #106675; font-weight: 700; border-top: 1px solid #ecf1f2; border-radius: 0 0 7px 7px; }
.pm-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pm-panel-head small { display: block; color: #6d8286; font: 700 9px 'Plus Jakarta Sans', sans-serif; letter-spacing: .12em; }
.pm-panel-head b { display: block; font: 700 17px 'Plus Jakarta Sans', sans-serif; color: #152d32; }
.pm-ihead, .pm-irow { display: grid; grid-template-columns: minmax(0, 2.2fr) .7fr .9fr 1.5fr 26px; gap: 8px; align-items: center; }
.pm-ihead { margin-top: 14px; color: #60777b; font: 700 9.5px 'Plus Jakarta Sans', sans-serif; }
.pm-irow { padding: 11px 0; border-top: 1px solid #ecf1f2; margin-top: 6px; }
.pm-irow > * { min-width: 0; }
.pm-comment { grid-column: 1 / -1; width: 100%; min-height: 50px; padding: 8px 10px; border: 1px solid #d2dee1; border-radius: 9px; background: #fbfcfc; color: #142326; font: 11.5px/1.4 Inter, system-ui, sans-serif; resize: vertical; }
.pm-adenda { margin-top: 6px; }
.pm-adenda + .pm-comment { margin-top: 8px; }
.pm-draft { width: 100%; min-height: 36px; margin-top: 8px; border: 0; border-radius: 8px; background: #f2f7f8; color: #0e4751; font-weight: 700; }
.pm-summary { position: sticky; top: 0; padding: 18px; border-radius: 12px; background: #0f3e47; color: #fff; }
.pm-summary small { color: #a5c0c4; font: 700 9px 'Plus Jakarta Sans', sans-serif; letter-spacing: .12em; }
.pm-summary h5 { margin: 4px 0 10px; font: 700 15px 'Plus Jakarta Sans', sans-serif; }
.pm-summary [data-sum] div { display: flex; justify-content: space-between; padding: 7px 0; color: #b3cace; }
.pm-summary [data-sum] b { color: #fff; }
.pm-summary [data-sum] .grand { margin-top: 6px; padding-top: 12px; border-top: 1px solid #ffffff20; font-size: 15px; }
.pm-emit { width: 100%; min-height: 42px; margin-top: 12px; border: 0; border-radius: 9px; background: #34d399; color: #0a2e35; font-weight: 800; }
.pm-summary p { margin-top: 10px; color: #6d8286; font: 700 9.5px/1.5 'Plus Jakarta Sans', sans-serif; }
.pm-summary .pm-err { color: #ffb4ab; font-size: 11px; }
.pm-err { color: #b5473d; font-size: 11px; }
.pm-err:empty { display: none; }
.pm-toast {
  position: absolute; right: 18px; bottom: 18px; z-index: 3; max-width: 360px; padding: 12px 16px; border-radius: 10px;
  background: #0f3e47; color: #fff; font-size: 12px; box-shadow: 0 12px 30px #09282d40;
  opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none;
}
.pm-toast.show { opacity: 1; transform: none; }
.pm-overlay { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: #0b2c3266; }
.pm-overlay[hidden] { display: none; }
.pm-dialog { position: relative; width: min(520px, 100%); max-height: 100%; overflow: auto; padding: 22px; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px #09282d44; }
.pm-dialog h4 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 6px; font: 700 17px 'Plus Jakarta Sans', sans-serif; color: #152d32; }
.pm-kicker { color: #6d8286; font: 700 9px 'Plus Jakarta Sans', sans-serif; letter-spacing: .12em; }
.pm-x { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #ecf3f4; color: #0f4a54; font-size: 17px; line-height: 1; }
.pm-meta { color: #6d8185; }
.pm-lines { margin-top: 14px; border: 1px solid #e5edef; border-radius: 10px; overflow: hidden; }
.pm-line { display: grid; grid-template-columns: 1.6fr .5fr 1fr .5fr 1fr; gap: 8px; padding: 9px 12px; border-top: 1px solid #e5edef; }
.pm-line.pm-th { border-top: 0; background: #f6f9fa; color: #61787c; font: 800 9px 'Plus Jakarta Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.pm-dtotal { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border-radius: 9px; background: #f1f6f7; color: #5c7073; }
.pm-dtotal b { color: #142326; font-size: 14px; }
.pm-dactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pm-dactions:empty { display: none; }
.pm-pdf-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; }
.pm-pdf-link svg { width: 15px; height: 15px; }
.pm-void { padding: 9px 13px; border: 1px solid #efc9c3; border-radius: 8px; background: #fff; color: #a43f36; font-size: 11px; font-weight: 700; }
.pm-void:hover { background: #fdf3f1; }
.pm-alert { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #d9a441; border-radius: 6px; background: #fdf6e7; color: #7a5310; font-size: 11.5px; }
.pm-alert[hidden] { display: none; }
.pm-dialog.wide { width: min(700px, 100%); padding: 18px; background: #eef3f5; }
.pm-pdf-bar { display: flex; align-items: center; gap: 12px; margin: 0 34px 12px 0; color: #5f7579; font-size: 11px; }
.pm-pdf { position: relative; overflow: hidden; box-shadow: 0 10px 30px #0c303614; }
.pm-pdf::before { display: none; }
.pm-pdf .pdf-verify > div { display: grid; gap: 2px; }
.pm-pdf .pdf-totals { flex-basis: 250px; }
.pm-watermark { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); color: #0e335112; font: 800 86px 'Plus Jakarta Sans', sans-serif; letter-spacing: .1em; pointer-events: none; }
.pdf-note { margin-top: 8px; color: var(--muted); font-size: 9px; }
.pdf-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8.5px; text-align: center; }
.pm-dform { display: grid; gap: 12px; margin-top: 12px; }
.pm-dform label { display: grid; gap: 5px; color: #425a5e; font-size: 10px; font-weight: 700; }
.pm-dform .pm-fields { margin-top: 0; }
.pm-inline { display: flex; gap: 8px; }
.pm-dform .pm-check { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pm-check input { width: 16px; height: 16px; }
.pm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pm-actions .pm-soft, .pm-actions .pm-btn { padding: 10px 16px; font-size: 12px; }
.pm-note { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px; }
.pm-note b { color: var(--navy); }

/* ---- cómo funciona ---- */
.how { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.steps-line { position: relative; list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.steps-line::before { content: ""; position: absolute; top: 44px; left: 16.6%; right: 16.6%; border-top: 2px dashed #c2d3de; }
.steps-line li { position: relative; display: grid; justify-items: center; gap: 8px; }
.step-ico { position: relative; display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 12px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--blue); box-shadow: 0 16px 40px #0e33511f; }
.step-ico svg { width: 36px; height: 36px; }
.step-ico i { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 13px 'Plus Jakarta Sans', sans-serif; font-style: normal; box-shadow: 0 0 0 4px #fff; }
.steps-line h3 { font-size: 19px; }
.steps-line p { max-width: 280px; color: var(--muted); font-size: 15px; }

.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 64px; padding: 36px 40px; border-radius: 24px; color: #fff;
  background: radial-gradient(60% 120% at 100% 0%, #34d39955 0%, transparent 60%), linear-gradient(135deg, var(--blue), #0a2135);
  box-shadow: 0 30px 70px #0e335140;
}
.cta-band h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.cta-band p { margin-top: 6px; color: #dfe8ee; font-size: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 22px #0a213533; }
.btn-ghost { border-color: #ffffff66; color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.pm-cta { margin-top: 6px; text-align: center; font-size: 15px; color: var(--navy); font-weight: 600; }
.pm-cta a { color: var(--blue); text-decoration: none; }
.pm-cta a:hover { text-decoration: underline; }

/* ---- planes ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 40px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px; background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.featured {
  background: linear-gradient(160deg, var(--navy-2), var(--navy)); border-color: transparent;
  box-shadow: 0 24px 60px #0a213540;
}
.plan.featured, .plan.featured h3 { color: #fff; }
.plan-tag {
  position: absolute; top: -12px; left: 26px; padding: 5px 12px; border-radius: 999px;
  background: var(--sky); color: var(--navy); font: 800 10px 'Plus Jakarta Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
.plan h3 { font-size: 20px; }
.plan-audience { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 44px; }
.plan-price { margin-top: 18px; font-family: 'Plus Jakarta Sans', sans-serif; white-space: nowrap; }
.plan-price b { font-size: 36px; font-weight: 800; letter-spacing: -.035em; }
.plan-price span { color: var(--muted); font-size: 14px; font-weight: 600; }
.plan-month { color: var(--muted); font-size: 13px; }
.plan .btn { margin-top: auto; }
.plan-month { margin-top: 4px; color: var(--muted); font-size: 13px; }
.plan-month s { opacity: .7; }
.plan-save { align-self: flex-start; margin-top: 10px; padding: 5px 11px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 13px; font-weight: 700; }
.plan.featured .plan-save { background: #34d39933; color: #bdeed8; }
.plan-docs { margin: 20px 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); color: var(--navy); font-size: 15px; font-weight: 600; }
.plan-docs b { font: 800 24px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; color: var(--blue-dark); }
.plan.featured .plan-docs { background: #ffffff12; border-color: #ffffff22; color: #fff; }
.plan.featured .plan-docs b { color: var(--sky); }
/* Lo que incluyen todos los planes, una sola vez arriba de las tarjetas. */
.plans-included { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-top: 30px; font-size: 14px; color: #3c4954; }
.plans-included > span { font-weight: 600; color: var(--navy); }
.plans-included ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.plans-included li { position: relative; padding-left: 26px; }
.plans-included li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 18px; height: 18px;
  border-radius: 50%; background: var(--sky-soft); color: var(--blue); font-size: 10px; font-weight: 800;
}

.billing-toggle { display: inline-flex; gap: 4px; margin-top: 26px; padding: 5px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.billing-toggle[hidden] { display: none; }
.billing-toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 999px; background: none; color: #3c4954; font-weight: 600; font-size: 14px; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px #0a21351a; }
.billing-toggle em { padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-style: normal; font-size: 12px; font-weight: 700; }

.plan.featured .plan-audience, .plan.featured .plan-price span, .plan.featured .plan-month { color: #adc0cf; }

.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid #ccd8e1;
  color: var(--navy); font-size: 13px; font-weight: 600;
}
.chips li::before { content: none; }
.cfe-title { margin-top: 28px; }
.fine-print { color: var(--muted); font-size: 13px; margin-top: 18px; }
.plans-custom { margin-top: 26px; text-align: center; color: #3c4954; font-size: 15px; }
.plans-custom b { color: var(--navy); }
.plans-custom a { color: var(--navy); font-weight: 600; }

/* ---- preguntas ---- */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: #c2d3de; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--sky-soft); color: var(--blue); font-size: 18px; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; font-size: 15px; }

/* ---- contacto ---- */
.contact {
  color: #fff;
  background:
    radial-gradient(50% 70% at 90% 0%, #0e335166 0%, transparent 65%),
    radial-gradient(40% 60% at 0% 100%, #34d39933 0%, transparent 65%),
    var(--navy);
}
.contact h2 { color: #fff; }
.contact .kicker { background: #ffffff1a; color: #bdeed8; }
.contact .lead { color: #b7c8d6; margin-top: 16px; }
.cta { text-align: center; display: grid; justify-items: center; }
.cta h2 { max-width: 680px; }
.cta .lead { max-width: 560px; }
.cta .hero-actions { margin-top: 30px; justify-content: center; }
.contact-direct { margin-top: 26px; font-size: 15px; color: #b7c8d6; }
.contact-direct:empty { display: none; }
.contact-direct a { color: var(--sky); font-weight: 600; }
.grid.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-message { font-size: 14px; color: #14724b; min-height: 22px; }
.form-message.error { color: #b3372d; }

/* ---- solicitud (carrito) ---- */
.cart-page { background: var(--soft); }
.back-link { color: #3c4954; font-size: 14px; font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--blue); }
.cart { padding: 28px 0 72px; }
.cart-intro h1 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.04em; }
.cart-intro .lead { margin-top: 6px; max-width: 620px; font-size: 17px; }
.cart-points { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: 24px; }
.cart-steps { display: grid; gap: 16px; }
.cart-card { min-width: 0; margin: 0; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; display: grid; gap: 14px; }
.cart-card legend, .card-title {
  float: left; width: 100%; padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 12px;
  font: 700 18px 'Plus Jakarta Sans', sans-serif; color: var(--navy);
}
.cart-card legend + * { clear: both; }
.card-title { float: none; width: auto; margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Forma de pago como interruptor Mensual / Anual. */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.seg .option { padding: 8px 16px; border: 0; border-radius: 999px; gap: 0; }
.seg .option input { position: absolute; opacity: 0; pointer-events: none; }
.seg .option:has(input:checked) { background: #fff; box-shadow: 0 2px 8px #0a21351a; }
.seg .option-text b { font-size: 14px; }
.seg .option-text small, .seg .option-price { display: none; }
.seg .option-text em { background: #dcfce7; color: #166534; }

/* Planes como fichas en una fila. */
.tiles { grid-template-columns: repeat(3, 1fr); }
.tiles .option { position: relative; display: grid; align-content: start; gap: 4px; padding: 16px; }
.tiles .option input { position: absolute; top: 16px; right: 16px; }
.tiles .option-text b { font-size: 16px; }
.tiles .option-text em { display: inline-block; margin: 0 0 0 6px; vertical-align: 2px; font-size: 10px; }
.tiles .option-price { order: -1; margin: 22px 0 0; text-align: left; order: 2; font-size: 20px; }
.tiles .option-price small { font-size: 11px; }
.tiles .option-text small { font-weight: 600; color: #3c4954; }
.cart-card legend span, .card-title span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; font-size: 13px; font-weight: 800;
}
.cart-card > label { display: grid; gap: 7px; color: #3c4954; font-size: 13px; font-weight: 600; }
.cart-card .grid.two label { display: grid; gap: 7px; color: #3c4954; font-size: 13px; font-weight: 600; }
.cart-card input:not([type=radio]), .cart-card textarea {
  width: 100%; border: 1px solid #d5dee6; border-radius: 12px; padding: 12px 14px; background: #f8fafb; color: var(--ink); font-weight: 400; font-size: 15px;
}
.cart-card textarea { resize: vertical; }
.cart-card input:not([type=radio]):focus, .cart-card textarea:focus { outline: 3px solid #34d39955; border-color: var(--blue); background: #fff; }

.options { display: grid; gap: 10px; }
.options.two { grid-template-columns: repeat(2, 1fr); }
.option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .15s, background .15s;
}
.option:hover { border-color: #c2d3de; }
.option:has(input:checked) { border-color: var(--blue); background: #effaf5; }
.option:has(input:focus-visible) { outline: 3px solid #34d39999; outline-offset: 2px; }
.option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.option-text { flex: 1; min-width: 0; }
.option-text b { display: block; font: 700 15px 'Plus Jakarta Sans', sans-serif; color: var(--navy); }
.option-text em { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 11px Inter, sans-serif; }
.option-text small { display: block; color: var(--muted); font-size: 13px; }
.option-price { font: 700 15px 'Plus Jakarta Sans', sans-serif; color: var(--navy); white-space: nowrap; text-align: right; }
.option-price small { display: block; font: 600 12px Inter, sans-serif; color: #14724b; }

.summary {
  position: sticky; top: 96px; padding: 28px; border-radius: 24px; color: #fff; display: grid; gap: 18px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy)); box-shadow: 0 24px 60px #0a213540;
}
.summary h2 { color: #fff; font-size: 20px; }
.summary-plan b { display: block; font: 700 17px 'Plus Jakarta Sans', sans-serif; }
.summary-plan small { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #ffffff12; border: 1px solid #ffffff22; color: #fff; font-size: 15px; font-weight: 600; }
.summary-plan small b { display: inline; font: 800 26px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; color: var(--sky); }
.summary dl { margin: 0; padding: 16px 0; display: grid; gap: 10px; border-top: 1px solid #ffffff22; border-bottom: 1px solid #ffffff22; font-size: 14px; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; color: #d5e2ea; }
.summary dd { margin: 0; white-space: nowrap; font-weight: 600; color: #fff; }
.summary dl .discount dd { color: var(--sky); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; color: #d5e2ea; }
.summary-total b { font: 800 30px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.summary-note { color: #adc0cf; font-size: 13px; }
.summary .form-message { color: #8fe3bd; min-height: 0; }
.summary .btn { width: 100%; min-height: 52px; font-size: 16px; }
.summary-free { margin-top: -8px; text-align: center; color: #d5e2ea; font-size: 13px; font-weight: 600; }
.summary-next { padding-top: 16px; border-top: 1px solid #ffffff22; }
.summary-next h3 { color: #fff; font-size: 14px; }
.summary-next ol { list-style: none; counter-reset: next; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.summary-next li { counter-increment: next; position: relative; padding-left: 30px; color: #d5e2ea; font-size: 13px; }
.summary-next li::before {
  content: counter(next); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: #ffffff1f; color: var(--sky); font: 800 11px 'Plus Jakarta Sans', sans-serif;
}
.option-text em.featured, .option-text em { white-space: nowrap; }
.mobile-bar { display: none; }
.summary .form-message.error { color: #ffb4ab; }

.data-dialog {
  width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  border: 0; border-radius: 24px; padding: 32px; color: var(--ink); box-shadow: 0 40px 100px #0a213555;
}
.data-dialog::backdrop { background: #0a213599; backdrop-filter: blur(3px); }
.data-dialog form { display: grid; gap: 16px; }
.data-dialog h2 { font-size: 24px; }
.data-dialog label { display: grid; gap: 7px; color: #3c4954; font-size: 13px; font-weight: 600; }
.data-dialog input, .data-dialog textarea, .data-dialog select {
  width: 100%; border: 1px solid #d5dee6; border-radius: 12px; padding: 12px 14px; background: #f8fafb; color: var(--ink); font-weight: 400; font-size: 15px;
}
.data-dialog select { background: #fff; font-family: inherit; cursor: pointer; }
.data-dialog textarea { resize: vertical; }
.data-dialog input:focus, .data-dialog textarea:focus, .data-dialog select:focus { outline: 3px solid #34d39955; border-color: var(--blue); background: #fff; }
.data-dialog .form-message { min-height: 0; }
.data-dialog .btn:disabled { opacity: .6; cursor: default; transform: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dialog-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--soft); color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer;
}
.dialog-close:hover { background: var(--sky-soft); }
.dialog-done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 12px 0; }
.dialog-done[hidden], .data-dialog form[hidden] { display: none; }
.dialog-done p { color: var(--muted); max-width: 420px; }

@media (max-width: 900px) {
  .cart { padding: 36px 0 64px; }
  .cart-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-page { padding-bottom: 84px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px #0a21351a;
  }
  .mobile-bar small { display: block; color: var(--muted); font-size: 12px; }
  .mobile-bar b { font: 800 22px 'Plus Jakarta Sans', sans-serif; color: var(--navy); }
  .mobile-bar .btn { padding: 12px 18px; }
}
@media (max-width: 620px) {
  .options.two, .tiles { grid-template-columns: 1fr; }
  .tiles .option-price { margin-top: 4px; }
  .cart-card { padding: 22px 18px; }
  .back-link { font-size: 13px; }
}


/* ---- preguntas frecuentes: selección en la portada y página completa ---- */
.faq-more { margin-top: 28px; text-align: center; }
.faq-group .faq { margin-top: 16px; }
.guide .faq-group h2 { margin-top: 44px; }

/* ---- guías ---- */
.guide-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.guide-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-list a {
  display: grid; align-content: start; gap: 8px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.guide-list a:hover { border-color: #c2d3de; box-shadow: var(--shadow); transform: translateY(-1px); }
.guide-list b { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--navy); font-size: 17px; line-height: 1.3; }
.guide-list span { color: var(--muted); font-size: 15px; }
.guide { padding: 48px 0 88px; }
.guide h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.04em; }
.guide h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 48px 0 14px; scroll-margin-top: 90px; }
.guide p, .guide li { font-size: 17px; color: #2e3b46; }
.guide p + p, .guide ul + p, .guide ol + p, .guide .guide-table + p { margin-top: 14px; }
.guide ul, .guide ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.guide .lead { margin-top: 18px; color: var(--muted); }
.guide a:not(.btn) { color: var(--blue); text-underline-offset: 3px; }
.guide .guide-date { margin-top: 12px; font-size: 14px; color: var(--muted); }
.crumbs { display: flex; gap: 8px; margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.guide .crumbs a { color: var(--muted); text-decoration: none; }
.guide .crumbs a:hover { color: var(--blue); }
.guide-toc { margin-top: 32px; padding: 20px 24px; background: var(--soft); border-radius: 16px; }
.guide-toc b { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--navy); }
.guide .guide-toc ol { margin-top: 10px; gap: 4px; }
.guide .guide-toc li { font-size: 15px; }
.guide-steps li::marker { font-weight: 700; color: var(--navy); }
.guide-table { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-table th, .guide-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead th { background: var(--soft); color: var(--navy); font-family: 'Plus Jakarta Sans', sans-serif; }
.guide-table tr:last-child > * { border-bottom: 0; }
.guide-table tbody th { color: var(--navy); white-space: nowrap; }
.guide .guide-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.guide-more { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.guide .guide-more h2 { margin: 0 0 6px; }
.guide .guide-more ul, .guide .guide-list { list-style: none; padding: 0; }

.footer { background: var(--navy); color: #9fb0bd; font-size: 13px; padding: 44px 0 28px; border-top: 1px solid #ffffff14; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; padding-bottom: 30px; }
.footer-brand { max-width: 380px; }
.footer-brand p { margin-top: 14px; line-height: 1.6; }
.footer-email { display: inline-block; margin-top: 8px; color: var(--sky); font-weight: 600; text-decoration: none; }
.footer-email:hover { text-decoration: underline; }
.footer .brand .wordmark { color: #fff; }
.footer .brand small { color: #9fb0bd; }
.footer .mark { box-shadow: 0 0 0 1px #ffffff2e; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 14px; font-weight: 500; }
.footer-links a { color: #ccd8e1; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid #ffffff14; }
.footer b { color: #fff; }
.invoice-mock .invoice-brand { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 600; }
.invoice-brand img { border-radius: 5px; }
.done-logo { border-radius: 16px; box-shadow: 0 10px 24px #0e335140; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .why-intro { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .alerts-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-perks { grid-template-columns: 1fr 1fr; }
  .steps-line { grid-template-columns: 1fr; gap: 36px; }
  .steps-line::before { display: none; }
  .cta-band { padding: 28px 24px; }
  .pm { grid-template-columns: 1fr; }
  .pm-side { display: none; }
  .pm-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; background: #0a3b44; }
  .pm-tabs button { flex: none; padding: 7px 12px; border: 0; border-radius: 999px; background: #ffffff17; color: #b7d0d5; font-size: 11px; font-weight: 700; }
  .pm-tabs button.on { background: #6ee7b7; color: #09373f; }
  .pm-summary { position: static; }
  .pm-new { grid-template-columns: 1fr; }
  .pm-prow { grid-template-columns: 1.5fr .9fr .7fr .6fr; }
  .pm-prow > span:nth-child(1), .pm-prow > span:nth-child(2), .pm-prow > span:nth-child(5) { display: none; }
  .pm-row { grid-template-columns: 1.3fr .5fr .6fr 1.6fr 1fr .9fr; }
  .pm-row > span:nth-child(7) { display: none; }
  .section { padding: 64px 0; }
  .menu-toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 14px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px #0a21351a;
  }
  .menu.open { display: flex; }
  .guide-cards { grid-template-columns: 1fr; }
  /* En las guías el menú es corto: queda siempre a la vista, sin botón ☰. */
  .menu.guide-menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 16px; padding: 0; border: 0; box-shadow: none; background: none; }
  .menu.guide-menu a:not(.btn) { padding: 0; }
  .menu.guide-menu .btn { margin-top: 0; }
  .menu.guide-menu .btn { white-space: nowrap; padding: 9px 16px; }
  .menu a:not(.btn) { padding: 10px 0; }
  .menu .btn { margin-top: 8px; }
}

@media (max-width: 620px) {
  .menu.guide-menu a[href="/#planes"] { display: none; }
  .grid.two, .plans { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .plans-included { justify-content: flex-start; }
  .plans-included ul { justify-content: flex-start; }
  .pm-fields { grid-template-columns: 1fr 1fr; }
  .pm-fields-docs, .pm-fields-2 { grid-template-columns: 1fr; }
  .pm-demo .pm-main { height: 600px; }
  .pm-crow { grid-template-columns: 1.4fr .6fr; }
  .pm-crow > span:nth-child(2), .pm-crow > span:nth-child(3), .pm-crow > span:nth-child(4) { display: none; }
  .pm-prow { grid-template-columns: 1.4fr .8fr .6fr; }
  .pm-prow > span:nth-child(6) { display: none; }
  .pm-line { grid-template-columns: 1.5fr .4fr 1fr; }
  .pm-line > span:nth-child(3), .pm-line > span:nth-child(4) { display: none; }
  .pm-toast { left: 12px; right: 12px; bottom: 12px; }
  .pm-bgrid, .pm-quick { grid-template-columns: 1fr; }
  .pm-ihead { display: none; }
  .pm-irow { grid-template-columns: 1fr 1fr 26px; }
  .pm-irow > .pm-combo { grid-column: 1 / -1; }
  .pm-irow > select { grid-column: 1 / 3; }
  .pm-fields label:first-child { grid-column: 1 / -1; }
  .pm-filters-head { flex-direction: column; align-items: flex-start; }
  .pm-top { padding: 0 16px; }
  .pm-user { display: none; }
  .pm-body { padding: 14px 12px 16px; }
  .pm-row { grid-template-columns: 1.4fr 1fr .9fr; }
  .pm-row > span:nth-child(2), .pm-row > span:nth-child(3), .pm-row > span:nth-child(4) { display: none; }
  .plan-audience { min-height: 0; }
  .invoice-mock::before { inset: 20px -8px -14px 16px; }
  .invoice-mock { padding: 18px 16px; }
  .pdf-receiver { padding: 10px; }
  .pdf-buyer { padding: 7px 9px; }
  .pdf-buyer b { font-size: 12px; }
  .pdf-row { grid-template-columns: 1fr 30px 38px 60px; padding: 7px 8px; }
  .pdf-row span:nth-child(4) { display: none; }
  .pdf-bottom { flex-direction: column-reverse; align-items: stretch; }
  .pdf-totals { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .plan { transition: none; }
}
