/* SeptiGenesis Pac — ficha de producto.
 * Direccion: hoja tecnica de laboratorio (numeracion de seccion, reglas finas,
 * cifra grande). Paleta y fuentes del manual (design-tokens.css).
 * Modo noche derivado de la paleta de marca: el manual no lo define. */

:root {
  --sp-bg: #ffffff;
  --sp-band: #f3f8f8;
  --sp-surface: #ffffff;
  --sp-ink: #143e6b;
  --sp-text: #3f4a5c;
  --sp-muted: #5a6374;
  --sp-line: #d9e3e8;
  --sp-accent: #007a71;
  --sp-accent-fill: #00a99d;
  --sp-accent-ink: #04231f;
  /* Series validadas (dataviz validate_palette.js): base = neutro de contexto */
  --sp-series-base: #8b95a5;
  --sp-series-main: #007a71;
  --sp-grid: #e6ecef;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --sp-bg: #0b1622;
  --sp-band: #0f1c2b;
  --sp-surface: #0f1c2b;
  --sp-ink: #e8f1f4;
  --sp-text: #c9d3dd;
  --sp-muted: #9aa7b6;
  --sp-line: #22344a;
  --sp-accent: #3fd3c5;
  --sp-accent-fill: #13ab9e;
  --sp-accent-ink: #04231f;
  --sp-series-base: #646e7d;
  --sp-series-main: #13ab9e;
  --sp-grid: #1c2c3e;
}

body.sp { background: var(--sp-bg); color: var(--sp-text); }
.sp main { background: var(--sp-bg); }
/* fuera de pantalla hacia arriba (no hacia un lado: en RTL crearia scroll horizontal) */
.sp .skip-link { position: absolute; left: 16px; top: -200px; }
.sp .skip-link:focus { top: 8px; background: var(--sp-accent-fill); color: #fff; padding: 8px 12px; z-index: 1000; }

/* ---------- header extras ---------- */
.sp header .header { flex-wrap: wrap; row-gap: 6px; }
.sp header .header-nav { justify-content: flex-end; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; gap: 14px; }
.sp header .header-nav a { font-size: 0.88rem; white-space: nowrap; }
.sp .nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.7rem; line-height: 1; color: #143e6b; padding: 4px 10px; }
#lang-switch { flex-shrink: 0; }
.lang-wrap { position: relative; z-index: 200; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--primary-teal-light); border: 1px solid var(--primary-teal-border); color: #143e6b; border-radius: 999px; padding: 8px 14px; font-size: 0.85rem; font-weight: 600; font-family: var(--font-primary); cursor: pointer; line-height: 1; }
.lang-btn:focus-visible { outline: 3px solid var(--gcid-primary-color); outline-offset: 2px; }
.lang-arrow { font-size: 9px; }
.lang-menu { display: none; position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; z-index: 300; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; box-shadow: 0 12px 32px rgba(20,62,107,0.16); padding: 4px; }
.lang-menu.show { display: block; }
.lang-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; cursor: pointer; padding: 10px 12px; font-size: 0.9rem; text-align: start; color: #143e6b; font-family: var(--font-primary); border-radius: 8px; }
.lang-item:hover, .lang-item.active { background: var(--primary-teal-light); }
.lang-item .check { margin-inline-start: auto; color: var(--gcid-primary-text); }

@media (max-width: 768px) {
  .sp .nav-toggle { display: inline-flex; align-items: center; }
  .lang-btn .lang-label { display: none; }
  .lang-menu { max-width: calc(100vw - 24px); max-height: 60vh; overflow-y: auto; }
  .sp .header-nav.mobile-open { background: #fff; padding: 16px 0 96px; border-top: 1px solid #f0f0f0; max-height: calc(100dvh - 84px); overflow-y: auto; }
}

/* ---------- type ---------- */
.sp h1, .sp h2, .sp h3 { color: var(--sp-ink); }
.sp p { color: var(--sp-text); }
.sp-kicker {
  font-family: var(--font-secondary); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sp-accent) !important;
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
}
.sp-kicker .n { font-variant-numeric: tabular-nums; color: var(--sp-muted); border-inline-start: 1px solid var(--sp-line); padding-inline-start: 12px; }
.sp-h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 28px; }

/* ---------- hero ---------- */
.sp-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--sp-line); }
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.sp-title { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1; margin-bottom: 22px; }
.sp-title em { font-style: normal; display: block; color: var(--sp-accent); letter-spacing: 0.02em; }
.sp-lede { font-size: 1.1rem; line-height: 1.7; max-width: 58ch; }
.sp-specs { list-style: none; padding: 0; margin: 26px 0 30px; border-top: 1px solid var(--sp-line); }
.sp-specs li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--sp-line); color: var(--sp-ink); font-size: 0.95rem; }
.sp-specs .k { font-family: var(--font-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--sp-muted); padding-top: 3px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.sp-btn:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 3px; }
.sp-btn-main { background: var(--sp-accent-fill); color: var(--sp-accent-ink); }
.sp-btn-main:hover { transform: translateY(-2px); text-decoration: none; color: var(--sp-accent-ink); }
.sp-btn-ghost { border: 1.5px solid var(--sp-ink); color: var(--sp-ink); }
.sp-btn-ghost:hover { background: var(--sp-ink); color: var(--sp-bg); text-decoration: none; }

.sp-hero-stat { position: relative; background: var(--sp-band); border: 1px solid var(--sp-line); border-radius: 18px; padding: 28px 28px 26px; overflow: hidden; }
.sp-pack { position: absolute; inset-inline-end: -26px; top: -18px; width: 180px; height: 180px; color: var(--sp-accent); opacity: 0.22; }
.sp-stat-num { position: relative; direction: ltr; unicode-bidi: isolate; text-align: start; font-family: var(--font-primary); font-weight: 700; font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--sp-ink) !important; margin: 40px 0 14px; font-variant-numeric: tabular-nums; }
.sp-stat-num span { color: var(--sp-accent); font-size: 0.5em; margin-left: 4px; }
.sp-stat-label { position: relative; font-size: 0.95rem; max-width: 32ch; margin: 0; }

/* ---------- sections ---------- */
.sp-section { padding: clamp(48px, 7vw, 96px) 0; }
.sp-band { background: var(--sp-band); border-block: 1px solid var(--sp-line); }
.sp-narrow { max-width: 760px; }
.sp-narrow p { font-size: 1.05rem; line-height: 1.75; }

.sp-rows { border-top: 2px solid var(--sp-ink); }
.sp-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: 28px 0; border-bottom: 1px solid var(--sp-line); }
.sp-row h3 { font-size: 1.3rem; font-weight: 600; margin: 0; }
.sp-row p { margin: 0; font-size: 0.97rem; line-height: 1.65; }
.sp-row .sp-tag { font-family: var(--font-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--sp-muted); margin-bottom: 8px; }
.sp-row .sp-tag-on { color: var(--sp-accent); }

/* ---------- charts ---------- */
.sp-charts { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.sp-fig { margin: 0; background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.sp-fig h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }
.sp-fig figcaption p { font-size: 0.92rem; line-height: 1.6; margin: 0 0 16px; }
.sp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: auto 0 8px; font-size: 0.85rem; color: var(--sp-text); }
.sp-legend li { display: inline-flex; align-items: center; gap: 8px; }
.sp-key { display: inline-block; width: 22px; height: 0; border-top: 3px solid; border-radius: 2px; }
.sp-key-base { border-color: var(--sp-series-base); border-top-style: dashed; }
.sp-key-main { border-color: var(--sp-series-main); }
.sp-plot { width: 100%; }
.sp-plot svg { display: block; width: 100%; height: auto; overflow: visible; direction: ltr; }
.sp-plot text { font-family: var(--font-secondary); font-size: 12px; fill: var(--sp-muted); }
.sp-plot .lbl { fill: var(--sp-ink); font-weight: 600; }
.sp-plot .lbl-big { fill: var(--sp-accent); font-family: var(--font-primary); font-size: 22px; font-weight: 700; }
.sp-plot .grid { stroke: var(--sp-grid); stroke-width: 1; }
.sp-plot .axis { stroke: var(--sp-line); stroke-width: 1; }
.sp-plot .s-base { stroke: var(--sp-series-base); }
.sp-plot .s-main { stroke: var(--sp-series-main); }
.sp-plot .f-base { fill: var(--sp-series-base); }
.sp-plot .f-main { fill: var(--sp-series-main); }
.sp-plot .cross { stroke: var(--sp-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.sp-plot .dot { stroke: var(--sp-surface); stroke-width: 2; }
.sp-plot .bar:hover, .sp-plot .bar:focus { opacity: 0.85; outline: none; }
.sp-note { font-size: 0.8rem !important; color: var(--sp-muted) !important; margin: 10px 0 0; }

.sp-tip { position: fixed; z-index: 500; pointer-events: none; background: var(--sp-ink); color: var(--sp-bg); border-radius: 8px; padding: 8px 10px; font-size: 0.8rem; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,0.2); white-space: nowrap; }
.sp-tip b { font-weight: 600; }
.sp-tip i { display: inline-block; width: 10px; height: 3px; margin-right: 6px; vertical-align: middle; }

.sp-table { margin-top: 24px; }
.sp-table summary { cursor: pointer; color: var(--sp-accent); font-weight: 600; }
.sp-table table { margin-top: 16px; border-collapse: collapse; width: 100%; max-width: 560px; font-size: 0.9rem; color: var(--sp-text); }
.sp-table caption { text-align: left; color: var(--sp-ink); font-weight: 600; padding-bottom: 6px; }
.sp-table th, .sp-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--sp-line); font-variant-numeric: tabular-nums; }

.sp-drawings { min-height: 220px; border: 1.5px dashed var(--sp-line); border-radius: 16px; }

.sp-quote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 2px solid var(--sp-ink); padding-top: 32px; }
.sp-quote .sp-h2 { margin-bottom: 8px; }
.sp-quote p { margin: 0; }

.sp footer { margin-top: 0; }

@media (max-width: 900px) {
  .sp-hero-grid, .sp-charts { grid-template-columns: 1fr; }
  .sp-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-btn { transition: none; }
}

/* =================== Lifecycle: esquemas propios en corte 3D suave (dia/noche) ===================
 * Texturas de apoyo (img/lc-*.webp) generadas con gpt-image-1: solo fondo/relleno, sin texto ni anatomia. */
:root {
  --lc-section-veil: rgba(255,255,255,.945); /* .93 dejaba el rotulo en 4.47:1 en el peor caso */
  --lc-card: linear-gradient(180deg, #e9f5f4 0%, #f7fbfb 38%, #ffffff 100%);
  --lc-soil-hi: rgba(255,236,206,.10); --lc-soil-mid: rgba(70,40,15,.05); --lc-soil-lo: rgba(40,22,8,.42);
  --lc-side: rgba(25,14,5,.42);
  --lc-grass-1: #8cc97e; --lc-grass-2: #4f9a5c;
  --lc-grass-sheen: rgba(255,255,255,.22);
  --lc-turf: #5aa063; --lc-blade: #3f8a4d;
  --lc-wall-1: #f3f5f7; --lc-wall-2: #bcc6d0; --lc-wall-edge: #8f9cab;
  --lc-inner-1: #cfd9df; --lc-inner-2: #9fb0bb;
  --lc-wall-side: rgba(20,62,107,.16); --lc-wall-floor: rgba(20,62,107,.24);
  --lc-water-1: #93e3da; --lc-water-2: #13958a; --lc-water-hi: #d6fbf6;
  --lc-scum-1: #fff6dc; --lc-scum-2: #e6cf98;
  --lc-sludge-1: #a07a52; --lc-sludge-2: #523822; --lc-sludge-top: #b89268; --lc-fleck: rgba(255,240,215,.55);
  --lc-pipe-1: #ffffff; --lc-pipe-2: #dfe6eb; --lc-pipe-3: #9aa8b5; --lc-pipe-edge: #7f8d9b; --lc-pipe-hole: #3b4a58;
  --lc-lid: #8794a1;
  --lc-flow: #007a71; --lc-flow-glow: rgba(0,169,157,.35);
  --lc-floor-shadow: rgba(20,62,107,.38);
  --lc-ao: rgba(30,18,8,.55);
  --lc-mark: #143e6b; --lc-mark-ink: #ffffff;
  --lc-label: #ffffff; --lc-label-halo: rgba(14,22,32,.62);
  --lc-bubble: rgba(255,255,255,.95);
  --lc-backfill: rgba(150,110,70,.55);
  --lc-trench-top: rgba(90,140,80,.55);
  --lc-biomat: #22160c;
  --lc-gravel-night: rgba(0,0,0,0);
  --lc-texture-water: .28;
}
:root[data-theme="dark"] {
  --lc-section-veil: rgba(11,22,34,.86); /* .80 dejaba el texto secundario en 4.0:1 en el peor caso de la foto */
  --lc-card: linear-gradient(180deg, #13304a 0%, #0f2133 42%, #0c1826 100%);
  --lc-soil-hi: rgba(10,18,28,.30); --lc-soil-mid: rgba(8,14,22,.48); --lc-soil-lo: rgba(4,8,14,.78);
  --lc-side: rgba(0,0,0,.6);
  --lc-grass-1: #3e7f57; --lc-grass-2: #1f4f38;
  --lc-grass-sheen: rgba(120,255,220,.06);
  --lc-turf: #2b6146; --lc-blade: #2f6e4c;
  --lc-wall-1: #4a5f75; --lc-wall-2: #23313f; --lc-wall-edge: #5e7690;
  --lc-inner-1: #1a2a3a; --lc-inner-2: #0e1823;
  --lc-wall-side: rgba(0,0,0,.35); --lc-wall-floor: rgba(0,0,0,.45);
  --lc-water-1: #2ad2c1; --lc-water-2: #06504c; --lc-water-hi: #9ff5ea;
  --lc-scum-1: #e1cf9f; --lc-scum-2: #9c8455;
  --lc-sludge-1: #84603f; --lc-sludge-2: #2e2014; --lc-sludge-top: #9c7650; --lc-fleck: rgba(255,230,190,.3);
  --lc-pipe-1: #9db0c3; --lc-pipe-2: #5d7084; --lc-pipe-3: #2f3d4c; --lc-pipe-edge: #6f86a0; --lc-pipe-hole: #091019;
  --lc-lid: #50657c;
  --lc-flow: #6af0e2; --lc-flow-glow: rgba(106,240,226,.45);
  --lc-floor-shadow: rgba(0,0,0,.7);
  --lc-ao: rgba(0,0,0,.75);
  --lc-mark: #3fd3c5; --lc-mark-ink: #04231f;
  --lc-label: #ffffff; --lc-label-halo: rgba(0,0,0,.7);
  --lc-bubble: rgba(190,255,248,.85);
  --lc-backfill: rgba(60,42,26,.6);
  --lc-trench-top: rgba(40,90,60,.6);
  --lc-biomat: #5a3a1e;
  --lc-gravel-night: rgba(5,10,18,.5);
  --lc-texture-water: .22;
}

.lc {
  position: relative;
  background:
    linear-gradient(var(--lc-section-veil), var(--lc-section-veil)),
    url("img/lc-bacteria.webp") center / cover no-repeat;
}
.lc-intro { max-width: 62ch; font-size: 1.05rem; line-height: 1.7; margin: -8px 0 32px; }
.lc-figs { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr); gap: clamp(18px, 2.5vw, 32px); align-items: stretch; }
.lc-fig {
  margin: 0; padding: 22px 22px 16px; border-radius: 26px; background: var(--lc-card);
  border: 1px solid var(--sp-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 30px 60px -34px rgba(20,62,107,.45), 0 8px 18px -12px rgba(20,62,107,.18);
  display: flex; flex-direction: column;
}
:root[data-theme="dark"] .lc-fig { border-color: rgba(120,190,220,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.85); }
.lc-fig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 6px; }
.lc-fig-head h3 { margin: 0; font-size: 1.12rem; font-weight: 600; }
.lc-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sp-band); border: 1px solid var(--sp-line); max-width: 100%; }
.lc-switch button {
  border: 0; background: transparent; color: var(--sp-muted); font: 600 0.8rem/1.15 var(--font-primary);
  padding: 8px 14px; min-height: 36px; border-radius: 999px; cursor: pointer;
  transition: background .3s cubic-bezier(.16,1,.3,1), color .3s ease, box-shadow .3s ease;
}
.lc-switch button:hover { color: var(--sp-ink); }
.lc-switch button[aria-pressed="true"] { background: var(--sp-accent-fill); color: var(--sp-accent-ink); box-shadow: 0 6px 16px -8px rgba(0,122,113,.7); }
.lc-switch button:active { transform: scale(.98); }
.lc-switch button:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 2px; }
.lc-stage { margin-top: auto; }
.lc-svg { display: block; width: 100%; height: auto; direction: ltr; }

/* bloque de suelo */
.lc-floor-shadow { fill: var(--lc-floor-shadow); }
.lc-side-shade { fill: var(--lc-side); }
.lc-soil-tint { mix-blend-mode: normal; }
.lc-grass-sheen { fill: var(--lc-grass-sheen); }
.lc-turf { fill: var(--lc-turf); }
.lc-blades path { fill: none; stroke: var(--lc-blade); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lc-edge-hi { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.2; }
:root[data-theme="dark"] .lc-edge-hi { stroke: rgba(160,255,230,.18); }

/* tanque */
.lc-ao { fill: var(--lc-ao); }
.lc-edge { stroke: var(--lc-wall-edge); stroke-width: 1.2; }
.lc-rim { stroke: rgba(255,255,255,.85); stroke-width: 2; stroke-linecap: round; }
:root[data-theme="dark"] .lc-rim { stroke: rgba(170,210,240,.3); }
.lc-wall-side { fill: var(--lc-wall-side); }
.lc-wall-side.lc-faint { opacity: .6; }
.lc-wall-floor { fill: var(--lc-wall-floor); }
.lc-surface-water { fill: var(--lc-water-hi); opacity: .5; }
.lc-water-tex { opacity: var(--lc-texture-water); mix-blend-mode: screen; }
.lc-scum-surface { opacity: .96; }
.lc-sludge-top { fill: var(--lc-sludge-top); }
.lc-flecks circle { fill: var(--lc-fleck); }
.lc-pipe-edge { stroke: var(--lc-pipe-edge); stroke-width: 1; }
.lc-pipe-cap { fill: var(--lc-pipe-2); stroke: var(--lc-pipe-edge); stroke-width: 1; }
.lc-pipe-hole { fill: var(--lc-pipe-hole); }
.lc-glint { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 2.4; stroke-linecap: round; }
:root[data-theme="dark"] .lc-glint { stroke: rgba(180,255,247,.32); }
.lc-bubbles circle { fill: rgba(255,255,255,.15); stroke: var(--lc-bubble); stroke-width: 1.3; }
.lc-flow { fill: none; stroke: var(--lc-flow); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 11; filter: drop-shadow(0 0 3px var(--lc-flow-glow)); }
.lc-escape circle { fill: var(--lc-sludge-1); stroke: var(--lc-sludge-2); stroke-width: 1; }

/* zanja */
.lc-trench-top { fill: var(--lc-trench-top); }
.lc-backfill { fill: var(--lc-backfill); }
.lc-ao-line { fill: none; stroke: var(--lc-ao); stroke-width: 7; }
.lc-gravel-night { fill: var(--lc-gravel-night); }
.lc-fabric { stroke: var(--lc-scum-1); stroke-width: 3.5; stroke-dasharray: 12 4; opacity: .9; }
.lc-biomat { fill: none; stroke: var(--lc-biomat); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; opacity: .92; }
.lc-pipe-in { fill: var(--lc-pipe-hole); opacity: .85; }
.lc-pipe-water { fill: var(--lc-water-2); }
.lc-pipe-glint { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 3; stroke-linecap: round; }
.lc-pipe-shadow { fill: var(--lc-ao); }
.lc-hole { fill: var(--lc-pipe-hole); }
.lc-drops path { fill: var(--lc-water-1); }
.lc-soak path { fill: none; stroke: var(--lc-flow); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px var(--lc-flow-glow)); }
.lc-pond { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.25); }
.lc-pond-line { stroke: var(--lc-water-hi); stroke-width: 2; opacity: .8; }

/* rotulos: texto SVG real, halo para leerse sobre textura */
.lc-marks circle { fill: var(--lc-mark); stroke: rgba(255,255,255,.9); stroke-width: 2; }
:root[data-theme="dark"] .lc-marks circle { stroke: rgba(4,35,31,.9); }
.lc-marks text { fill: var(--lc-mark-ink); font: 700 12px var(--font-secondary); text-anchor: middle; }
.lc-labels text { fill: var(--lc-label); font: 600 15px var(--font-secondary); letter-spacing: .01em; paint-order: stroke; stroke: var(--lc-label-halo); stroke-width: 3.5px; stroke-linejoin: round; }
.lc-labels .lc-sub { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.lc-key { display: none; }
.lc-cap { font-size: 0.78rem; color: var(--sp-muted); margin-top: 10px; letter-spacing: .02em; }

/* capas que cambian con el interruptor */
.lc-layer { transition: transform 1s cubic-bezier(.16,1,.3,1); }
.lc-scum-g { transform: translateY(0); }
#lc-tank[data-state="with"] .lc-scum-g { transform: translateY(-20px); }
#lc-tank[data-state="with"] .lc-scum-g.lc-c2 { transform: translateY(-9px); }
#lc-tank[data-state="with"] .lc-sludge-g { transform: translateY(42px); }
#lc-tank[data-state="with"] .lc-sludge-g.lc-c2 { transform: translateY(20px); }
.lc-escape { transition: opacity .6s ease; }
#lc-tank[data-state="with"] .lc-escape { opacity: 0; }
.lc-biomat { transition: stroke-width 1s cubic-bezier(.16,1,.3,1); }
.lc-pond, .lc-soak, .lc-drops { transition: opacity 1s ease, transform 1s cubic-bezier(.16,1,.3,1); }
#lc-field[data-state="buildup"] .lc-biomat { stroke-width: 15; }
#lc-field[data-state="buildup"] .lc-pond { opacity: 1; transform: scaleY(1); }
#lc-field[data-state="buildup"] .lc-soak { opacity: .22; }

/* movimiento sutil */
@media (prefers-reduced-motion: no-preference) {
  .lc-flow { animation: lc-run 1.7s linear infinite; }
  .lc-bubbles circle { animation: lc-rise 4.4s ease-in infinite; }
  .lc-bubbles circle:nth-child(2) { animation-delay: 1.1s; }
  .lc-bubbles circle:nth-child(3) { animation-delay: 2.3s; }
  .lc-bubbles circle:nth-child(4) { animation-delay: 3.1s; }
  .lc-b2 circle:nth-child(2) { animation-delay: 1.9s; }
  .lc-escape circle { animation: lc-out 3.2s linear infinite; }
  .lc-escape circle:nth-child(2) { animation-delay: 1.05s; }
  .lc-escape circle:nth-child(3) { animation-delay: 2.1s; }
  .lc-drops path { animation: lc-drip 2.4s ease-in infinite; }
  .lc-drops path:nth-child(2) { animation-delay: .8s; }
  .lc-drops path:nth-child(3) { animation-delay: 1.6s; }
  #lc-field[data-state="buildup"] .lc-drops path { animation-duration: 4.8s; }
  .lc-surface-water, .lc-scum-surface { animation: lc-shimmer 5s ease-in-out infinite; }
}
@keyframes lc-run { to { stroke-dashoffset: -26; } }
@keyframes lc-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: .9; } 100% { transform: translateY(-92px); opacity: 0; } }
@keyframes lc-out { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateX(104px); opacity: 0; } }
@keyframes lc-drip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(64px); opacity: 0; } }
@keyframes lc-shimmer { 0%, 100% { opacity: .9; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
  .lc-layer, .lc-biomat, .lc-pond, .lc-soak, .lc-drops, .lc-escape, .lc-switch button { transition: none; }
}

/* linea de tiempo */
.lc-timeline { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 5vw, 72px); }
.lc-col h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 18px; }
.lc-steps { list-style: none; margin: 0; padding: 0; padding-inline-start: 28px; position: relative; }
.lc-steps::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 30px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--sp-accent) 0%, #b48a5a 55%, #8a4b2a 100%); }
.lc-steps li { position: relative; padding: 0 0 20px; }
.lc-steps li::before { content: ""; position: absolute; inset-inline-start: -27px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sp-surface); border: 3px solid var(--sp-accent); box-sizing: border-box; }
.lc-steps li:nth-child(2)::before { border-color: #8fa486; }
.lc-steps li:nth-child(3)::before { border-color: #b48a5a; }
.lc-steps li:nth-child(4)::before { border-color: #a0683d; }
.lc-steps li:nth-child(5)::before { border-color: #8a4b2a; }
.lc-yr { display: block; font: 600 0.74rem/1.2 var(--font-secondary); letter-spacing: .12em; text-transform: uppercase; color: var(--sp-muted); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.lc-steps strong { display: block; color: var(--sp-ink); font-weight: 600; font-size: 1rem; }
.lc-steps p { margin: 4px 0 0; font-size: 0.94rem; line-height: 1.6; }
.lc-note { font-size: 0.85rem !important; color: var(--sp-muted) !important; margin: 4px 0 0; }
.lc-col-care { align-self: start; padding: 28px; border-radius: 24px; background: var(--sp-surface); border: 1px solid var(--sp-line); position: sticky; top: 140px;
  box-shadow: 0 24px 48px -30px rgba(20,62,107,.35); }
.lc-checks { list-style: none; padding: 0; margin: 0 0 18px; }
.lc-checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--sp-line); color: var(--sp-ink); line-height: 1.55; }
.lc-checks svg { width: 22px; height: 22px; fill: none; stroke: var(--sp-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.lc-col-care .lc-note { margin-bottom: 20px; }

@media (max-width: 900px) {
  .lc-figs, .lc-timeline { grid-template-columns: 1fr; }
  .lc-col-care { position: static; }
}
@media (max-width: 640px) {
  .lc-labels { display: none; }
  .lc-marks circle { r: 15; }
  .lc-marks text { font-size: 16px; }
  .lc-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: k; font-size: 0.85rem; color: var(--sp-ink); }
  .lc-key li { counter-increment: k; display: inline-flex; align-items: center; gap: 6px; }
  .lc-key li::before { content: counter(k); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--lc-mark); color: var(--lc-mark-ink); font: 700 11px var(--font-secondary); }
  .lc-fig { padding: 16px 12px 12px; border-radius: 20px; }
}
[dir="rtl"] .sp-stat-num { text-align: right; }

/* ---------------- video (P4d) ---------------- */
.sp-video { margin: 24px 0 0; }
.sp-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #0b1622; box-shadow: 0 18px 40px -24px rgba(20, 62, 107, .55); }
.sp-vid-dl { margin: 14px 0 0; }
.sp-vid-dl a { color: var(--sp-accent); font-weight: 600; }
.sp-transcript p { font-size: 0.98rem; line-height: 1.7; margin: 12px 0 0; color: var(--sp-text); }
/* ---------------- video largo v3 "Como funciona por dentro" (INT1) ---------------- */
.sp-video video:focus-visible, .sp-table summary:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 3px; }
.sp-inside-note { margin-top: 12px; }
.sp-inside-tr h3 { font-size: 1rem; color: var(--sp-ink); margin: 20px 0 0; }
.sp-inside-cta { margin: 28px 0 0; }
