/* =========================================================
   SIEFO · Tu CFO externo — hoja de estilos
   Referencia visual para Framer. Tokens de marca en :root.
   ========================================================= */

/* Respaldos con las medidas de Montserrat y Lato: mientras cargan las fuentes, el texto
   ocupa el mismo espacio y no cambia de tamaño al llegar la fuente real (evita saltos).
   Valores medidos contra Arial: size-adjust = ancho relativo; ascent/descent = medidas de la fuente ÷ size-adjust. */
@font-face { font-family: "Montserrat Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 800;
  size-adjust: 112.21%; ascent-override: 86.27%; descent-override: 22.37%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 700;
  size-adjust: 110.17%; ascent-override: 87.86%; descent-override: 22.78%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 600;
  size-adjust: 108.32%; ascent-override: 89.37%; descent-override: 23.17%; line-gap-override: 0%; }
@font-face { font-family: "Lato Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 700;
  size-adjust: 93.02%; ascent-override: 106.11%; descent-override: 22.90%; line-gap-override: 0%; }
@font-face { font-family: "Lato Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400;
  size-adjust: 96.54%; ascent-override: 102.24%; descent-override: 22.06%; line-gap-override: 0%; }

:root {
  /* Marca */
  --navy: #091C35;
  --navy-card: #13284A;
  --teal: #0A7A73;
  --teal-hover: #08625D;
  --teal-soft: rgba(10, 122, 115, 0.12);
  --teal-light: #7FE0D6; /* acento sobre fondos oscuros */
  --bg: #F4F6FA;
  --white: #FFFFFF;
  --border: #D9DEE8;
  --muted: #5C6576;
  --ink: #091C35;
  --on-dark-muted: #A9B6CC;

  /* Estado — solo en gráficas */
  --ok: #3DBE8B;
  --warn: #E3B04B;
  --bad: #E26A63;

  /* Tipografía */
  --font-head: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
  --font-body: "Lato", "Lato Fallback", system-ui, sans-serif;

  /* Forma */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 2px 4px rgba(9, 28, 53, 0.04);
  --shadow-2: 0 8px 16px -2px rgba(9, 28, 53, 0.08);
  --shadow-3: 0 12px 24px -4px rgba(9, 28, 53, 0.18);

  --maxw: 1280px;
  --gutter: 32px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }


body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0; }
a { color: inherit; }
img, svg, canvas { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 22px;
  line-height: 1;
  vertical-align: middle;
  /* Respaldo: el ícono nunca ocupa más de 1em aunque la fuente no cargue */
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Hasta confirmar que la fuente de íconos cargó (js/main.js agrega .icons-ok), no se muestran */
html.js:not(.icons-ok) .material-symbols-outlined { visibility: hidden; }

/* ---------- Utilidades de texto ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow--pill {
  padding: 6px 14px;
  border: 1px solid rgba(10, 122, 115, 0.35);
  border-radius: 999px;
  background: var(--teal-soft);
}
.eyebrow--pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.on-dark .eyebrow { color: var(--teal-light); }

.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--tint { background: var(--bg); }
.section--navy { background: var(--navy); color: var(--white); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 18px; }
.on-dark .section-head p, .section--navy .section-head p { color: var(--on-dark-muted); }
.section-head--left { text-align: left; align-items: flex-start; margin-left: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid rgba(10, 122, 115, 0.4); outline-offset: 2px; }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-hover); }
.btn--outline-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn--outline-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn--outline:hover { border-color: var(--muted); }
.btn--ghost-dark { background: rgba(255,255,255,0.06); color: var(--white); border-color: rgba(255,255,255,0.18); }
.btn--ghost-dark:hover { background: rgba(255,255,255,0.12); }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* Marca de texto pendiente de validar por el dueño */
.revisar {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8A5A00;
  background: #FFF3D6;
  border: 1px dashed #E3B04B;
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}

/* =========================================================
   Navegación
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.logo__mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
}
.logo__mark .material-symbols-outlined { font-size: 22px; font-variation-settings: "FILL" 1; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.logo__tag { font-size: 13px; color: var(--teal); font-weight: 700; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nav__link:hover { color: var(--navy); }
.nav__link.is-active { color: var(--teal); font-weight: 700; border-bottom-color: var(--teal); }

.nav__cta { flex-shrink: 0; padding: 12px 20px; font-size: 14px; }

.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--navy);
}

/* =========================================================
   Páginas (pestañas)
   ========================================================= */
.page { display: none; }
.page.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Encabezado estándar de página */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 88px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before, .hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero .container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; max-width: 900px; }
.page-hero p { font-size: 19px; color: var(--on-dark-muted); max-width: 680px; }
.page-hero .eyebrow { color: var(--teal-light); }

.page-hero--light { background: var(--bg); color: var(--ink); }
.page-hero--light::before { display: none; }
.page-hero--light p { color: var(--muted); }
.page-hero--light .eyebrow { color: var(--teal-hover); }

/* =========================================================
   Tarjetas genéricas
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 28px;
}
.card--navy {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-3);
  color: var(--white);
}
.icon-box {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: #EEF2FA;
  color: var(--teal);
  display: grid;
  place-items: center;
}
.card--navy .icon-box, .on-dark .icon-box { background: rgba(255,255,255,0.08); color: var(--teal-light); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}
.card-tag .material-symbols-outlined { font-size: 18px; }

/* =========================================================
   INICIO
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero h1 { font-size: clamp(36px, 4.6vw, 62px); font-weight: 800; line-height: 1.1; }
.hero h1 .accent { color: var(--teal-light); display: block; }
.hero__sub { font-size: 19px; color: var(--on-dark-muted); max-width: 580px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Tablero flotante */
.dash {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.45);
  padding: 24px;
}
.dash__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}
.dash__head .material-symbols-outlined { color: var(--teal-light); }
.dash__title { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.dash__subtitle { font-size: 12px; color: var(--on-dark-muted); }
.chip-example {
  margin-left: auto;
  font-size: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.dash__kpi {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
}
.dash__kpi-label { font-size: 12px; color: var(--on-dark-muted); }
.dash__kpi-value { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin: 2px 0; }
.dash__kpi-note { font-size: 12px; color: var(--on-dark-muted); font-weight: 700; }
.dash__kpi-note--up { color: var(--teal-light); }
.dash__kpi-note--alert { color: #F3A39D; }
.dash__chart {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
}
.dash__chart-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #DCE3EE; margin-bottom: 8px; }
.dash__chart-head span:last-child { color: var(--teal-light); font-size: 12px; }
.dash__canvas { position: relative; height: 190px; }
.dash__reco {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(10, 122, 115, 0.12);
  border: 1px solid rgba(10, 122, 115, 0.35);
  font-size: 13px;
  color: #DCE3EE;
}
.dash__reco .material-symbols-outlined { color: var(--teal-light); font-size: 20px; }

/* Industrias */
.industries { background: #EEF2FA; padding: 36px 0; border-bottom: 1px solid var(--border); }
.industries__title {
  text-align: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 15px;
}

/* Cifras */
.stat { display: flex; flex-direction: column; gap: 14px; }
.stat__num { font-family: var(--font-head); font-size: clamp(40px, 4vw, 56px); font-weight: 800; line-height: 1; }
.stat__bar { width: 48px; height: 4px; border-radius: 2px; background: var(--teal); }
.stat p { color: var(--muted); }

/* Preguntas */
.question { display: flex; flex-direction: column; gap: 14px; }
.question h3 { font-size: 20px; font-weight: 600; }
.question p { color: var(--muted); }
.quote {
  max-width: 900px;
  margin: 48px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
}

/* Comparativa */
.compare { align-items: stretch; }
.compare__col { display: flex; flex-direction: column; gap: 18px; position: relative; }
.compare__col--featured { border: 2px solid var(--teal); background: #F2F6FF; box-shadow: var(--shadow-2); }
.compare__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.compare__head { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.compare__head h3 { font-size: 26px; font-weight: 700; }
.compare__head span { font-size: 14px; color: var(--muted); }
.compare__col--featured .compare__head span { color: var(--teal); font-weight: 700; }
.compare dl { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.compare dt {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.compare dd { margin: 0; }
.compare__col--featured dd.hl { color: var(--teal); font-weight: 700; }
.compare__foot { margin-top: auto; }
.compare__foot .tag-muted {
  display: block;
  text-align: center;
  background: #EEF2FA;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.note {
  max-width: 900px;
  margin: 40px auto 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #F2F6FF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.note .material-symbols-outlined { color: var(--teal); }

/* =========================================================
   Banda CTA + pie
   ========================================================= */
.cta-band { padding: 32px 0 64px; background: var(--bg); } /* Revisión 18: antes 72px 0 96px */
.cta-band__box {
  background: radial-gradient(circle at 85% 90%, rgba(10, 122, 115, 0.28), transparent 45%), var(--navy);
  border-radius: 20px;
  color: var(--white);
  text-align: center;
  padding: 72px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-band__box h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; max-width: 780px; }
.cta-band__box p { color: var(--on-dark-muted); font-size: 18px; max-width: 640px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.footer { background: var(--navy); color: var(--on-dark-muted); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
.footer .logo { color: var(--white); }
.footer .logo__mark { background: rgba(255,255,255,0.1); }
.footer .logo__tag { color: var(--teal-light); }
.footer__about { margin-top: 18px; font-size: 15px; max-width: 360px; }
.footer__title {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__contact li { display: flex; gap: 12px; align-items: center; color: #DCE3EE; }
.footer__contact .material-symbols-outlined { color: var(--teal-light); font-size: 20px; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer__legal { display: flex; gap: 20px; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.tab {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.tab:hover { border-color: var(--teal); }
.tab[aria-selected="true"] { background: var(--teal); color: var(--white); border-color: var(--teal); }
.tab:focus-visible { outline: 3px solid rgba(10, 122, 115, 0.4); outline-offset: 2px; }

.service-panel { display: none; }
.service-panel.is-active { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; animation: fadeIn .2s ease; }
.service-panel__copy { display: flex; flex-direction: column; gap: 14px; }
.service-panel__copy h2 { font-size: 28px; font-weight: 700; }
.service-panel__copy > p { color: var(--muted); }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.checklist .material-symbols-outlined { color: var(--teal); font-size: 22px; }
.on-dark .checklist li { font-weight: 600; }
.on-dark .checklist .material-symbols-outlined { color: var(--teal-light); }

.mini-dash { padding: 22px; }
.mini-dash__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.mini-dash__head h3 { font-size: 16px; font-weight: 600; }
.mini-dash__head p { font-size: 12px; color: var(--on-dark-muted); }
.mini-dash__canvas { position: relative; height: 230px; }

.recognize h3 { font-size: 20px; font-weight: 600; margin-top: 18px; margin-bottom: 8px; }
.recognize p { color: var(--muted); }

.area-card { display: flex; flex-direction: column; gap: 14px; padding: 36px; }
.area-card--featured { border: 2px solid var(--teal); }
.area-card .pill-label {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #EEF2FA;
  color: var(--navy);
}
.area-card--featured .pill-label { background: var(--teal-soft); color: var(--teal); }
.area-card h3 { font-size: 24px; font-weight: 700; }
.area-card > p { color: var(--muted); }
.area-card ul { list-style: none; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.area-card li { display: flex; gap: 12px; align-items: center; font-family: var(--font-head); font-weight: 600; }
.area-card li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); flex-shrink: 0; }
.area-card--featured li::before { background: var(--teal); }


/* =========================================================
   ENTIENDE TUS NÚMEROS
   ========================================================= */
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.dash-grid > * { min-width: 0; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-12 { grid-column: span 12; }
.chart-card { display: flex; flex-direction: column; gap: 16px; }
.chart-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.chart-card__head h2 { font-size: 21px; font-weight: 700; }
.chart-card__head p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.chart-box { position: relative; width: 100%; }
.chart-box--waterfall { height: 380px; }
.chart-box--cash { height: 320px; }
.chart-box--proj { height: 300px; }
.chart-box--prod { height: 260px; }
.chart-box--mini-wf { height: 260px; }

.callout {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 10px;
  background: #EEF7F6;
  border: 1px solid rgba(10, 122, 115, 0.3);
  font-family: var(--font-head);
  font-weight: 600;
}
.callout .material-symbols-outlined { color: var(--teal); }
.callout__chip {
  margin-left: auto;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(10, 122, 115, 0.3);
  color: var(--teal);
}
.explain { font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 14px 16px; }

.segmented {
  display: inline-flex;
  background: #EEF2FA;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
.segmented button {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow-1); }
.segmented button:focus-visible { outline: 2px solid var(--teal); }

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #FDF0EF;
  border: 1px solid #F1C0BC;
  color: #9E2F28;
  font-weight: 700;
}
.alert .material-symbols-outlined { color: #C8463E; }

.kpi-title { font-size: 24px; font-weight: 700; }
.kpi-sub { color: var(--muted); font-size: 15px; margin: 4px 0 20px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.kpi__cat { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kpi__name { font-size: 14px; color: var(--ink); }
.kpi__value { font-family: var(--font-head); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi__spark { position: relative; height: 44px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.status .material-symbols-outlined { font-size: 13px; }
.status--ok { background: rgba(61,190,139,0.14); color: #1E7A55; }
.status--up { background: rgba(10, 122, 115, 0.12); color: var(--teal); }
.status--warn { background: rgba(227,176,75,0.18); color: #8A5A00; }

.stat-boxes { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-box {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #EEF2FA;
  border: 1px solid var(--border);
}
.stat-box strong { font-family: var(--font-head); color: var(--teal); }

.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.legend i.box { height: 10px; width: 14px; border-radius: 3px; }

.warn-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #FDF0EF;
  border: 1px solid #F1C0BC;
  font-size: 14px;
}
.warn-box strong { color: #9E2F28; display: block; }
.warn-box .material-symbols-outlined { color: #C8463E; }

.footnote { text-align: center; color: var(--muted); font-size: 14px; margin-top: 40px; }

.table-toggle {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  text-underline-offset: 3px;
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.data-table th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.data-table td.num, .data-table th.num { text-align: right; }

/* =========================================================
   CÓMO TRABAJAMOS
   ========================================================= */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; position: relative; }
.step__num {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 3px solid var(--teal);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--teal);
  z-index: 1;
}
.step .card { width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; flex: 1; }
.step h2 { font-size: 19px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }
.step .mini-pill { font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--teal); background: var(--teal-soft); padding: 3px 10px; border-radius: 999px; }

.feature { display: flex; flex-direction: column; gap: 16px; }
.feature h3 { font-size: 20px; font-weight: 600; }
.feature p { color: var(--on-dark-muted); }

.calendar { max-width: 1040px; margin: 0 auto; padding: 32px; }
.calendar__head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.calendar__head h3 { font-size: 19px; font-weight: 700; }
.calendar__head p { font-size: 14px; color: var(--muted); }
.calendar__weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.calendar__weeks--3 { grid-template-columns: repeat(3, 1fr); }
.week { border: 1px solid var(--border); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.week__label { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.week h4 { font-size: 18px; font-weight: 700; }
.week p { font-size: 14px; color: var(--muted); }
.week--active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.week--active .week__label { color: var(--teal); }
.week--empty { background: var(--bg); border-style: dashed; justify-content: center; align-items: center; text-align: center; }
.cash-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
}
.cash-row .material-symbols-outlined { color: var(--teal-light); }
.cash-row strong { font-family: var(--font-head); }
.cash-row p { color: var(--on-dark-muted); font-size: 14px; }
.cash-row .chip { margin-left: auto; font-size: 12px; font-family: var(--font-head); font-weight: 700; background: var(--teal); padding: 4px 12px; border-radius: 999px; }

/* =========================================================
   MODELO DE SERVICIO
   ========================================================= */
.model-card { display: flex; flex-direction: column; gap: 12px; }
.model-card--featured { border: 2px solid var(--teal); box-shadow: var(--shadow-2); background: linear-gradient(160deg, #EEF7F6 0%, var(--white) 40%); }
.model-card h3 { font-size: 21px; font-weight: 700; }
.model-card p { color: var(--muted); }
.status-pill {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: #EEF2FA;
  color: var(--navy);
}
.model-card--featured .status-pill { background: var(--teal); color: var(--white); }
.info-note { margin-top: 24px; display: flex; gap: 14px; align-items: center; background: #EEF2FA; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; color: var(--muted); }
.info-note .material-symbols-outlined { color: var(--teal); }

.price {
  margin-top: 48px;
  background: radial-gradient(circle at 90% 80%, rgba(10, 122, 115, 0.3), transparent 45%), var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.price h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; margin: 10px 0; }
.price p { color: var(--on-dark-muted); max-width: 560px; }

.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
}
.faq__q:focus-visible { outline: 3px solid rgba(10, 122, 115, 0.4); outline-offset: -3px; }
.faq__q .material-symbols-outlined { transition: transform .2s; color: var(--muted); }
.faq__q[aria-expanded="true"] .material-symbols-outlined { transform: rotate(180deg); color: var(--teal); }
.faq__a { padding: 0 24px 22px; color: var(--muted); }
.faq__a[hidden] { display: none; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--navy); color: var(--white); padding: 88px 0; position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__copy { display: flex; flex-direction: column; gap: 22px; }
.contact__copy .eyebrow { align-self: flex-start; }
.contact__copy h1 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; }
.contact__copy > p { font-size: 19px; color: var(--on-dark-muted); }
.contact-line {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.contact-line .icon-box { background: rgba(10, 122, 115, 0.18); color: var(--teal-light); }
.contact-line small { display: block; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-line strong { font-family: var(--font-head); font-size: 18px; word-break: break-all; }
.contact__steps h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 14px; }
.contact__steps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact__steps li { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.contact__steps .material-symbols-outlined { font-size: 16px; color: var(--teal-light); background: rgba(10, 122, 115, 0.2); border-radius: 50%; padding: 3px; }

.form-card { background: var(--white); color: var(--ink); border-radius: 16px; padding: 36px; box-shadow: 0 24px 48px -12px rgba(0,0,0,0.4); }
.form-card h2 { font-size: 24px; font-weight: 700; }
.form-card > h2 + p { color: var(--muted); font-size: 15px; margin: 6px 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(92,101,118,0.7); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(10, 122, 115, 0.25); border-color: var(--teal); }
.form-status { margin-top: 14px; font-size: 14px; text-align: center; color: var(--teal); font-weight: 700; min-height: 1.4em; }

/* =========================================================
   Logo (imágenes reales en img/)
   ========================================================= */
.logo__img { display: block; height: 40px; width: auto; }
.logo__img--footer { height: 44px; }

/* =========================================================
   INICIO — nuestro modelo, quiénes somos, testimonios
   ========================================================= */
.modelo__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.modelo__copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.modelo__copy h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; }
.modelo__copy p { font-size: 18px; color: var(--on-dark-muted); }
.modelo__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.modelo__points li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.08);
}
.modelo__points .icon-box { flex-shrink: 0; }
.modelo__points h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.modelo__points p { color: var(--on-dark-muted); }

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px));
  justify-content: center;
  gap: 24px;
}
.member { display: flex; gap: 20px; align-items: center; }
.member__photo {
  width: 112px; height: 112px;
  border-radius: var(--radius);
  flex-shrink: 0;
  object-fit: cover;
}
.member__photo--initials {
  display: grid;
  place-items: center;
  background: #E3E7EF;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.04em;
}
.member h3 { font-size: 20px; font-weight: 700; }
.member__role { color: var(--teal); font-family: var(--font-head); font-weight: 600; font-size: 14px; margin: 2px 0 8px; }
.member__bio { color: var(--muted); font-size: 15px; }

.team-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.team-facts li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}
.team-facts .material-symbols-outlined { color: var(--teal); }

.contact__coverage { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--on-dark-muted); }
.contact__coverage .material-symbols-outlined { color: var(--teal-light); font-size: 20px; margin-top: 2px; }
.footer__coverage { margin-top: 14px; font-size: 14px; color: var(--on-dark-muted); }

.testimonial { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.testimonial blockquote { margin: 0; font-size: 17px; }
.testimonial figcaption { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.testimonial figcaption strong { color: var(--ink); font-family: var(--font-head); }

.compare__fine { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* =========================================================
   SERVICIOS — tarjeta de estado (rentabilidad por cliente) y "Lo que no hacemos"
   ========================================================= */
.status-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.status-list li {
  display: grid;
  grid-template-columns: 1fr auto 8.5em;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  color: #DCE3EE;
}
.status-list li:last-child { border-bottom: 0; }
.status-list__val { font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--white); }
.status-list__ok, .status-list__warn, .status-list__bad {
  justify-self: end;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-list__ok { background: rgba(61,190,139,0.16); color: #7FDDB5; }
.status-list__warn { background: rgba(227,176,75,0.18); color: #F0CC80; }
.status-list__bad { background: rgba(226,106,99,0.18); color: #F3A39D; }

.not-do {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
}
.not-do .icon-box { flex-shrink: 0; color: var(--navy); }
.not-do h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.not-do p { color: var(--muted); }

.section-head .section-head__note { font-size: 15px; font-style: italic; }

/* =========================================================
   MODELO DE SERVICIO — diagnóstico, niveles, ejemplos
   ========================================================= */
.diag {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
}
.diag__intro { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.diag__intro h2 { font-size: 30px; font-weight: 700; }
.diag__intro p { color: var(--muted); }
.diag__time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 6px 14px;
  border-radius: 999px;
}
.diag__time .material-symbols-outlined { font-size: 18px; }
.diag__list { margin: 0; }

.levels { align-items: stretch; }
.level { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px; }
.level--featured { border: 2px solid var(--teal); box-shadow: var(--shadow-2); background: linear-gradient(170deg, #EEF7F6 0%, var(--white) 35%); }
.level h3 { font-size: 24px; font-weight: 700; }
.level__lead { font-family: var(--font-head); font-weight: 600; color: var(--teal); }
.level__for { color: var(--muted); font-size: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.level__for strong { color: var(--ink); }
.level__inc { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.level__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.level__list li { position: relative; padding-left: 20px; font-size: 15px; }
.level__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.examples { display: flex; flex-direction: column; gap: 10px; }
.examples h3 { font-size: 21px; font-weight: 700; }
.examples__time { color: var(--muted); font-size: 15px; margin-bottom: 8px; }

/* =========================================================
   CONTACTO y AVISO DE PRIVACIDAD
   ========================================================= */
.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.form-note .material-symbols-outlined { font-size: 18px; margin-top: 1px; color: var(--muted); }
.form-legal { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.form-legal a { color: var(--teal); font-weight: 700; }

.legal { max-width: 860px; margin: 0 auto; padding: 40px; display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font-size: 19px; font-weight: 700; margin-top: 16px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); }
.legal a { color: var(--teal); font-weight: 700; }
.legal__date { margin-top: 12px; font-size: 14px; }

/* =========================================================
   Adaptable
   ========================================================= */
@media (max-width: 1180px) {
  .nav__links { gap: 0; }
  .nav__link { padding: 10px 8px; font-size: 14px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__cta { display: none; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    padding: 8px var(--gutter) 20px;
    margin: 0;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__link { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav__link.is-active { border-bottom-color: var(--border); }
  .nav__links .nav__mobile-cta { display: block; margin-top: 16px; }

  .hero__grid, .contact__grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .compare { row-gap: 36px; }
  .service-panel.is-active { grid-template-columns: 1fr; }
  .modelo__grid, .diag { grid-template-columns: 1fr; }
  .span-7, .span-5 { grid-column: span 12; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
.nav__mobile-cta { display: none; }
/* Ícono de menú dibujado con CSS: no depende de la fuente de íconos */
.burger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 20px; }
.burger span { display: block; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { opacity: 0; }
.nav.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  :root { --gutter: 16px; --nav-h: 68px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .page-hero { padding: 64px 0 56px; }
  .grid-3, .grid-2, .grid-4, .calendar__weeks, .timeline { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { gap: 36px; }
  .dash { padding: 16px; }
  .dash__kpis { gap: 8px; }
  .dash__kpi { padding: 10px; }
  .dash__kpi-value { font-size: 17px; }
  .card { padding: 22px; }
  .chart-box--waterfall { height: 360px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .price { padding: 32px 24px; }
  .calendar { padding: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .cta-band__box { padding: 48px 20px; }
  .logo__img { height: 34px; }
  .modelo__grid { gap: 32px; }
  .diag { padding: 24px; }
  .team-facts { grid-template-columns: 1fr; }
  .team-facts li { justify-content: flex-start; text-align: left; }
  .level { padding: 24px; }
  .logo__tag { font-size: 12px; }
  .quote { font-size: 17px; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Formulario (Netlify Forms): trampa anti-spam y confirmación
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.form-done { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
}
.form-done h2 { font-size: 24px; font-weight: 700; }
.form-card.form-done > p { color: var(--muted); margin: 0; padding: 0; border: 0; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* =========================================================
   404
   ========================================================= */
.notfound {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 64px var(--gutter);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.notfound__box { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.notfound__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(72px, 16vw, 128px); line-height: 1; color: var(--teal-light); }
.notfound h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.notfound p { color: var(--on-dark-muted); font-size: 18px; }
.notfound__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* =========================================================
   Revisión 4 · accesibilidad y uso en celular
   ========================================================= */

/* Contraste: texto verde sobre fondo verde claro usa el tono más profundo */
.eyebrow--pill,
.step .mini-pill,
.status--up,
.callout__chip,
.diag__time { color: var(--teal-hover); }
.on-dark .eyebrow--pill,
.page-hero:not(.page-hero--light) .eyebrow--pill { color: var(--teal-light); }

/* Foco visible en todo lo que se puede usar con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid rgba(10, 122, 115, .45); outline-offset: 2px; }
.on-dark a:focus-visible,
.on-dark button:focus-visible,
.footer a:focus-visible { outline-color: var(--teal-light); }

/* Enlace "Saltar al contenido": solo aparece al recibir foco */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .15s;
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* Áreas táctiles de al menos 44 px */
.table-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.segmented button { min-height: 44px; }
.tab { min-height: 44px; }
.logo { min-height: 44px; }

/* Si la fuente de íconos no carga, se oculta también el recuadro que los contiene */
html.js:not(.icons-ok) .icon-box { visibility: hidden; }
html.icons-failed .icon-box { display: none; }
/* La franja final no se muestra en Contacto ni en el Aviso de privacidad (también antes de que cargue main.js) */
html[data-page="contacto"] #ctaBand,
html[data-page="aviso-de-privacidad"] #ctaBand { display: none; }

/* Pie de página: títulos como h2 con el mismo aspecto */
.footer__title { margin: 0 0 16px; }

/* Formulario: obligatorios y errores bajo cada campo */
.field__req { font-family: var(--font-body); font-weight: 400; color: var(--muted); }
.field__error { margin: 0; font-size: 13px; color: #B3261E; }
.field__error[hidden] { display: none; }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field input[aria-invalid="true"]:focus { outline-color: rgba(179, 38, 30, .25); border-color: #B3261E; }

/* Cifras: número y unidad */
.stat__unit { font-size: inherit; }

@media (max-width: 720px) {
  .footer ul { gap: 0; }
  .footer ul a,
  .footer__legal a { display: inline-block; padding: 10px 0; min-height: 44px; }
  .footer__legal { gap: 24px; }

  /* Cifras de Inicio en una fila de 3 columnas compactas */
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stats .stat { padding: 16px 10px; gap: 8px; text-align: center; align-items: center; }
  .stats .stat__num { font-size: 28px; line-height: 1.05; }
  .stats .stat__unit { display: block; font-size: 15px; font-weight: 700; margin-top: 2px; }
  .stats .stat__bar { width: 32px; height: 3px; }
  .stats .stat p { font-size: 13px; line-height: 1.4; }

  /* Preguntas: ícono a la izquierda del título */
  .question { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 10px; align-items: center; }
  .question .icon-box { width: 40px; height: 40px; }
  .question h3 { grid-column: 2; font-size: 18px; }
  .question p { grid-column: 1 / -1; }
}

/* =========================================================
   Revisión 6 · Análisis especiales
   ========================================================= */
/* Panel con lista larga: la lista ocupa más ancho y va en dos columnas en escritorio */
.service-panel--wide.is-active { grid-template-columns: 1.55fr 1fr; gap: 40px; }
.checklist--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 12px; }
.text-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link .material-symbols-outlined { font-size: 18px; }
.text-link:hover { color: var(--teal-hover); }
@media (max-width: 1024px) {
  .service-panel--wide.is-active { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .checklist--2col { grid-template-columns: 1fr; }
  .status-list li { grid-template-columns: 1fr auto auto; font-size: 14px; }
}

/* Revisión 9: con 4 puntos en "Nuestro modelo", tarjetas más compactas en escritorio */
@media (min-width: 1025px) {
  .modelo__points { gap: 10px; }
  .modelo__points li { padding: 16px 20px; gap: 16px; }
  .modelo__points .icon-box { width: 42px; height: 42px; }
  .modelo__points h3 { margin-bottom: 2px; }
}

/* =========================================================
   Revisión 10 · Autodiagnóstico
   ========================================================= */
html[data-page="autodiagnostico"] #ctaBand { display: none; }

/* Entrada desde Contacto */
.contact__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.chk-teaser {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  font-size: 15px;
}
.chk-teaser .material-symbols-outlined { color: var(--teal-light); font-size: 22px; margin-top: 1px; }
.chk-teaser a { color: var(--teal-light); font-weight: 700; display: flex; align-items: center; width: fit-content; min-height: 44px; }

/* Formulario por pasos */
.chk-section { padding-top: 48px; }
.chk-wrap { max-width: 820px; margin: 0 auto; }
.chk { padding: 36px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.chk[hidden], .chk-results[hidden], .chk-step[hidden], .chk-nav .btn[hidden] { display: none; }

.chk-progress { margin-bottom: 28px; }
.chk-progress__label { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-hover); margin-bottom: 8px; }
.chk-progress__track { height: 6px; border-radius: 999px; background: #E6EAF1; overflow: hidden; }
.chk-progress__bar { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--teal); transition: width .25s ease; }

.chk-step__title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; margin-bottom: 8px; }
.chk-step__title:focus { outline: none; }
.chk-step__title:focus-visible { outline: 3px solid rgba(10, 122, 115, .45); outline-offset: 4px; border-radius: 4px; }

.chk-q { border: 0; margin: 0; padding: 24px 0; min-width: 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.chk-q:last-child { border-bottom: 0; padding-bottom: 8px; }
.chk-q__title { padding: 0; font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.35; }
.chk-q__num { color: var(--teal-hover); margin-right: 2px; }
.chk-q__hint { color: var(--muted); font-size: 14px; margin-top: -4px; }

.chk-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chk-options--row { grid-template-columns: repeat(3, 1fr); }
.chk-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chk-opt:hover { border-color: var(--teal); }
.chk-opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.chk-opt:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.chk-opt:has(input:focus-visible) { outline: 3px solid rgba(10, 122, 115, .45); outline-offset: 2px; }
.chk-opt input:focus-visible { outline: none; }

/* Pregunta 9: Sí / No por herramienta */
.chk-tools { display: flex; flex-direction: column; gap: 8px; }
.chk-tool { border: 0; margin: 0; padding: 8px 0 8px 14px; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border-left: 3px solid transparent; }
.chk-tool__name { float: left; padding: 0; font-size: 15px; }
.chk-yn { display: grid; grid-template-columns: repeat(2, 96px); gap: 8px; }
.chk-tool.is-missing { border-left-color: #B3261E; }

.chk-q.is-invalid .chk-opt { border-color: #E8B4B0; }
.chk-q.is-invalid .chk-opt:has(input:checked) { border-color: var(--teal); }

.chk-step .form-grid { margin-top: 20px; }
.chk-step .field textarea { min-height: 96px; }

.chk-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.chk-nav #chkPrev { margin-right: auto; }
.chk-nav .btn { min-width: 140px; min-height: 48px; }

/* Resultados */
.chk-results { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.chk-results__title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.chk-results__title:focus { outline: none; }
.chk-alert { padding: 14px 18px; border-radius: var(--radius-sm); background: #FCEDEC; border: 1px solid #E8B4B0; color: #8C1D18; font-weight: 700; }
.chk-alert[hidden] { display: none; }
.chk-recs { display: flex; flex-direction: column; gap: 14px; }
.chk-rec { border-left: 4px solid var(--teal); display: flex; flex-direction: column; gap: 8px; }
.chk-rec h3 { font-size: 19px; font-weight: 700; }
.chk-rec p { color: var(--muted); }
.chk-next { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 8px; }
.chk-next h3 { font-size: 22px; font-weight: 700; }
.chk-next p { color: var(--on-dark-muted); }
.chk-next .chk-next__small { font-size: 14px; }

@media (max-width: 720px) {
  .chk-section { padding-top: 24px; }
  .chk { padding: 22px 16px; }
  .chk-options, .chk-options--row { grid-template-columns: 1fr; }
  .chk-tool { grid-template-columns: 1fr; gap: 8px; padding-left: 10px; }
  .chk-yn { grid-template-columns: 1fr 1fr; }
  .chk-nav .btn { min-width: 0; flex: 1; }
  .chk-nav #chkPrev { margin-right: 0; }
  .chk-next .btn { width: 100%; }
}

/* Revisión 11 · frase para empresas ordenadas y bloque final con dos versiones */
.chk-lead {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.chk-lead[hidden], .chk-next__copy[hidden] { display: none; }
.chk-next__copy { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 720px) {
  .chk-lead { font-size: 16px; padding: 16px 18px; }
}

/* =========================================================
   Revisión 12
   ========================================================= */
/* Entiende tus números · cifras del hero (revisión 18: antes en Inicio) */
.proof__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.proof__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.08);
}
.proof__stats strong { font-family: var(--font-head); font-size: clamp(34px, 4vw, 46px); font-weight: 800; line-height: 1.1; color: var(--teal-light); }
.proof__stats span { color: var(--on-dark-muted); font-size: 16px; max-width: 240px; }
.proof__note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--on-dark-muted); }
.page-hero .proof__stats { width: 100%; margin-top: 10px; }
.page-hero .proof__note { margin: 0; font-size: 13px; }

/* Franja final · enlace al autodiagnóstico */
.cta-band__box .cta-band__alt { margin-top: 18px; font-size: 15px; color: var(--on-dark-muted); }
.cta-band__box .cta-band__alt a { color: var(--teal-light); font-weight: 700; display: inline-block; padding: 10px 0; }

@media (max-width: 720px) {
  .proof__stats { grid-template-columns: 1fr; gap: 12px; }
  .proof__stats li { padding: 22px 16px; }
}

/* Tablas de datos anchas (ej. Proyecciones, 5 columnas): se desplazan dentro de la tarjeta en celular */
.table-slot { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =========================================================
   Revisión 13 · Hero con el autodiagnóstico primero
   ========================================================= */
/* Contorno blanco bien visible sobre fondo oscuro; la sombra interna engrosa el borde sin cambiar el alto */
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.85); }
.btn--outline-light:hover { background: rgba(255,255,255,0.08); border-color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.on-dark .btn--outline-light:focus-visible { outline-color: var(--teal-light); }
.hero__actions .btn { flex: 1 1 0; min-width: 0; white-space: normal; text-wrap: balance; text-align: center; padding-left: 22px; padding-right: 22px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--on-dark-muted); }
@media (max-width: 720px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { flex: none; }
}
/* Menú de escritorio angosto (1025–1180 px): con 6 pestañas, menos espacio entre enlaces para que
   todo quepa en una línea sin quitar ninguna. El botón de la barra pierde solo la flecha. */
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav__inner { gap: 16px; }
  .nav__link { padding: 10px 6px; }
  .nav__cta { padding: 12px 16px; }
  .nav__cta .material-symbols-outlined { display: none; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { padding-left: 12px; padding-right: 12px; gap: 6px; font-size: 15px; }
}
/* Celular: el texto del botón de autodiagnóstico cabe en un renglón */
@media (max-width: 720px) {
  .hero__actions .btn { padding-left: 14px; padding-right: 14px; gap: 8px; font-size: 15px; }
}

/* Revisión 13.1: en escritorio los botones del hero también van uno encima del otro, en una sola línea cada uno */
.hero__actions { flex-direction: column; align-items: flex-start; }
.hero__actions .btn { flex: none; width: 100%; max-width: 440px; white-space: nowrap; justify-content: center; }
@media (max-width: 400px) { .hero__actions .btn { white-space: normal; } }

/* =========================================================
   Revisión 14 · Tarjetas de resultados con prioridad
   Contraste (regla de la revisión 4): texto de etiqueta 6.5 / 5.3 / 6.1 : 1; bordes ≥ 3 : 1
   ========================================================= */
.chk-rec { gap: 10px; }
.chk-rec p strong { color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.chk-rec__tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chk-rec--alta { border-left-color: #C8463E; }
.chk-rec--alta .chk-rec__tag { background: #FDF0EF; border-color: #F1C0BC; color: #9E2F28; }
.chk-rec--media { border-left-color: #B07A12; }
.chk-rec--media .chk-rec__tag { background: rgba(227,176,75,0.18); border-color: rgba(176,122,18,0.35); color: #8A5A00; }
.chk-rec--oportunidad { border-left-color: var(--teal); }
.chk-rec--oportunidad .chk-rec__tag { background: var(--teal-soft); border-color: rgba(10,122,115,0.35); color: var(--teal-hover); }

/* Revisión 15 · ruta corta para startups (p1 = 1) */
.chk-q[hidden] { display: none; }
.chk-startup-note { margin: 20px 0 8px; }

/* =========================================================
   Revisión 16
   ========================================================= */
/* Cifras de Inicio: número y unidad en dos renglones también en escritorio,
   para que los tres textos de abajo empiecen a la misma altura */
.stat__unit { display: block; font-size: 20px; font-weight: 700; margin-top: 6px; }
/* El número cuenta desde 0 (js/main.js): ancho reservado para que no salte el diseño */
.stat__val { display: inline-block; text-align: left; font-variant-numeric: tabular-nums; }
.stat__val[data-count="7"] { min-width: 1ch; }
.stat__val[data-count="30"] { min-width: 2ch; }
.stat__val[data-count="500"] { min-width: 3ch; }

/* Inicio · Lo que resolvemos */
.resolve__more { display: flex; justify-content: center; margin-top: 24px; }
.resolve__more .text-link { align-self: auto; margin-top: 0; }

/* Cómo trabajamos · Punto de partida: la llamada sin costo va antes de la lista */
.diag__body { display: flex; flex-direction: column; gap: 16px; }
.diag__pre { color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--border); }

/* =========================================================
   Revisión 17 · Antes y después (Inicio)
   ========================================================= */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.ba-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--white); display: flex; flex-direction: column; }
.ba-card__tag { margin: 0; font: 700 12px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: 14px 20px; }
.ba-card--before .ba-card__tag { background: #EEF0F4; color: var(--muted); }
.ba-card--after .ba-card__tag { background: var(--teal-soft); color: var(--teal-hover); }
.ba-card__foot { margin: 0; padding: 14px 20px; border-top: 1px solid var(--border); font-size: 14px; }
/* Rojo oscurecido para texto: #E26A63 sobre blanco da 3.2:1; #B3261E da 6.5:1 */
.ba-card--before .ba-card__foot { color: #B3261E; }
.ba-card--after .ba-card__foot { color: var(--teal-hover); font-weight: 700; }

/* Balanza: el contenido no empuja la altura; la tarjeta mide lo mismo que la de la derecha.
   Gris #6B7280 sobre #FAFAFA = 4.6:1 */
.ba-ledger { position: relative; flex: 1; min-height: 300px; overflow: hidden; background: #FAFAFA; }
.ba-ledger__table { position: absolute; top: 18px; left: 20px; right: 20px; border-collapse: collapse; font: 11px/1.55 "Courier New", monospace; color: #6B7280; }
.ba-ledger__table th, .ba-ledger__table td { padding: 1px 4px; white-space: nowrap; text-align: left; }
.ba-ledger__table th:nth-child(n+3), .ba-ledger__table td:nth-child(n+3) { text-align: right; }
.ba-ledger__table th { font-weight: 700; color: #4B5563; border-bottom: 1px solid #D1D5DB; }
.ba-ledger::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(250,250,250,0), #FAFAFA); }

.ba-rep { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.ba-rep__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ba-kpi { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.ba-kpi small { display: block; font: 700 11px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ba-kpi b { display: block; font: 800 22px/1.2 var(--font-head); color: var(--ink); margin-top: 4px; }
.ba-kpi span { font-size: 12px; color: var(--muted); }
.ba-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.ba-dot--ok { background: var(--ok); }
.ba-dot--warn { background: var(--warn); }
.ba-sem { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ba-sem li { display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: 10px; font-size: 14px; }
.ba-sem__bar { height: 10px; border-radius: 5px; background: #EEF0F4; overflow: hidden; }
.ba-sem__bar i { display: block; height: 100%; border-radius: 5px; }
.ba-sem__fill--bad { background: var(--bad); }
.ba-sem__fill--warn { background: var(--warn); }
.ba-sem__fill--ok { background: var(--ok); }
.ba-sem b { text-align: right; font-family: var(--font-head); }
.ba-rep__todo { margin: 0; background: #FDF0EF; border: 1px solid #F1C0BC; color: #9E2F28; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; }
.ba-rep__todo strong { font-family: var(--font-head); }

/* =========================================================
   Revisión 17 · Calculadoras (margen en Inicio, runway en startups)
   ========================================================= */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; padding: 28px; }
.calc-in { display: flex; flex-direction: column; gap: 12px; }
.calc-ctl__head { display: flex; justify-content: space-between; gap: 12px; font: 700 14px var(--font-head); color: var(--ink); }
.calc-ctl__head output { color: var(--teal-hover); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-ctl input[type="range"] { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.calc-ctl small { display: block; color: var(--muted); font-size: 13px; }
.calc-side { display: flex; flex-direction: column; gap: 12px; }
.calc-out { flex: 1; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 18px; color: var(--white); }
.calc-big { font: 800 64px/1 var(--font-head); color: var(--teal-light); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-big--long { font-size: 40px; }
.calc-big--text { font-size: 28px; line-height: 1.2; }
.calc-big.is-bad { color: #FF9E97; }
.calc-big.is-warn { color: var(--warn); }
.calc-lbl { font-size: 16px; color: var(--on-dark-muted); }
.calc-stack { height: 26px; border-radius: 13px; overflow: hidden; display: flex; background: rgba(255,255,255,.08); }
.calc-stack i { display: block; height: 100%; }
.calc-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--on-dark-muted); }
.calc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.calc-legend__costo { background: #E26A63; }
.calc-legend__venta { background: #F0A090; }
.calc-legend__gastos { background: #E3B04B; }
.calc-legend__deuda { background: #A9B6CC; }
.calc-legend__queda { background: #7FE0D6; }
.calc-msg { margin: 0; font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.calc-msg strong { color: var(--white); }
.calc-link { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.calc-link a { color: var(--teal-hover); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.chk-runway[hidden] { display: none; }
.chk-runway__title { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.chk-runway .calc { padding: 24px; }
.chk-runway .calc-big { font-size: 56px; }
.chk-runway .calc-big--text { font-size: 26px; }

@media (max-width: 860px) {
  .ba, .calc { grid-template-columns: 1fr; }
  .calc-big, .chk-runway .calc-big { font-size: 52px; }
  .calc-big--long { font-size: 36px; }
  .calc-big--text, .chk-runway .calc-big--text { font-size: 24px; }
}
@media (max-width: 720px) {
  .ba-sem li { grid-template-columns: 100px 1fr 56px; }
  .ba-kpi { padding: 10px 8px; }
  .ba-kpi b { font-size: 18px; }
  .calc, .chk-runway .calc { padding: 20px 16px; gap: 20px; }
  .calc-out { padding: 22px 18px; }
}

/* Revisión 18: las cifras van seguidas de "Problemas que reconoces" (también blanca): sin doble espacio */
.stats-section + .section { padding-top: 0; }
@media (max-width: 720px) {
  /* En celular la balanza pierde la columna "Cuenta" para que quepan Debe y Haber */
  .ba-ledger__table { left: 12px; right: 12px; font-size: 10px; }
  .ba-ledger__table th:first-child, .ba-ledger__table td:first-child { display: none; }
}

/* =========================================================
   Revisión 20 · Garantías, agenda en línea, Plan de Cash y plantilla
   ========================================================= */
/* Franja de garantías (Inicio, debajo de la banda de industrias) */
.guarantees { background: var(--white); padding: 48px 0 0; }
.guarantees + .section { padding-top: 56px; }
.guarantees__list {
  list-style: none; margin: 0; padding: 28px 32px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  background: var(--navy); color: var(--white); border-radius: var(--radius);
}
.guarantees__list li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.guarantees__check { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--teal-light); }
.guarantees__list strong { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.3; }
.guarantees__list span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); }
/* Versión compacta en Contacto (ya está sobre azul marino): solo títulos */
.guarantees__list--compact {
  padding: 16px 18px; gap: 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.guarantees__list--compact li { align-items: center; gap: 10px; }
.guarantees__list--compact strong { font-size: 14px; }
.guarantees__list--compact .guarantees__check { width: 18px; height: 18px; margin-top: 0; }
@media (max-width: 1024px) { .guarantees__list:not(.guarantees__list--compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .guarantees { padding-top: 32px; }
  .guarantees + .section { padding-top: 48px; }
  .guarantees__list:not(.guarantees__list--compact) { grid-template-columns: 1fr; padding: 22px 20px; gap: 18px; }
}
@media (max-width: 400px) { .guarantees__list--compact { grid-template-columns: 1fr; } }

/* Agenda en línea (Google Calendar) */
.booking { display: flex; flex-direction: column; gap: 12px; }
.booking__title { font-size: 22px; font-weight: 700; color: var(--white); }
.booking__frame { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.booking__frame iframe { display: block; width: 100%; height: 600px; }
@media (max-width: 720px) { .booking__frame iframe { height: 760px; } }

/* Plan de Cash: leyenda y alerta neutra */
.cash-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: -6px; }
.cash-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.cash-legend__proy { background: #0C8880; }
.cash-legend__real { background: var(--navy); height: 4px !important; }
.cash-legend__colchon { background: repeating-linear-gradient(90deg, #E26A63 0 5px, transparent 5px 9px); }
.alert.alert--info { background: #F1F3F7; border-color: var(--border); color: var(--muted); font-weight: 400; }
.alert.alert--info .material-symbols-outlined { color: var(--muted); }
#plan-cash { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Plantilla descargable */
.cash-dl {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  margin-top: 4px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #F8FAFC;
}
.cash-dl__copy { flex: 1 1 280px; }
.cash-dl h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.cash-dl__copy p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.cash-dl__form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.cash-dl__form[hidden], .cash-dl__done[hidden] { display: none; }
.cash-dl__field { display: flex; flex-direction: column; gap: 4px; }
.cash-dl__field input {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px; width: 220px; min-height: 46px;
}
.cash-dl__field input:focus { outline: 2px solid rgba(10, 122, 115, 0.25); border-color: var(--teal); }
.cash-dl__form .btn { min-height: 46px; }
.cash-dl__status { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--teal); font-weight: 700; }
.cash-dl__status:empty { display: none; }
.cash-dl__done { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.cash-dl__done p { margin: 0; }
.cash-dl__done a { color: var(--teal-hover); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .cash-dl { padding: 16px; }
  .cash-dl__form, .cash-dl__field { width: 100%; }
  .cash-dl__field input { width: 100%; }
  .cash-dl__form .btn { width: 100%; }
}

/* Enlace discreto a la plantilla, debajo de la calculadora */
.calc-dl { margin: 18px 0 0; text-align: center; font-size: 15px; }
.calc-dl a { color: var(--teal-hover); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
