/* ============================================================
   FENDARI — CSAT promo page (csat.html)
   Builds on css/styles.css. Theme-aware (dark + light) via the
   shared custom properties. No inline styles (strict CSP).
   ============================================================ */

/* ---------------- Hero ---------------- */
.chero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 66px 0 74px;   /* .subpage ya aporta el padding-top del nav */
  background: var(--abyss);
  border-bottom: 1px solid var(--ash);
}
.chero__graph { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.chero__graph svg { width: 100%; height: 100%; }
.ng__lines line { stroke: var(--teal); stroke-width: 1; opacity: .20; }
.ng__dots circle { fill: var(--cyan); opacity: .45; }
.chero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(112,220,211,0.10), transparent 62%),
    radial-gradient(760px 420px at 86% 18%, rgba(0,173,228,0.10), transparent 62%);
}
.chero__inner { position: relative; }
.chero__logo { margin-bottom: 22px; }
.chero__title {
  font-size: clamp(32px, 5.2vw, 58px); font-weight: 500; line-height: 1.05;
  letter-spacing: -1.4px; color: var(--snow); max-width: 20ch; margin-bottom: 20px;
}
.chero__title span { display: block; }
.chero__sub { font-size: clamp(15px, 1.7vw, 19px); line-height: 1.6; color: var(--fog); max-width: 70ch; margin-bottom: 28px; }
.chero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.chero__powered { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--fog-dim); }

/* ---------------- White logo chips (colour logos legible on dark) ---------------- */
.logo-chip { display: inline-grid; place-items: center; background: #ffffff; border-radius: 12px; padding: 12px 20px; }
.logo-chip img { height: 46px; width: auto; display: block; }
.logo-chip--sm { padding: 6px 12px; border-radius: 8px; }
.logo-chip--sm img { height: 26px; }
.logo-chip--md { padding: 10px 16px; margin-bottom: 18px; }
.logo-chip--md img { height: 34px; }
.logo-chip .partner-card__name { color: #0d0e12; font-weight: 700; font-size: 17px; }
.logo-chip--sm .partner-card__name { font-size: 14px; }

/* ---------------- Chile / compliance ---------------- */
.grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
@media (max-width: 860px) { .grid--2 { grid-template-columns: 1fr; } }
.comply-grid .card { display: flex; flex-direction: column; }
.comply-card__ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-current); color: #062018; margin-bottom: 16px;
}
.comply-card__ic svg { width: 25px; height: 25px; }
.comply-grid .card__title { margin-bottom: 8px; }
.chip-list--tight { margin-top: 16px; gap: 8px; }
.chip-list--tight li { font-size: 13px; }
.comply-note { margin-top: 24px; font-size: 13px; line-height: 1.65; max-width: 82ch; }

/* ---------------- Scan grid ---------------- */
.scan-grid { margin-top: 36px; }

/* ---------------- Clouds ---------------- */
.partner-wall--three { max-width: 800px; }

/* ---------------- NIST CSF 2.0 extension ---------------- */
.nist-fns { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.nist-fn {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 500;
  border-radius: 9999px; padding: 5px 13px; border: 1px solid;
}
.nist-fn--gv { color: #70dcd3; border-color: color-mix(in srgb, #70dcd3 45%, transparent); }
.nist-fn--id { color: #00ade4; border-color: color-mix(in srgb, #00ade4 45%, transparent); }
.nist-fn--pr { color: #7bc96f; border-color: color-mix(in srgb, #7bc96f 45%, transparent); }
.nist-fn--de { color: #9b8cff; border-color: color-mix(in srgb, #9b8cff 45%, transparent); }
.nist-fn--rs { color: #ff9a62; border-color: color-mix(in srgb, #ff9a62 45%, transparent); }
.nist-fn--rc { color: #a6e5f2; border-color: color-mix(in srgb, #a6e5f2 45%, transparent); }
.nist-cta { margin-top: 2px; }

/* ---------------- Deliverables ---------------- */
.plan-grid { margin-top: 36px; }

/* ---------------- Plans ---------------- */
.plans-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.size-pill {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--fog);
  border: 1px solid var(--ash); border-radius: 9999px; padding: 8px 16px;
}
.plans-cta { margin-top: 28px; }

/* ---------------- Privacy ---------------- */
.privacy-row { margin-top: 22px; }
.privacy-link {
  display: inline-flex; align-items: center; gap: 9px; font: inherit; font-size: 13px;
  color: var(--cyan); background: transparent; border: 1px solid var(--ash);
  border-radius: 9999px; padding: 9px 16px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.privacy-link svg { width: 17px; height: 17px; }
.privacy-link:hover { border-color: var(--teal); color: var(--snow); background: color-mix(in srgb, var(--teal) 10%, transparent); }
.privacy-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.privacy-modal { width: min(560px, 94vw); }
.privacy-modal__chip { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--teal); }
.privacy-modal__title { font-size: clamp(21px, 3vw, 26px); font-weight: 500; color: var(--snow); letter-spacing: -.4px; margin-bottom: 18px; }
.privacy-list { display: grid; gap: 13px; margin-bottom: 20px; }
.privacy-list li { position: relative; padding-left: 25px; font-size: 15px; line-height: 1.6; color: var(--fog); }
.privacy-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; }
.privacy-list strong { color: var(--snow); font-weight: 600; }
.privacy-modal__foot { font-size: 13px; color: var(--fog-dim); padding-bottom: 22px; }
.privacy-modal__foot a { color: var(--cyan); }
.privacy-modal__foot a:hover { color: var(--snow); }

/* ---------------- Request form ---------------- */
.csat-form__topic {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--teal); margin-bottom: 4px;
}

/* ---------------- Footer ---------------- */
.footer__legal { font-size: 12px; line-height: 1.6; color: var(--fog-dim); max-width: 62ch; }

/* ---------------- Logo sizing (real assets) ---------------- */
.chero__logo img { height: 56px; }                 /* CSAT wordmark, hero */
.logo-chip--md img { height: 38px; }               /* NIST wordmark */
#clouds .partner-card__chip { padding: 14px; }     /* dejar respirar menos: logo más grande */
#clouds .partner-card__chip img { max-height: 64px; }

/* ============================================================
   EL PROBLEMA (#why)
   ============================================================ */
.why-grid { margin-top: 36px; }
.why-card__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--teal); background: color-mix(in srgb, var(--teal) 16%, transparent); }
.why-card__ic svg { width: 25px; height: 25px; }
.why-stat { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.why-stat em { font-style: normal; font-size: 34px; font-weight: 600; letter-spacing: -1px; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.why-stat span { font-size: 14px; line-height: 1.45; color: var(--fog); flex: 1 1 150px; }
.why-sources { margin-top: 26px; font-size: 12px; font-style: italic; color: var(--fog-dim); }

/* ============================================================
   SCORECARD CIS v8 (ejemplo de informe, dentro de #plan)
   ============================================================ */
.cis-demo { margin-top: 42px; padding: 26px clamp(18px, 3vw, 30px);
  border: 1px solid var(--ash); border-radius: var(--radius-card); background: var(--trench); }
.cis-demo__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--ash); margin-bottom: 6px; }
.cis-demo__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.3px; color: var(--teal); }
.cis-demo__title { font-size: clamp(17px, 2vw, 21px); font-weight: 500; color: var(--snow); letter-spacing: -.3px; margin-top: 6px; }
.cis-demo__avg { display: flex; flex-direction: column; align-items: flex-end; }
.cis-demo__avgn { font-size: 42px; font-weight: 600; letter-spacing: -1.5px; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cis-demo__avgl { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--fog-dim); margin-top: 5px; }
.cis-row { display: grid; grid-template-columns: 30px 1fr auto 40px; align-items: center; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--ash) 65%, transparent); }
.cis-rows .cis-row:last-child { border-bottom: 0; }
.cis-row__n { font-size: 11px; color: var(--fog-dim); font-variant-numeric: tabular-nums; }
.cis-row__name { font-size: 14px; color: var(--fog); }
.cis-row__v { font-size: 13px; font-weight: 600; color: var(--snow); text-align: right; font-variant-numeric: tabular-nums; }
.cis-scale { display: inline-flex; align-items: center; gap: 7px; }
.cis-scale i { width: 9px; height: 9px; border-radius: 50%; background: var(--reef-2); display: block; }
.cis-scale[data-score="1"] i:nth-child(1),
.cis-scale[data-score="2"] i:nth-child(2),
.cis-scale[data-score="3"] i:nth-child(3),
.cis-scale[data-score="4"] i:nth-child(4) { background: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 22%, transparent); }
.cis-demo__note { margin-top: 18px; font-size: 12px; line-height: 1.6; color: var(--fog-dim); }
@media (max-width: 620px) { .cis-row { grid-template-columns: 26px 1fr auto; } .cis-row__v { display: none; } }

/* ============================================================
   LO QUE ESCUCHAMOS (#voices)
   ============================================================ */
.voices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; }
.voice { position: relative; padding: 24px 16px 16px; border-left: 2px solid color-mix(in srgb, var(--teal) 45%, transparent); }
.voice::before { content: "\201C"; position: absolute; top: -4px; left: 12px; font-size: 44px; line-height: 1;
  color: color-mix(in srgb, var(--teal) 40%, transparent); }
.voice p { font-size: 14px; line-height: 1.55; color: var(--fog); }
.voices-foot { margin-top: 32px; font-size: 16px; line-height: 1.6; color: var(--snow); max-width: 62ch; }
@media (max-width: 1000px) { .voices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .voices { grid-template-columns: 1fr; } }

/* ============================================================
   NAV EN TEMA CLARO
   La home tiene un hero OSCURO (video), por eso styles.css pinta el nav en
   blanco mientras no esta scrolleado — y sobre este hero claro quedaba
   invisible. Solucion: csat.html usa <main class="subpage">, con lo que
   site.js mantiene el nav SIEMPRE en .scrolled (igual que news/blog): toma el
   fondo solido (.theme-light .nav.scrolled = blanco) y los colores de texto
   del tema. Por eso aqui NO hace falta ningun override.
   ============================================================ */
