/* ══════════════════════════════════════════════════════════════════
   INTRANET CONEXO — home.css  (rediseño 2026-10-22 · v2)
   Armazón: barra lateral oscura fija + barra superior + hero full-bleed
            + accesos planos + banda de cifras con foto + noticias 1+2
            + trío (cumpleaños / actividades / opinión) + calendario
            + directorio.
   Paleta medida de la referencia:
     sidebar #1e2225 · topbar #eae7e2 · fondo #f2ede9
     banda cifras #d8dbd3 · tinta #14181b
   Mobile-first. Prefijo: .h-
   ══════════════════════════════════════════════════════════════════ */

body[data-page="home"] {
  --h-side: #1e2225;
  --h-side-txt: rgba(255, 255, 255, .70);
  --h-top: #eae7e2;
  --h-bg: #f3f0eb;
  --h-band: #e2e8de;
  --h-ink: #000000;
  --h-ink-soft: #3a3d3a;
  --h-muted: #6f7370;
  --h-line: #dcd7d0;
  --h-card: #faf7f2;
  --h-green-dark: #0e261b;
  --h-green: #0f6e52;
  --h-side-w: 150px;
  background: var(--h-bg);
  color: var(--h-ink);
}

/* El armazón horizontal de chrome.js se reemplaza por la barra lateral */
body[data-page="home"] .utilbar,
body[data-page="home"] .mainbar,
body[data-page="home"] .flash,
body[data-page="home"] #appFooter { display: none !important; }

.h-shell { min-height: 100vh; }

/* Evita el salto al navegar: las secciones se muestran cuando el encabezado de
   página ya está dibujado (antes aparecían y el encabezado las empujaba hacia abajo). */
#contenido > #pageHead:empty ~ * { visibility: hidden; }
#contenido.cx-mostrar > * { visibility: visible !important; }

/* ── Barra lateral ───────────────────────────────────────────── */
.h-side {
  display: none;
  background: var(--h-side);
  color: var(--h-side-txt);
}
.h-side-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 10px 16px;
  overflow-y: auto;
}
.h-side-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px 18px;
}
.h-side-brand img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.h-nav { display: flex; flex-direction: column; gap: 2px; }
.h-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--h-side-txt);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .01em;
  line-height: 1.2;
}
.h-nav-link svg {
  width: 15px; height: 15px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .85;
}
.h-nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.h-nav-link.is-active { background: rgba(255, 255, 255, .12); color: #fff; }
.h-nav-link.is-pending { opacity: .5; }
.h-nav-link.is-pending:hover { background: transparent; }

/* ── Barra superior ──────────────────────────────────────────── */
.h-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 6px clamp(14px, 3.4vw, 40px);
  background: var(--h-top);
  border-bottom: 1px solid rgba(20, 24, 27, .06);
}
.h-burger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px;
  margin-left: -6px;
  color: var(--h-ink);
  cursor: pointer;
  display: inline-flex;
}
.h-burger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.h-logo { display: inline-flex; align-items: center; flex: 0 0 auto; margin-right: 6px; }
.h-logo img { height: 20px; width: auto; display: block; }
.h-search {
  flex: 0 1 auto;
  width: 340px;
  max-width: 46vw;
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(20, 24, 27, .08);
  border-radius: 999px;
  padding: 5px 12px;
  min-width: 0;
}
.h-search svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: var(--h-muted); stroke-width: 1.8; stroke-linecap: round; }
.h-search input {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--h-ink);
  width: 100%;
  min-width: 0;
  outline: none;
}
.h-search input::placeholder { color: var(--h-muted); }
.h-top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.h-ico-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px;
  color: var(--h-ink-soft);
  cursor: pointer;
  display: inline-flex;
  border-radius: 999px;
}
.h-ico-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.h-ico-btn:hover { background: rgba(20, 24, 27, .06); }
.h-user {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--h-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
}
.h-greet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: #3a3938;
  white-space: nowrap;
}
.h-greet .h-user { width: 26px; height: 26px; background: #d9d5cd; color: #4a4740; }
.h-greet svg { width: 12px; height: 12px; fill: none; stroke: #8f8c85; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Contenido ───────────────────────────────────────────────── */
.h-pad { padding: 0 clamp(16px, 4.4vw, 58px); }
.h-sec { padding: 26px 0; }
.h-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.h-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 1.9vw, 21px);
  letter-spacing: -.01em;
  margin: 0;
  color: var(--h-ink);
}
.h-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--h-muted); }
.h-more {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--h-ink);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.h-more { color: #e05d65; }
.h-more:hover { color: #b8434b; }

/* ── Hero full-bleed ─────────────────────────────────────────── */
.h-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background: #2a2d30 center / cover no-repeat;
  overflow: hidden;
}
.h-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 15, 17, .86) 0%, rgba(12, 15, 17, .58) 42%, rgba(12, 15, 17, .12) 78%);
}
.h-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 30px clamp(16px, 4.4vw, 58px) 30px;
  color: #fff;
}
.h-hero-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: .96;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 14px;
}
.h-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0;
  max-width: 15ch;
}
.h-hero-accent {
  display: block;
  margin-top: 8px;
  font-weight: 500;
  font-size: .58em;
  letter-spacing: -.01em;
  color: rgba(255, 255, 255, .82);
}
/* botón del hero: relleno coral medido de la referencia (#f94f58, 187x40) */
.h-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  color: #1a1a1a;
  background: #f94f58;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 5px;
  transition: background .18s ease, transform .18s ease;
}
.h-hero-cta:hover { background: #ef3b46; transform: translateY(-1px); }

/* ── Accesos rápidos (5 columnas planas) ─────────────────────── */
.h-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
}
.h-qitem {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.h-qico {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--h-ink);
  margin-bottom: 3px;
}
.h-qico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.h-qitem h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  margin: 0;
  line-height: 1.2;
}
.h-qitem p { margin: 0; font-size: 11.5px; color: var(--h-muted); line-height: 1.35; }
.h-qitem .h-qgo {
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--h-ink);
  display: inline-flex; align-items: center; gap: 4px;
}
.h-qitem:hover h3 { color: var(--coral-dark); }
.h-qitem.is-pending .h-qgo { color: var(--h-muted); }

/* ── Conexo en cifras ────────────────────────────────────────── */
.h-cifras { background: var(--h-band); }
.h-cifras-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 22px clamp(16px, 4.4vw, 58px);
}
.h-cifras-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 1.7vw, 19px);
  margin: 0 0 12px;
  color: var(--h-ink);
}
.h-cifras-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
.h-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--h-ink);
}
.h-stat span { display: block; margin-top: 6px; font-size: 11px; line-height: 1.3; color: #4c534e; }
.h-cifras-media { height: 150px; border-radius: 4px; overflow: hidden; background: #c3c7bd; }
.h-cifras-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Noticias ────────────────────────────────────────────────── */
.h-news { display: grid; grid-template-columns: 1fr; gap: 16px; }
.h-nlead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.h-nlead-txt { min-width: 0; }
.h-nlead-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}
.h-nlead-mosaic img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  background: #dcd7d0;
  transition: transform .3s ease;
}
.h-nlead:hover .h-nlead-mosaic img { transform: scale(1.02); }
.h-tag {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--h-muted);
  margin: 10px 0 5px;
}
.h-nlead-txt .h-tag { margin-top: 0; }
.h-nlead h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  color: #000;
}
.h-nlead:hover h3 { color: var(--coral-dark); }
.h-nlead p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #878683; }
.h-ndate {
  display: block;
  margin-top: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a9a49b;
}
.h-nside { display: grid; gap: 46px; align-content: start; }
.h-nmini {
  display: block;
  text-decoration: none;
  color: inherit;
}
.h-nmini .h-tag { margin: 0 0 5px; }
.h-nmini h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.28;
  margin: 0;
  letter-spacing: -.01em;
  color: #000;
}
.h-nmini:hover h4 { color: var(--coral-dark); }

/* ── Trío: cumpleaños / actividades / opinión ────────────────── */
/* Panorama del equipo con un solo panel (cumpleaños): ocupa el ancho y
   la lista se reparte en columnas para no dejar huecos. */
.h-trio-solo .h-people { gap: 10px 26px; }
.h-trio { display: grid; grid-template-columns: 1fr; gap: 18px; }
.h-panel { min-width: 0; }
.h-panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--h-line);
  margin-bottom: 10px;
}
.h-panel-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  margin: 0;
  letter-spacing: -.01em;
}
.h-panel-head a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  color: var(--h-muted);
  text-decoration: none;
  white-space: nowrap;
}
.h-panel-head a:hover { color: var(--coral-dark); }

.h-people, .h-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.h-person, .h-event { display: flex; align-items: center; gap: 9px; }
.h-avatar {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--h-ink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
}
.h-person-txt, .h-event-txt { min-width: 0; }
.h-person-txt b, .h-event-txt b { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; }
.h-person-txt span, .h-event-txt span { display: block; font-size: 10.5px; color: var(--h-muted); }
.h-person-day { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 11px; color: var(--h-muted); }
.h-chip {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--h-line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  background: #fff;
}

.h-nps-q { font-size: 12px; line-height: 1.4; color: var(--h-ink-soft); margin: 0 0 9px; }
.h-scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.h-scale button {
  appearance: none;
  border: 1px solid var(--h-line);
  background: #fff;
  border-radius: 5px;
  height: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  color: var(--h-ink);
  cursor: pointer;
  padding: 0;
}
.h-scale button:hover { border-color: var(--h-ink); }
.h-scale button.is-on { background: var(--h-ink); border-color: var(--h-ink); color: #fff; }
.h-nps-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.h-nps-note { font-size: 10px; color: var(--h-muted); }
.h-nps-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--h-ink);
  text-decoration: none;
  white-space: nowrap;
}
.h-nps-cta:hover { color: var(--coral-dark); }

/* ── Calendario (según referencia 2026-10-22) ─────────────────── */
.h-cal-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.h-cal-sub { margin: 0; font-size: 12.5px; color: #8a8985; }
.h-cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.h-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.h-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 15px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: #807e7a;
  cursor: pointer;
  line-height: 1;
}
.h-tab:hover { background: rgba(14, 38, 27, .07); }
.h-tab.is-on { background: var(--h-green-dark); color: #fff; }
.h-cal-nav { display: flex; align-items: center; gap: 10px; }
.h-cal-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  cursor: pointer;
  color: #313130;
  font-size: 15px;
  line-height: 1;
}
.h-cal-nav button:hover { color: var(--h-green); }
.h-cal-month {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  color: #313130;
  text-transform: capitalize;
  min-width: 96px;
  text-align: center;
}

.h-cal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.h-cal-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* tarjeta de evento: badge de fecha + título + meta */
.h-evi {
  display: grid;
  grid-template-columns: 39px 1fr;
  gap: 12px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.h-badge {
  width: 39px;
  height: 49px;
  border-radius: 5px;
  background: #9ee0cc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}
.h-badge b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #0f6e52;
}
.h-badge span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0f6e52;
}
.h-evi-txt { min-width: 0; padding-top: 2px; }
.h-evi-txt b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.24;
  color: #4a4a48;
}
.h-evi-txt span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.3; color: #a4a39f; }
.h-evi:hover .h-evi-txt b { color: var(--h-green); }

/* mini calendario del mes */
.h-cal-mini { min-width: 0; }
.h-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.h-dow span {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #a2a19e;
}
.h-minigrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.h-minigrid .h-day {
  height: 24px;
  width: 24px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10.5px;
  color: #bab9b5;
  cursor: default;
}
.h-minigrid .h-day.is-empty { visibility: hidden; }
/* días con actividad: cajita tintada + número en el color de la categoría */
.h-minigrid .h-day.has-evt { font-weight: 700; cursor: pointer; }
.h-minigrid .h-day.c-pausa      { background: #99d7c5; color: #158361; }
.h-minigrid .h-day.c-salud      { background: #a5b0a8; color: #061c13; }
.h-minigrid .h-day.c-celebracion{ background: #fbb8b4; color: #f14549; }
.h-minigrid .h-day.c-taller     { background: #cfc9c0; color: #89816f; }
.h-minigrid .h-day.has-evt:hover { filter: brightness(.95); }
.h-minigrid .h-day.is-today { box-shadow: inset 0 0 0 1.5px #0e261b; }
.h-minigrid .h-day.is-sel { background: var(--h-green-dark); color: #fff; }

/* barra lateral del calendario */
.h-cal-side { min-width: 0; display: flex; flex-direction: column; }
.h-cal-photo {
  border-radius: 3px;
  overflow: hidden;
  background: #dcd7d0;
  aspect-ratio: 5 / 3;
  margin-bottom: 14px;
}
.h-cal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-cal-side h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #393837;
}
.h-cal-side p { margin: 0 0 14px; font-size: 11.5px; line-height: 1.45; color: #6f6e6a; }
.h-btn-dark {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--h-green-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  padding: 11px 14px;
  border-radius: 4px;
}
.h-btn-dark:hover { background: #17392a; }

/* ── Directorio (tabla, según referencia 2026-10-22) ─────────── */
.h-dir-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.h-dir-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.h-dir-sub { margin: 0; font-size: 12.5px; color: #8f8e8a; }
.h-dir-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.h-dir-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid #e3e0d9;
  border-radius: 999px;
  padding: 7px 14px;
  min-width: 0;
  width: 250px;
  max-width: 46vw;
}
.h-dir-search svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: #9e9b94; stroke-width: 1.8; stroke-linecap: round; }
.h-dir-search input {
  appearance: none;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--h-ink);
  width: 100%;
  min-width: 0;
}
.h-dir-search input::placeholder { color: #9e9b94; }
.h-dir-filter {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  color: #47463f;
  cursor: pointer;
  padding: 6px 4px;
  white-space: nowrap;
}
.h-dir-filter svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.h-dir-filter:hover { color: var(--h-green); }

.h-dir-table {
  display: block;
  max-height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #cfc9bf transparent;
}
.h-dir-table::-webkit-scrollbar { width: 8px; }
.h-dir-table::-webkit-scrollbar-track { background: transparent; }
.h-dir-table::-webkit-scrollbar-thumb { background: #d6d0c6; border-radius: 4px; }
.h-dir-table::-webkit-scrollbar-thumb:hover { background: #bfb8ac; }
.h-dir-row {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #eeebe4;
}
.h-dir-row--head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 0;
  border-bottom: 1px solid #e6e3dc;
  background: var(--h-card, #faf7f2);
}
.h-dir-row--head span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .04em;
  color: #b0ada8;
}
.h-dir-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.h-dir-who .h-avatar { width: 26px; height: 26px; font-size: 9.5px; background: #e2dfd8; color: #6f6d66; }
.h-dir-who b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: #3a3938;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h-dir-cargo, .h-dir-area { font-size: 11.5px; color: #9e9d99; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-dir-mail {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: #9e9d99;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h-dir-mail:hover { color: var(--h-green); }
.h-dir-none { padding: 18px 0; font-size: 12px; color: #9e9d99; }
.h-note { margin: 12px 0 0; font-size: 10.5px; color: #a9a49b; font-style: italic; }

/* ── Drawer móvil ────────────────────────────────────────────── */
.h-drawer {
  position: fixed;
  inset: 0 30% 0 0;
  max-width: 260px;
  background: var(--h-side);
  z-index: 60;
  transform: translateX(-100%);
  transition: transform .22s ease;
  overflow-y: auto;
  padding: 16px 10px;
}
.h-drawer.is-open { transform: translateX(0); }
.h-scrim {
  position: fixed; inset: 0; background: rgba(12, 15, 17, .45);
  z-index: 55; opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.h-scrim.is-on { opacity: 1; pointer-events: auto; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (min-width: 560px) {
  .h-quick { grid-template-columns: repeat(3, 1fr); }
  .h-trio-solo .h-people { grid-template-columns: repeat(2, 1fr); }
  .h-dir { grid-template-columns: repeat(2, 1fr); }
  .h-news { grid-template-columns: 1fr; }
  .h-nside { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .h-dir-row { grid-template-columns: 30% 23% 21% 26%; gap: 14px; padding: 7px 0; }
  .h-dir-mail { grid-column: auto; }
  .h-dir-who b { font-size: 12.5px; }
  .h-cal-body { grid-template-columns: 1.05fr 1.07fr 1.13fr .95fr; gap: 18px; }
  .h-trio { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .h-trio-solo { grid-template-columns: 1fr; }
  .h-trio-solo .h-people { grid-template-columns: repeat(3, 1fr); }
  .h-news { grid-template-columns: 2.56fr 1fr; gap: 30px; }
  .h-nlead { grid-template-columns: 34.5% 1fr; gap: 18px; }
  .h-nside { grid-template-columns: 1fr; }
  .h-cifras-inner { grid-template-columns: 1.9fr 1fr; align-items: center; gap: 24px; }
  .h-cifras-media { height: 140px; }
  .h-hero { min-height: 360px; }
  .h-sec { padding: 30px 0; }
}

@media (min-width: 1024px) {
  .h-side { display: block; position: fixed; left: 0; top: 0; bottom: 0; width: var(--h-side-w); z-index: 40; }
  .h-shell { padding-left: var(--h-side-w); }
  .h-burger { display: none; }
  .h-drawer, .h-scrim { display: none; }
  .h-quick { grid-template-columns: repeat(5, 1fr); }
  .h-hero { min-height: 320px; }
}

@media (min-width: 1280px) {
}

/* Foco visible */
.h-nav-link:focus-visible,
.h-qitem:focus-visible,
.h-nlead:focus-visible,
.h-nmini:focus-visible,
.h-dcard:focus-visible,
.h-tab:focus-visible,
.h-scale button:focus-visible,
.h-cal-nav button:focus-visible,
.h-more:focus-visible,
.h-hero-cta:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Directorio con solo nombre y correo */
.h-dir-row--simple { grid-template-columns: 1fr auto; }
.h-dir-row--simple .h-dir-mail { justify-self: end; }
@media (min-width: 860px) {
  .h-dir-row--simple { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
}

/* Directorio con nombre, cargo y correo */
.h-dir-row--mid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; }
.h-dir-row--mid .h-dir-cargo {
  font-size: 11.5px; color: #6f7370; text-transform: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h-dir-row--mid .h-dir-mail { justify-self: end; }
.h-dir-row--simple .h-dir-mail { justify-self: end; }
@media (min-width: 860px) {
  .h-dir-row--mid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr) auto; gap: 16px; }
}
@media (max-width: 700px) {
  .h-dir-table { max-height: 62vh; }
  /* nombre arriba, cargo debajo, correo a la derecha */
  .h-dir-row--mid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
    grid-template-areas: "who mail" "cargo mail";
    row-gap: 2px; padding: 10px 0;
  }
  .h-dir-row--mid .h-dir-who { grid-area: who; }
  .h-dir-row--mid .h-dir-cargo { grid-area: cargo; display: block; padding-left: 32px; }
  .h-dir-row--mid .h-dir-mail { grid-area: mail; align-self: center; }
  .h-dir-row--head .h-dir-col--1 { display: none; }
  .h-dir-row--head.h-dir-row--mid { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); grid-template-areas: "who mail"; }
}
