/* Broadsheet — design system tokens and shared components for the new
   SquareNet site. Ported from the "Broadsheet" design reference; only the
   pieces the current pages actually use are included (no CMYK plate
   effects — those need print-plates.js, which the reference didn't ship,
   and no page here uses them). Extend this file, don't fork it, as more
   pages move to this system. */
/* DM Sans (SIL Open Font License, títulos y texto), alojada en /fonts: variable 400–800, normal e itálica, latín + latín extendido.
   No depende de Google: carga aunque fonts.googleapis.com esté bloqueado y no envía la IP del visitante a terceros. */
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url('../fonts/dmsans-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url('../fonts/dmsans-italic-latin.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; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/dmsans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/dmsans-latin.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; }
/* «fx» de las fórmulas: se queda en la itálica de Source Serif 4 (pedido del cliente). Solo trae la f y la x (OFL). */
@font-face { font-family: 'SN fx'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/sourceserif-fx.woff2') format('woff2'); }

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #0078d4;
  --color-link: #0067b8;
  --color-accent-hover: #0067b8;
  --color-accent-active: #004e8c;
  --color-accent-2: #d6006c;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #eaf4fc;
  --color-accent-200: #cfe5f8;
  --color-accent-300: #9ccaf1;
  --color-accent-400: #5eaae8;
  --color-accent-500: #2b88d8;
  --color-accent-600: #0078d4;
  --color-accent-700: #0067b8;
  --color-accent-800: #004e8c;
  --color-accent-900: #0b2c4d;

  --color-accent-2-100: #fff1f4;
  --color-accent-2-200: #ffdee6;
  --color-accent-2-300: #ffc0d0;
  --color-accent-2-400: #ff90b1;
  --color-accent-2-500: #ff458e;
  --color-accent-2-600: #d82071;
  --color-accent-2-700: #aa0b56;
  --color-accent-2-800: #790e3d;
  --color-accent-2-900: #4b1528;

  --font-heading: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading-weight: 700;
  --font-fx: 'SN fx', Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --space-1: 5px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-6: 30px;
  --space-8: 40px;

  --radius-sm: 1px;
  --radius-md: 2px;
  --radius-lg: 4px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; overflow-x: clip; } /* clip: iOS no cuenta el desborde al ajustar el zoom */
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
  overflow-x: hidden; overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
/* Títulos dentro de las pantallas de demostración: se ven como h2/h4 pero no son encabezados de la página */
.mh2, .mh4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 var(--space-2); }
.mh2 { font-size: 32px; }
.mh4 { font-size: 20px; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-link); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — layout — */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--space-6); }
.hr { height: 1px; border: 0; margin: var(--space-4) 0; background: var(--color-divider); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:active { background: var(--color-accent-active); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }

/* — halftone photo treatment — */
.halftone { position: relative; filter: grayscale(0.35) contrast(1.15); overflow: hidden; }
.halftone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.22) 30%, transparent 32%);
  background-size: 3px 3px; mix-blend-mode: multiply;
}

/* — nav — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) 0;
}
.nav-brand {
  display: flex; align-items: center; flex-shrink: 0; margin-right: auto; text-decoration: none;
}
.nav-brand img { width: clamp(230px, 24vw, 330px); max-width: 62vw; height: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-4); }
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav-links a {
  font-family: var(--font-body); font-weight: 600; letter-spacing: .005em;
  font-size: 16px; line-height: 1.3; white-space: nowrap;
  color: var(--color-text); position: relative; padding: 6px 0; transition: color .18s ease;
}
@media (min-width: 861px) and (max-width: 1100px) { .nav-links { gap: 14px; } .nav-links a { font-size: 14.5px; } }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--color-link); }
.nav-links a[aria-current='page'] { font-weight: 700; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--color-link); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover::after, .nav-links a[aria-current='page']::after { transform: scaleX(1); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); width: 36px; height: 36px; cursor: pointer;
  font-family: var(--font-heading); font-size: 18px; color: var(--color-text);
}
/* nav fijo: al bajar se vuelve una píldora flotante con el logo más chico (html.nav-scrolled, js/nav.js).
   El contenedor conserva su alto original para que el contenido no salte, y deja pasar los clics. */
.wrap:has(> .nav) { position: sticky; top: 0; z-index: 900; min-height: 110px; pointer-events: none; transition: padding-top .35s cubic-bezier(.16,1,.3,1); }
.nav-scrolled .wrap:has(> .nav) { padding-top: 10px; }
.wrap:has(> .nav) > .nav { pointer-events: auto; }
.nav {
  border: 1px solid transparent; border-radius: 999px;
  transition: padding .35s cubic-bezier(.16,1,.3,1), background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.nav-brand img { transition: width .35s cubic-bezier(.16,1,.3,1); }
.nav-scrolled .nav {
  padding: 6px 12px 6px 22px;
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--color-divider); box-shadow: var(--shadow-md);
}
.nav-scrolled .nav-brand img { width: clamp(170px, 16vw, 220px); }
.nav-scrolled .nav[data-open="true"] { border-radius: 22px; padding-bottom: var(--space-3); }
@media (prefers-reduced-motion: reduce) { .nav, .nav-brand img { transition: none; } }

/* — logo marquee (client logos, continuous loop) — */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: var(--space-8); width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee { margin-top: var(--space-4); }
.marquee-track img {
  height: 96px; width: auto; max-width: none; object-fit: contain;
  filter: grayscale(1); opacity: 0.55; transition: filter 0.2s, opacity 0.2s;
  mix-blend-mode: multiply;
}
.marquee-track img:hover, .marquee-track a:focus-visible img { filter: grayscale(0); opacity: 1; }
.marquee-track a { display: block; flex: none; line-height: 0; }
.marquee-track a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.marquee-track .mq-big img { height: 112px; }   /* EY: primero en la fila de abajo, un poco más grande */
.marquee-track .mq-named { display: flex; align-items: center; height: 96px; padding-right: 18px; background: #fff; text-decoration: none; opacity: .55; filter: grayscale(1); mix-blend-mode: multiply; transition: opacity .2s, filter .2s; }   /* logo sin nombre: el texto va dentro del mismo recuadro blanco */
.marquee-track .mq-named img { opacity: 1; filter: none; }
.marquee-track .mq-named.mq-big { height: 112px; gap: 22px; padding-right: 26px; }   /* el cuadro de EY llega al borde: el nombre necesita aire */
.marquee-track .mq-named span { font-family: var(--font-heading); font-weight: 600; font-size: 22px; line-height: 1; color: #555; }
.marquee-track .mq-named:hover, .marquee-track .mq-named:focus-visible { opacity: 1; filter: none; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* — espacio para anuncios de Google AdSense: js/consent.js lo llena solo si hay ID y el visitante aceptó — */
.ad-slot { margin: var(--space-6) 0; padding: var(--space-2) 0 var(--space-3); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); text-align: center; }
.ad-slot::before { content: "Publicidad"; display: block; margin-bottom: var(--space-2); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-neutral-500); }
.ad-slot[hidden], .ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — feature/spec lists — */
.list-check { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.list-check li { position: relative; padding-left: var(--space-4); }
.list-check li::before { content: "—"; position: absolute; left: 0; color: var(--color-accent); }

/* — media row: halftone photo + text, two columns — */
.media-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); align-items: center; margin-bottom: var(--space-6); }
.media-row.reverse .media-row-media { order: 2; }
.media-row-media { aspect-ratio: 4/3; }
.media-row-media img { width: 100%; height: 100%; object-fit: cover; }

/* — report download list — */
.report-list { display: flex; flex-direction: column; gap: 1px; background: var(--color-divider); border-radius: var(--radius-md); overflow: hidden; }
.report-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: var(--color-surface); padding: var(--space-2) var(--space-3);
  text-decoration: none; color: inherit; cursor: pointer;
  position: relative; box-shadow: inset 3px 0 0 transparent;
  transition: background 0.16s ease, box-shadow 0.16s ease, padding-left 0.16s ease;
}
.report-item-text { min-width: 0; }
.report-item-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px;
  display: flex; align-items: baseline; gap: 8px; transition: color 0.16s ease;
}
.report-item-ext {
  font-family: monospace; font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--color-accent-700); background: var(--color-accent-100);
  border-radius: 3px; padding: 1px 6px;
}
.report-item-desc { font-size: 12px; opacity: 0.75; margin-top: 2px; }
.report-item-icon {
  flex-shrink: 0; color: var(--color-accent-700);
  opacity: 0; transform: translate(-6px, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.report-item:hover, .report-item:focus-visible {
  background: var(--color-accent-100); box-shadow: inset 3px 0 0 var(--color-accent);
  padding-left: calc(var(--space-3) + 4px);
}
.report-item:hover .report-item-title, .report-item:focus-visible .report-item-title { color: var(--color-accent-700); }
.report-item:hover .report-item-icon, .report-item:focus-visible .report-item-icon { opacity: 1; transform: translate(0, 0); }
.report-item:active { background: var(--color-accent-200); }

/* — hero (photo + kicker/h1/copy/CTA) — */
.hero { padding: var(--space-8) var(--space-6) var(--space-6); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center; }
.hero-copy { max-width: 520px; }
.kicker { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-700); margin-bottom: var(--space-3); }
.hero h1 { font-size: 48px; margin-bottom: var(--space-3); }
.hero p { font-size: 17px; opacity: 0.85; margin-bottom: var(--space-4); }
.cta-row { display: flex; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }
.placeholder-img {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(135deg, var(--color-neutral-200), var(--color-neutral-200) 10px, var(--color-neutral-100) 10px, var(--color-neutral-100) 20px);
  display: flex; align-items: center; justify-content: center; font-family: monospace; font-size: 12px;
  color: var(--color-neutral-700); text-align: center; padding: var(--space-3);
}
.hero-media { aspect-ratio: 4/3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* — hero logo, floating with ambient glow + grounding shadow — */
/* starts oversized on load, settles to its resting size/position once the
   section below begins to appear (.is-settled, toggled on scroll in index.html) */
.hero-logo-float {
  position: relative; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  transform: scale(1.34); transition: transform 0.9s cubic-bezier(.16, .84, .44, 1);
}
.hero-logo-float.is-settled { transform: scale(1); }
.hero-logo-float::before {
  content: ""; position: absolute; inset: 6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent-400) 38%, transparent) 0%, color-mix(in srgb, var(--color-accent) 20%, transparent) 40%, transparent 70%);
  filter: blur(36px); z-index: 0;
}
.hero-logo-float::after {
  content: ""; position: absolute; left: 50%; bottom: 9%; width: 44%; height: 22px; z-index: 0;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--color-neutral-900) 32%, transparent) 0%, transparent 72%);
  transform: translateX(-50%);
  animation: hero-logo-shadow 6s ease-in-out infinite;
}
.hero-logo-img {
  position: relative; z-index: 1; width: 80%; height: auto;
  filter: drop-shadow(0 22px 28px color-mix(in srgb, var(--color-neutral-900) 30%, transparent));
  animation: hero-logo-float 6s ease-in-out infinite;
}
@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-20px) rotate(1.5deg); }
}
@keyframes hero-logo-shadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.55; }
  50% { transform: translateX(-50%) scale(0.75); opacity: 0.28; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-img, .hero-logo-float::after { animation: none; }
  .hero-logo-float { transition: none; }
}

/* — feature/teaser card grid — */
.features { padding: var(--space-6) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.card-link { text-decoration: none; }

/* — ERP partners row — */
.partners { padding: var(--space-6) 0; display: flex; gap: var(--space-6); align-items: center; flex-wrap: wrap; border-top: 1px solid var(--color-divider); }
.partners span { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-neutral-700); }
.partners-note { font-size: 13px; color: var(--color-neutral-700); margin: var(--space-2) 0 0; }

/* — video embed (YouTube demo, etc.) — */
.video-embed { max-width: 640px; margin: var(--space-6) 0; }
.video-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--radius-sm); border: 0; display: block; }

/* — blog index cards (reuses .features/.card-link/.card/.elev-sm grid) — */
.card-date { display: block; margin-top: var(--space-1); }
.blog-intro { padding: var(--space-8) 0 var(--space-4); max-width: 680px; }
.blog-intro p { font-size: 17px; opacity: 0.85; }

/* — blog article (long-form reading column) — */
.article { max-width: 700px; margin: 0 auto; padding: var(--space-6) 0 var(--space-8); }
.article-meta { font-size: 13px; opacity: 0.65; margin-bottom: var(--space-3); }
.article-lede { font-size: 21px; line-height: 1.55; color: var(--color-neutral-800); margin: 0 0 var(--space-4); }
.article h2 { font-size: 27px; line-height: 1.2; margin: var(--space-8) 0 var(--space-2); }
.article h3 { font-size: 19px; margin-top: var(--space-4); }
.article p { margin: 0 0 var(--space-3); line-height: 1.75; }
.article > p, .article > ul, .article > ol, .article-callout { font-size: 18px; }
.article ul, .article ol { margin: 0 0 var(--space-4); padding-left: 1.3em; line-height: 1.75; }
.article li { margin-bottom: var(--space-2); }
.article strong { font-weight: 600; }
.article > .article-disclaimer { font-size: 13px; line-height: 1.6; color: var(--color-neutral-600); margin-top: var(--space-6); }
.article-cta {
  margin-top: var(--space-6); padding: var(--space-8) var(--space-6); border-radius: var(--radius-lg);
  background: var(--color-accent-100); text-align: center; scroll-margin-top: 30vh;
}
.article-cta h3 { margin: 0 0 var(--space-3); font-size: 26px; }
.article-cta p { max-width: 52ch; margin: 0 auto; font-size: 17px; line-height: 1.6; color: var(--color-neutral-700); }
.article-cta .cta-row { justify-content: center; }
.article-back { display: inline-block; margin-bottom: var(--space-4); font-size: 13px; }
@media (max-width: 860px) {
  .article h1 { font-size: 32px; }
  .article-lede { font-size: 19px; }
  .article h2 { font-size: 24px; margin-top: var(--space-6); }
  .article > p, .article > ul, .article > ol, .article-callout { font-size: 17px; }
}

/* — stacked content sections with a hairline divider between them — */
.wrap > section + section { border-top: 1px solid var(--color-divider); padding-top: var(--space-6); margin-top: var(--space-6); }
.wrap > section:last-of-type { padding-bottom: var(--space-8); }

/* — footer — */
footer.site-footer { background: var(--color-neutral-900); color: #fff; margin-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-6); padding: var(--space-8) 0 var(--space-6); }
.footer-brand .wordmark { display: block; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 20px; color: #fff; margin-bottom: var(--space-3); }
.footer-brand p { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.65); max-width: 280px; margin: 0; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-3); font-size: 13px; color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color .2s ease; }
/* botón de LinkedIn estilo Uiverse (vinodjangid07): caja con borde y fondo oscuro que gira al pasar el mouse */
.footer-social { position: relative; isolation: isolate; gap: 12px; }
.footer-social svg { box-sizing: border-box; width: 45px; height: 45px; padding: 12px; color: #fff; border-radius: 10px; border: 1px solid rgba(156, 156, 156, .47); background: transparent; transition: all .3s; }
.footer-social::before { content: ""; position: absolute; left: 0; top: 50%; width: 45px; height: 45px; margin-top: -22.5px; background: #181818; border-radius: 10px; z-index: -1; pointer-events: none; transition: all .3s; }
.footer-social:hover { color: #fff; }
.footer-social:hover::before { transform: rotate(35deg); transform-origin: bottom; }
.footer-social:hover svg { background: rgba(156, 156, 156, .47); backdrop-filter: blur(4px); }
.footer-col h6 { color: rgba(255, 255, 255, 0.5); margin-bottom: var(--space-3); }
.footer-col a, .footer-col .footer-address { display: block; font-size: 13px; margin-bottom: var(--space-2); }
.footer-col a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent-300); }
.footer-col .footer-address { color: rgba(255, 255, 255, 0.65); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: var(--space-4) 0;
  font-size: 12px; color: rgba(255, 255, 255, 0.55);
  display: flex; align-items: center; justify-content: center; gap: var(--space-3); flex-wrap: wrap;
}
/* .hero, .footer-grid y .footer-bottom se usan junto con .wrap pero su `padding: X 0` le quitaba el aire lateral: entre 861 y 1380 px (tablet horizontal, laptops)
   el .wrap llena la pantalla y el texto del héroe y del pie quedaba pegado al borde. Debajo de 861 px lo pisan las reglas de abajo (.wrap / .wrap.footer-grid). */
@media (max-width: 1380px) { .hero, .footer-grid, .footer-bottom { padding-left: var(--space-6); padding-right: var(--space-6); } }
.footer-mark { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); max-width: 280px; margin-bottom: var(--space-3); }
.footer-mark .wordmark { margin-bottom: 0; }
.footer-logo { display: block; width: 172px; max-width: 65%; height: auto; }
.footer-badge { height: 40px; width: auto; background: #fff; border-radius: var(--radius-sm); padding: 3px 6px; }
.footer-link {
  font: inherit; color: rgba(255, 255, 255, 0.75); text-decoration: underline; text-underline-offset: 3px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.footer-link:hover { color: var(--color-accent-300); }

/* — banner de consentimiento de cookies (js/consent.js) — */
.cookie-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 1000; width: min(640px, calc(100% - 32px));
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform: translate(-50%, 24px); opacity: 0; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s ease;
}
.cookie-bar.is-in { transform: translate(-50%, 0); opacity: 1; }
.cookie-bar p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.cookie-bar a { color: var(--color-accent-300); }
.cookie-actions { display: flex; gap: var(--space-2); flex: none; }
.cookie-actions .btn { min-width: 96px; }
.cookie-actions .cookie-no { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cookie-actions .cookie-no:hover { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 600px) {
  .cookie-bar { flex-direction: column; align-items: stretch; bottom: 12px; }
  .cookie-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cookie-bar { transition: none; } }

/* — responsive — */
@media (max-width: 860px) {
  .wrap { padding: 0 var(--space-4); }
  .wrap.footer-grid { padding: var(--space-8) var(--space-4) var(--space-6); }   /* el padding de .wrap le quitaba el aire de arriba al pie */
  .wrap.footer-bottom { padding: var(--space-4); }   /* ídem: la línea de «© 2026…» quedaba pegada al borde de arriba */
  h1 { font-size: 32px; }
  .wrap:has(> .nav) { min-height: 89px; }
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start; gap: var(--space-2);
    width: 100%; padding-top: var(--space-3);
  }
  .nav[data-open="true"] .nav-links { display: flex; }
  .media-row, .media-row.reverse { grid-template-columns: 1fr; }
  .media-row.reverse .media-row-media { order: 0; }
  .report-item { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .hero { grid-template-columns: 1fr; padding-top: var(--space-6); }
  .hero h1 { font-size: 32px; }
  .hero-copy { max-width: none; }
  /* en una sola columna el cubo ya ocupa todo el ancho: con scale(1.34) se salía de la pantalla y
     Safari en iPhone alejaba el zoom de todo el home (el logo del nav se veía más chico) */
  .hero-logo-float { transform: scale(1.04); }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hero-logo-float { transform: scale(1.1); }
}

/* — reveal on scroll (js/reveal.js) — */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--rd, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* — whatsapp floating button — */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #25D366; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(0,0,0,.3); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
@media (max-width: 600px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 29px; height: 29px; }
}

/* — dark gradient surface: same recipe as the home carousel and the lectores band — */
.band-dark {
  color: #fff;
  background:
    radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--color-accent-400) 26%, transparent) 0%, transparent 46%),
    radial-gradient(circle at 86% 82%, color-mix(in srgb, var(--color-accent-2-500) 16%, transparent) 0%, transparent 48%),
    linear-gradient(140deg, var(--color-accent-800) 0%, var(--color-accent-900) 100%);
}
.band-dark .kicker { color: var(--color-accent-300); }
.band-dark h2, .band-dark h3 { color: #fff; }

/* — superficies oscuras en navy (aprobado en nov 2026 tras compararlo en el prototipo) —
   La escala azul sigue siendo el acento sobre fondo claro, así que no se toca: estas variables se redefinen solo
   dentro de las superficies oscuras y los degradados que ya existen (carrusel, .band-dark, pie…) pasan a navy. */
.feature-carousel, .cta-band, .band-dark, .mod-cta, .modulos-cta, .hero-art, .site-footer {
  --color-accent-700: #2b3670;
  --color-accent-800: #1b2340;
  --color-accent-900: #11162d;
  --color-neutral-900: #0f1428;
  --color-link: #9ccaf1;
  --color-accent-2-500: #6672bd;
}

/* — hero illustration card (dark surface + dotted grid + line-art svg) — */
.hero-art { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); isolation: isolate; }
.hero-art::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.1) 1.4px, transparent 1.4px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.hero-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* — shared line-art: white sketch + cyan accent on dark surfaces (js/art.js measures
     [data-draw] strokes and adds .is-play once the art is on screen) — */
.la svg { overflow: visible; }
.la .la-frame { stroke: rgba(255,255,255,.28); stroke-width: 1; }
.la .la-main { stroke: rgba(255,255,255,.92); stroke-width: 1.5; }
.la .la-soft { stroke: rgba(255,255,255,.42); stroke-width: 1.2; }
.la .la-dash { stroke: rgba(255,255,255,.38); stroke-width: 1.1; stroke-dasharray: 3 6; }
.la .la-dot { fill: rgba(255,255,255,.92); stroke: none; }
.la .la-acc { stroke: var(--color-accent-300); }
.la .la-accf { fill: var(--color-accent-300); stroke: none; }
.la .la-glow { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--color-accent-300) 60%, transparent)); }
.la .la-chip { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.55); stroke-width: 1.2; }
.la .la-txt { font-family: var(--font-heading); font-weight: 600; fill: rgba(255,255,255,.62); letter-spacing: .14em; text-transform: uppercase; }
@keyframes laDraw { to { stroke-dashoffset: 0; } }
@keyframes laPop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes laFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes laFlow { to { stroke-dashoffset: -72; } }
.la-ready [data-draw] { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.la-ready [data-pop] { opacity: 0; transform-box: fill-box; transform-origin: center; }
.la-ready [data-fade] { opacity: 0; }
.la-ready.is-play [data-draw] { animation: laDraw .9s cubic-bezier(.65,0,.35,1) both var(--d, 0s); }
.la-ready.is-play [data-pop] { animation: laPop .55s cubic-bezier(.34,1.56,.64,1) both var(--d, .8s); }
.la-ready.is-play [data-fade] { animation: laFade .8s ease both var(--d, .4s); }
.la.is-play .la-dash { animation: laFlow 2.6s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .la *, .la-ready * { animation: none !important; }
  .la-ready [data-draw] { stroke-dashoffset: 0; }
  .la-ready [data-pop], .la-ready [data-fade] { opacity: 1; }
}

/* — blog: portada del artículo, cifras clave, ejemplos y artículos relacionados — */
.article-cover { margin: 0 0 var(--space-6); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 9; background: var(--color-accent-900); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-tldr { margin: 0 0 var(--space-6); padding: var(--space-3) var(--space-4) var(--space-2); background: var(--color-surface); border: 1px solid var(--color-divider); border-top: 3px solid var(--color-accent); border-radius: var(--radius-md); }
.article-tldr .tldr-k { margin: 0 0 var(--space-2); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-700); }
.article-tldr ul { margin: 0; padding: 0; list-style: none; }
.article-tldr li { position: relative; margin: 0 0 var(--space-2); padding-left: 22px; font-size: 17px; line-height: 1.55; }
.article-tldr li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.article-qs { padding-left: 1.5em; }
.article-qs li { margin-bottom: var(--space-3); }
.article-qs li::marker { font-family: var(--font-heading); font-weight: 600; color: var(--color-accent-700); }
.article-qs strong { display: block; font-family: var(--font-heading); font-size: 19px; line-height: 1.3; margin-bottom: 2px; }
.article-callout { margin: var(--space-4) 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--color-accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--color-accent-100); line-height: 1.7; }
.table-scroll { margin: 0 0 var(--space-4); overflow-x: auto; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.table-scroll .table { font-variant-numeric: tabular-nums; }
.table-scroll .table th { background: color-mix(in srgb, var(--color-text) 3%, transparent); }
.table-scroll .table td:not(:first-child), .table-scroll .table th:not(:first-child) { text-align: right; }
.table-scroll .table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .table-scroll .table { font-size: 13px; }
  .table-scroll .table th, .table-scroll .table td { padding: 8px 7px; }
  .table-scroll .table th { font-size: 10px; letter-spacing: .05em; }
  /* sombra en el borde que avisa «hay más columnas, desliza de lado» (desaparece al llegar al final) */
  .table-scroll {
    background:
      linear-gradient(to right, var(--color-bg) 35%, transparent) left center / 24px 100% no-repeat local,
      linear-gradient(to left, var(--color-bg) 35%, transparent) right center / 24px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .22), transparent) left center / 10px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .22), transparent) right center / 10px 100% no-repeat scroll;
  }
}
.related { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--color-divider); }
.related h6 { margin-bottom: var(--space-3); color: var(--color-neutral-600); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.related a { display: block; text-decoration: none; color: inherit; }
.related-cover { aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; background: var(--color-accent-900); }
.related-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.related h3 { margin: var(--space-2) 0 0; font-size: 18px; line-height: 1.25; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.related a:hover img { transform: scale(1.05); }
.related a:hover h3 { color: var(--color-accent-700); text-decoration-color: var(--color-accent-700); }
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .related-cover img { transition: none; }
}

/* — páginas de módulo (modulo*.html, squarebridge.html): hero + reproductor + esencial + funciones + reportes — */
.mod-hero { padding: var(--space-8) 0 var(--space-6); max-width: 820px; }
.mod-crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-700); text-decoration: none; margin-bottom: var(--space-3); }
.mod-crumb:hover { text-decoration: underline; text-underline-offset: 3px; }
.mod-crumb b { font-weight: 600; color: var(--color-neutral-600); }
.mod-hero h1 { font-size: 48px; line-height: 1.06; margin-bottom: var(--space-4); text-wrap: balance; }
.mod-hero p { font-size: 19px; line-height: 1.6; color: var(--color-neutral-800); max-width: 62ch; margin: 0; text-wrap: pretty; }
.mod-hero .cta-row { margin-top: var(--space-6); }

/* ilustración (módulos sin grabación): misma tarjeta oscura de .hero-art pero en 16:9 */
.mod-media .hero-art { aspect-ratio: 16 / 9; }
.la .la-lbl { font-family: var(--font-heading); font-weight: 600; fill: #fff; fill-opacity: .9; letter-spacing: 0; }

/* teléfono (Autoservicio) */
.mod-phone-stage { display: flex; justify-content: center; padding: var(--space-8) 0; border-radius: var(--radius-lg); }
.phone { position: relative; width: 300px; padding: 12px; border-radius: 46px; background: linear-gradient(160deg, #2a3138, #0d1013); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 30px 60px rgba(6,24,32,.45), 0 8px 18px rgba(0,0,0,.25); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 14px; background: #05070a; z-index: 2; }
.phone-screen { position: relative; aspect-ratio: 9 / 19.5; border-radius: 36px; overflow: hidden; background: #f4f6f8; color: var(--color-text); font-size: 13px; }
.phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-app { padding: 58px 16px 16px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.ph-head { display: flex; align-items: center; justify-content: space-between; }
.ph-head b { font-family: var(--font-heading); font-size: 15px; }
.ph-head span { width: 30px; height: 30px; border-radius: 50%; background: var(--color-accent-100); display: grid; place-items: center; color: var(--color-accent-700); font-weight: 600; font-size: 12px; }
.ph-hi { margin: 4px 0 2px; font-size: 12px; color: var(--color-neutral-600); }
.ph-card { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(20,40,50,.08); }
.ph-pay { background: linear-gradient(140deg, var(--color-accent-700), var(--color-accent-900)); color: #fff; }
.ph-pay small { display: block; font-size: 11px; opacity: .75; letter-spacing: .04em; }
.ph-pay strong { display: block; font-family: var(--font-heading); font-size: 26px; margin: 4px 0 10px; }
.ph-pay .ph-btn { display: inline-block; padding: 6px 12px; border-radius: 99px; background: #fff; color: var(--color-accent-800); font-size: 11.5px; font-weight: 600; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-tile { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 2px 10px rgba(20,40,50,.08); display: flex; flex-direction: column; gap: 6px; }
.ph-tile svg { width: 20px; height: 20px; fill: none; stroke: var(--color-accent-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ph-tile b { font-size: 12.5px; line-height: 1.25; }
.ph-tile small { font-size: 11px; color: var(--color-neutral-600); }
.ph-wall { font-size: 11.5px; line-height: 1.45; color: var(--color-neutral-700); }
.ph-wall b { display: block; font-size: 12px; color: var(--color-text); margin-bottom: 2px; }

/* lo esencial */
.mod-sec { margin-top: var(--space-8); }
.mod-sec > h2 { font-size: 32px; margin-bottom: var(--space-2); }
.mod-sec > p.lead { margin: 0; color: var(--color-neutral-700); max-width: 62ch; }
.mod-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.mod-feats.n3, .mod-feats.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mod-feats.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .mod-feats.n4, .mod-feats.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .mod-feats.n3, .mod-feats.n4, .mod-feats.n6 { grid-template-columns: 1fr; } }
.mod-feat { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6) var(--space-4) var(--space-4); background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2,.8,.3,1.4), box-shadow .3s ease, border-color .3s ease; }
.mod-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-accent-300); }
.mod-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--color-accent-100); color: var(--color-accent-700); margin-bottom: var(--space-2); }
.mod-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mod-ico .fx { font-family: var(--font-fx); font-style: italic; font-weight: 600; font-size: 19px; }
.mod-feat h3 { font-size: 19px; margin: 0; }
.mod-feat p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--color-neutral-700); }
.mod-feat code { font-size: 12.5px; background: var(--color-accent-100); color: var(--color-accent-800); padding: 1px 5px; border-radius: var(--radius-sm); }
.mod-note { margin-top: var(--space-6); padding: var(--space-4) var(--space-6); border-left: 3px solid var(--color-accent); background: var(--color-accent-100); border-radius: var(--radius-md); max-width: 820px; }
.mod-note p { margin: 0; font-size: 15.5px; line-height: 1.65; }

/* todas las funciones (colapsadas) */
.mod-all { margin-top: var(--space-6); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.mod-all summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) 0; font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.mod-all summary::-webkit-details-marker { display: none; }
.mod-all summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--color-accent); transition: transform .25s ease; }
.mod-all[open] summary::after { transform: rotate(45deg); }
.mod-all summary:hover { color: var(--color-accent-700); }
.mod-all .list-check { padding-bottom: var(--space-4); columns: 2; column-gap: var(--space-8); }
.mod-all .list-check li { break-inside: avoid; }
.mod-all .list-check img { display: block; max-width: min(340px, 100%); height: auto; margin-top: var(--space-2); border-radius: var(--radius-sm); }

/* reportes incluidos (sin descarga) */
.mod-reports { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-8); }
.mod-reports li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-2); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); }
.mod-reports svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--color-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mod-reports b { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 15.5px; }
.mod-reports span { display: block; font-size: 13.5px; color: var(--color-neutral-700); line-height: 1.5; }

/* otros módulos + cierre */
.mod-related { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.mod-related a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 14.5px; transition: border-color .2s ease, color .2s ease; }
.mod-related a:hover { border-color: var(--color-accent-300); color: var(--color-accent-700); }
.mod-related a i { font-style: normal; color: var(--color-accent); }
.mod-erp { margin: var(--space-3) 0 0; font-size: 14px; color: var(--color-neutral-700); }
.mod-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-6); margin: var(--space-8) 0; padding: var(--space-8); border-radius: var(--radius-lg); }
.mod-cta h2 { color: #fff; font-size: 30px; margin: 0 0 var(--space-2); }
.mod-cta p { color: rgba(255,255,255,.85); margin: 0; }
.mod-cta .btn { background: #fff; color: var(--color-accent-800); }
.mod-cta .btn:hover { background: var(--color-accent-100); }

@media (max-width: 860px) {
  .mod-hero h1 { font-size: 34px; }
  .mod-hero p { font-size: 17px; }
  .mod-all .list-check { columns: 1; }
  .mod-reports { grid-template-columns: 1fr; }
  .mod-cta { grid-template-columns: 1fr; padding: var(--space-6); }
  .mod-bar em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mod-feat, .mod-all summary::after { transition: none; }
}

/* — calculadoras del blog (js/calc.js): formulario claro a la izquierda, resultado oscuro a la derecha.
     Dentro de un artículo (700 px) se ensancha hasta 1120 px. — */
.calc { --cw: min(1120px, calc(100vw - 2 * var(--space-6))); width: var(--cw); margin: var(--space-8) 0 var(--space-8) calc((100% - var(--cw)) / 2); scroll-margin-top: 96px; }
.calc-head { max-width: 700px; margin: 0 auto var(--space-4); }
.calc p { margin: 0; line-height: 1.55; }
.calc .calc-sub { margin-top: -6px; }
.calc .calc-note { max-width: 700px; margin: var(--space-3) auto 0; }
.calc-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-700); margin-bottom: var(--space-2); }
.calc-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 20%, transparent); }
.article .calc-head h2, .calc-head h2 { font-size: 30px; margin: 0 0 6px; }
.calc-head p { margin: 0; color: var(--color-neutral-700); line-height: 1.6; }

.calc-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--color-bg); }
.calc-tabs { grid-column: 1 / -1; display: flex; border-bottom: 1px solid var(--color-divider); background: var(--color-surface); }
.calc-tab { flex: 1; font: inherit; font-family: var(--font-heading); font-weight: 600; font-size: 16px; padding: 16px var(--space-4); border: 0; background: transparent; color: var(--color-neutral-700); cursor: pointer; position: relative; transition: color .2s ease, background .2s ease; }
.calc-tab::after { content: ""; position: absolute; left: var(--space-4); right: var(--space-4); bottom: -1px; height: 3px; background: var(--color-accent); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.3,1); }
.calc-tab:hover { color: var(--color-text); background: color-mix(in srgb, var(--color-accent) 5%, transparent); }
.calc-tab[aria-selected="true"] { color: var(--color-accent-700); background: var(--color-bg); }
.calc-tab[aria-selected="true"]::after { transform: scaleX(1); }
.calc-tab small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--color-neutral-600); margin-top: 2px; }

/* formulario */
.calc-form { padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; gap: 26px; margin: 0; }
.cf { display: flex; flex-direction: column; gap: 9px; border: 0; padding: 0; margin: 0; min-width: 0; }
.cf[hidden] { display: none; }
.cf-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.cf-label, .cf legend { font-family: var(--font-heading); font-weight: 600; font-size: 15.5px; padding: 0; color: var(--color-text); }
.cf-hint { font-size: 12.5px; line-height: 1.45; color: var(--color-neutral-600); margin: 0; }
.cf-money { display: flex; align-items: center; height: 48px; padding: 0 14px; background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-md); transition: border-color .2s ease, box-shadow .2s ease; }
.cf-money:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.cf-money span { font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-600); margin-right: 8px; }
.cf-money input, .cf-date input { flex: 1; min-width: 0; width: 100%; font: inherit; font-family: var(--font-heading); font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; color: var(--color-text); border: 0; background: transparent; outline: none; -moz-appearance: textfield; appearance: textfield; }
.cf-money input::-webkit-outer-spin-button, .cf-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cf-date { position: relative; display: flex; align-items: center; height: 48px; padding: 0 5px 0 14px; background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-md); transition: border-color .2s ease, box-shadow .2s ease; }
.cf-date:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.cf-date.is-bad { border-color: var(--color-accent-2-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent-2-500) 15%, transparent); }
.cf-date input::placeholder { color: var(--color-neutral-400); font-weight: 400; }
.cf-date .cf-pick { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.cf-cal { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--color-accent-700); cursor: pointer; transition: background .2s ease; }
.cf-cal:hover, .cf-cal:focus-visible { background: var(--color-accent-100); }
.cf-cal[hidden] { display: none; }
.cf-fmt { margin-left: 4px; font-family: var(--font-body); font-weight: 400; font-size: 11.5px; letter-spacing: .06em; color: var(--color-neutral-600); }
/* slider */
.cf-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; --p: 50%; }
.cf-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--color-accent) var(--p), var(--color-neutral-300) var(--p)); }
.cf-range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--color-accent) var(--p), var(--color-neutral-300) var(--p)); }
.cf-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--color-accent); box-shadow: 0 2px 6px rgba(0,40,55,.25); transition: transform .15s ease; }
.cf-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--color-accent); box-shadow: 0 2px 6px rgba(0,40,55,.25); }
.cf-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.cf-range:focus-visible { outline: none; }
.cf-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 30%, transparent); }
/* opciones segmentadas */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.seg label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 40px; padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; line-height: 1.2; color: var(--color-neutral-700); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.seg label small { font-size: 11px; color: var(--color-neutral-600); margin-top: 2px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:hover { color: var(--color-text); }
.seg label:has(input:checked) { background: #fff; color: var(--color-accent-700); font-weight: 600; box-shadow: var(--shadow-sm); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 1px; }


/* resultado */
/* formulario por secciones (utilidades) */
.cf-sec { display: flex; align-items: center; gap: 12px; margin: 0 0 -10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-700); }
.cf-sec::after { content: ""; flex: 1; height: 1px; background: var(--color-divider); }
.cf-sec ~ .cf-sec { margin-top: 8px; }
.cf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.cf-row .cf { justify-content: flex-end; }
@media (max-width: 380px) { .cf-row { grid-template-columns: minmax(0, 1fr); } }   /* a 320–375 px el campo con unidad («personas», «cargas») quedaba de 18 px y cortaba el número */
.cf-money .cf-suf { margin: 0 0 0 8px; font-family: var(--font-body); font-weight: 400; font-size: 13px; white-space: nowrap; }
.cf-step { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; height: 48px; background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-md); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.cf-step:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.cf-step button { padding: 0; border: 0; background: transparent; font: inherit; font-size: 21px; line-height: 1; color: var(--color-accent-700); cursor: pointer; transition: background .2s ease; }
.cf-step button:hover, .cf-step button:focus-visible { background: var(--color-accent-100); outline: none; }
.cf-step input { min-width: 0; width: 100%; border: 0; background: transparent; outline: none; text-align: center; font: inherit; font-family: var(--font-heading); font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; color: var(--color-text); -moz-appearance: textfield; appearance: textfield; }
.cf-step input::-webkit-outer-spin-button, .cf-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* de dónde sale / a dónde va (utilidades) */
.cv-flow + .cv-flow { margin-top: 16px; }
.cv-seg { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.1); }
.cv-seg i { display: block; height: 100%; background: var(--k); transition: width .5s cubic-bezier(.2,.8,.3,1); }
.cv-seg i + i { box-shadow: inset 2px 0 0 rgba(4,40,52,.85); }
.cv-keys { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.66); }
.cv-keys span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--k); }
.cv-keys b { color: #fff; font-family: var(--font-heading); font-weight: 600; font-variant-numeric: tabular-nums; }
.k-a, .k-net { --k: var(--color-accent-300); }
.k-b { --k: var(--color-accent-500); }
.k-ir { --k: rgba(255,255,255,.55); }
.k-jud { --k: var(--color-accent-2-400); }
.k-otr { --k: rgba(255,255,255,.26); }
.calc-out { position: relative; padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; gap: 18px; color: #fff; overflow: hidden; }
.calc-out::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.07) 1.2px, transparent 1.2px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%); }
.calc-out > * { position: relative; }
.calc-k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-300); }
.calc-big { display: block; font-family: var(--font-heading); font-weight: 600; font-size: clamp(46px, 5.4vw, 68px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-big small { font-size: .42em; font-weight: 600; letter-spacing: 0; color: rgba(255,255,255,.65); margin-right: .2em; vertical-align: .62em; }
.calc-big.is-zero { color: rgba(255,255,255,.75); }
.calc-sub { margin: -6px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.82); }
.calc-sub b { color: #fff; }
.calc-lines { margin: 0; border-top: 1px solid rgba(255,255,255,.14); }
.calc-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.calc-lines dt { color: rgba(255,255,255,.72); }
.calc-lines dd { margin: 0; font-family: var(--font-heading); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.calc-lines div.is-total dt { color: #fff; font-weight: 600; }
.calc-lines div.is-total dd { color: var(--color-accent-300); font-size: 16px; }
.calc-fx { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: rgba(4,24,32,.35); border: 1px solid rgba(156,202,241,.28); border-radius: var(--radius-md); }
.calc-fx i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--color-accent-300); color: var(--color-accent-300); font-family: var(--font-fx); font-style: italic; font-weight: 600; font-size: 14px; box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent-300) 35%, transparent); }
.calc-fx code { font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.5; color: #e6f8ff; overflow-wrap: anywhere; }
.calc-warn { margin: 0; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; background: rgba(255,69,142,.14); border: 1px solid rgba(255,144,177,.45); border-radius: var(--radius-md); color: #ffd6e2; }
.calc-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 14.5px; color: var(--color-accent-300); text-decoration: none; }
.calc-go i { font-style: normal; transition: transform .25s ease; }
.calc-go:hover { color: #fff; }
.calc-go:hover i { transform: translateX(4px); }
.calc-tip { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.62); }
.calc-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cf legend { float: none; margin-bottom: 9px; }
/* campos opcionales, selector y sección desplegable «Afinar el cálculo» */
.cf-opt { margin-left: 6px; padding: 2px 7px; font-family: var(--font-body); font-weight: 600; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; color: var(--color-accent-700); background: var(--color-accent-100); border-radius: var(--radius-sm); }
.cf-select { position: relative; }
.cf-select select { width: 100%; height: 48px; padding: 0 40px 0 14px; font: inherit; font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--color-text); background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-md); -webkit-appearance: none; appearance: none; cursor: pointer; }
.cf-select select:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.cf-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--color-accent-700); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.cf-more { border-top: 1px solid var(--color-divider); padding-top: var(--space-3); }
.cf-more summary { display: flex; align-items: center; gap: 4px; font-family: var(--font-heading); font-weight: 600; font-size: 15.5px; color: var(--color-accent-800); cursor: pointer; list-style: none; }
.cf-more summary::-webkit-details-marker { display: none; }
.cf-more summary::before { content: ""; width: 7px; height: 7px; margin: 0 8px 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .2s ease; }
.cf-more[open] summary::before { transform: rotate(45deg); }
.cf-more summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.cf-more-body { display: flex; flex-direction: column; gap: 22px; margin-top: var(--space-3); }
.cf-money input::placeholder { color: var(--color-neutral-400); font-weight: 400; }
.calc-lines dt small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.calc-lines div.is-sum dt, .calc-lines div.is-sum dd { color: #fff; font-weight: 600; }
/* piezas de las calculadoras nuevas: copiar resultado, rubros que no aplican, mes a mes, empleador */
.calc-copy { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius-md); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.calc-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.calc-copy:hover, .calc-copy:focus-visible { background: rgba(255,255,255,.14); border-color: var(--color-accent-300); }
.calc-copy.is-done { background: var(--color-accent); border-color: var(--color-accent); }
.calc-fx:has(code:empty) { display: none; }
.calc-lines div.is-na dt { color: rgba(255,255,255,.5); }
.calc-lines .na { font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.calc-emp { padding-top: var(--space-3); border-top: 1px dashed rgba(255,255,255,.25); }
.calc-emp .calc-k { display: block; margin-bottom: 8px; }
.cv-mlist { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.cv-mlist span { display: flex; flex-direction: column; gap: 1px; padding: 5px 4px; text-align: center; background: rgba(255,255,255,.07); border-radius: 2px; font-variant-numeric: tabular-nums; }
.cv-mlist em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); }
.cv-mlist b { font-family: var(--font-heading); font-size: 13px; color: #fff; }
.cv-mlist i { font-style: normal; font-size: 10.5px; color: var(--color-accent-300); }
.cv-mlist span.is-off { opacity: .4; }
.cf-grid12 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cf-mini { gap: 4px; }
.cf-mini .cf-label { font-family: var(--font-body); font-weight: 600; font-size: 12px; text-transform: capitalize; color: var(--color-neutral-700); }
.cf-mini .cf-money { height: 40px; padding: 0 10px; }
.cf-mini .cf-money input { font-size: 16px; }   /* 16 px: con menos, Safari en iPhone hace zoom al tocar el campo */
.art-pending { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); font-size: 15.5px; line-height: 1.6; background: var(--color-accent-2-100); border-left: 3px solid var(--color-accent-2-500); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.article > .art-pending { font-size: 16px; }
@media (max-width: 640px) {
  .cv-mlist { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cf-grid12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cf-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.cf-check input { width: 18px; height: 18px; accent-color: var(--color-accent); margin: 0; }
.calc-out [hidden] { display: none !important; }

.calc-note { max-width: 700px; margin: var(--space-3) auto 0; font-size: 12.5px; line-height: 1.55; color: var(--color-neutral-600); }

/* gráficos del resultado */
.cv-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 12px; color: rgba(255,255,255,.62); margin-bottom: 7px; }
.cv-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.cv-months span { height: 26px; border-radius: 2px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.cv-months span b { position: absolute; inset: 0; width: 0; background: var(--color-accent-300); box-shadow: 0 0 10px color-mix(in srgb, var(--color-accent-300) 40%, transparent); transition: width .5s cubic-bezier(.2,.8,.3,1); }
.cv-months em { display: block; font-style: normal; font-size: 10px; text-align: center; color: rgba(255,255,255,.5); margin-top: 4px; }
.cv-bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; }
.cv-bar b { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--color-accent-400), var(--color-accent-300)); box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent-300) 45%, transparent); transition: width .55s cubic-bezier(.2,.8,.3,1); }
.cv-time { position: relative; height: 34px; margin-top: 4px; }
.cv-time .t1, .cv-time .t2 { position: absolute; top: 8px; height: 12px; border-radius: 3px; transition: left .5s ease, width .5s ease; }
.cv-time .t1 { left: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 4px, rgba(255,255,255,.06) 4px 8px); }
.cv-time .t2 { right: 0; background: linear-gradient(90deg, var(--color-accent-400), var(--color-accent-300)); box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent-300) 40%, transparent); }
.cv-time .now { position: absolute; top: 0; width: 2px; height: 28px; margin-left: -1px; background: #fff; transition: left .5s ease; }
.cv-time .now::after { content: "Hoy"; position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: #fff; white-space: nowrap; }
.cv-legend { display: flex; justify-content: space-between; gap: var(--space-2); font-size: 11.5px; color: rgba(255,255,255,.6); margin-top: 8px; }
.cv-brackets { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; align-items: end; height: 64px; }
.cv-brackets span { position: relative; border-radius: 2px 2px 0 0; background: rgba(255,255,255,.14); transition: background .3s ease, box-shadow .3s ease; }
.cv-brackets span.is-on { background: var(--color-accent-300); box-shadow: 0 0 14px color-mix(in srgb, var(--color-accent-300) 55%, transparent); }
.cv-brackets span.is-past { background: rgba(156,202,241,.38); }
.cv-blabels { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 5px; font-size: 10px; text-align: center; color: rgba(255,255,255,.5); }
.cv-blabels span.is-on { color: var(--color-accent-300); font-weight: 600; }

@media (max-width: 860px) {
  .calc { --cw: calc(100vw - 2 * var(--space-4)); }
  .calc-shell { grid-template-columns: 1fr; }
  .calc-form, .calc-out { padding: var(--space-6) var(--space-4); }
  .article .calc-head h2, .calc-head h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-tab::after, .cv-months span b, .cv-bar b, .cv-time .t1, .cv-time .t2, .cv-time .now, .cv-seg i, .cv-brackets span { transition: none; }
}

/* — funciones de cada módulo: una tarjeta por función; el home enlaza a cada una con #ancla — */
/* Funciones de cada módulo: una fila grande por función (texto + animación), alternadas */
.mod-fn-rows { margin-top: var(--space-6); }
.mod-fn { scroll-margin-top: 110px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--color-divider); }
.mod-fn:first-child { border-top: 0; padding-top: var(--space-4); }
.mod-fn:nth-child(even) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mod-fn:nth-child(even) .mod-fn-copy { order: 2; }
.mod-fn-n { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: color-mix(in srgb, #F97316 70%, var(--color-text)); margin-bottom: var(--space-2); }
.mod-fn h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 var(--space-3); }
.mod-fn p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--color-neutral-800); max-width: 46ch; }
.mod-fn p strong { font-weight: 700; color: var(--color-text); }   /* énfasis de respaldo sin RoughNotation */
.mod-fn-copy { position: relative; isolation: isolate; --mod-fn-highlight: color-mix(in srgb, #F97316 42%, transparent); }
.hl-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hl-line { position: absolute; left: 0; top: 0; overflow: visible; }
.hl-line path { fill: none; stroke: var(--mod-fn-highlight); stroke-linecap: butt; }
html.has-mod-fn-highlights .mod-fn-copy > p strong { font-weight: inherit; color: var(--color-text); }
.mod-fn-copy, .mod-fn-media { min-width: 0; }
.mod-fn-media { position: relative; min-height: 340px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--mc, var(--color-accent)) 8%, var(--color-surface)); border: 1px solid color-mix(in srgb, var(--mc, var(--color-accent)) 18%, transparent); display: grid; place-items: center; overflow: hidden; }
/* Hueco hasta que llegue la animación de la función (se reemplaza todo .mod-fn-ph) */
.mod-fn-ph { display: grid; justify-items: center; gap: var(--space-3); color: color-mix(in srgb, var(--mc, var(--color-accent)) 70%, #000); font-weight: 600; font-size: 15px; }
.mod-fn-ph img { width: 64px; height: 64px; image-rendering: pixelated; padding: 14px; box-sizing: content-box; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); }
.mod-fn:target .mod-fn-media { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc, var(--color-accent)) 30%, transparent); }
.mod-fn:target .mod-fn-n { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  /* minmax(0,1fr) y no 1fr: con 1fr la columna crecía al ancho fijo de la ventana animada (920 px) y el celular alejaba toda la página */
  .mod-fn, .mod-fn:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-8) 0; }
  .mod-fn:nth-child(even) .mod-fn-copy { order: 0; }
  .mod-fn-media { min-height: 240px; }
}

/* Entrada de los bloques de contacto (CTA) en todo el sitio (salvo el blog): js/nav.js agrega html.cta-js y marca
   .cta-on cuando el bloque entra en pantalla. Sin JS o con movimiento reducido se ven tal cual. */
.cta-js :is(.cta-band,.mod-cta,.modulos-cta){opacity:0;transform:translateY(44px) scale(.96);transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1)}
.cta-js :is(.cta-band,.mod-cta,.modulos-cta) :is(.cta-row,.btn,.cta-band-btn){opacity:0;transform:translateY(14px);transition:opacity .6s ease .35s,transform .6s cubic-bezier(.16,1,.3,1) .35s}
.cta-js :is(.cta-band,.mod-cta,.modulos-cta).cta-on,.cta-js :is(.cta-band,.mod-cta,.modulos-cta).cta-on :is(.cta-row,.btn,.cta-band-btn){opacity:1;transform:none}

/* Animaciones de las funciones de cada módulo: la pantalla se funde a negro al terminar, antes de volver a empezar (.sn-fade lo pone el loop de cada animación) */
.mod-fn-media .scr::after { content: ""; position: absolute; inset: 0; z-index: 60; background: #000; opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.mod-fn-media .scr.sn-fade::after { opacity: 1; }

/* Escenario de las animaciones de funciones (.mod-fn-media.rp-stage) y los pasos de la historia (.rp-story) que se encienden con la animación */
.rp-stage{padding:var(--space-8) var(--space-4);min-height:0;background:none;border:0;overflow:visible}
@media (max-width:860px){.rp-stage{padding:var(--space-4) 0}}   /* en celular el escenario usa todo el ancho: los teléfonos de Autoservicio miden 356 px */
.mod-fn:target .rp-stage{box-shadow:none}
.rp-story{list-style:none;margin:var(--space-6) 0 0;padding:0;display:grid;gap:16px;counter-reset:rp}
.rp-story li{position:relative;padding-left:44px;color:var(--color-neutral-600);transition:color .4s}
.rp-story li::before{counter-increment:rp;content:counter(rp);position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--color-divider);display:grid;place-items:center;font-weight:700;font-size:13px;transition:background .4s,border-color .4s,color .4s}
@media (max-width:700px){.rp-story{display:none}}   /* celular: no se ven a la vez la animación y los pasos, así que solo queda la animación (pedido del cliente) */
.rp-story li b{display:block;font-size:16px;color:var(--color-neutral-700);margin-bottom:2px;transition:color .4s}
.rp-story li span{font-size:14.5px;line-height:1.45}
.rp-story li.is-on{color:var(--color-text)}
.rp-story li.is-on b{color:var(--color-text)}
.rp-story li.is-on::before{background:var(--mc,var(--color-accent));border-color:transparent;color:#fff}
/* Ícono del sistema (16 px, pixelado a propósito) junto al título de cada función */
.mod-fn h3 { display: flex; align-items: center; gap: 14px; }
.mod-fn-ic { flex: none; width: 40px; height: 40px; padding: 8px; box-sizing: content-box; image-rendering: pixelated; background: #fff; border: 1px solid color-mix(in srgb, var(--mc, var(--color-accent)) 22%, transparent); border-radius: var(--radius-md); }
@media (max-width: 860px) { .mod-fn-ic { width: 32px; height: 32px; padding: 6px; } }

/* Filas de función con captura fija (.is-shot): texto arriba (título + frase a la izquierda, lo que puedes hacer a la derecha)
   y la captura de la pantalla real a todo el ancho, para que se lea. Clic = la captura en tamaño completo. */
.mod-fn.is-shot, .mod-fn.is-shot:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.mod-fn.is-shot .mod-fn-copy { order: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 80px); align-items: start; }
.mod-fn.is-shot .mod-fn-copy > :not(.mod-fn-list) { grid-column: 1; }
.mod-fn.is-shot .mod-fn-list { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
.mod-fn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mod-fn-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.55; color: var(--color-neutral-700); }
.mod-fn-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--mc, var(--color-accent)) 14%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14 7.6' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.mod-fn-shot { margin: 0; }
.mod-fn-shot a { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid color-mix(in srgb, var(--mc, var(--color-accent)) 18%, var(--color-divider)); box-shadow: 0 24px 50px -28px rgba(20, 40, 50, .45); cursor: zoom-in; }
.mod-fn-shot img { display: block; width: 100%; height: auto; }
.mod-fn:target .mod-fn-shot a { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc, var(--color-accent)) 30%, transparent); }
@media (max-width: 860px) {
  .mod-fn.is-shot .mod-fn-copy { grid-template-columns: minmax(0, 1fr); }
  .mod-fn.is-shot .mod-fn-list { grid-column: 1; grid-row: auto; margin-top: var(--space-4); }
}

/* Reportes incluidos en tarjetas (.is-cards): mismo estilo que «Características importantes» de Plataforma (línea negra arriba, ícono que se rellena al pasar el mouse, sin movimiento) */
.rep-more { margin: var(--space-4) 0 0; font-size: 17px; color: var(--color-neutral-700); }
.rep-more a { color: var(--color-accent-700); font-weight: 600; }
.mod-reports.is-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.mod-reports.is-cards li { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-6) var(--space-6) var(--space-4); border: 1px solid var(--color-divider); border-top: 3px solid #1a1a1a; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.mod-reports.is-cards .rp-ic { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: color-mix(in srgb, #1a1a1a 13%, #fff); color: #1a1a1a; transition: background .25s ease, color .25s ease; }
.mod-reports.is-cards .rp-ic svg { width: 28px; height: 28px; margin: 0; stroke: currentColor; stroke-width: 1.5; }
.mod-reports.is-cards li:hover .rp-ic { background: #1a1a1a; color: #fff; }
.mod-reports.is-cards b { font-size: 23px; line-height: 1.2; margin-bottom: var(--space-2); }
.mod-reports.is-cards span { font-size: 17px; line-height: 1.55; color: var(--color-neutral-800); }
.mod-reports.is-cards .rp-ic { margin-bottom: 0; }
@media (max-width: 1000px) { .mod-reports.is-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mod-reports.is-cards { grid-template-columns: 1fr; } .mod-reports.is-cards li { padding: var(--space-4); } .mod-reports.is-cards b { font-size: 20px; } .mod-reports.is-cards span { font-size: 16px; } }

/* — zonas táctiles (solo pantallas táctiles, el escritorio no cambia): enlaces sueltos de al menos ~40 px de alto — */
@media (pointer: coarse) {
  .footer-col a { padding: 9px 0; margin-bottom: 0; }
  .footer-col .footer-address { margin-bottom: var(--space-2); }
  .footer-social { min-height: 40px; }
  .footer-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }
  .article-back, .mod-crumb { padding: 12px 0; }
  .cf-more summary { padding: 10px 0; }
}

/* Pantallas de muestra ampliables en celular (js/zoom.js): aviso en la esquina y visor a pantalla completa que se recorre con el dedo */
@media (max-width: 860px) {
  .mod-fn-media.is-zoomable { cursor: zoom-in; }
  .mod-fn-media.is-zoomable:not(.is-zoomed)::after { content: "Toca para ampliar"; position: absolute; right: 4px; bottom: 6px; z-index: 30; padding: 4px 10px; border-radius: 12px; background: rgba(29, 27, 26, .78); color: #fff; font-size: 11.5px; line-height: 1.3; pointer-events: none; }
  .mod-fn-media.is-zoomable:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
}
.zoom-ph { width: 100%; }
html.zoom-lock { overflow: hidden; }
.zoom-ov { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; background: #14161a; }
.zoom-sc { flex: 1; display: flex; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 56px 12px 24px; }
.zoom-sc > .mod-fn-media { flex: 0 0 auto; margin: auto; padding: 14px 0; border-radius: var(--radius-md); background: #faf8f5; overflow: visible; cursor: default; }
.zoom-x { position: absolute; top: 8px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.zoom-hint { position: absolute; top: 18px; left: 16px; right: 70px; margin: 0; z-index: 2; font-size: 13px; color: rgba(255, 255, 255, .75); pointer-events: none; }

/* "?" junto a una pregunta de la calculadora que lleva a su explicación */
.cf-help { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; background: var(--color-accent-100); color: var(--color-accent-700, var(--color-accent)); font: 700 13px/1 var(--font-body); text-decoration: none; vertical-align: 1px; transition: background .2s, color .2s; }
.cf-help:hover, .cf-help:focus-visible { background: var(--color-accent); color: #fff; }
@media (pointer:coarse) { .cf-help { width: 28px; height: 28px; } }
/* Flecha naranja a mano + «¡Hablemos!» junto al botón de los bloques de contacto de módulos (pedido del cliente: la misma del home) */
:is(.mod-cta,.modulos-cta,.req-cta) .btn{position:relative;overflow:visible}
:is(.mod-cta,.modulos-cta,.req-cta) .btn::before{content:"";position:absolute;right:calc(100% + 8px);top:50%;width:72px;height:44px;transform:translateY(-50%);background:#F97316;pointer-events:none;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 44'%3E%3Cpath d='M3 32 C14 12 34 9 65 21 M55 12 L66 21 L54 29' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 44'%3E%3Cpath d='M3 32 C14 12 34 9 65 21 M55 12 L66 21 L54 29' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
:is(.mod-cta,.modulos-cta,.req-cta) .btn::after{content:"¡Hablemos!";position:absolute;right:calc(100% + 86px);top:50%;width:max-content;transform:translateY(-50%) rotate(-4deg);font:700 .95rem/1.05 "Segoe Print","Comic Sans MS",cursive;color:#F97316;pointer-events:none}
@media (max-width:860px){.mod-cta .btn::before,.mod-cta .btn::after{display:none}}
.req-cta .btn::after{content:"¡Consúltanos!"}
@media (max-width:640px){:is(.modulos-cta,.req-cta) .btn::after{display:none}:is(.modulos-cta,.req-cta) .btn::before{right:calc(100% + 6px);width:42px;height:30px}}
