/* Kit de Control para Micronegocios — hoja de estilos propia.
   Sin frameworks, sin recursos de terceros. Compatible con la CSP de la tienda
   (style-src 'self': no hay estilos en línea en ningún HTML).
   También da estilo a las clases que usan las páginas dinámicas del Worker de la tienda
   (src/html.js): skip-link, site-header, brand, nav, container, section, lead, callout,
   callout warn, download-box, actions, btn, btn-primary, btn-secondary, btn-lg, estado,
   estado error, muted, small, form-field, site-footer. */

/* ---------- Fuente (alojada aquí mismo, licencia OFL en /fonts/) ---------- */
@font-face {
  font-family: "Jakarta";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --paper-2: #efe9dc;
  --card: #ffffff;
  --ink: #102320;
  --ink-2: #3f514c;
  --ink-3: #56665f;
  --line: #ddd5c4;
  --line-2: #e8e1d2;
  --teal-950: #062724;
  --teal-900: #08302c;
  --teal-800: #0b3e39;
  --teal-700: #0e4f48;
  --teal-600: #146158;
  --teal-500: #1d7a6e;
  --teal-100: #d9ece6;
  --teal-50: #edf6f2;
  --gold-600: #c98a12;
  --gold-500: #f2b33d;
  --gold-400: #f6c460;
  --gold-100: #fcebc3;
  --gold-50: #fff7e3;
  --gold-ink: #2e1f00;
  --ok: #17693f;
  --ok-bg: #e2f3e8;
  --alert: #a8231a;
  --alert-bg: #fde6e2;
  --xl-green: #1d6b45;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgb(16 35 32 / .06), 0 2px 8px rgb(16 35 32 / .05);
  --shadow: 0 2px 4px rgb(16 35 32 / .04), 0 14px 34px -14px rgb(16 35 32 / .24);
  --shadow-lg: 0 34px 70px -26px rgb(4 30 27 / .55), 0 14px 28px -16px rgb(4 30 27 / .35);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.3rem + 3.9vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 750; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 750; }
a { color: var(--teal-600); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
code, kbd { font-family: var(--mono); font-size: .95em; background: var(--paper-2); padding: .1em .35em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-400); }
::selection { background: var(--gold-100); color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -200px; z-index: 100;
  background: var(--gold-500); color: var(--gold-ink); font-weight: 750;
  padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Estado de la venta: <html data-venta="pronto"> hoy; data-venta="activa" con cobro. */
[data-venta="pronto"] .solo-venta { display: none !important; }
[data-venta="activa"] .solo-pronto { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(6 39 36 / .94);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  color: #fff;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgb(6 39 36 / .84); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.0625rem; letter-spacing: -.015em;
}
.brand:hover { color: #fff; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand small { display: block; font-weight: 600; font-size: .8125rem; color: rgb(255 255 255 / .7); letter-spacing: 0; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav li { margin: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: rgb(255 255 255 / .86); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.nav a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
.nav .nav-cta a { background: var(--gold-500); color: var(--gold-ink); font-weight: 750; padding: 0 16px; margin-left: 6px; }
.nav .nav-cta a:hover { background: var(--gold-400); color: var(--gold-ink); }
@media (max-width: 879px) {
  .nav--landing .nav-extra { display: none; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 22px; border-radius: 12px;
  border: 1.5px solid transparent; font: inherit; font-weight: 750; font-size: 1.0625rem; line-height: 1.25;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 6px 16px -8px rgb(14 79 72 / .7); }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-accent { background: var(--gold-500); color: var(--gold-ink); box-shadow: 0 8px 20px -10px rgb(201 138 18 / .9), inset 0 -2px 0 rgb(0 0 0 / .08); }
.btn-accent:hover { background: var(--gold-400); color: var(--gold-ink); }
.btn-secondary { background: var(--card); color: var(--teal-800); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--teal-600); color: var(--teal-900); background: var(--card); }
.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .38); }
.btn-ghost:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .7); color: #fff; }
.btn-lg { min-height: 58px; padding: 15px 26px; font-size: 1.125rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed; transform: none; box-shadow: none;
  background: var(--teal-50); color: var(--teal-800); border: 1.5px dashed var(--teal-500);
}
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.5rem 0; }
.actions > form { margin: 0; }
.estado { min-height: 1.5em; margin: .75rem 0 0; font-weight: 600; color: var(--teal-800); }
.estado:empty { min-height: 0; margin: 0; }
.estado.error { color: var(--alert); }

/* ---------- Textos de apoyo ---------- */
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 1rem; font-weight: 750; letter-spacing: .01em; color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--gold-500); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #e6f1ed;
  background:
    radial-gradient(900px 520px at 88% -8%, rgb(242 179 61 / .17), transparent 62%),
    radial-gradient(820px 520px at -12% 108%, rgb(46 170 148 / .2), transparent 62%),
    linear-gradient(180deg, var(--teal-900) 0%, #093833 100%);
  padding: 44px 0 72px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 64px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .5) 45%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .5) 45%, transparent 90%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .kicker { display: block; color: var(--gold-400); }
.hero .lead { color: rgb(230 241 237 / .88); max-width: 36em; margin-bottom: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px 7px 10px;
  border-radius: 999px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14);
  color: #e6f1ed; font-size: 1rem; font-weight: 650;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgb(242 179 61 / .2); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-actions .btn { width: 100%; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgb(230 241 237 / .85); font-size: 1rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.hero-points .icon { color: var(--gold-400); stroke-width: 2.6; width: 1.1em; height: 1.1em; }
@media (min-width: 560px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
}
@media (min-width: 980px) {
  .hero { padding: 76px 0 108px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 56px; }
}

/* ---------- Maqueta del Excel (ilustración con datos ficticios) ---------- */
.mock { margin: 0; position: relative; }
.mock-stage { position: relative; }
.mock-win {
  background: #fff; color: #1d2b28; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgb(255 255 255 / .5);
  font-size: 12px; line-height: 1.35;
}
.mock-bar { display: flex; align-items: center; gap: 10px; background: var(--xl-green); color: #fff; padding: 9px 12px; font-weight: 650; font-size: 12px; }
.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .45); }
.mock-file { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-formula {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f8faf9; border-bottom: 1px solid #e1e6e3;
  font-family: var(--mono); font-size: 11px; color: #3d4b47; white-space: nowrap; overflow: hidden;
}
.mock-formula b { font-family: var(--font); font-style: italic; font-weight: 800; color: #6c7b76; }
.mock-formula span { overflow: hidden; text-overflow: ellipsis; }
.mock-cell { background: #fff; border: 1px solid #d7ddda; border-radius: 4px; padding: 0 6px; font-family: var(--font); font-weight: 700; color: #3d4b47; }
.mock-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.mock-table th, .mock-table td { padding: 7px 8px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #edf0ee; }
.mock-table th { background: #f1f4f2; color: #41514c; font-weight: 750; font-size: 11px; border-bottom-color: #dfe5e2; }
.mock-table .rn { width: 26px; padding: 7px 0; text-align: center; color: #86958f; background: #f6f8f7; font-weight: 600; border-right: 1px solid #e6ebe8; }
.mock-table .num { text-align: right; }
.mock-table .pos { color: var(--ok); font-weight: 700; }
.mock-table tr.sel td:not(.rn) { background: #f2f8f4; }
.mock-table tr.sel td.hit { box-shadow: inset 0 0 0 2px var(--xl-green); background: #fff; }
.chip { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-alert { background: #d92d20; color: #fff; }
.mock-tabs { display: flex; gap: 2px; padding: 0 6px; background: #f1f4f2; border-top: 1px solid #dfe5e2; overflow: hidden; font-size: 11px; }
.mock-tabs span { padding: 7px 9px; color: #56655f; white-space: nowrap; }
.mock-tabs .on { background: #fff; color: var(--xl-green); font-weight: 800; box-shadow: inset 0 2px 0 var(--xl-green); }
.mock-kpi {
  position: relative; margin: -26px 8px 0 auto; width: min(74%, 270px);
  background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 16px 12px;
  box-shadow: var(--shadow-lg); border: 1px solid #e7ece9;
}
.mock-kpi-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11.5px; color: #5b6b66; font-weight: 700; }
.mock-kpi-top em { font-style: normal; color: var(--xl-green); background: #e6f3ec; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; }
.mock-kpi-label { margin: 8px 0 0; font-size: 12px; color: #5b6b66; font-weight: 650; }
.mock-kpi-value { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mock-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; height: 54px; margin-top: 10px; }
.mock-bars span { display: block; border-radius: 5px 5px 2px 2px; background: #cfe3db; }
.mock-bars .b1 { height: 58%; }
.mock-bars .b2 { height: 74%; }
.mock-bars .b3 { height: 100%; background: var(--teal-600); }
.mock-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 5px; font-size: 10.5px; color: #6a7a74; text-align: center; font-weight: 650; }
.mock-note {
  margin: 14px 0 0; display: flex; align-items: center; gap: 8px;
  font-size: 1rem; color: rgb(230 241 237 / .78);
}
.mock-note .icon { color: var(--gold-400); }
.mock--light .mock-note { color: var(--ink-3); }
.mock--light .mock-note .icon { color: var(--teal-600); }
.mock-table .w-fecha { width: 56px; }
.mock-table .w-cant { width: 48px; }
.mock-table .w-money { width: 68px; }
.mock-table .w-stock { width: 50px; }
.mock-table .w-min { width: 44px; }
.mock-table .w-margen { width: 62px; }
.mock-table .w-estado { width: 100px; }
.col-opt, .col-opt-sm { display: none; }
@media (min-width: 400px) { .col-opt-sm { display: table-cell; } }
@media (min-width: 440px) { .col-opt { display: table-cell; } }
@media (min-width: 980px) {
  .mock-stage { padding-bottom: 96px; }
  .mock-kpi { position: absolute; right: -24px; bottom: 0; margin: 0; }
}

/* ---------- Franja de confianza ---------- */
.trust { background: var(--card); border-bottom: 1px solid var(--line-2); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.trust li { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 1rem; line-height: 1.35; color: var(--ink); }
@media (min-width: 560px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; } }
.trust-text { display: grid; gap: 2px; }
.trust-text strong { font-weight: 750; }
.trust-text span { color: var(--ink-3); font-weight: 500; }
.ico-badge { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); }
.ico-badge .icon { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 28px 0; gap: 24px; }
}

/* ---------- Plantilla gratis ---------- */
.free-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 980px) { .free-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 64px; } }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; margin: 0; }
.feature-list h3 { margin: 2px 0 4px; }
.feature-list p { margin: 0; color: var(--ink-2); }
.free-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.free-cta p { margin: 0; color: var(--ink-3); font-size: 1rem; }
@media (max-width: 559px) { .free-cta .btn { width: 100%; } }
.mock--light .mock-win { border-color: var(--line); box-shadow: var(--shadow); }
.mock--light .mock-stage { padding-bottom: 0; }

/* ---------- Tarjetas de módulos del kit ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .card { padding: 26px; } }
.card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-2); }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.card ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.card ul li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--teal-500); border-bottom: 2.5px solid var(--teal-500);
  transform: rotate(-45deg);
}
.card--extra { background: var(--teal-900); color: #e6f1ed; border-color: var(--teal-900); }
.card--extra h3 { color: #fff; }
.card--extra p, .card--extra ul { color: rgb(230 241 237 / .86); }
.card--extra .ico-badge { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .14); color: var(--gold-400); }
.card--extra ul li::before { border-color: var(--gold-400); }
@media (min-width: 1000px) { .card--wide { grid-column: span 3; } .card--wide ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; } }
@media (min-width: 640px) and (max-width: 999px) { .card--wide { grid-column: span 2; } }

/* ---------- Precio ---------- */
.price-section { background: var(--paper-2); }
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; grid-template-areas: "head" "card" "info"; }
.price-head { grid-area: head; margin-bottom: 0; }
.price-card { grid-area: card; }
.price-info { grid-area: info; }
.price-info .price-points { margin-top: 0; }
@media (max-width: 979px) { .price-grid { max-width: 700px; } }
@media (min-width: 980px) {
  .price-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "head card" "info card"; grid-template-rows: auto 1fr; gap: 32px 64px; align-items: start; }
}
.price-card {
  position: relative; background: var(--card); border-radius: var(--r-xl); padding: 28px 22px 24px;
  border: 2px solid var(--teal-700); box-shadow: var(--shadow);
}
@media (min-width: 560px) { .price-card { padding: 36px 36px 30px; } }
.price-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-card h3 { font-size: 1.25rem; margin: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--gold-50); color: #6b4700; border: 1px solid var(--gold-100); font-size: 1rem; font-weight: 750; white-space: nowrap;
}
.price {
  display: flex; align-items: flex-start; gap: 4px; margin: 18px 0 2px; color: var(--ink);
  font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
}
.price .cur { font-size: 2rem; margin-top: .35rem; }
.price .amt { font-size: clamp(4rem, 3.2rem + 3vw, 5rem); }
.price .unit { align-self: flex-end; margin: 0 0 .55rem 6px; font-size: 1.125rem; letter-spacing: 0; color: var(--ink-3); font-weight: 700; }
.price small { font-size: 1rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.price-sub { margin: 0 0 20px; color: var(--ink-2); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; margin: 0; line-height: 1.45; }
.checklist .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); stroke-width: 3; margin-top: 1px; }
.checklist strong { color: var(--ink); }
.buy-form { margin: 0; }
.buy-note { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--gold-50); border: 1px solid var(--gold-100); color: #4a3500; font-size: 1rem; }
.buy-note a { color: #5a3f00; font-weight: 750; }
.buy-legal { margin: 14px 0 0; color: var(--ink-3); font-size: 1rem; }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-2); list-style: none; color: var(--ink-2); font-size: 1rem; font-weight: 650; }
.pay-row li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.pay-row .icon { color: var(--teal-600); }
.guarantee {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; margin-top: 28px; box-shadow: var(--shadow-sm);
}
.guarantee .ico-badge { width: 48px; height: 48px; background: var(--gold-50); border-color: var(--gold-100); color: #8a5a00; }
.guarantee h3 { margin: 0 0 6px; }
.guarantee p { margin: 0 0 8px; color: var(--ink-2); }
.guarantee p:last-child { margin-bottom: 0; }
.price-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.price-points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; margin: 0; align-items: start; }
.price-points strong { display: block; }
.price-points span { color: var(--ink-2); }

/* ---------- Llamado final ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #e6f1ed; text-align: center;
  background:
    radial-gradient(700px 360px at 50% -20%, rgb(242 179 61 / .2), transparent 65%),
    linear-gradient(180deg, var(--teal-800), var(--teal-900));
  padding-block: clamp(64px, 9vw, 104px);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(230 241 237 / .86); max-width: 38em; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--teal-950); color: rgb(230 241 237 / .8); padding: 48px 0 36px; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / .35); }
.site-footer a:hover { color: var(--gold-400); }
.site-footer p { margin: 0 0 .75em; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1.25em; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; } }
.footer-grid h2 { font-size: 1rem; letter-spacing: .02em; color: #fff; margin: 0 0 6px; font-weight: 750; }
.footer-grid ul { flex-direction: column; gap: 0; margin: 0; }
.footer-brand .brand { margin-bottom: 8px; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / .1); padding-top: 22px; color: rgb(230 241 237 / .72); }

/* ---------- Páginas legales y de texto ---------- */
.page-head { background: var(--teal-900); color: #e6f1ed; padding: 44px 0 40px; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 64px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 95%);
  mask-image: linear-gradient(180deg, #000, transparent 95%);
}
.page-head .container { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-bottom: 10px; }
.page-head p { margin: 0; color: rgb(230 241 237 / .85); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 1rem; }
.breadcrumb li { margin: 0; color: rgb(230 241 237 / .75); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgb(230 241 237 / .45); }
.breadcrumb a { color: #fff; }
.legal { padding-block: 40px 72px; }
.legal h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); margin-top: 2.2em; padding-top: .2em; }
.legal h2:first-of-type { margin-top: 1.2em; }
.legal h3 { margin-top: 1.4em; }
.legal li { margin-bottom: .55em; }
.legal .updated { color: var(--ink-3); font-weight: 600; }
.summary-box {
  background: var(--card); border: 1px solid var(--line-2); border-left: 4px solid var(--gold-500);
  border-radius: var(--r); padding: 20px 22px; margin: 24px 0 28px; box-shadow: var(--shadow-sm);
}
.summary-box h2 { margin: 0 0 10px !important; font-size: 1.1875rem; }
.summary-box ul { margin: 0; }
.toc { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 22px; margin: 20px 0; }
.toc h2 { font-size: 1.0625rem; margin: 0 0 8px !important; }
.toc ol { margin: 0; }
.toc li { margin: 0; }
.toc a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Clases de las páginas dinámicas del Worker ---------- */
.callout { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--r); padding: 16px 18px; margin: 1.25rem 0; }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout.warn { background: var(--gold-50); border-color: var(--gold-100); color: #3f2d00; }
.callout.warn a { color: #5a3f00; }
.download-box { background: var(--card); border: 2px solid var(--teal-700); border-radius: var(--r-lg); padding: 22px; margin: 1.5rem 0; box-shadow: var(--shadow); }
.download-box p:last-child { margin-bottom: 0; }
.form-field { display: grid; gap: 6px; margin-bottom: 16px; max-width: 480px; }
.form-field br { display: none; }
label { font-weight: 700; }
input[type="text"], input[type="email"], input[type="number"], input:not([type]) {
  font: inherit; font-size: 1.0625rem; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%;
}
input:focus-visible { border-color: var(--teal-500); }
main > .container.section { padding-block: 40px 72px; }
main > .container.section > h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }

/* ---------- Página 404 ---------- */
.notfound { padding-block: clamp(56px, 10vw, 120px); text-align: center; }
.notfound .big { font-size: clamp(4.5rem, 3rem + 7vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--teal-700); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.notfound .actions { justify-content: center; }
@media (max-width: 559px) { .notfound .actions .btn { width: 100%; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .skip-link, .cta-band, .hero-actions, .buy-form, .nav { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .page-head, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .page-head h1 { color: #000 !important; }
}

/* =====================================================================
   Tarea 2: secciones de confianza (cómo funciona, para quién, qué incluye,
   preguntas frecuentes y contacto)
   ===================================================================== */

/* ---------- Cómo funciona ---------- */
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: paso; }
@media (min-width: 860px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.steps3 > li {
  counter-increment: paso; position: relative; margin: 0;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 22px 22px 24px; box-shadow: var(--shadow-sm);
}
.steps3 > li::before {
  content: counter(paso); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--teal-700); color: #fff; font-weight: 800; font-size: 1.125rem;
  box-shadow: 0 0 0 6px var(--teal-50);
}
.steps3 h3 { margin: 0 0 6px; }
@media (max-width: 859px) {
  .steps3 > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .steps3 > li::before { grid-row: 1 / span 2; margin: 0; }
  .steps3 h3 { align-self: center; margin-top: 8px; }
}
.steps3 p { margin: 0; color: var(--ink-2); }

/* ---------- Para quién es ---------- */
.fit-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.fit { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--shadow-sm); }
@media (min-width: 560px) { .fit { padding: 28px; } }
.fit h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.25rem; }
.fit ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fit li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; margin: 0; color: var(--ink-2); line-height: 1.5; }
.fit li .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; margin-top: 2px; stroke-width: 3; }
.fit--si li .icon { background: var(--teal-50); color: var(--teal-600); }
.fit--no { background: #fcfaf6; }
.fit--no li .icon { background: #f7e7e3; color: #9a3a2c; }
.fit--no .ico-badge { background: #f7e7e3; border-color: #efd4cd; color: #9a3a2c; }

/* ---------- Qué incluye ---------- */
.files { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
@media (min-width: 760px) { .files { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.file {
  display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm);
}
.file-ico {
  position: relative; width: 50px; height: 60px; border-radius: 6px 14px 6px 6px;
  background: var(--xl-green); color: #fff; display: grid; place-items: end center; padding-bottom: 8px;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em;
}
.file-ico::before { content: ""; position: absolute; top: 9px; left: 9px; right: 9px; height: 22px; border-radius: 3px;
  background-image: linear-gradient(rgb(255 255 255 / .55) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .55) 1px, transparent 1px);
  background-size: 8px 7px; opacity: .8; }
.file-ico--doc { background: var(--teal-600); }
.file-ico--doc::before { background-image: linear-gradient(rgb(255 255 255 / .6) 2px, transparent 2px); background-size: 100% 6px; }
.file h3 { margin: 0 0 4px; font-size: 1.125rem; }
.file p { margin: 0; color: var(--ink-2); }
.specs {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
@media (min-width: 760px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line-2); }
.spec:last-child { border-bottom: 0; }
@media (min-width: 760px) {
  .spec:nth-child(odd) { border-right: 1px solid var(--line-2); }
  .spec:nth-last-child(-n+2) { border-bottom: 0; }
}
.spec h3 { margin: 0 0 4px; font-size: 1.0625rem; }
.spec p { margin: 0; color: var(--ink-2); }

/* ---------- Garantía (lista de casos) ---------- */
.guarantee ul { margin: 0 0 10px; padding-left: 1.1em; color: var(--ink-2); }
.guarantee li { margin-bottom: 4px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 840px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: var(--teal-100); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 18px 14px 20px; font-weight: 750; font-size: 1.0625rem; line-height: 1.4; color: var(--ink);
  border-radius: var(--r);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146158' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] > summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal-800); }
.faq-body { padding: 0 20px 20px; color: var(--ink-2); }
.faq-body p:last-child, .faq-body ul:last-child { margin-bottom: 0; }

/* ---------- Contacto ---------- */
.contact-card {
  max-width: 840px; margin-inline: auto; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: center;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 26px 22px; box-shadow: var(--shadow);
}
@media (min-width: 760px) { .contact-card { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 22px; padding: 30px 34px; } }
.contact-card .ico-badge { width: 56px; height: 56px; border-radius: 16px; }
.contact-card .ico-badge .icon { width: 26px; height: 26px; }
.contact-card h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin: 0 0 6px; }
.contact-card p { margin: 0; color: var(--ink-2); }
.contact-card .contact-mail { font-weight: 750; color: var(--teal-700); word-break: break-word; }
@media (max-width: 759px) { .contact-card .btn { width: 100%; } }

/* Puntuación en títulos grandes: la fuente deja hueco antes de . y , */
h1 .pt, h2 .pt { margin-left: -.07em; }

/* =====================================================================
   Rediseño 2026-09-25 (skills: impeccable, taste-skill, emil-design-eng)
   Capa final: manda sobre lo anterior. Un solo acento (verde), sin
   etiquetas sobre títulos, superficies planas y un movimiento principal
   (la hoja del hero). Para volver atrás, borra desde este comentario.
   ===================================================================== */
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/geist.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/geist-mono.woff2") format("woff2"); }
:root {
  --paper: #f3f4f1; --paper-2: #e9ece8; --card: #ffffff;
  --ink: #0f1a17; --ink-2: #3a4843; --ink-3: #56625d;
  --line: #d6ddd8; --line-2: #e3e8e4;
  --teal-950: #061f1a; --teal-900: #0b2a23; --teal-800: #0f3a30; --teal-700: #14503f; --teal-600: #1a6450;
  --teal-500: #22795f; --teal-100: #dcebe4; --teal-50: #edf5f1;
  --gold-600: #3fae83; --gold-500: #8fe3bd; --gold-400: #a9ecce; --gold-100: #dcf6e9; --gold-50: #effbf5; --gold-ink: #062a1f;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgb(15 42 35 / .06);
  --shadow: 0 1px 2px rgb(15 42 35 / .05), 0 12px 28px -14px rgb(15 42 35 / .22);
  --shadow-lg: 0 30px 60px -28px rgb(4 24 19 / .6), 0 10px 24px -14px rgb(4 24 19 / .35);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
body { font-weight: 400; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.028em; text-wrap: balance; }
h3, h4 { letter-spacing: -.015em; }
p, li { text-wrap: pretty; }
::selection { background: var(--teal-700); color: #fff; }

/* Sin etiquetas decorativas sobre los títulos */
.eyebrow, .hero .pill { display: none; }

/* Marca y navegación */
.brand svg rect { fill: var(--gold-500); }
.brand svg path { stroke: var(--gold-ink); }
.site-header { backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }

/* Botones: un acento, respuesta al toque */
.btn { border-radius: var(--r); font-weight: 600; letter-spacing: -.005em;
  transition: transform 160ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease); }
.btn:active:not([disabled]):not([aria-disabled="true"]) { transform: scale(.97); }
.btn-accent { box-shadow: 0 10px 24px -12px rgb(143 227 189 / .55), inset 0 -1px 0 rgb(0 0 0 / .08); }
.btn-primary { background: var(--teal-700); }
@media (hover: hover) { .btn-primary:hover { background: var(--teal-600); } }

/* Hero: superficie limpia, sin cuadrícula ni brillo dorado */
.hero { background: radial-gradient(1000px 600px at 85% -10%, rgb(143 227 189 / .10), transparent 60%), linear-gradient(180deg, var(--teal-900), var(--teal-950)); }
.hero::before { display: none; }
.hero h1 .kicker { color: var(--gold-500); }
.hero-points { color: rgb(230 241 237 / .78); }

/* Hoja de ejemplo: números tabulares y en monoespaciada (son datos) */
.mock-table, .mock-formula, .mock-kpi-value, .price .amt { font-variant-numeric: tabular-nums; }
.mock-table td.num, .mock-formula span, .mock-kpi-value { font-family: var(--mono); letter-spacing: -.01em; }
.mock-win { border-radius: var(--r-lg); }
.mock-kpi { border-radius: var(--r-lg); }
.mock-table tr.sel td.hit { box-shadow: inset 0 0 0 2px var(--teal-500); }
.mock-bars span { background: var(--teal-100); }
.mock-bars .b3 { background: var(--teal-500); }

/* Superficies planas: tarjetas como filas con regla superior */
.market-hero { padding-block: clamp(40px, 6vw, 76px); }
.market-hero .hero-grid { align-items: center; }
.market-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.market-intro { border-left: 1px solid rgb(255 255 255 / .2); padding: 12px 0 12px 36px; }
.market-intro h2 { font-size: 1.5rem; color: white; }
.market-intro > p { color: #c5d8ce; max-width: 38ch; }
.market-intro ul { list-style: none; padding: 0; margin: 24px 0 0; }
.market-intro li { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgb(255 255 255 / .15); padding: 16px 0; }
.market-intro small { color: #b7d3c4; text-align: right; }
.catalog-tools { margin-bottom: 28px; }
.catalog-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.catalog-search input { width: 100%; max-width: 620px; min-height: 54px; border: 1px solid #85988d; border-radius: var(--r); padding: 12px 16px; font: inherit; color: var(--ink); background: white; }
.catalog-search input::placeholder { color: #66766d; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.catalog-filters button { cursor: pointer; min-height: 44px; padding: 8px 16px; border: 1px solid #9aaca0; border-radius: 24px; background: transparent; color: var(--ink-2); font: inherit; font-size: .9375rem; }
.catalog-filters button[aria-pressed="true"] { background: var(--teal-800); border-color: var(--teal-800); color: white; }
#catalogo-estado { color: var(--ink-3); font-size: .875rem; margin: 16px 0 0; }
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.market-card { border: 1px solid var(--line); background: white; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.market-cover { padding: 28px; min-height: 172px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.market-cover-kit { background: #113d30; color: #ceefde; }
.market-cover-free { background: #e1ebe0; color: #244731; }
.market-cover .icon { width: 28px; height: 28px; margin-bottom: 12px; }
.market-cover span { font-size: 1.65rem; letter-spacing: -.02em; font-weight: 600; }
.market-cover small { font-size: .6875rem; letter-spacing: .06em; margin-top: 8px; }
.market-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.market-card h3 { font-size: 1.5rem; margin: 8px 0 12px; }
.market-card h3 a { color: var(--ink); text-decoration: none; }
.market-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.market-card-body > p { margin: 0 0 14px; }
.market-card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: auto; }
.market-card-bottom p { margin: 0; }
.market-card-bottom strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.market-card-bottom small { display: block; color: var(--ink-3); font-size: .8125rem; }
.market-card-body .market-availability { font-size: .8125rem; color: var(--ink-3); margin: 16px 0 0; }
.catalog-empty { text-align: center; padding: 44px 24px; border: 1px dashed #a3b2a8; border-radius: var(--r-lg); }
.catalog-empty .btn { margin: 12px; }
.catalog-empty > a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 4px; }
.market-card[hidden], .catalog-empty[hidden], .catalog-tools[hidden] { display: none; }
.creator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.creator-grid h2 { font-size: clamp(2rem, 4vw, 3rem); }
.creator-note { font-size: .875rem; color: var(--ink-3); max-width: 50ch; margin-top: 16px; }
.creator-steps { list-style: decimal-leading-zero; padding-left: 30px; margin: 0; }
.creator-steps li { padding: 0 0 20px 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.creator-steps li::marker { color: var(--teal-700); font-weight: 600; }
.creator-steps h3 { margin: 0 0 8px; }
.creator-steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 979px) { .market-intro { border-left: 0; border-top: 1px solid rgb(255 255 255 / .2); padding: 28px 0 0; } }
@media (max-width: 759px) { .market-grid, .creator-grid { grid-template-columns: 1fr; gap: 24px; } .market-card-body { padding: 24px; } .creator-steps { margin-top: 20px; } }
@media (hover: hover) and (pointer: fine) { .catalog-filters button:hover { border-color: var(--teal-700); } }
.catalog-product { display: grid; gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.catalog-product h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 12px 0; }
.catalog-product-copy > p { max-width: 58ch; }
.catalog-format { display: flex; align-items: center; gap: 8px; color: var(--teal-700); font-size: .875rem; font-weight: 600; }
.catalog-requirement { color: var(--ink-3); font-size: .875rem; }
.catalog-product-action { border-top: 1px solid var(--line); padding-top: 24px; }
.catalog-product-action .catalog-price { font-size: 2.5rem; font-weight: 650; letter-spacing: -.03em; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; }
.catalog-price span { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.catalog-product-action > p { color: var(--ink-3); font-size: .875rem; }
.catalog-product-action .btn { width: 100%; margin-top: 12px; }
.catalog-price-link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.store-notice { color: var(--ink-2); background: var(--teal-50); border-left: 3px solid var(--teal-500); padding: 12px 16px; font-size: .875rem; line-height: 1.6; }
.product-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-400); text-underline-offset: 4px; margin-bottom: 12px; }
.product-back:hover { color: white; }
.anchor-target { display: block; scroll-margin-top: 120px; }
@media (max-width: 559px) {
  .site-header:has(.nav--store) .container { gap: 0; padding-top: 8px; padding-bottom: 6px; }
  .nav--store { width: 100%; }
  .nav--store ul { justify-content: space-between; }
  .nav--store a { padding-inline: 10px; }
  html:has(.nav--store) { scroll-padding-top: 124px; }
  .catalog-product { padding: 24px; gap: 16px; }
}
@media (min-width: 760px) {
  .catalog-product { grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); gap: 40px; padding: 36px; align-items: center; }
  .catalog-product-action { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 36px; }
}
.trust { background: transparent; }
.card, .fit, .file, .spec { box-shadow: none; }
.card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 6px; }
.card--extra { background: var(--teal-900); border-radius: var(--r-lg); padding: 24px; border-top: 0; }
.ico-badge { background: var(--teal-50); color: var(--teal-700); border-radius: var(--r-sm); }
.section--alt { background: var(--paper-2); }
.price-card { border-radius: var(--r-xl); }
.faq details { border-radius: var(--r); }
.chip-alert { font-weight: 600; }

/* Movimiento: la hoja del hero se llena y la fila marcada se enciende;
   el resto aparece con suavidad al entrar en pantalla (sin JavaScript). */
@media (prefers-reduced-motion: no-preference) {
  .mock-table tbody tr { animation: p5-fila 560ms var(--ease) both; }
  .mock-table tbody tr:nth-child(2) { animation-delay: 80ms; }
  .mock-table tbody tr:nth-child(3) { animation-delay: 160ms; }
  .mock-table tbody tr:nth-child(4) { animation-delay: 240ms; }
  .mock-table tbody tr:nth-child(5) { animation-delay: 320ms; }
  .mock-table tbody tr:nth-child(6) { animation-delay: 400ms; }
  .mock-table tbody tr:nth-child(n+7) { animation-delay: 460ms; }
  .mock-table tr.sel td.hit { animation: p5-celda 900ms var(--ease) 700ms both; }
  .mock-bars span { transform-origin: bottom; animation: p5-barra 800ms var(--ease) both; }
  .mock-bars .b2 { animation-delay: 120ms; } .mock-bars .b3 { animation-delay: 240ms; }
  .chip-alert { animation: p5-pop 520ms var(--ease) 900ms both; }
  .hero-copy > * { animation: p5-sube 700ms var(--ease) both; }
  .hero-copy > :nth-child(3) { animation-delay: 60ms; } .hero-copy > :nth-child(4) { animation-delay: 120ms; } .hero-copy > :nth-child(5) { animation-delay: 180ms; }
  @supports (animation-timeline: view()) {
    .section-head, .card, .feature-list li, .steps3 > li, .fit, .file, .spec, .price-card, .guarantee, .faq, .contact-card, .cta-band .container {
      animation: p5-entra linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
  @keyframes p5-fila { from { opacity: 0; transform: translateY(6px); } }
  @keyframes p5-celda { 0% { box-shadow: inset 0 0 0 0 var(--teal-500); } 50% { box-shadow: inset 0 0 0 3px var(--teal-500), 0 0 0 6px rgb(34 121 95 / .15); } 100% { box-shadow: inset 0 0 0 2px var(--teal-500); } }
  @keyframes p5-barra { from { transform: scaleY(.15); } }
  @keyframes p5-pop { from { opacity: 0; transform: scale(.9); } }
  @keyframes p5-sube { from { opacity: 0; transform: translateY(14px); } }
  @keyframes p5-entra { from { opacity: 0; transform: translateY(18px); filter: blur(3px); } }
}

/* Páginas internas y guías: mismo sistema */
.page-head::before { display: none; }
.page-head { background: radial-gradient(900px 500px at 90% -20%, rgb(143 227 189 / .09), transparent 60%), linear-gradient(180deg, var(--teal-900), var(--teal-950)); }
.summary-box, .callout, .callout.warn { border-left-width: 1px; border-left-color: var(--line-2); box-shadow: none; }
.summary-box { background: var(--teal-50); border-color: var(--teal-100); }
.callout.warn { background: #fdf1ef; border-color: #f4d3cd; }
.toc { box-shadow: none; }

/* Portadas de productos reales; catálogo sin categorías futuras. */
.market-feature { display: block; overflow: hidden; border-radius: 12px; color: #e3f3e9; text-decoration: none; background: #174b3b; }
.market-feature img, .market-product-image img { display: block; width: 100%; height: auto; }
.market-feature > span { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; font-weight: 600; }
.market-product-image { display: block; overflow: hidden; background: #e6ede4; }
.market-catalog .section-head { margin-bottom: 24px; }
.catalog-tools { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.catalog-search { flex: 1; }
#catalogo-estado { white-space: nowrap; margin: 0 0 15px; }
@media(max-width: 759px) { .catalog-tools { align-items: stretch; flex-direction: column; gap: 12px; } #catalogo-estado { margin: 0; } .market-feature > span { padding: 16px; } }

/* Marca y movimiento discreto; contenido visible sin animaciones. */
.creator-terms { font-size: .875rem; line-height: 1.6; color: #405c4b; max-width: 52ch; margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .market-feature { animation: store-arrive 700ms cubic-bezier(.22,1,.36,1) both; }
  .market-product-image img { transition: transform 320ms cubic-bezier(.22,1,.36,1); }
  .market-feature .icon, .hero-actions .icon { transition: transform 180ms ease-out; }
  @supports (animation-timeline: view()) {
    .market-card { animation: store-arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 25%; }
  }
  @media (hover: hover) and (pointer: fine) {
    .market-card:hover .market-product-image img { transform: scale(1.025); }
    .market-feature:hover .icon, .hero-actions a:hover .icon { transform: translateX(4px); }
  }
}
@keyframes store-arrive { from { opacity: .75; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Contraste y servicio a medida, conservando los verdes aprobados. */
.market-catalog { background: #d8e2da; }
.market-card { border: 1px solid #91a999; box-shadow: 0 14px 30px -22px #153c2a80; }
.market-product-image { border-bottom: 1px solid #91a999; }
.project-brief { background: #0b2a23; color: #dcece3; }
.project-brief h2, .project-brief h1 { color: #b1edce; font-size: clamp(2.4rem,4.5vw,3.7rem); }
.project-brief .lead { color: #dcece3; }
.project-brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,72px); align-items: start; }
.brief-steps { margin: 32px 0; padding-left: 24px; }
.brief-steps li { padding: 12px 0 12px 8px; }
.brief-steps li::marker { color: #9ce7c0; }
.brief-steps strong, .brief-steps span { display: block; }
.brief-steps span { color: #c2d8cc; margin-top: 4px; }
.brief-note { color: #c2d8cc; font-size: .9375rem; max-width: 48ch; }
.brief-panel { background: #fff; color: #15382a; padding: clamp(22px,3vw,36px); border-radius: 16px; }
.brief-panel label { display: block; font-weight: 600; margin: 18px 0 8px; }
.brief-panel label span { font-weight: 400; font-size: .875rem; }
.brief-panel input, .brief-panel textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid #789382; border-radius: 8px; font: inherit; font-size: 1rem; color: #15382a; background: #f7faf8; }
.brief-panel textarea { resize: vertical; min-height: 132px; }
.brief-panel input::placeholder, .brief-panel textarea::placeholder { color: #52685b; }
.brief-panel button { margin-top: 24px; }
.brief-form-note, #cotizar-estado { font-size: .875rem; color: #425d4d; margin-top: 16px; }
@media(min-width:1100px) { .market-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; } .market-card-body { padding: 24px; } .market-card-bottom { align-items: flex-start; flex-direction: column; } .market-card-bottom .btn { width: 100%; } }
@media(max-width:759px) { .project-brief-grid { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:no-preference) {
 .market-feature { animation: cinema-open 1000ms cubic-bezier(.16,1,.3,1) both; }
 .market-card { transition: box-shadow 300ms ease, border-color 300ms ease; }
 @supports(animation-timeline:view()) { .project-brief-copy, .brief-panel { animation: cinema-open linear both; animation-timeline:view(); animation-range:entry 0% entry 30%; } }
 @media(hover:hover) and (pointer:fine) { .market-card:hover { border-color:#346c50; box-shadow:0 22px 42px -24px #153c2a99; } .market-card:hover .market-product-image img { transform:scale(1.045); } }
}
@keyframes cinema-open { from { opacity:.65; transform:translateY(22px) scale(.97); clip-path:inset(3% 0 3% 0 round 16px); } to { opacity:1; transform:none; clip-path:inset(0 round 16px); } }
