/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #FFFFFF;
  --bg-raise: #F5F5F7;
  --accent-1: #00A981;
  --accent-2: #0FB894;
  --grad: linear-gradient(100deg, #00B488 0%, #00A981 55%, #0FB894 100%);
  --text: #1D1D1F;
  --text-soft: rgba(29,29,31,0.58);
  --line: rgba(0,0,0,0.10);
  --line-soft: rgba(0,0,0,0.06);
  --btn-text: #FFFFFF;

  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
  --display: "Red Hat Display", "Manrope", -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  position: relative;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; font-weight: 700; }
em {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent-1);
}
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--accent-1); color: var(--btn-text); }

:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--text); color: var(--btn-text);
  z-index: 9999; border-radius: 4px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

main, .footer { position: relative; z-index: 2; }


/* =============================================================
   2b. Decorative rings (sticky, behind all sections)
   ============================================================= */
.rings-sticky {
  position: sticky; top: 0; height: 0; overflow: visible;
  z-index: 0; pointer-events: none;
}
.rings-svg {
  position: absolute;
  right: -180px; top: 50vh; transform: translateY(-50%);
  width: 680px; height: 680px;
  z-index: 0; pointer-events: none;
}
@media (max-width: 1024px) { .rings-svg { width: 460px; height: 460px; right: -200px; } }
@media (max-width: 768px) { .rings-svg { width: 320px; height: 320px; right: -120px; } }

.rings-group { opacity: 0.55; animation: ringsPulse 4s ease-in-out 1.6s infinite; }
@keyframes ringsPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.75; } }

.ring { stroke-dasharray: var(--c); stroke-dashoffset: var(--c); animation: ringDraw 1s ease-out forwards; }
.ring-1 { --c: 1972.9; animation-delay: 0.1s; }
.ring-2 { --c: 1558.1; animation-delay: 0.3s; }
.ring-3 { --c: 1143.4; animation-delay: 0.55s; }
.ring-4 { --c: 741.2;  animation-delay: 0.8s; }
.ring-5 { --c: 389.6;  animation-delay: 1.05s; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }

.ring-dot, .ring-line { opacity: 0; animation: ringsFadeIn 0.8s ease-out 1.4s forwards; }
@keyframes ringsFadeIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; stroke-dashoffset: 0; }
  .ring-dot, .ring-line { animation: none; opacity: 1; }
  .rings-group { animation: none; opacity: 0.55; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1180px; margin-inline: auto; padding-inline: 80px; position: relative; z-index: 1; }
.container-wide { max-width: 1600px; padding-inline: 48px; }
@media (max-width: 1024px) { .container { padding-inline: 40px; } .container-wide { padding-inline: 40px; } }
@media (max-width: 768px) { .container { padding-inline: 20px; } .container-wide { padding-inline: 20px; } }

.label {
  display: block; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase;
  color: rgba(0,212,160,0.55); margin-bottom: 1rem;
}

[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.95rem 2rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 700;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              border-color .3s, background-color .3s, opacity .3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, #00E8B0, #00C29A);
  color: var(--btn-text);
  box-shadow: 0 0 22px rgba(0,212,160,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0,212,160,0.45), 0 10px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:active { transform: translateY(0); transition-duration: .12s; }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(0,212,160,0.45);
  box-shadow: 0 0 24px rgba(0,212,160,0.12);
}

/* =============================================================
   5. Nav — floating glass pill
   ============================================================= */
.nav {
  position: fixed; top: 14px; inset-inline: 0; z-index: 200;
  padding-inline: 16px;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: 1080px; margin-inline: auto;
  padding: 10px 12px 10px 24px;
  border-radius: 999px;
  background: rgba(7,11,20,0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled .nav-inner {
  background: rgba(7,11,20,0.82);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,160,0.06);
}
@media (max-width: 768px) { .nav { top: 10px; padding-inline: 10px; } .nav-inner { padding: 8px 10px 8px 18px; } }
.nav-brand { display: inline-flex; align-items: center; padding-left: 0; }
.nav-logo { height: 36px; width: auto; }

.nav-links { display: none; align-items: center; gap: 2.2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-size: 0.9rem; font-weight: 400; padding-block: .25rem; color: rgba(220,232,240,0.75); transition: color .3s; }
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: none; padding: 0.6rem 1.3rem; font-size: 0.82rem; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }
@media (max-width: 768px) { .nav-cta { display: inline-flex; padding: 8px 16px; font-size: 12px; } }

.nav-burger { display: grid; gap: 5px; padding: 0.5rem; z-index: 210; }
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span { width: 22px; height: 2px; background: var(--text); transition: transform .35s var(--ease-out), opacity .35s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(4,6,12,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: grid; place-items: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-out);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile-link { font-size: 1.4rem; font-weight: 600; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}

/* Top-center aurora glow */
.hero::before {
  content: ""; position: absolute; z-index: 0;
  inset: -20% -10% auto -10%; height: 70%;
  background:
    radial-gradient(ellipse 55% 42% at 50% 0%, rgba(0,212,160,0.13), transparent 65%),
    radial-gradient(ellipse 40% 35% at 72% 8%, rgba(100,210,255,0.08), transparent 60%);
  pointer-events: none;
  animation: auroraPulse 9s ease-in-out infinite;
}
@keyframes auroraPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

/* Rings chart as a translucent design layer, anchored to the right */
.hero-rings-bg {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: flex-end;
  pointer-events: none;
  opacity: 0.28;
}
.hero-rings-bg::before {
  content: ""; position: absolute;
  right: -14vmin; top: 50%; transform: translateY(-50%);
  width: 64vmin; height: 64vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,160,0.16), rgba(0,182,142,0.05) 50%, transparent 72%);
  filter: blur(14px);
}
.hero-rings-svg {
  width: min(88vmin, 780px); height: auto;
  margin-right: -14vmin;
  animation: ringsFloat 11s ease-in-out infinite;
}
@media (max-width: 768px) {
  .hero-rings-svg { width: 120vmin; margin-right: -46vmin; }
  .hero-rings-bg::before { right: -40vmin; }
}
@keyframes ringsFloat {
  0%, 100% { transform: translateY(-12px); }
  50% { transform: translateY(14px); }
}

/* Animated beams backdrop (canvas) */
.hero-beams {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  filter: blur(11px);
}
/* Soft blur veil over the beams for the dreamy look */
.hero-beams-veil {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: rgba(4,6,12,0.12);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 30%, black 95%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 30%, black 95%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1600px;
  margin-inline: auto;
  padding: 150px 56px 110px;
  display: grid; grid-template-columns: 1fr; gap: 44px;
  align-items: center;
  text-align: left;
}
@media (min-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr minmax(430px, 560px); gap: 40px; }
}
@media (max-width: 1200px) and (min-width: 769px) { .hero-inner { padding: 130px 40px 70px; } }
@media (max-width: 768px) { .hero-inner { padding: 88px 20px 70px; gap: 34px; } }

.hero-text { min-width: 0; }
/* Escritorio: el bloque de texto queda alto, alineado con el borde de las tarjetas */
@media (min-width: 1040px) { .hero-text { transform: translateY(-16px); } }
/* Móvil: frase centrada */
@media (max-width: 768px) {
  .hero-text { text-align: center; }
  .hero-inner .hero-title { align-items: center; }
  .hero-sub { margin-inline: auto; }
}

/* Eyebrow — accent line + pulsing dot + mono label (no pill) */
.hero-badge {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(0,232,176,0.85);
  margin-bottom: 38px;
}
.hero-badge::before {
  content: ""; width: 40px; height: 1px; flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--accent-1));
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-1);
  box-shadow: 0 0 12px var(--accent-1);
  animation: livePulse 2s infinite;
}
@media (max-width: 768px) {
  .hero-badge { font-size: 10px; letter-spacing: 2px; gap: 10px; }
  .hero-badge::before { width: 22px; }
}

/* Headline — editorial stacked type (festival poster energy) */
.hero-title {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; line-height: 1;
}
.ht-caps {
  display: block;
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(35px, 5.2vw, 98px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--text);
}
.ht-serif {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(18px, 2.65vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-block: 0.28em 0.18em;
}
.ht-groove { margin-right: 0.14em; }
.ht-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,232,176,0.9);
  font-size: clamp(42px, 6.1vw, 112px);
}
@media (max-width: 768px) {
  /* Titular ocupa todo el ancho del móvil */
  .ht-caps { font-size: 11.2vw; }
  .ht-outline { font-size: 12.8vw; -webkit-text-stroke-width: 1.5px; }
  .ht-serif { font-size: 4.9vw; }
  .ht-serif .ht-caps { font-size: 1.9em; }
}
/* Caps word embedded inside a serif line ("a las PERSONAS") */
.ht-serif .ht-caps {
  display: inline;
  font-family: var(--sans);
  font-style: normal;
  font-stretch: normal;
  font-weight: 700;
  font-size: 1.9em;
  vertical-align: -0.08em;
  letter-spacing: -0.03em;
  margin-left: 0.06em;
}
.ht-mint { color: var(--accent-1); text-shadow: 0 0 46px rgba(0,212,160,0.35); }

/* Staggered entrance — headline lines rise from below */
.hero-title > [data-reveal] {
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.hero-title > [data-reveal].is-revealed { transform: none; }
.hero-title > [data-reveal]:nth-child(1) { transition-delay: 0.08s; }
.hero-title > [data-reveal]:nth-child(2) { transition-delay: 0.20s; }
.hero-title > [data-reveal]:nth-child(3) { transition-delay: 0.32s; }
.hero-title > [data-reveal]:nth-child(4) { transition-delay: 0.44s; }
.hero-sub[data-reveal] { transform: translateY(40px); transition-delay: 0.56s; }
.hero-sub[data-reveal].is-revealed { transform: none; }

.hero-sub {
  margin-top: 1.9rem; font-size: 16px; color: var(--text-soft);
  line-height: 1.8; max-width: 520px; font-weight: 300;
}


/* Slow orbiting dashed ring + satellites */
.orbit-group {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: orbitSpin 48s linear infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .orbit-group, .hero-rings-svg { animation: none; }
  .hero::before { animation: none; }
  .badge-dot { animation: none; }
}

/* =============================================================
   6b. Hero dashboard — 3-card 3D collage (tilts on hover)
   ============================================================= */
.hero-dash { perspective: 1700px; width: 100%; min-width: 0; }
.dash-collage {
  position: relative; width: 100%;
  height: clamp(485px, 50vw, 600px);
}
@media (min-width: 1040px) { .dash-collage { margin-left: -18px; } }
/* zoom (no transform): agranda re-renderizando nítido, sin desenfocar el texto */
@media (min-width: 1400px) { .dash-collage { zoom: 1.12; margin-left: -30px; } }

.mini-card {
  position: absolute;
  border-radius: 16px; padding: 15px 16px;
  background: linear-gradient(180deg, rgba(11,15,26,0.97), rgba(7,10,18,0.97));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 26px 55px rgba(0,0,0,0.58);
  -webkit-font-smoothing: antialiased;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
  cursor: pointer;
}
.mini-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, transparent 10%, var(--mc-accent, rgba(0,212,160,0.5)) 50%, transparent 90%);
}
.mc-survey { width: 84%; top: 2%;  left: -16%; z-index: 2; transform: none; --mc-accent: rgba(255,159,10,0.7); }
.mc-pyr    { width: 88%; top: 30%; left: -1%;  z-index: 1; transform: none; --mc-accent: rgba(74,134,200,0.75); }
.mc-line   { width: 64%; top: 16%; right: -5%; z-index: 3; transform: none; --mc-accent: rgba(0,169,129,0.7); }

/* On press/hover: comes straight forward and to the front */
.mini-card:hover {
  z-index: 20;
  transform: translateY(-14px) scale(1.07);
  box-shadow: 0 48px 90px rgba(0,0,0,0.66), 0 0 68px rgba(0,212,160,0.14);
  border-color: rgba(255,255,255,0.20);
}

/* ---- Dashboard window internals (shared) ---- */
.dw { font-family: var(--sans); }
.dw-top { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.dw-ico { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,159,10,0.15); border: 1px solid rgba(255,159,10,0.35); color: #FF9F0A; font-family: var(--mono); font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dw-tt { flex: 1; min-width: 0; }
.dw-tt b { display: block; font-size: 11.5px; font-weight: 700; color: #fff; line-height: 1.1; }
.dw-tt span { display: block; font-size: 7.5px; color: rgba(190,206,218,0.45); margin-top: 2px; }
.dw-x { color: rgba(255,255,255,0.35); font-size: 14px; flex-shrink: 0; }
.dw-cols { display: grid; grid-template-columns: 40% 1fr; gap: 13px; }
.dw-side { min-width: 0; }
.dw-shd { display: flex; justify-content: space-between; font-size: 7px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(190,206,218,0.4); margin-bottom: 8px; }
.dw-shd span { color: #FF9F0A; }
.dw-g { font-size: 7px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: rgba(190,206,218,0.35); margin: 9px 0 4px; }
.dw-g0 { margin-top: 0; }
.dw-f { display: grid; grid-template-columns: 58px 1fr 18px; align-items: center; gap: 6px; margin-bottom: 3px; }
.dw-f > span { font-size: 8px; color: rgba(214,230,238,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-f > i { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.dw-f > i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 3px; background: rgba(255,159,10,0.32); transform-origin: left; animation: svGrow 1s var(--ease-out) both; }
.dw-f.on > i::after { background: linear-gradient(90deg, #F5A623, #FF9F0A); }
.dw-f.on > span { color: #fff; }
.dw-f > b { font-family: var(--mono); font-size: 8px; font-weight: 700; color: rgba(230,238,242,0.7); text-align: right; }
@keyframes svGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.dw-main { min-width: 0; }
.dw-badge { display: inline-block; font-family: var(--mono); font-size: 7px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #FF9F0A; background: rgba(255,159,10,0.1); border: 1px solid rgba(255,159,10,0.25); border-radius: 5px; padding: 3px 7px; margin-bottom: 8px; }
.dw-q { font-size: 8.5px; font-weight: 600; color: rgba(230,238,242,0.82); line-height: 1.35; margin-bottom: 10px; }
.dw-kpis { display: flex; gap: 18px; margin-bottom: 11px; }
.dw-kpis b { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: -1px; color: #fff; line-height: 1; display: block; }
.dw-kpis b.amb { color: #FF9F0A; }
.dw-kpis span { font-size: 7px; color: rgba(190,206,218,0.45); text-transform: uppercase; letter-spacing: 0.5px; }
.dw-bar { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 7px; margin-bottom: 6px; }
.dw-bar > span { font-size: 8px; color: rgba(214,230,238,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-bar > i { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.dw-bar > i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 5px; background: rgba(255,159,10,0.4); transform-origin: left; animation: svGrow 1.1s var(--ease-out) both; }
.dw-bar > i.on::after { background: linear-gradient(90deg, #F5A623, #FF7A1A); }
.dw-bar > b { font-family: var(--mono); font-size: 8px; font-weight: 700; color: #fff; white-space: nowrap; }
.dw-bar > b em { color: rgba(190,206,218,0.4); font-style: normal; margin-left: 3px; }
.dw-note { font-size: 7px; color: rgba(190,206,218,0.35); line-height: 1.4; margin-top: 9px; }

/* Roles (azul) */
.dw-side.blue .dw-shd span { color: #8EC2FF; }
.dw-c { font-size: 8px; color: rgba(214,230,238,0.6); padding: 4px 7px; border-radius: 6px; margin-bottom: 2px; border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-c.on { background: rgba(255,159,10,0.12); border-color: rgba(255,159,10,0.3); color: #fff; }
.dw-c.on::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #FF9F0A; display: inline-block; margin-right: 5px; vertical-align: middle; }
.dw-total { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,0.07); }
.dw-total b { font-family: var(--mono); font-size: 17px; font-weight: 700; color: #fff; display: block; line-height: 1; }
.dw-total span { font-size: 7px; color: #8EC2FF; text-transform: uppercase; letter-spacing: 0.5px; }
.dw-main-hd b { display: block; font-size: 12.5px; font-weight: 700; color: #fff; }
.dw-main-hd span { display: block; font-size: 7.5px; color: rgba(190,206,218,0.45); margin: 3px 0 10px; line-height: 1.3; }
.dw-warn { font-size: 7.5px; color: #FFAD8A; background: rgba(255,90,60,0.08); border: 1px solid rgba(255,120,90,0.22); border-left: 2px solid #FF7A5A; border-radius: 6px; padding: 6px 8px; margin: 9px 0; line-height: 1.35; }
.dw-turno-hd { font-size: 7.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(190,206,218,0.4); margin-bottom: 7px; }
.dw-bar.blue > i::after { background: linear-gradient(90deg, #2f6fb8, #4C93EC); }

/* Pyramids */
.pyr-wrap { display: flex; gap: 14px; }
.pyr-col { flex: 1; min-width: 0; text-align: center; }
.pyr-lbl { font-family: var(--mono); font-size: 7.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; }
.pyr-lbl-blue { color: #8EC2FF; }
.pyr-lbl-real { color: #F5A623; }
.pyr-band { transform-box: fill-box; transform-origin: bottom; animation: pyrGrow 0.55s var(--ease-out) both; animation-delay: var(--d); transition: filter .2s; }
.pyr-band:hover { filter: brightness(1.2); }
@keyframes pyrGrow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* Line card (menta) */
.dw-linehd { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.dw-linehd b { font-size: 11.5px; font-weight: 700; color: #fff; display: block; }
.amb-up { font-family: var(--mono); font-size: 8.5px; font-weight: 700; color: #30D158; display: block; margin-top: 3px; }
.dw-linefoot { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); }
.dw-linefoot span { font-size: 7.5px; color: rgba(190,206,218,0.4); }
.dw-linefoot a { font-family: var(--mono); font-size: 8px; font-weight: 700; color: var(--accent-1); }
.dw-linefoot a:hover { text-decoration: underline; }

/* Rise-in on load */
.hero-dash[data-reveal] { transform: translateY(70px); transition-delay: 0.3s; }
.hero-dash[data-reveal].is-revealed { transform: none; }

@media (max-width: 1039px) {
  .dash-collage { position: static; height: auto; display: flex; flex-direction: column; gap: 18px; animation: none; }
  /* relative, no static: la barra de ventana y los 3 puntos son ::before/::after
     absolutos y necesitan a su tarjeta como referencia (con static se anclaban
     a .hero-inner y se pintaban todos juntos, sobresaliendo por la derecha).
     También hace efectivos los z-index del collage. */
  .mini-card { position: relative; width: 100% !important; transform: none !important; }
  .mini-card:hover { transform: translateY(-4px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-collage { animation: none; }
  .mini-card { transition: none; }
  .pyr-band, .dw-f > i::after, .dw-bar > i::after { animation: none; }
}

/* =============================================================
   7. About
   ============================================================= */
.about { padding-block: 110px; position: relative; overflow: clip; background: var(--bg-raise); }
@media (max-width: 1024px) { .about { padding-block: 70px; } }
@media (max-width: 768px) { .about { padding-block: 52px; } }
.about::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,160,0.35), transparent);
}
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; position: relative; }
@media (min-width: 1201px) { .about-grid { grid-template-columns: 160px 1fr; gap: 80px; } }

.about-label-col { display: none; }
@media (min-width: 1201px) { .about-label-col { display: block; } }
@media (max-width: 1200px) { .about-label-col { display: block; margin-bottom: 16px; } }
.vertical-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: rgba(0,212,160,0.4); letter-spacing: 1px; text-transform: uppercase;
}
@media (max-width: 1200px) {
  .vertical-label { writing-mode: horizontal-tb; transform: none; font-size: 11px; }
}

.about-content { position: relative; z-index: 1; }
.about-text { font-size: clamp(15px, 1.5vw, 18px); color: rgba(200,216,226,0.72); line-height: 1.75; max-width: 60ch; letter-spacing: 0; font-weight: 300; }
.about-text + .about-text { margin-top: 1.2em; }
/* Párrafos justificados desde Nosotros hacia abajo (desktop + móvil) */
.about-text, .service-item p, .contact-info p { text-align: justify; text-justify: inter-word; }

/* Capacidades: fila editorial con divisores finos (sin chips) */
.tags-row { margin-top: 2.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.tag {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; border-radius: 0; padding: 4px 28px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--text);
  transition: color .25s;
}
.tag:first-child { padding-left: 0; }
.tag:not(:first-child)::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 15px; background: rgba(0,0,0,0.14);
}
.tag i { font-size: 18px; color: var(--accent-1); }
.tag:hover { color: #000; }
@media (max-width: 560px) {
  .tags-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tag { padding: 0; }
  .tag:not(:first-child)::before { display: none; }
}

/* =============================================================
   8. Services + dashboard
   ============================================================= */
.services { padding-block: 110px; position: relative; overflow: clip; background: var(--bg); }
@media (max-width: 1024px) { .services { padding-block: 70px; } }
@media (max-width: 768px) { .services { padding-block: 52px; } }
.services-title { font-size: clamp(2rem, 4.6vw, 54px); font-weight: 700; letter-spacing: -2px; margin-bottom: 3rem; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }

.services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .services-list { grid-template-columns: 1fr; } }
.service-item {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 30px 28px;
  background: linear-gradient(180deg, rgba(9,13,24,0.55), rgba(9,13,24,0.38));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .4s var(--ease-out), border-color .35s, box-shadow .35s;
  overflow: hidden;
}
.service-item::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
}
.service-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,160,0.30);
  box-shadow: 0 16px 44px rgba(0,0,0,0.45), 0 0 32px rgba(0,212,160,0.08);
}
.service-item h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.9rem; }
.service-item p { font-size: 14px; color: rgba(178,198,210,0.62); line-height: 1.85; max-width: 62ch; }
.accent-line { width: 22px; height: 2px; background: var(--grad); display: block; margin-top: 20px; border-radius: 2px; }

/* ---- Dashboard ---- */
.dashboard {
  position: relative;
  background: linear-gradient(180deg, rgba(8,12,22,0.55), rgba(8,12,22,0.40));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px; padding: 20px;
  box-shadow: 0 0 70px rgba(0,212,160,0.07), 0 30px 70px rgba(0,0,0,0.5);
}
.dashboard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, transparent 5%, rgba(0,212,160,0.5) 50%, transparent 95%);
}

.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; flex-wrap: wrap; gap: 0.6rem; }
.dashboard-title { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(244,248,250,0.85); }
.live-indicator { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(0,212,160,0.5); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #00D4A0; box-shadow: 0 0 10px rgba(0,212,160,0.8); animation: livePulse 2s infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .kpi-grid { gap: 6px; } }
.kpi {
  background: rgba(0,212,160,0.045); border: 1px solid rgba(0,212,160,0.12);
  border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px;
  transition: border-color .3s, box-shadow .3s;
}
.kpi:hover { border-color: rgba(0,212,160,0.35); box-shadow: 0 0 18px rgba(0,212,160,0.10); }
.kpi-value { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--accent-1); }
.kpi-label { font-size: 10px; color: rgba(190,206,218,0.45); line-height: 1.3; }
.kpi-trend { font-size: 9px; font-weight: 600; }
.trend-up { color: #30D158; }
.trend-neutral { color: #FF9F0A; }
.trend-down { color: #FF453A; }

.charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1201px) { .charts-grid { grid-template-columns: 1.5fr 1.25fr 1fr; } }
@media (max-width: 768px) { .charts-grid { grid-template-columns: 1fr; } }

.chart-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 16px; min-width: 0;
  transition: border-color .3s;
}
.chart-card:hover { border-color: rgba(255,255,255,0.12); }
.chart-card-title {
  display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0;
  text-transform: none; color: rgba(244,248,250,0.9); margin-bottom: 12px; line-height: 1.25;
}
.chart-card-sub { display: block; font-size: 10px; color: rgba(190,206,218,0.35); margin-top: -8px; margin-bottom: 12px; }

.chart-card-clima { padding-bottom: 12px; display: flex; flex-direction: column; }
.chart-wrap-line { flex: 1; min-height: 150px; margin-top: 8px; }

/* ---- Donut de rotación (portado del tablero GdP) ---- */
.donut-mount { display: flex; flex-direction: column; align-items: center; }
.donut-wrap { position: relative; width: 220px; height: 220px; max-width: 100%; margin: 10px auto 0; }
.donut-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.donut-seg { transform-box: fill-box; transform-origin: center; cursor: pointer; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.donut-center-lbl { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: rgba(190,206,218,0.5); transition: color 0.2s; max-width: 130px; line-height: 1.2; }
.donut-center-val { font-family: var(--mono); font-size: 42px; font-weight: 700; letter-spacing: -2px; color: #fff; line-height: 1.05; margin-top: 4px; }
.donut-center-pct { font-size: 10px; font-weight: 700; color: rgba(190,206,218,0.55); margin-top: 4px; min-height: 14px; }
@media (max-width: 768px) { .donut-wrap { width: 240px; height: 240px; } .donut-center-val { font-size: 46px; } }
.donut-legend { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; margin-top: 14px; }
.donut-leg { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; cursor: pointer; border: none; background: none; font-family: var(--sans); transition: background 0.15s; animation: donutLegIn 0.42s cubic-bezier(0.16,1,0.3,1) both; }
.donut-leg:hover, .donut-leg.on { background: rgba(255,255,255,0.06); }
.donut-leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.donut-leg-lbl { font-size: 10px; font-weight: 600; color: rgba(200,220,228,0.7); }
.donut-leg-val { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #fff; margin-left: 1px; }
@keyframes donutLegIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes dcPop { from { opacity: 0.4; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .donut-leg { animation: none; } }

.funnel { display: flex; flex-direction: column; gap: 6px; }
.funnel-row {
  display: grid; grid-template-columns: 88px 1fr 34px; align-items: center; gap: 10px;
  padding: 4px 6px; margin: 0 -6px; border-radius: 8px; cursor: pointer;
  transition: background-color .2s;
}
.funnel-row:hover { background: rgba(255,255,255,0.04); }
.funnel-row.on { background: rgba(0,212,160,0.08); }
.funnel-label { font-size: 11px; color: rgba(190,206,218,0.55); text-align: right; transition: color .2s; }
.funnel-row.on .funnel-label { color: #fff; }
.funnel-bar { height: 16px; border-radius: 8px; background: rgba(255,255,255,0.04); overflow: hidden; }
.funnel-fill { display: block; height: 100%; border-radius: 8px; width: 0%; transition: width 1.1s var(--ease-out), filter .2s; }
.funnel-row.on .funnel-fill { filter: brightness(1.25) drop-shadow(0 0 6px rgba(0,212,160,0.4)); }
.funnel-num { font-family: var(--mono); font-size: 12px; color: rgba(190,206,218,0.6); text-align: right; transition: color .2s; }
.funnel-row.on .funnel-num { color: #fff; }
.funnel-detail {
  margin-top: 12px; min-height: 34px; border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.10); padding: 9px 12px;
  font-size: 10.5px; color: rgba(190,206,218,0.5); line-height: 1.5;
  display: block;
  transition: border-color .25s, background-color .25s;
}
.funnel-detail.on { border-style: solid; border-color: rgba(0,212,160,0.3); background: rgba(0,212,160,0.05); color: rgba(214,230,238,0.85); }
.funnel-detail b { color: var(--accent-1); font-family: var(--mono); font-weight: 700; white-space: nowrap; }

.dim-list { display: flex; flex-direction: column; gap: 12px; }
.dim-row { display: grid; grid-template-columns: 84px 1fr 36px; align-items: center; gap: 10px; }
.dim-label { font-size: 11px; color: rgba(190,206,218,0.55); }
.dim-bar { height: 5px; border-radius: 8px; background: rgba(255,255,255,0.05); overflow: hidden; }
.dim-fill { display: block; height: 100%; border-radius: 8px; width: 0%; transition: width 1.1s var(--ease-out); }
.dim-pct { font-family: var(--mono); font-size: 11px; color: rgba(190,206,218,0.6); text-align: right; }

@media (max-width: 768px) {
  .funnel-label, .dim-label { font-size: 10px; }
  .donut-chart-wrap { margin: 0 auto; }
}

/* =============================================================
   9. Contact
   ============================================================= */
.contact { padding-block: 110px; position: relative; overflow: clip; background: var(--bg-raise); }
@media (max-width: 1024px) { .contact { padding-block: 70px; } }
@media (max-width: 768px) { .contact { padding-block: 52px; } }
.contact::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,160,0.35), transparent);
}
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1201px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

.contact-info h2 { font-size: clamp(2rem, 4.4vw, 52px); font-weight: 700; letter-spacing: -2px; line-height: 1.05; margin-bottom: 1rem; }
.contact-info p { color: var(--text-soft); font-size: 16px; }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field input, .field textarea { min-width: 0; width: 100%; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: rgba(0,212,160,0.55);
}
.field input, .field textarea {
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--text);
  font-family: var(--sans);
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field textarea { height: 90px; }
.field input:focus, .field textarea:focus {
  border-color: rgba(0,212,160,0.45); outline: none;
  box-shadow: 0 0 0 3px rgba(0,212,160,0.10), 0 0 18px rgba(0,212,160,0.08);
}

.cta-submit { position: relative; margin-top: 0.4rem; align-self: flex-start; font-size: 14px; }
.cta-submit .cta-form-spinner { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.contact-form.is-sending .cta-form-label { opacity: 0; }
.contact-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 16px; height: 16px;
  border: 2px solid rgba(6,10,18,0.25); border-top-color: var(--btn-text);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.contact-form.is-sent .cta-submit { opacity: 0; pointer-events: none; transition: opacity .4s; }

.cta-success {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  opacity: 0; pointer-events: none; gap: 0.5rem;
  transition: opacity .7s var(--ease-out) .2s, transform .8s var(--ease-out) .2s;
  transform: translateY(12px);
}
.cta-success.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cta-success h3 { color: var(--accent-1); }
.cta-success p { color: var(--text-soft); max-width: 32ch; }

/* =============================================================
   10. Footer
   ============================================================= */
.footer { padding-block: 2.4rem; background: #030509; border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 768px) { .footer-inner { flex-direction: column; gap: 12px; text-align: center; } }
.footer-logo { height: 28px; width: auto; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand::after {
  content: ""; width: 1px; height: 18px; background: var(--line); order: 1;
}
.footer-tagline {
  order: 2;
  font-family: var(--sans); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: rgba(0,232,176,0.7);
}
@media (max-width: 768px) { .footer-brand { flex-direction: column; gap: 8px; } .footer-brand::after { display: none; } }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.18); }

/* =============================================================
   11. iOS / cross-browser fixes
   ============================================================= */
body { -webkit-overflow-scrolling: touch; }

.field input, .field textarea {
  -webkit-appearance: none;
  appearance: none;
}
@media (max-width: 768px) {
  .field input, .field textarea { font-size: 16px; }
}

/* =============================================================
   12. TEMA BLANCO · overrides (minimalista, estilo Apple)
   Los dashboards oscuros (.dashboard, .mini-card, .dw-*, charts)
   conservan sus estilos oscuros — actúan como "capturas".
   ============================================================= */

/* Ocultar fondos del tema oscuro */
[data-beams], .hero-beams-veil, .hero-rings-bg, .rings-sticky { display: none !important; }
.hero::before { display: none; }

/* Botones */
.btn-primary { background: var(--accent-1); box-shadow: 0 1px 2px rgba(0,0,0,0.10); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(0,169,129,0.26); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--text); backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn-ghost:hover { border-color: rgba(0,0,0,0.22); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }

/* Nav estilo Apple: barra full-width con línea continua */
.nav { top: 0; inset-inline: 0; padding-inline: 0; pointer-events: auto;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0,0,0,0.10); }
.nav.is-scrolled { background: rgba(255,255,255,0.85); }
.nav-inner { max-width: none; padding: 0 26px; height: 54px; border-radius: 0; background: none;
  backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: none; }
.nav.is-scrolled .nav-inner { background: none; box-shadow: none; }
.nav-link { color: rgba(29,29,31,0.66); font-weight: 500; }
.nav-link:hover { color: var(--text); }
/* Botón Conversemos: gris claro, pegado a la derecha */
.nav-cta.btn-primary { background: #EAEAEF; color: #1D1D1F; box-shadow: none; }
.nav-cta.btn-primary:hover { background: #DEDEE5; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.nav-burger span { background: var(--text); }
.nav-mobile { background: rgba(255,255,255,0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.nav-mobile-link { color: var(--text); }

/* Eyebrow / labels */
.label { color: #00926C; }

/* Titular — una sola tipografía elegante (Manrope), sin mayúsculas */
.ht-caps, .ht-outline {
  text-transform: none; font-family: var(--sans); font-weight: 600;
  font-size: clamp(40px, 5.4vw, 88px); line-height: 1.02;
  letter-spacing: -0.035em; color: var(--text); -webkit-text-stroke: 0;
}
.ht-serif {
  text-transform: none; font-family: var(--sans); font-weight: 400;
  font-size: clamp(20px, 2.5vw, 33px); line-height: 1.18;
  letter-spacing: -0.02em; color: rgba(29,29,31,0.58); margin-block: 0.5em 0.4em;
}
.ht-mint { color: var(--accent-1); text-shadow: none; font-weight: 600; }
.ht-serif .ht-caps { color: var(--accent-1); font-weight: 600; font-size: 2.6em; vertical-align: baseline; }
@media (max-width: 768px) {
  /* 3 líneas: "Transformamos" / "la forma..." / "gestionan a las personas" */
  .hero-title { display: block; }
  .ht-caps, .ht-outline { font-size: 7vw; }
  .ht-serif { font-size: 4.1vw; }
  .ht-outline { display: inline-block; }
  .hero-title > .ht-serif:last-child { display: inline-block; margin-left: 0.35em; }
  .ht-serif .ht-caps { display: inline; font-size: 1.75em; }
  .hero-sub { font-size: 14px; }
}

/* Marca de agua IGMA */

/* About */
.about::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent); }
.about-text { color: rgba(29,29,31,0.64); }
.vertical-label { color: rgba(0,0,0,0.28); }
.tag { background: none; border: 0; color: var(--text); }
.tag:hover { border: 0; box-shadow: none; color: #000; }
.tag i { color: var(--accent-1); }

/* Servicios (tarjetas de texto claras; el .dashboard sigue oscuro) */
.services-title { color: var(--text); }
.service-item { background: #FFFFFF; border: 1px solid var(--line);
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.service-item::before { display: none; }
.service-item:hover { border-color: rgba(0,0,0,0.16); box-shadow: 0 18px 44px rgba(0,0,0,0.09); }
.service-item p { color: rgba(29,29,31,0.6); }

/* El panel "¿Qué hacemos?" se mantiene oscuro y opaco (captura sobre blanco) */
.dashboard { background: #0C111C; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18); }

/* Contacto */
.contact::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent); }
.field label { color: #00926C; }
.field input, .field textarea { background: #FFFFFF; border: 1px solid var(--line); color: var(--text); }
.field input:focus, .field textarea:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(0,169,129,0.14); }
.cta-success p { color: var(--text-soft); }
/* Al enviar: ocultar los campos y mostrar el mensaje limpio y centrado */
.cta-success { background: var(--bg-raise); border-radius: 16px; z-index: 5; padding: 24px; gap: 0.6rem; }
.cta-success h3 { font-size: 1.35rem; }
.contact-form.is-sent > .form-row,
.contact-form.is-sent > .field,
.contact-form.is-sent > .cta-submit,
.contact-form.is-sent > .contact-hint { opacity: 0; pointer-events: none; transition: opacity .35s; }
/* Honeypot anti-spam (oculto) */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
/* Texto de ayuda bajo los campos */
.contact-hint { font-size: 12px; color: rgba(29,29,31,0.42); margin: -0.3rem 0 0.1rem; transition: color .2s; }
.contact-hint.is-error { color: #D8412F; }

/* Footer */
.footer { background: #FFFFFF; border-top: 1px solid var(--line); }
.footer-copy { color: rgba(29,29,31,0.4); }
.footer-brand::after { background: var(--line); }
.footer-tagline { color: #00926C; }

/* =============================================================
   13. DASHBOARDS EN CELESTE CLARO (estilo Apple, elegante)
   Convierte las capturas oscuras a un celeste claro.
   ============================================================= */

/* Superficies de tarjeta */
.mini-card { background: linear-gradient(165deg, #F7FBFE 0%, #E7F0F9 100%);
  border: 1px solid rgba(30,55,90,0.12); box-shadow: 0 22px 50px rgba(30,60,110,0.16); }
.dashboard { background: linear-gradient(180deg, #F2F8FD 0%, #E6EFF8 100%) !important;
  border: 1px solid rgba(30,55,90,0.12); box-shadow: 0 26px 64px rgba(30,60,110,0.16); }

/* Tipografía de dashboards = Manrope (misma que la frase, más elegante).
   Se sobreescribe --mono para que hereden Manrope todos los números/labels. */
.mini-card, .dashboard { --mono: "Manrope", -apple-system, "Segoe UI", sans-serif; }
.mini-card [style*="Space Mono"], .dashboard [style*="Space Mono"] { font-family: var(--sans) !important; }

/* Texto principal → azul-oscuro */
.dw-tt b, .dw-q, .dw-kpis b, .dw-bar > b, .dw-f > b, .dw-c, .dw-total b,
.dw-main-hd b, .dw-linehd b { color: #1C2A3A; }
.donut-center-val, .donut-leg-val { color: #1C2A3A !important; }
.kpi-value { color: #0E7C5E; }

/* Texto secundario → gris azulado suave */
.dw-tt span, .dw-x, .dw-shd, .dw-g, .dw-f > span, .dw-note, .dw-kpis span,
.dw-bar > span, .dw-main-hd span, .dw-turno-hd, .dw-linefoot span,
.kpi-label, .funnel-label, .funnel-num, .dim-label, .dim-pct,
.donut-center-lbl, .donut-center-pct, .donut-leg-lbl { color: rgba(28,42,58,0.58) !important; }
.chart-card-title, .dashboard-title { color: rgba(28,42,58,0.78) !important; }
.dw-c.on, .dw-f.on > span, .funnel-row.on .funnel-label, .funnel-row.on .funnel-num { color: #1C2A3A !important; }

/* Pistas de barras y superficies internas → claras */
.dw-f > i, .dw-bar > i, .funnel-bar, .dim-bar { background: rgba(28,55,95,0.09); }
.chart-card { background: rgba(255,255,255,0.55); border: 1px solid rgba(30,55,90,0.10); }
.chart-card:hover { border-color: rgba(30,55,90,0.2); }
.kpi { background: rgba(0,169,129,0.07); border: 1px solid rgba(0,169,129,0.22); }
.kpi:hover { border-color: rgba(0,169,129,0.4); box-shadow: 0 6px 16px rgba(0,169,129,0.12); }

/* Bordes / divisores que eran blancos */
.dw-top { border-bottom-color: rgba(28,55,95,0.12); }
.dw-total, .dw-linefoot { border-top-color: rgba(28,55,95,0.12); }
.funnel-detail { border-color: rgba(28,55,95,0.18); color: rgba(28,42,58,0.6); }
.funnel-detail.on { background: rgba(0,169,129,0.07); border-color: rgba(0,169,129,0.35); color: #1C2A3A; }
.funnel-row:hover { background: rgba(28,55,95,0.05); }
.funnel-row.on { background: rgba(0,169,129,0.08); }
.donut-leg:hover, .donut-leg.on { background: rgba(28,55,95,0.06); }
.live-indicator { color: rgba(0,150,110,0.85); }

/* Alertas / detalles de color sobre claro */
.dw-warn { color: #B4480E; background: rgba(255,120,70,0.10); border-color: rgba(255,120,70,0.3); border-left-color: #E8703A; }
.amb-up { color: #1E9E4A; }

/* Encuesta y Faena en formato apaisado (pantalla de notebook):
   más anchas + contenido más compacto en vertical */
.mc-survey, .mc-pyr { padding: 13px 15px; }
/* (el padding-top real lo fija la sección 14 — ventana macOS) */
.mc-survey .dw-top { margin-bottom: 7px; padding-bottom: 6px; }
.mc-survey .dw-f, .mc-pyr .dw-f { margin-bottom: 1px; }
.mc-survey .dw-g, .mc-pyr .dw-g { margin: 5px 0 3px; }
.mc-survey .dw-bar, .mc-pyr .dw-bar { margin-bottom: 3px; }
.mc-survey .dw-q { margin-bottom: 6px; }
.mc-survey .dw-kpis { margin-bottom: 6px; }
.mc-survey .dw-note { margin-top: 6px; }
.mc-pyr .dw-main-hd span { margin: 2px 0 5px; }
.mc-pyr .dw-warn { margin: 5px 0; padding: 2.5px 7px; font-size: 6.5px; line-height: 1.2; border-left-width: 2px; }
.mc-pyr .dw-turno-hd { margin-bottom: 4px; }
.mc-pyr .dw-total { margin-top: 6px; padding-top: 6px; }

/* =============================================================
   14. VENTANAS ESTILO APPLE/macOS (dashboards del hero + panel)
   Superficies blancas limpias, bordes menos redondeados,
   sombra difusa sin glow, y barra de ventana con 3 puntos.
   La animación (float + hover) no se toca.
   ============================================================= */
.mini-card {
  border-radius: 12px;
  padding: 38px 16px 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 22px 44px rgba(20,40,70,0.10);
}
.mc-survey, .mc-pyr { padding: 38px 15px 12px; }

/* Barra de ventana (chrome) */
.mini-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 27px;
  background: linear-gradient(180deg, #FAFBFD, #F1F4F8);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px 12px 0 0;
}
/* Los 3 puntos de ventana (grises, elegantes) */
.mini-card::after {
  content: ""; position: absolute; top: 10px; left: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #DFE3E9;
  box-shadow: 14px 0 0 #DFE3E9, 28px 0 0 #DFE3E9;
}
.mini-card:hover {
  border-color: rgba(0,0,0,0.13);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 38px 72px rgba(20,40,70,0.17);
}

/* Panel "¿Qué hacemos?" con la misma ventana */
.dashboard {
  border-radius: 14px;
  padding: 48px 20px 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F9FC 100%) !important;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 26px 56px rgba(20,40,70,0.12);
}
.dashboard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 29px;
  background: linear-gradient(180deg, #FAFBFD, #F1F4F8);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px 14px 0 0;
}
.dashboard::after {
  content: ""; position: absolute; top: 11px; left: 15px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #DFE3E9;
  box-shadow: 14px 0 0 #DFE3E9, 28px 0 0 #DFE3E9;
}

/* Tarjetas internas más crujientes sobre blanco */
.chart-card { background: #FFFFFF; border: 1px solid rgba(0,0,0,0.07); border-radius: 10px; }
.chart-card:hover { border-color: rgba(0,0,0,0.14); }
.kpi { border-radius: 10px; }

/* =============================================================
   13b. Lenguaje de dashboard real (tiles, deltas, pills, leyenda)
   ============================================================= */
/* Stat tiles (label + valor + delta/sparkline) */
.dw-kpis { display: flex; gap: 7px; margin-bottom: 11px; }
.dw-tile {
  flex: 1; min-width: 0;
  background: #FFFFFF; border: 1px solid rgba(28,55,95,0.09);
  border-radius: 8px; padding: 6px 8px 6px;
  box-shadow: 0 1px 2px rgba(20,40,70,0.04);
  overflow: hidden;
}
.dt-lbl { display: block; font-size: 5.5px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: rgba(28,42,58,0.45); margin-bottom: 2px; }
.dw-kpis .dw-tile b { display: block; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: -0.3px; color: #1C2A3A; line-height: 1.05; }
.dt-delta { display: inline-block; margin-top: 3px; font-size: 5px; font-weight: 700; padding: 1.5px 4px; border-radius: 6px; white-space: normal; max-width: 100%; line-height: 1.4; }
.dt-delta.up { color: #0E7C5E !important; background: rgba(0,169,129,0.1); }
.dt-delta.down { color: #B4480E !important; background: rgba(240,135,10,0.12); }
.dt-sub { display: block; margin-top: 3.5px; font-size: 6px; font-weight: 600; color: rgba(28,42,58,0.55); }
.dt-sub::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #3A7BD5; margin-right: 3px; vertical-align: 0.5px; }
.dw-tile-spark { display: flex; flex-direction: column; }
.dt-spark { width: 100%; height: 15px; margin-top: 3px; overflow: visible; }

/* Pills de período / vistas (segmented control) */
.dw-pills { display: inline-flex; gap: 2px; background: rgba(28,55,95,0.06); border-radius: 6px; padding: 2px; flex-shrink: 0; }
.dw-pills span { font-size: 5.5px; font-weight: 700; color: rgba(28,42,58,0.5); padding: 2.5px 6px; border-radius: 4.5px; white-space: nowrap; }
.dw-pills span.on { background: #FFFFFF; color: #1C2A3A; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }

/* Cabecera de Faena con pills a la derecha */
.dw-main-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }

/* Leyenda del gráfico de línea (2 series) */
.dw-legend { display: flex; gap: 11px; margin: 1px 0 4px; }
.dw-legend .lg { display: inline-flex; align-items: center; gap: 4px; font-size: 6px; font-weight: 600; color: rgba(28,42,58,0.55); }
.lg-line { width: 10px; height: 2px; border-radius: 2px; background: #00A981; }
.lg-dash { width: 10px; height: 0; border-top: 2px dashed #F0870A; }

/* Punto final "en vivo" de la línea */
.dot-end { transform-box: fill-box; transform-origin: center; animation: dotPulse 2.2s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .dot-end { animation: none; } }

/* Pistas de barras = paso más claro del mismo tono (no gris) */
.mc-survey .dw-bar > i, .mc-pyr .dw-bar.blue > i { background: rgba(74,134,200,0.13); }
.mc-survey .dw-f > i { background: rgba(74,134,200,0.11); }

/* Demo en vivo: las barras se reajustan con animación al cambiar de estado */
.dw-f > i::after, .dw-bar > i::after { transition: width 0.9s var(--ease-out); }
.dw-f, .dw-c { transition: background-color 0.35s, border-color 0.35s; }
.dw-f > span, .dw-c { transition: color 0.35s; }

/* Sidebars (filtros) aún más pequeños — protagonismo al panel derecho */
.dw-cols { grid-template-columns: 22% 1fr; gap: 15px; }
.dw-side { opacity: 0.92; }
.dw-side .dw-shd { font-size: 4.5px; margin-bottom: 4px; letter-spacing: 0.3px; }
.dw-side .dw-g { font-size: 4.5px; margin: 5px 0 2px; letter-spacing: 0.3px; }
.dw-side .dw-f { grid-template-columns: 26px 1fr 10px; gap: 3px; margin-bottom: 1px; }
.dw-side .dw-f > span { font-size: 5px; }
.dw-side .dw-f > b { font-size: 5px; }
.dw-side .dw-f > i { height: 2.5px; }
.dw-side .dw-c { font-size: 5.5px; padding: 2px 4px; margin-bottom: 1px; }
.dw-side .dw-c.on::before { width: 3.5px; height: 3.5px; margin-right: 2.5px; }
.dw-side .dw-total { margin-top: 5px; padding-top: 5px; }
.dw-side .dw-total b { font-size: 10px; }
.dw-side .dw-total span { font-size: 4.5px; }

/* Barras del panel derecho (respuestas encuesta + distribución por turno) más finas */
.mc-survey .dw-bar, .mc-pyr .dw-bar { grid-template-columns: 56px 1fr auto; gap: 6px; }
.mc-survey .dw-bar > span, .mc-pyr .dw-bar > span { font-size: 7px; }
.mc-survey .dw-bar > i, .mc-pyr .dw-bar > i { height: 6px; }
.mc-survey .dw-bar > b, .mc-pyr .dw-bar > b { font-size: 7px; }

/* Pregunta de la encuesta en gris (menos negra) y más pequeña */
.mc-survey .dw-q { color: rgba(28,42,58,0.55); font-weight: 500; font-size: 7.5px; line-height: 1.3; margin-bottom: 5px; }
/* Badge "PREGUNTA P9 · CÓMO SE PREGUNTÓ" mucho más pequeño */
.mc-survey .dw-badge { font-size: 5.5px; padding: 2px 5px; letter-spacing: 0.4px; margin-bottom: 6px; border-radius: 4px; }
/* Barras de la encuesta en AZUL (el dashboard tenía demasiado naranjo) */
.mc-survey .dw-bar > i::after { background: rgba(74,134,200,0.32); }
.mc-survey .dw-bar > i.on::after { background: linear-gradient(90deg, #5C9BD5, #3E77B8); }
.mc-survey .dw-f > i::after { background: rgba(74,134,200,0.3); }
.mc-survey .dw-f.on > i::after { background: linear-gradient(90deg, #5C9BD5, #3E77B8); }
.mc-survey .dw-f.on > span { color: #1C2A3A; }

/* Bloques extra de los servicios (integraciones / áreas de trabajo) */
.svc-extra { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.svc-extra-label {
  display: block; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase; color: #00926C; margin-bottom: 12px;
}
/* Sin rectángulos: texto separado por divisores finos (estilo fila de capacidades) */
.svc-chips { display: block; line-height: 1.9; color: rgba(29,29,31,0.72); }
.svc-chips span { font-family: var(--sans); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.svc-chips span:not(:last-child)::after {
  content: ""; display: inline-block; width: 1px; height: 9px;
  background: rgba(0,0,0,0.16); margin: 0 5px; vertical-align: -1px;
}
@media (min-width: 1360px) { .svc-chips span { font-size: 11.5px; } .svc-chips span:not(:last-child)::after { margin: 0 8px; } }
.svc-extra-note { margin-top: 12px; font-size: 13px; color: rgba(29,29,31,0.55); text-align: left !important; }

/* Toggle de tema junto al botón Hablemos */
.nav-right { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-toggle {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; color: var(--text);
  background: transparent; flex-shrink: 0;
  transition: background-color .2s, border-color .2s, transform .3s var(--ease-out);
}
.theme-toggle:hover { background: rgba(0,0,0,0.05); transform: rotate(-14deg); }

/* Mensaje de seguridad de datos (Gobernanza) */
.svc-secure {
  margin-top: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: #00926C;
  text-align: left !important;
}
.svc-secure i { font-size: 16px; flex-shrink: 0; }

/* =============================================================
   15. MÓVIL: collage superpuesto + tap trae la tarjeta al frente
   ============================================================= */
@media (max-width: 1039px) {
  .dash-collage { gap: 0; }
  .mini-card { width: 92% !important; cursor: pointer; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
  .mc-survey { z-index: 1; align-self: flex-start; }
  .mc-pyr    { margin-top: -80px; z-index: 2; align-self: flex-end; }
  .mc-line   { margin-top: -80px; z-index: 3; align-self: flex-start; }
  /* Tap: la tarjeta activa sale hacia adelante */
  .mini-card.front {
    z-index: 30;
    transform: translateY(-8px) scale(1.04) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06), 0 30px 56px rgba(20,40,70,0.24);
    border-color: rgba(0,0,0,0.14);
  }
}

/* =============================================================
   16. TEMA OSCURO (toggle en el nav) — elegante, superficies
   azul-negro profundas, mismo verde IGMA como acento.
   ============================================================= */
html[data-theme="dark"] {
  --bg: #06080D;
  --bg-raise: #0B0F16;
  --text: #EDF2F6;
  --text-soft: rgba(200,214,226,0.6);
  --line: rgba(255,255,255,0.1);
  --line-soft: rgba(255,255,255,0.06);
}

/* Nav */
html[data-theme="dark"] .nav { background: rgba(7,10,15,0.72); border-bottom-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .nav.is-scrolled { background: rgba(7,10,15,0.88); }
html[data-theme="dark"] .nav-link { color: rgba(237,242,246,0.62); }
html[data-theme="dark"] .nav-link:hover { color: #fff; }
html[data-theme="dark"] .nav-cta.btn-primary { background: #1B222D; color: #EDF2F6; }
html[data-theme="dark"] .nav-cta.btn-primary:hover { background: #242D3B; }
html[data-theme="dark"] .nav-mobile { background: rgba(6,8,13,0.97); }
html[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,0.08); }
/* El logo oscuro se invierte a blanco */
html[data-theme="dark"] img[src*="logo-igma-dark"] { filter: invert(1); }

/* Titular: líneas conectoras visibles sobre oscuro */
html[data-theme="dark"] .ht-serif { color: rgba(215,228,238,0.62); }

/* Hero: resplandor sutil (estilo Nexor) */
html[data-theme="dark"] .hero::before {
  display: block;
  background:
    radial-gradient(ellipse 46% 38% at 68% 12%, rgba(0,169,129,0.10), transparent 65%),
    radial-gradient(ellipse 40% 32% at 22% 30%, rgba(74,134,200,0.07), transparent 60%);
  animation: none;
}

/* Divisores de secciones */
html[data-theme="dark"] .about::before,
html[data-theme="dark"] .contact::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); }
html[data-theme="dark"] .about-text { color: rgba(205,218,228,0.68); }
html[data-theme="dark"] .vertical-label { color: rgba(255,255,255,0.25); }
html[data-theme="dark"] .tag { color: var(--text); }
html[data-theme="dark"] .tag:not(:first-child)::before { background: rgba(255,255,255,0.18); }
html[data-theme="dark"] .tag:hover { color: #fff; }

/* Servicios */
html[data-theme="dark"] .service-item { background: #0D1219; border-color: rgba(255,255,255,0.08); box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
html[data-theme="dark"] .service-item:hover { border-color: rgba(255,255,255,0.16); box-shadow: 0 18px 44px rgba(0,0,0,0.5); }
html[data-theme="dark"] .service-item p { color: rgba(205,218,228,0.6); }
html[data-theme="dark"] .svc-chips { color: rgba(220,230,238,0.72); }
html[data-theme="dark"] .svc-chips span:not(:last-child)::after { background: rgba(255,255,255,0.2); }
html[data-theme="dark"] .svc-extra-note { color: rgba(205,218,228,0.5); }
html[data-theme="dark"] .svc-secure { color: rgba(0,220,170,0.85); }

/* Ventanas macOS (dashboards) en oscuro */
html[data-theme="dark"] .mini-card {
  background: linear-gradient(180deg, #12171F 0%, #0D1118 100%);
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 24px 48px rgba(0,0,0,0.5);
}
html[data-theme="dark"] .mini-card::before { background: linear-gradient(180deg, #171D27, #11161E); border-bottom-color: rgba(255,255,255,0.06); }
html[data-theme="dark"] .mini-card::after { background: #333B49; box-shadow: 14px 0 0 #333B49, 28px 0 0 #333B49; }
html[data-theme="dark"] .mini-card:hover { border-color: rgba(255,255,255,0.17); box-shadow: 0 3px 6px rgba(0,0,0,0.4), 0 38px 72px rgba(0,0,0,0.6); }
html[data-theme="dark"] .dashboard {
  background: linear-gradient(180deg, #12171F 0%, #0D1118 100%) !important;
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 26px 56px rgba(0,0,0,0.5);
}
html[data-theme="dark"] .dashboard::before { background: linear-gradient(180deg, #171D27, #11161E); border-bottom-color: rgba(255,255,255,0.06); }
html[data-theme="dark"] .dashboard::after { background: #333B49; box-shadow: 14px 0 0 #333B49, 28px 0 0 #333B49; }

/* Tintas internas de los dashboards */
html[data-theme="dark"] .dw-tt b,
html[data-theme="dark"] .dw-kpis .dw-tile b,
html[data-theme="dark"] .dw-bar > b,
html[data-theme="dark"] .dw-f > b,
html[data-theme="dark"] .dw-c,
html[data-theme="dark"] .dw-total b,
html[data-theme="dark"] .dw-main-hd b,
html[data-theme="dark"] .dw-linehd b { color: #EDF2F6; }
html[data-theme="dark"] .mc-survey .dw-q { color: rgba(205,218,228,0.6); }
html[data-theme="dark"] .dw-tt span,
html[data-theme="dark"] .dw-x,
html[data-theme="dark"] .dw-shd,
html[data-theme="dark"] .dw-g,
html[data-theme="dark"] .dw-f > span,
html[data-theme="dark"] .dw-note,
html[data-theme="dark"] .dw-bar > span,
html[data-theme="dark"] .dw-main-hd span,
html[data-theme="dark"] .dw-turno-hd,
html[data-theme="dark"] .dw-linefoot span,
html[data-theme="dark"] .kpi-label,
html[data-theme="dark"] .funnel-label,
html[data-theme="dark"] .funnel-num,
html[data-theme="dark"] .dim-label,
html[data-theme="dark"] .dim-pct,
html[data-theme="dark"] .donut-center-lbl,
html[data-theme="dark"] .donut-center-pct,
html[data-theme="dark"] .donut-leg-lbl,
html[data-theme="dark"] .dt-lbl,
html[data-theme="dark"] .dt-sub,
html[data-theme="dark"] .dw-legend .lg { color: rgba(205,218,228,0.55) !important; }
html[data-theme="dark"] .chart-card-title,
html[data-theme="dark"] .dashboard-title { color: rgba(226,236,244,0.82) !important; }
html[data-theme="dark"] .donut-center-val,
html[data-theme="dark"] .donut-leg-val { color: #EDF2F6 !important; }
html[data-theme="dark"] .dw-c.on,
html[data-theme="dark"] .dw-f.on > span,
html[data-theme="dark"] .funnel-row.on .funnel-label,
html[data-theme="dark"] .funnel-row.on .funnel-num { color: #fff !important; }
html[data-theme="dark"] .dw-bar > b em { color: rgba(205,218,228,0.4); }

/* Tiles, pills, pistas y superficies internas */
html[data-theme="dark"] .dw-tile { background: #151B25; border-color: rgba(255,255,255,0.08); box-shadow: none; }
html[data-theme="dark"] .dt-delta.up { color: #5EDBB4 !important; background: rgba(0,169,129,0.16); }
html[data-theme="dark"] .dt-delta.down { color: #FFB27E !important; background: rgba(240,135,10,0.16); }
html[data-theme="dark"] .dw-pills { background: rgba(255,255,255,0.08); }
html[data-theme="dark"] .dw-pills span { color: rgba(220,230,238,0.55); }
html[data-theme="dark"] .dw-pills span.on { background: #242D3B; color: #fff; box-shadow: none; }
html[data-theme="dark"] .dw-f > i, html[data-theme="dark"] .dw-bar > i,
html[data-theme="dark"] .funnel-bar, html[data-theme="dark"] .dim-bar { background: rgba(255,255,255,0.09); }
html[data-theme="dark"] .mc-survey .dw-bar > i,
html[data-theme="dark"] .mc-pyr .dw-bar.blue > i,
html[data-theme="dark"] .mc-survey .dw-f > i { background: rgba(110,170,240,0.16); }
html[data-theme="dark"] .dw-top { border-bottom-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .dw-total, html[data-theme="dark"] .dw-linefoot { border-top-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .chart-card { background: #10151D; border-color: rgba(255,255,255,0.07); }
html[data-theme="dark"] .chart-card:hover { border-color: rgba(255,255,255,0.14); }
html[data-theme="dark"] .funnel-row:hover { background: rgba(255,255,255,0.05); }
html[data-theme="dark"] .funnel-row.on { background: rgba(0,169,129,0.12); }
html[data-theme="dark"] .funnel-detail { border-color: rgba(255,255,255,0.15); color: rgba(205,218,228,0.55); }
html[data-theme="dark"] .funnel-detail.on { background: rgba(0,169,129,0.1); border-color: rgba(0,169,129,0.4); color: #EDF2F6; }
html[data-theme="dark"] .donut-leg:hover, html[data-theme="dark"] .donut-leg.on { background: rgba(255,255,255,0.07); }
html[data-theme="dark"] .dw-warn { color: #FFB27E; background: rgba(255,140,80,0.1); border-color: rgba(255,140,80,0.28); border-left-color: #E8703A; }
html[data-theme="dark"] .dw-c.on { background: rgba(255,159,10,0.14); border-color: rgba(255,159,10,0.32); }
html[data-theme="dark"] .lg-line { background: #00C89A; }

/* Contacto y footer */
html[data-theme="dark"] .field input, html[data-theme="dark"] .field textarea { background: #0D1219; border-color: var(--line); color: var(--text); }
html[data-theme="dark"] .contact-hint { color: rgba(220,230,238,0.4); }
html[data-theme="dark"] .cta-success { background: #0D1219; }
html[data-theme="dark"] .footer { background: #05070B; border-top-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .footer-copy { color: rgba(255,255,255,0.32); }
html[data-theme="dark"] .footer-brand::after { background: rgba(255,255,255,0.15); }

/* =============================================================
   17. Reclutamiento (hero) + pirámide ejecutiva + footer social
   ============================================================= */
.dw-ico-blue { background: rgba(74,134,200,0.14); border-color: rgba(74,134,200,0.35); color: #3A7BD5; }

/* Donut de reclutamiento */
.rc-flex { display: flex; align-items: center; gap: 12px; }
.rc-donut { position: relative; width: 118px; height: 118px; flex-shrink: 0; }
.rc-c-val { font-size: 22px; }
.rc-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.rc-c-lbl { font-size: 5.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: rgba(28,42,58,0.5); transition: color 0.2s; max-width: 56px; line-height: 1.15; }
.rc-c-val { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; color: #1C2A3A; line-height: 1.05; margin-top: 1px; }
.rc-c-pct { font-size: 5.5px; font-weight: 700; color: rgba(28,42,58,0.5); min-height: 8px; margin-top: 1px; }
.rc-seg { cursor: pointer; }
.rc-leg { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.rc-lg { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 5px; padding: 2.5px 6px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-family: var(--sans); text-align: left; transition: background-color 0.15s; }
.rc-lg:hover, .rc-lg.on { background: rgba(28,55,95,0.06); }
.rc-lg i { width: 7px; height: 7px; border-radius: 50%; }
.rc-lg span { font-size: 7px; font-weight: 600; color: rgba(28,42,58,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-lg b { font-size: 8px; font-weight: 700; color: #1C2A3A; }

/* Pirámide ejecutiva (bullet chart: real vs ideal) */
.blt-key { display: flex; gap: 12px; margin-bottom: 7px; }
.blt-key span { display: inline-flex; align-items: center; gap: 4px; font-size: 6px; font-weight: 600; color: rgba(28,42,58,0.55); }
.bk-bar { width: 10px; height: 5px; border-radius: 2.5px; background: #3A7BD5; }
.bk-tick { width: 2px; height: 9px; border-radius: 1px; background: #1C2A3A; }
.blt-row { display: grid; grid-template-columns: 46px 1fr 24px 22px; align-items: center; gap: 7px; margin-bottom: 6px; }
.blt-lbl { font-size: 7px; font-weight: 600; color: rgba(28,42,58,0.6); text-align: right; }
.blt-track { position: relative; height: 9px; border-radius: 5px; background: rgba(74,134,200,0.13); }
.blt-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, #4C93EC, #2f6fb8); transform-origin: left; animation: svGrow 1s var(--ease-out) both; transition: width 0.9s var(--ease-out); }
.blt-fill.off { background: linear-gradient(90deg, #F5A623, #E8891A); }
.blt-tick { position: absolute; top: -2px; bottom: -2px; width: 2px; border-radius: 1px; background: #1C2A3A; transform: translateX(-1px); transition: left 0.9s var(--ease-out); }
.blt-val { font-size: 7.5px; font-weight: 700; color: #1C2A3A; text-align: right; }
.blt-dev { font-size: 6px; font-weight: 700; color: rgba(28,42,58,0.45); text-align: right; white-space: nowrap; }
.blt-dev.off { color: #B4480E; }

/* Footer: LinkedIn */
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); color: rgba(29,29,31,0.6); font-size: 17px; transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease-out); }
.footer-social:hover { color: #0A66C2; border-color: rgba(10,102,194,0.4); transform: translateY(-2px); }

/* Variantes dark de lo nuevo */
html[data-theme="dark"] .dw-ico-blue { background: rgba(110,170,240,0.15); border-color: rgba(110,170,240,0.35); color: #8EC2FF; }
html[data-theme="dark"] .rc-c-lbl, html[data-theme="dark"] .rc-c-pct { color: rgba(205,218,228,0.55); }
html[data-theme="dark"] .rc-c-val, html[data-theme="dark"] .rc-lg b { color: #EDF2F6; }
html[data-theme="dark"] .rc-lg span { color: rgba(205,218,228,0.6); }
html[data-theme="dark"] .rc-lg:hover, html[data-theme="dark"] .rc-lg.on { background: rgba(255,255,255,0.07); }
html[data-theme="dark"] .blt-key span, html[data-theme="dark"] .blt-lbl { color: rgba(205,218,228,0.55); }
html[data-theme="dark"] .bk-tick, html[data-theme="dark"] .blt-tick { background: #EDF2F6; }
html[data-theme="dark"] .blt-val { color: #EDF2F6; }
html[data-theme="dark"] .blt-dev { color: rgba(205,218,228,0.45); }
html[data-theme="dark"] .blt-dev.off { color: #FFB27E; }
html[data-theme="dark"] .blt-track { background: rgba(110,170,240,0.16); }
html[data-theme="dark"] .footer-social { color: rgba(237,242,246,0.6); }

/* =============================================================
   18. Refresh estilo hoktus: titular uniforme, celular,
       trama de puntos, halos y flotación de tarjetas
   ============================================================= */

/* --- Titular hero: un solo estilo de letra, 4 líneas fijas --- */
/* El tamaño se calcula contra el ancho de la columna (cqw) para que
   la línea más larga ("la forma en que las organizaciones") nunca se quiebre */
.hero-text { container-type: inline-size; }
.ht-uni {
  display: block;
  font-family: var(--display); font-weight: 300; font-style: normal;
  font-size: clamp(22px, 8.1cqw, 72px);
  line-height: 1.12; letter-spacing: -0.025em;
  color: var(--text); text-transform: none;
}
.ht-uni .ht-mint { font-style: normal; font-weight: 400; }
@media (max-width: 768px) {
  .hero-title { display: flex; }
}

/* --- "Soluciones Estratégicas" bajo el logo del nav --- */
.nav-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.nav-brand-sub {
  font-family: var(--sans); font-size: 6.8px; font-weight: 700;
  letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--text-soft); padding-left: 2px; white-space: nowrap;
}

/* --- Paisaje del hero (estilo hoktus): colinas en capas al pie --- */
.landscape {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
/* Neblina/atmósfera sobre la línea del horizonte */
.lsc-haze {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,169,129,0.07) 45%, rgba(0,169,129,0.16) 100%);
}
.lsc-svg {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 46%;
  display: block;
}
/* Perspectiva aérea: los cerros lejanos más claros, los cercanos más saturados */
.lsc-h3 { fill: rgba(0,169,129,0.13); }
.lsc-h2 { fill: rgba(0,169,129,0.22); }
.lsc-h1 { fill: rgba(0,150,116,0.34); }

html[data-theme="dark"] .lsc-haze {
  background: linear-gradient(180deg, transparent 0%, rgba(0,150,116,0.07) 45%, rgba(0,120,92,0.16) 100%);
}
html[data-theme="dark"] .lsc-h3 { fill: rgba(0,110,86,0.34); }
html[data-theme="dark"] .lsc-h2 { fill: rgba(0,88,68,0.48); }
html[data-theme="dark"] .lsc-h1 { fill: rgba(3,62,50,0.68); }

/* En claro los fondos del tema oscuro se ocultan; el paisaje debe seguir visible */
.hero .landscape { display: block !important; }
@media (max-width: 768px) { .lsc-svg { height: 34%; } }

/* --- Trama de puntos (fondo con textura, estilo hoktus) --- */
.dotgrid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(12,16,37,0.065) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 28%, transparent 80%);
  mask-image: radial-gradient(130% 100% at 50% 0%, #000 28%, transparent 80%);
}
html[data-theme="dark"] .dotgrid {
  background-image: radial-gradient(circle, rgba(170,200,225,0.06) 1px, transparent 1px);
}

/* --- Halo radial en la cabecera de secciones --- */
.sec-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(68% 44% at 50% 0%, rgba(0,169,129,0.09), transparent 70%);
}
html[data-theme="dark"] .sec-glow {
  background: radial-gradient(68% 44% at 50% 0%, rgba(0,212,160,0.11), transparent 70%);
}

/* --- Flotación independiente por tarjeta (nd-float de hoktus) --- */
@keyframes cardFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (min-width: 1040px) {
  .dash-collage { animation: none; }
  .mc-survey { animation: cardFloat 7.2s ease-in-out infinite; }
  .mc-pyr    { animation: cardFloat 8.6s ease-in-out 1.3s infinite; }
  .mc-phone  { animation: cardFloat 6.2s ease-in-out 0.6s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-survey, .mc-pyr, .mc-phone { animation: none; }
}

/* --- Tarjeta 3: mockup de celular --- */
/* Tema claro: marco plata/gris (un contorno negro se ve duro sobre fondo blanco) */
.mc-phone {
  width: 33%; top: 2%; right: -4%;
  padding: 9px; border-radius: 44px;
  background: linear-gradient(165deg, #FDFEFF 0%, #DDE4EC 32%, #C2CBD6 100%);
  border: 1px solid rgba(150,165,182,0.55);
  box-shadow: 0 26px 54px rgba(30,60,110,0.20), inset 0 0 0 2px #EEF2F7;
}
html[data-theme="dark"] .mc-phone {
  background: linear-gradient(180deg, #2B313A 0%, #14181E 8%, #0C0F14 100%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 34px 68px rgba(0,0,0,0.5), inset 0 0 0 2px #04060A;
}
.mc-phone::before, .mc-phone::after { content: none !important; }

.phone-screen {
  position: relative; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F9FD 100%);
  padding: 27px 11px 8px;
}
html[data-theme="dark"] .phone-screen { background: linear-gradient(180deg, #10151D 0%, #0B0F16 100%); }

/* Status bar + isla dinámica.
   Los tamaños siguen la misma proporción respecto al ancho del equipo que
   en móvil (hora ≈ 4,7% del ancho, isla ≈ 27%), si no se ven desmedidos. */
.phone-status {
  position: absolute; top: 0; left: 0; right: 0; height: 23px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 13px;
}
.ps-time { font-size: 7.5px; font-weight: 800; color: #1C2A3A; letter-spacing: 0.2px; }
.ps-ic { display: inline-flex; gap: 2px; font-size: 7.5px; color: #1C2A3A; }
html[data-theme="dark"] .ps-time, html[data-theme="dark"] .ps-ic { color: #EDF2F6; }
.phone-island {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 45px; height: 12px; border-radius: 999px; background: #38414D;
}
html[data-theme="dark"] .phone-island { background: #04060A; }

/* El tooltip del gráfico se posiciona respecto al propio chart */
#dotacion-chart { position: relative; }

/* Encabezado del dashboard apilado en vertical */
.mc-phone .dw-linehd { flex-direction: column; align-items: stretch; gap: 7px; }
.mc-phone .dw-linehd b { font-size: 11px; }
.mc-phone .dw-pills { align-self: flex-start; }

/* Tab bar de app */
.phone-tabbar {
  display: flex; justify-content: space-around; align-items: center;
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid rgba(28,55,95,0.12);
}
.phone-tabbar span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--sans); font-size: 6.5px; font-weight: 700;
  color: rgba(28,42,58,0.45);
}
.phone-tabbar span i { font-size: 14px; }
.phone-tabbar span.on { color: var(--accent-1); }
html[data-theme="dark"] .phone-tabbar { border-top-color: rgba(255,255,255,0.09); }
html[data-theme="dark"] .phone-tabbar span { color: rgba(205,218,228,0.42); }
html[data-theme="dark"] .phone-tabbar span.on { color: var(--accent-1); }

/* Home bar */
.phone-homebar {
  width: 62px; height: 4px; border-radius: 999px;
  background: rgba(28,42,58,0.32); margin: 7px auto 1px;
}
html[data-theme="dark"] .phone-homebar { background: rgba(237,242,246,0.35); }

/* En el flujo apilado (tablet) el celular se muestra a tamaño natural */
@media (max-width: 1039px) {
  .mc-phone { width: 46% !important; max-width: 230px; margin-inline: auto; }
}

/* =============================================================
   19. Móvil: dashboards legibles y celular esbelto
   En escritorio los sidebars van al 22% con texto de 4,5px porque
   las tarjetas son grandes. A 308px de ancho eso es ilegible, así
   que el filtro lateral se oculta y el panel toma todo el ancho.
   ============================================================= */
@media (max-width: 768px) {
  .mc-survey .dw-side, .mc-pyr .dw-side { display: none; }
  .dw-cols { grid-template-columns: 1fr; gap: 0; }

  /* Collage: las tarjetas se pisan un poco. El traslape original (-80px)
     enterraba la nota del donut y las barras de turno, así que se les suma
     zócalo inferior: lo que la tarjeta de abajo tapa es ese aire, no datos. */
  .dash-collage { gap: 0; }
  .mc-survey { align-self: flex-start; padding-bottom: 76px; }
  .mc-pyr    { margin-top: -64px; align-self: flex-end; padding-bottom: 76px; }
  .mc-phone  { margin-top: -64px; align-self: center; }

  /* Encabezados */
  .dw-tt b, .dw-main-hd b { font-size: 13px; }
  .dw-tt span, .dw-main-hd span { font-size: 8.5px; }
  .dw-top { gap: 8px; }

  /* Tarjetas KPI */
  /* .dw-kpis span pisa a .dt-lbl/.dt-delta: hay que igualar especificidad */
  .dw-kpis .dt-lbl { font-size: 8px; letter-spacing: 0.2px; }
  .dw-kpis { gap: 10px; margin-bottom: 13px; }
  .dw-kpis .dw-tile b { font-size: 23px; }
  .dw-tile { padding: 9px 10px; }
  .dw-kpis .dt-delta { font-size: 8px; padding: 2.5px 6px; margin-top: 5px; }

  /* Donut de reclutamiento */
  .rc-flex { gap: 14px; }
  .rc-donut { width: 138px; height: 138px; }
  .rc-c-val { font-size: 26px; }
  .rc-c-lbl, .rc-c-pct { font-size: 7.5px; }
  .rc-lg { padding: 4px 6px; }
  .rc-lg span { font-size: 9px; }
  .rc-lg b { font-size: 10px; }

  /* Barras de turno y notas */
  .mc-survey .dw-bar, .mc-pyr .dw-bar { grid-template-columns: 74px 1fr auto; gap: 8px; }
  .mc-survey .dw-bar > span, .mc-pyr .dw-bar > span { font-size: 9.5px; }
  .mc-survey .dw-bar > b, .mc-pyr .dw-bar > b { font-size: 10px; }
  .dw-turno-hd { font-size: 8.5px; }
  .dw-note { font-size: 9px; line-height: 1.45; }
  .mc-pyr .dw-warn { font-size: 9px; padding: 5px 8px; line-height: 1.35; margin: 8px 0; }
  .phone-tabbar span { font-size: 7px; }
  .dw-pills span { font-size: 8px; }

  /* --- Celular: proporción esbelta, como un equipo real --- */
  .mc-phone { width: 190px !important; max-width: 190px; padding: 7px; border-radius: 34px; }
  .phone-screen { border-radius: 27px; padding: 31px 9px 7px; }
  .phone-status { height: 27px; padding: 0 14px; }
  .phone-island { width: 52px; height: 14px; top: 7px; }
  .ps-time, .ps-ic { font-size: 9px; }
  .mc-phone .dw-linehd b { font-size: 10px; }
  .mc-phone .amb-up { font-size: 8px; }
  .mc-phone .dw-legend .lg { font-size: 8px; }
  .mc-phone .dw-linefoot span { font-size: 7.5px; }
  .mc-phone .dw-linefoot a { font-size: 8px; }
  .phone-tabbar span i { font-size: 13px; }
}

/* Al apilarse, las tarjetas son relative (para anclar su barra de ventana),
   así que hay que anular el top/left/right del collage de escritorio: en
   relative esos valores desplazan la tarjeta (left:-16% la sacaba del borde). */
@media (max-width: 1039px) {
  .mini-card, .mc-survey, .mc-pyr, .mc-line, .mc-phone { inset: auto; }
}

/* =============================================================
   20. "Han confiado en nosotros" — banda de logos, muy tenue
   Los tres logos se aplanan a silueta monocroma (brightness(0),
   invertida en oscuro): con grayscale cada marca conservaría su
   luminancia y se verían de tonos distintos.
   ============================================================= */
/* La banda cierra el bloque de dashboards, así que va pegada a él: se recorta
   el zócalo de Servicios (110px) y el techo propio, dejando ~60px en vez de 168. */
.services { padding-bottom: 34px; }
.trust { padding-block: 26px 62px; position: relative; background: var(--bg); }
.trust-label {
  text-align: center;
  font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--text-soft); opacity: 0.55;
  margin-bottom: 28px;
}
.trust-logos {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(32px, 6.5vw, 76px); flex-wrap: wrap;
}
/* flex:0 0 auto — sin esto flexbox toma el ancho intrínseco del archivo
   (BHP mide 3840px) como base y encoge las imágenes, deformándolas. */
.trust-logos > * { flex: 0 0 auto; }
.trust-logos img {
  width: auto; display: block;
  filter: brightness(0);
  opacity: 0.32;
  transition: opacity .45s var(--ease-out);
}
.trust-logos img:hover { opacity: 0.58; }

/* Alturas ópticas: BHP es sólo el logotipo y llena el alto; Codelco
   apila símbolo y palabra, así que necesita más para pesar igual. */
.tl-cmp     { height: 38px; }
.tl-codelco { height: 52px; }
.tl-bhp     { height: 30px; }

/* Bajada bajo BHP. El logo es una silueta con filtro y el texto no puede
   llevar ese filtro, así que iguala el gris con color + la misma opacidad. */
/* El padding superior compensa la bajada: así el logo BHP queda alineado
   con CMP y Codelco, y el texto cuelga por debajo. */
.tl-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 28px; }
.tl-sub {
  font-family: var(--sans); font-size: 8px; font-weight: 800;
  letter-spacing: 0.4px; text-transform: uppercase; line-height: 1.3;
  text-align: center; max-width: 118px;
  color: #000; opacity: 0.32;
  transition: opacity .45s var(--ease-out);
}
.tl-stack:hover .tl-bhp, .tl-stack:hover .tl-sub { opacity: 0.58; }

html[data-theme="dark"] .trust-logos img { filter: brightness(0) invert(1); opacity: 0.26; }
html[data-theme="dark"] .trust-logos img:hover { opacity: 0.48; }
html[data-theme="dark"] .tl-sub { color: #fff; opacity: 0.26; }
html[data-theme="dark"] .tl-stack:hover .tl-bhp,
html[data-theme="dark"] .tl-stack:hover .tl-sub { opacity: 0.48; }

@media (max-width: 768px) {
  .services { padding-bottom: 22px; }
  .trust { padding-block: 18px 44px; }
  .trust-label { font-size: 9.5px; letter-spacing: 2px; margin-bottom: 20px; }
  .trust-logos { gap: 28px 34px; }
  .tl-cmp     { height: 30px; }
  .tl-codelco { height: 41px; }
  .tl-bhp     { height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .trust-logos img { transition: none; } }
