/* =============================================================
   Dent IQ · styles.css
   Sistema visual según Manual de Marca v1.0 (Agosto 2026)
   Monocromático por diseño · dark-first · data-first
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Paleta cromática — manual §08 */
  --carbon:      #0D0D0D;
  --surface:     #121212;
  --surface-2:   #181818;
  --border:      #3B3B3B;
  --border-soft: #242424;
  --muted:       #777777;
  --secondary:   #B8B8B8;
  --white:       #FFFFFF;
  --navy:        #112131;

  /* Color funcional — manual §09 (semántico, nunca decorativo) */
  --ok:    #4FA578;
  --warn:  #D9A84E;
  --error: #D96A6A;
  --info:  #5B8DB8;

  /* Tipografía — manual §10 */
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Sistema 8px — manual §11 */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --radius: 10px;
  --radius-sm: 8px;

  --maxw: 1200px;
  --nav-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--secondary);
  background: var(--carbon);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

::selection { background: var(--white); color: var(--carbon); }

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

/* =============================================================
   3. Utilidades
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s3);
}
.container-narrow { max-width: 820px; }

.skip-link {
  position: fixed; top: -100px; left: var(--s2);
  padding: 10px 16px; background: var(--white); color: var(--carbon);
  z-index: 9999; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: var(--s2); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s2);
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: var(--s3);
}

/* =============================================================
   4. Botones — manual §17 (blanco = acción primaria)
   ============================================================= */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out),
              transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* Capa de relleno que entra por la izquierda */
.btn-primary::before,
.btn-secondary::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-bottom: 2px solid var(--ok);   /* la línea de crecimiento entra con el relleno */
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-out);
}

/* Flecha que aparece al pasar el cursor */
.btn-primary::after,
.btn-secondary::after {
  content: "→";
  font-weight: 400;
  opacity: 0;
  margin-left: -12px;
  transform: translateX(-4px);
  transition: opacity .4s var(--ease-out), margin-left .45s var(--ease-out), transform .45s var(--ease-out);
}
.btn-primary:hover::after, .btn-primary:focus-visible::after,
.btn-secondary:hover::after, .btn-secondary:focus-visible::after {
  opacity: 1; margin-left: 8px; transform: none;
}

/* Acción primaria: blanca en reposo, se invierte a carbón con línea de crecimiento */
.btn-primary { background: var(--white); color: var(--carbon); }
.btn-primary::before { background: var(--carbon); }
.btn-primary:hover, .btn-primary:focus-visible {
  color: var(--white);
  transform: translateY(-2px);
}
.btn-primary:hover::before, .btn-primary:focus-visible::before { transform: scaleX(1); }

/* Acción secundaria: borde que se enciende y superficie que se rellena */
.btn-secondary { border-color: var(--border); color: var(--white); }
.btn-secondary::before { background: var(--surface-2); }
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-secondary:hover::before, .btn-secondary:focus-visible::before { transform: scaleX(1); }

.btn-ghost { color: var(--secondary); border-color: transparent; }
.btn-ghost:hover { color: var(--white); }

/* El botón de envío del formulario mantiene el mismo lenguaje */
.form .btn-primary { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary::before, .btn-secondary::before { transition-duration: .18s; }
}

/* =============================================================
   5. Navegación — manual §16 (consistencia marketing/producto)
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,.72);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
@supports (backdrop-filter: blur(12px)) {
  .nav { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-stuck { background: rgba(13,13,13,.94); border-bottom-color: var(--border-soft); }

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--s3);
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--s3);
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 26px; height: auto; }
.brand-word { font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.brand-iq { margin-left: 2px; }

.nav-links { display: none; gap: var(--s3); }
.nav-links a {
  font-size: 14px; color: var(--secondary); position: relative; padding: 4px 0;
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--white); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: none; align-items: center; gap: 6px; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0 8px; margin-left: auto;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; height: 1.5px; background: var(--white);
  transition: transform .3s var(--ease-out), opacity .2s linear;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav-mobile[hidden] { display: none !important; }
.nav-mobile {
  border-top: 1px solid var(--border-soft);
  background: var(--carbon);
  padding: var(--s2) var(--s3) var(--s3);
  display: flex; flex-direction: column; gap: 2px;
}
.nav-mobile a { padding: 12px 0; font-size: 16px; color: var(--secondary); border-bottom: 1px solid var(--border-soft); }
.nav-mobile a:last-of-type { border-bottom: 0; }
.nav-mobile-cta { margin-top: var(--s2); justify-content: center; color: var(--carbon) !important; }

/* =============================================================
   6. Hero — fondo carbón + bandas diagonales + puntos (manual §12)
   ============================================================= */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 132px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,.92) 72%, var(--carbon) 100%),
    url("assets/img/bg-carbon.webp") center/cover no-repeat;
  pointer-events: none;
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 70%);
  opacity: .5;
  pointer-events: none;
}
/* Luz ambiente muy contenida: rompe la planitud sin introducir un color de marca */
.hero-glow {
  position: absolute; left: -12%; bottom: -30%;
  width: min(760px, 90%); height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(79,165,120,.13), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero-title {
  font-size: clamp(2.1rem, 6.2vw, 3.6rem);
  line-height: 1.06;
  max-width: 27ch;
  margin-bottom: var(--s3);
}

/* En móvil el titular fluye solo: el salto manual generaría una línea huérfana */
@media (max-width: 719px) { .hero-title br, .section-title br { display: none; } }

/* Isotipo de marca como marca de agua — mismo recurso que la portada del manual */
.hero-mark {
  position: absolute;
  right: -40px; bottom: -60px;
  width: 340px; height: auto;
  opacity: .06;
  pointer-events: none;
  display: none;
}
.hero-sub {
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  color: var(--secondary);
  max-width: 62ch;
  margin-bottom: var(--s4);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: var(--s2); }

.hero-metrics {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: clamp(40px, 7vw, 72px);
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-metrics li { background: var(--surface); padding: var(--s3); }
.metric-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.metric-value { display: block; font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.metric-desc { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* =============================================================
   7. Secciones
   ============================================================= */
.section { padding: clamp(64px, 10vw, 112px) 0; position: relative; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border-soft); }

.section-head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 74ch; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: var(--s2); }
.section-lead { font-size: clamp(.98rem, 1.9vw, 1.06rem); color: var(--muted); max-width: 68ch; }

/* =============================================================
   8. Cards — superficie + borde, sin sombras pesadas (manual §11)
   ============================================================= */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--s3);
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out), background-color .4s var(--ease-out);
}
.section-alt .card { background: var(--carbon); }
.card:hover { border-color: var(--border); transform: translateY(-3px); }
.card h3 { font-size: 1.06rem; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.card-index, .card-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2);
}
.card-tag { border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }

.card-quote {
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--border-soft);
  color: var(--secondary); font-size: 14.5px; font-style: italic;
}

.grid-4, .grid-3, .bento { display: grid; gap: var(--s2); grid-template-columns: 1fr; }

.pipeline {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--border-soft);
}
.pipeline li {
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border-soft); color: var(--muted);
}
.pipeline .is-done { color: var(--secondary); border-color: var(--border); }
.pipeline .is-done::before { content: "✓ "; color: var(--ok); }
.pipeline .is-next { color: var(--carbon); background: var(--white); border-color: var(--white); }

/* =============================================================
   9. Dashboard ilustrativo
   ============================================================= */
.dash {
  display: grid; grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
}
.dash-side { display: none; padding: var(--s3) var(--s2); border-right: 1px solid var(--border-soft); background: var(--carbon); }
.dash-brand { display: flex; align-items: center; gap: 8px; padding: 0 10px var(--s3); }
.dash-brand span { font-size: 13px; font-weight: 700; color: var(--white); }
.dash-menu li {
  font-size: 13px; color: var(--muted); padding: 9px 10px;
  border-radius: var(--radius-sm); margin-bottom: 2px;
}
.dash-menu .is-active { color: var(--white); background: var(--surface-2); }

.dash-main { padding: var(--s3); }
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.dash-hello { font-size: 1.05rem; font-weight: 700; color: var(--white); }
.dash-sub { font-size: 13px; color: var(--muted); }
.dash-chip {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border-soft); border-radius: 999px; padding: 5px 10px;
}

.dash-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s1); margin-bottom: var(--s2); }
.kpi { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px; }
.kpi-label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.kpi-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.kpi-delta { display: block; font-size: 12px; margin-top: 4px; color: var(--muted); }
.kpi-delta.up { color: var(--ok); }

.dash-chart { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: var(--s2); margin-bottom: var(--s2); }
.dash-chart-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.bars li { display: grid; grid-template-columns: 1fr; gap: 5px; margin-bottom: 12px; }
.bars li:last-child { margin-bottom: 0; }
.bar-name { font-size: 13px; color: var(--secondary); }
.bar-track { display: block; height: 6px; background: #232323; border-radius: 999px; overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: 0; background: #4A4A4A; border-radius: 999px;
  transition: width 1.1s var(--ease-soft);
}
.is-revealed .bar-fill, .dash.is-revealed .bar-fill { width: var(--w); }
/* El único color del gráfico: marca la oportunidad, no decora (manual §13) */
.bar-fill.is-accent { background: var(--ok); }
.bar-num { font-size: 12px; color: var(--muted); }

.dash-insight {
  position: relative;
  border: 1px solid var(--border-soft);
  border-left: 2px solid var(--ok);
  border-radius: var(--radius-sm);
  padding: var(--s2); background: var(--carbon);
  display: grid; gap: 8px;
  overflow: hidden;
}
.dash-insight::before {
  content: ""; position: absolute; inset: -60% 40% -60% -10%;
  background: radial-gradient(50% 50% at 20% 50%, rgba(79,165,120,.14), transparent 70%);
  pointer-events: none;
}
.dash-insight > * { position: relative; }
.insight-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ok);
}
.insight-text { font-size: 14px; color: var(--secondary); }
.insight-text strong { color: var(--white); }
.insight-action { font-size: 13px; font-weight: 700; color: var(--white); }

/* =============================================================
   9.b Fotografía — tratada al lenguaje del manual (baja saturación)
   ============================================================= */
.banda { padding: 0 0 clamp(56px, 9vw, 96px); }
.banda-fig {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
/* En móvil la imagen crece en alto para que el texto respire sobre ella */
.banda-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% center; }
@media (min-width: 720px) { .banda-fig img { aspect-ratio: 16 / 9; object-position: center; } }
.banda-fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,.92) 0%, rgba(13,13,13,.55) 42%, rgba(13,13,13,.05) 75%),
              linear-gradient(0deg, rgba(13,13,13,.75) 0%, transparent 55%);
  pointer-events: none;
}
.banda-fig figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  padding: var(--s3);
  max-width: 44ch;
}
.banda-fig figcaption p {
  font-size: clamp(1rem, 2.6vw, 1.45rem);
  font-weight: 700; color: var(--white); line-height: 1.25; letter-spacing: -0.02em;
}
.banda-fig figcaption p::before {
  content: ""; display: block; width: 34px; height: 2px;
  background: var(--ok); margin-bottom: 14px;
}

.metodo-foto {
  display: none;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.metodo-foto img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   10. Metodología
   ============================================================= */
.metodo-grid { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
.steps { display: grid; gap: var(--s2); grid-template-columns: 1fr; counter-reset: step; }
.step {
  background: var(--carbon);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--s3);
  transition: border-color .4s var(--ease-out);
}
.step:hover { border-color: var(--border); }
.step-num {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--muted); margin-bottom: 12px;
  transition: color .4s var(--ease-out);
}
.step:hover .step-num { color: var(--ok); }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* =============================================================
   11. Intelligence Engine
   ============================================================= */
.engine { display: grid; gap: var(--s2); grid-template-columns: 1fr; margin-bottom: var(--s2); }

.loop {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
}
.loop li {
  background: var(--surface-2); padding: var(--s3) var(--s2);
  font-size: 14px; font-weight: 700; color: var(--white);
  display: flex; flex-direction: column; gap: 8px;
}
.loop li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--muted);
  font-size: 12px; font-weight: 700;
}

.insight-card {
  position: relative; overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-left: 2px solid var(--ok);
  border-radius: var(--radius); padding: var(--s3);
}
.insight-card::before {
  content: ""; position: absolute; inset: -40% 30% -40% -20%;
  background: radial-gradient(52% 52% at 15% 40%, rgba(79,165,120,.16), transparent 72%);
  pointer-events: none;
}
.insight-card > * { position: relative; }
.insight-card h3 { font-size: 1.15rem; margin: 10px 0; }
.insight-card > p { font-size: 14.5px; color: var(--muted); }
.insight-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2);
  margin: var(--s3) 0; padding: var(--s2) 0;
  border-block: 1px solid var(--border-soft);
}
.insight-meta dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.insight-meta dd { font-size: 15px; font-weight: 700; color: var(--white); }
.insight-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.principles { margin-top: var(--s2); }
.mini { border-top: 1px solid var(--border-soft); padding-top: var(--s2); }
.mini h4 { font-size: 14px; margin-bottom: 6px; }
.mini p { font-size: 14px; color: var(--muted); }

/* =============================================================
   12. Split (por qué / contacto)
   ============================================================= */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

.roadmap { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.roadmap li { background: var(--carbon); padding: var(--s3); }
.rm-v { display: block; font-size: 15px; font-weight: 700; color: var(--white); }
.rm-t { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.roadmap p { font-size: 14px; color: var(--muted); }

/* =============================================================
   13. FAQ
   ============================================================= */
.faq details {
  border-bottom: 1px solid var(--border-soft);
  padding: var(--s2) 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 700; color: var(--white);
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2);
  transition: color .3s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 20px; font-weight: 400; color: var(--muted);
  line-height: 1; transition: transform .35s var(--ease-out), color .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--white); }
.faq details p { font-size: 14.5px; color: var(--muted); margin-top: 12px; max-width: 70ch; }

/* =============================================================
   14. Contacto y formulario
   ============================================================= */
.section-contact { background: var(--surface); border-top: 1px solid var(--border-soft); }

.contact-list { margin-top: var(--s4); display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.contact-list li { background: var(--carbon); padding: 14px var(--s2); display: flex; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
.contact-k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-width: 78px; }
.contact-list a { font-size: 14.5px; color: var(--white); border-bottom: 1px solid var(--border); padding-bottom: 1px; transition: border-color .3s var(--ease-out); }
.contact-list a:hover { border-color: var(--white); }

.form {
  background: var(--carbon);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--s3);
  display: grid; gap: var(--s2);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 15px; color: var(--white);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #5A5A5A; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--border); background: #1C1C1C; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-msg { font-size: 12.5px; color: var(--error); }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* =============================================================
   15. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--border-soft); padding: var(--s5) 0 var(--s4); background: var(--carbon); }
.footer-inner { display: grid; gap: var(--s3); }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-name { font-size: 15px; font-weight: 700; color: var(--white); }
.footer-tag { font-size: 13.5px; color: var(--muted); max-width: 44ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer-links a { font-size: 13.5px; color: var(--secondary); transition: color .3s var(--ease-out); }
.footer-links a:hover { color: var(--white); }
.footer-legal { font-size: 12.5px; color: var(--muted); padding-top: var(--s3); border-top: 1px solid var(--border-soft); }

/* =============================================================
   16. Reveals (micro-interacciones — NO se desactivan con reduced-motion)
   ============================================================= */
/* Solo se ocultan si JS está disponible: sin JS, todo el contenido se ve. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-revealed { opacity: 1; transform: none; }

/* Escalonado dentro de grids */
.grid-4 .reveal:nth-child(2), .bento .reveal:nth-child(2), .steps .reveal:nth-child(2), .grid-3 .reveal:nth-child(2) { transition-delay: .07s; }
.grid-4 .reveal:nth-child(3), .bento .reveal:nth-child(3), .steps .reveal:nth-child(3), .grid-3 .reveal:nth-child(3) { transition-delay: .14s; }
.grid-4 .reveal:nth-child(4), .bento .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .21s; }
.bento .reveal:nth-child(5) { transition-delay: .28s; }
.bento .reveal:nth-child(6) { transition-delay: .35s; }

/* =============================================================
   17. Responsive — 540 / 720 / 960 / 1280
   ============================================================= */
@media (min-width: 540px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .bento { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { gap: var(--s4); }
}

@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: repeat(3, 1fr); }
  .bars li { grid-template-columns: 190px 1fr 44px; align-items: center; gap: var(--s2); }
  .bar-num { text-align: right; }
  .dash-kpis { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  :root { --nav-h: 76px; }
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle, .nav-mobile { display: none !important; }

  .hero-metrics { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .metodo-grid { grid-template-columns: 0.62fr 1.38fr; gap: var(--s4); align-items: stretch; }
  .metodo-foto { display: block; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 210px 1fr; }
  .dash-side { display: block; }
  .dash-main { padding: var(--s4); }
  .engine { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .split-contact { grid-template-columns: 1fr 1.05fr; gap: var(--s6); }

  .bento { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: span 2; }
  .card-full { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; column-gap: var(--s5); align-items: center; }
  .card-full .card-tag { grid-column: 1 / -1; justify-self: start; }
  .card-full .card-quote { margin-top: 0; padding-top: 0; border-top: 0; border-left: 1px solid var(--border-soft); padding-left: var(--s3); font-size: 1rem; }
  .hero-mark { display: block; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: 3.75rem; }
  .container { padding-inline: var(--s4); }
}

/* =============================================================
   18. Reduced motion — solo lo intrusivo (manual: la sobriedad
       no significa una web muerta)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .bar-fill { transition-duration: .01ms; }
}

/* =============================================================
   19. Impresión
   ============================================================= */
@media print {
  .nav, .hero-bg, .hero-dots, .form { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4 { color: #000; }
}
