:root {
      --bg: #f5f8f4;
      --surface: #ffffff;
      --surface-2: #f0f6f2;
      --surface-3: #e7efea;

      --text: #17314f;
      --text-2: #36516a;
      --muted: #6b7f90;

      --line: #d5e2dc;
      --line-soft: #e6eeea;

      --lake-deep: #163a5f;
      --lake: #1c6084;
      --lake-light: #4ca5bf;
      --lake-soft: #d9ecf1;

      --forest: #2e6a57;
      --forest-soft: #ddefe6;
      --forest-pale: #f1faf5;

      --sand: #d5a34b;
      --sand-soft: #f7ecd6;
      --sand-pale: #fbf6ed;

      --danger: #9c4242;
      --danger-soft: #f9e5e2;
      --danger-pale: #fdf4f3;

      --shadow-xs: 0 1px 3px rgba(18, 42, 66, .04), 0 2px 10px rgba(18, 42, 66, .04);
      --shadow-sm: 0 6px 20px rgba(18, 42, 66, .06), 0 2px 8px rgba(18, 42, 66, .04);
      --shadow: 0 14px 34px rgba(18, 42, 66, .08), 0 4px 14px rgba(18, 42, 66, .05);
      --shadow-lg: 0 20px 50px rgba(18, 42, 66, .12), 0 6px 16px rgba(18, 42, 66, .06);

      --radius: 24px;
      --radius-md: 18px;
      --radius-sm: 14px;
      --radius-xs: 10px;

      --font-head: 'Lora', Georgia, serif;
      --font-body: 'Sora', system-ui, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
    }

    * , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background:
        radial-gradient(circle at 0% 0%, rgba(76,165,191,.12) 0%, transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(46,106,87,.08) 0%, transparent 28%),
        linear-gradient(180deg, #f7faf7 0%, #f3f7f3 100%);
      color: var(--text);
      min-height: 100vh;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background:
        radial-gradient(ellipse 60% 45% at 10% 20%, rgba(28,96,132,.08) 0%, transparent 60%),
        radial-gradient(ellipse 55% 40% at 80% 10%, rgba(76,165,191,.08) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(46,106,87,.06) 0%, transparent 60%);
    }


    .hero-copy,
    .story-lead,
    .story-columns .prose,
    .story-point p,
    .signal-copy,
    .ribbon-sub,
    .signal-stat .mini-sub,
    .signal-latest .mini-sub,
    .capsule,
    .footer-copy {
      text-align: justify;
      text-justify: inter-word;
      font-size: 1rem;
      line-height: 1.78;
    }

    .ribbon-sub:empty,
    .signal-latest .mini-sub:empty {
      display: none;
    }


    #kpiLatest,
    #kpiLatestHero {
      font-size: clamp(1.55rem, 2.4vw, 2.35rem);
      line-height: 1.12;
      letter-spacing: -.03em;
      white-space: normal;
      max-width: 14ch;
    }

    a { color: inherit; }

    .page { display: none; animation: fadeIn .35s ease both; }
    .page.active { display: block; }

    .wrap {
      width: min(1580px, calc(100vw - 32px));
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeDown {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes pulse {
      0%,100% { box-shadow: 0 0 0 0 rgba(46,106,87,.18); }
      50% { box-shadow: 0 0 0 8px rgba(46,106,87,0); }
    }
    @keyframes floaty {
      0%,100% { transform: translateY(0px); }
      50% { transform: translateY(-8px); }
    }
    @keyframes sweep {
      0% { transform: translateX(-6%); opacity: .45; }
      100% { transform: translateX(6%); opacity: .72; }
    }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      min-height: 82px;
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 12px 28px;
      border-bottom: 1px solid rgba(255,255,255,.10);
      background: linear-gradient(135deg, rgba(18,62,104,.96) 0%, rgba(23,84,129,.95) 48%, rgba(31,116,145,.93) 100%);
      backdrop-filter: blur(16px) saturate(1.2);
      -webkit-backdrop-filter: blur(16px) saturate(1.2);
      box-shadow: 0 16px 40px rgba(13,39,67,.18);
      animation: fadeDown .45s ease both;
    }

    .header-brand {
      display: flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      min-width: 0;
    }
    /* brand-mark eliminado */
    .brand-text {
      display: grid;
      gap: 1px;
      min-width: 0;
    }
    .brand-kicker {
      font-size: .72rem;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(255,255,255,.74);
      font-weight: 800;
      line-height: 1.1;
    }
    .brand-title {
      font-size: 1rem;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.15;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .header-logo-img {
      height: 44px;
      width: auto;
      display: block;
      flex-shrink: 0;
      border-radius: 10px;
      background: rgba(255,255,255,.92);
      padding: 4px 6px;
      box-shadow: 0 2px 8px rgba(0,0,0,.18);
    }
    .footer-mark {
      margin-left: auto;
      align-self: end;
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
    }
    .footer-mark img {
      width: 148px;
      max-width: 100%;
      height: auto;
      opacity: .96;
    }
    @media (max-width: 640px) {
      .header-logo-img { height: 34px; }
      .footer-mark { justify-self: start; }
    }

    .nav-tabs {
      margin-left: auto;
      display: flex;
      gap: 6px;
      padding: 5px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.18);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
      overflow-x: auto;
    }
    .nav-tab {
      appearance: none;
      border: none;
      border-radius: 999px;
      padding: 10px 16px;
      font: 700 .79rem/1 var(--font-body);
      color: rgba(255,255,255,.78);
      background: transparent;
      cursor: pointer;
      white-space: nowrap;
      transition: all .2s ease;
    }
    .nav-tab:hover {
      background: rgba(255,255,255,.10);
      color: #fff;
    }
    .nav-tab.active {
      background: rgba(255,255,255,.92);
      color: var(--lake-deep);
      box-shadow: 0 8px 18px rgba(6,24,42,.20);
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      padding: 8px 14px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.8);
      color: var(--text-2);
      font-size: .78rem;
      font-weight: 700;
      white-space: nowrap;
    }
    .status-badge .live {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--forest);
      animation: pulse 2.2s ease-in-out infinite;
      flex-shrink: 0;
    }

    /* Cards */
    .card {
      background: rgba(255,255,255,.94);
      border: 1px solid rgba(213,226,220,.95);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
    }
    .card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow);
      border-color: rgba(76,165,191,.35);
    }

    /* Hero */
    .hero-shell {
      padding: 34px 0 24px;
      display: grid;
      grid-template-columns: minmax(0, 1.5fr) minmax(320px, .9fr);
      gap: 20px;
    }
    .hero-main {
      padding: 38px 42px;
      overflow: hidden;
      position: relative;
      background:
        linear-gradient(135deg, rgba(22,58,95,.98) 0%, rgba(28,96,132,.96) 52%, rgba(64,155,156,.93) 100%);
      color: #fff;
    }
    .hero-main::before {
      content: '';
      position: absolute;
      inset: auto -80px -90px auto;
      width: 340px;
      height: 340px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,.08) 42%, transparent 72%);
      pointer-events: none;
    }
    .hero-main::after {
      content: '';
      position: absolute;
      left: -50px;
      bottom: -22px;
      width: calc(100% + 100px);
      height: 90px;
      background:
        radial-gradient(70px 28px at 0 100%, rgba(255,255,255,.12) 50%, transparent 52%) repeat-x;
      background-size: 120px 90px;
      opacity: .7;
      pointer-events: none;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 16px;
      color: rgba(255,255,255,.78);
      font-size: .75rem;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
    }
    .eyebrow::before {
      content: '';
      width: 28px;
      height: 2px;
      border-radius: 999px;
      background: rgba(255,255,255,.75);
    }
    .hero-title {
      font-size: clamp(2.2rem, 4vw, 3.7rem);
      line-height: 1.03;
      margin-bottom: 18px;
      font-weight: 800;
      letter-spacing: -.04em;
      max-width: 12ch;
    }
    .hero-copy {
      max-width: 66ch;
      font-size: 1rem;
      line-height: 1.78;
      color: rgba(255,255,255,.9);
    }
    .hero-copy strong {
      color: #fff;
    }
    .hero-pills {
      margin-top: 24px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 14px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.22);
      color: rgba(255,255,255,.94);
      font-size: .8rem;
      font-weight: 700;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }

    .hero-side {
      padding: 20px;
      display: grid;
      gap: 14px;
      align-content: start;
      background:
        linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(243,248,245,.95) 100%);
    }
    .hero-logo-card {
      position: relative;
      overflow: hidden;
      border-radius: 22px;
      min-height: 408px;
      padding: 24px;
      background:
        radial-gradient(circle at 20% 20%, rgba(76,165,191,.18) 0%, transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(213,163,75,.16) 0%, transparent 26%),
        linear-gradient(180deg, #eef5f2 0%, #ffffff 100%);
      border: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .hero-logo-card::before {
      content: '';
      position: absolute;
      width: 220px;
      height: 220px;
      border-radius: 999px;
      border: 1px solid rgba(28,96,132,.12);
      box-shadow: 0 0 0 28px rgba(28,96,132,.04), 0 0 0 56px rgba(28,96,132,.02);
    }
    .hero-logo {
      position: relative;
      z-index: 1;
      max-width: 100%;
      max-height: 240px;
      object-fit: contain;
      filter: drop-shadow(0 12px 30px rgba(22,58,95,.12));
      animation: floaty 6.4s ease-in-out infinite;
      transform-origin: center;
    }
    .hero-side-note {
      display: grid;
      gap: 8px;
      padding: 18px 18px 6px;
    }
    .hero-side-note h3 {
      font-size: .94rem;
      color: var(--lake-deep);
      letter-spacing: -.01em;
    }
    .hero-side-note p {
      color: var(--text-2);
      font-size: .88rem;
      line-height: 1.65;
    }

    .hero-metrics {
      display: none;
    }

    .dashboard-ribbon {
      position: relative;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0;
      margin: 4px 0 24px;
      border: 1px solid rgba(213,226,220,.92);
      border-radius: 30px;
      overflow: hidden;
      background:
        linear-gradient(120deg, rgba(255,255,255,.95) 0%, rgba(245,250,247,.92) 45%, rgba(236,246,248,.96) 100%);
      box-shadow: var(--shadow-sm);
      isolation: isolate;
    }
    .dashboard-ribbon::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(28,96,132,.06), transparent 25%, transparent 75%, rgba(46,106,87,.06));
      pointer-events: none;
      z-index: 0;
      animation: sweep 16s ease-in-out infinite alternate;
    }
    .ribbon-item {
      position: relative;
      padding: 26px 30px 24px;
      z-index: 1;
      min-height: 152px;
      display: grid;
      align-content: center;
      gap: 8px;
    }
    .ribbon-item + .ribbon-item {
      border-left: 1px solid rgba(213,226,220,.92);
    }
    .ribbon-item::after {
      content: '';
      position: absolute;
      inset: auto -30px -40px auto;
      width: 150px;
      height: 150px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(76,165,191,.12) 0%, transparent 68%);
      pointer-events: none;
    }
    .ribbon-label {
      font-size: .74rem;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--muted);
      max-width: 30ch;
    }
    .ribbon-value {
      font-family: var(--font-head);
      font-size: clamp(2.4rem, 4vw, 3.9rem);
      line-height: .98;
      letter-spacing: -.04em;
      color: var(--lake-deep);
    }
    .ribbon-sub {
      font-size: .92rem;
      color: var(--text-2);
      max-width: 32ch;
      line-height: 1.65;
    }

    .storyboard {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 20px;
      margin-bottom: 24px;
    }
    .story-panel,
    .signal-panel,
    .narrative-stage,
    .chart-stage {
      position: relative;
      overflow: hidden;
      border-radius: 30px;
      border: 1px solid rgba(213,226,220,.92);
      box-shadow: var(--shadow-sm);
    }
    .story-panel {
      padding: 34px 34px 32px;
      background:
        radial-gradient(circle at 0% 0%, rgba(76,165,191,.12) 0%, transparent 35%),
        linear-gradient(150deg, rgba(255,255,255,.98) 0%, rgba(244,249,246,.96) 48%, rgba(232,244,244,.96) 100%);
    }
    .story-panel::before {
      content: '';
      position: absolute;
      right: -50px;
      top: -50px;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(28,96,132,.12) 0%, transparent 70%);
      pointer-events: none;
    }
    .story-lead {
      font-size: 1.02rem;
      line-height: 1.86;
      color: var(--text);
      max-width: 66ch;
      margin-bottom: 22px;
    }
    .story-columns {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(250px, .82fr);
      gap: 22px;
      align-items: start;
    }
    .story-columns .prose {
      max-width: none;
      font-size: .94rem;
    }
    .story-points {
      display: grid;
      gap: 12px;
    }
    .story-point {
      display: grid;
      gap: 6px;
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255,255,255,.68);
      border: 1px solid rgba(213,226,220,.88);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      transform: translateY(0);
      transition: transform .24s ease, border-color .24s ease, background .24s ease;
    }
    .story-point:hover {
      transform: translateY(-2px);
      border-color: rgba(76,165,191,.35);
      background: rgba(255,255,255,.88);
    }
    .story-point span {
      font-size: .71rem;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--forest);
    }
    .story-point p {
      font-size: .88rem;
      line-height: 1.65;
      color: var(--text-2);
    }

    .signal-panel {
      padding: 28px 28px 26px;
      background:
        linear-gradient(180deg, rgba(22,58,95,.98) 0%, rgba(28,96,132,.96) 42%, rgba(46,106,87,.94) 100%);
      color: #fff;
    }
    .signal-panel::before {
      content: '';
      position: absolute;
      right: -40px;
      top: -20px;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
      pointer-events: none;
    }
    .signal-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 14px;
    }
    .signal-panel .section-kicker {
      color: rgba(255,255,255,.72);
      margin-bottom: 10px;
    }
    .signal-panel .section-title {
      color: #fff;
      margin-bottom: 0;
      max-width: 12ch;
    }
    .signal-score {
      font-family: var(--font-head);
      font-size: clamp(3rem, 5vw, 4.7rem);
      line-height: .92;
      letter-spacing: -.05em;
      white-space: nowrap;
    }
    .signal-copy {
      color: rgba(255,255,255,.84);
      font-size: .94rem;
      line-height: 1.72;
      max-width: 48ch;
      margin-bottom: 18px;
    }
    .signal-meter {
      position: relative;
      height: 12px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(255,255,255,.16);
      margin: 14px 0 16px;
    }
    .signal-meter > span {
      display: block;
      width: 0;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #7de6ff 0%, #dfffb8 100%);
      box-shadow: 0 0 24px rgba(125,230,255,.28);
      transition: width 1s cubic-bezier(.25,.46,.45,.94);
    }
    .signal-status {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      color: rgba(255,255,255,.86);
      font-size: .88rem;
      margin-bottom: 20px;
    }
    .signal-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 18px;
    }
    .signal-stat {
      padding: 16px 16px 14px;
      border-radius: 18px;
      background: rgba(255,255,255,.1);
      border: 1px solid rgba(255,255,255,.14);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .signal-stat .mini-label {
      font-size: .72rem;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: rgba(255,255,255,.72);
      font-weight: 800;
      margin-bottom: 8px;
    }
    .signal-stat .mini-value {
      font-family: var(--font-head);
      font-size: 2rem;
      line-height: 1;
      margin-bottom: 8px;
    }
    .signal-stat .mini-sub {
      font-size: .84rem;
      color: rgba(255,255,255,.82);
      line-height: 1.55;
    }
    .signal-latest {
      padding: 16px 18px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.08);
      display: grid;
      gap: 6px;
    }
    .signal-latest .mini-label {
      font-size: .72rem;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: rgba(255,255,255,.72);
      font-weight: 800;
    }
    .signal-latest .mini-value {
      font-family: var(--font-head);
      font-size: clamp(1.55rem, 2.4vw, 2rem);
      line-height: 1.12;
    }
    .signal-latest .mini-sub {
      font-size: .88rem;
      color: rgba(255,255,255,.84);
      line-height: 1.6;
    }

    .panorama-stage {
      display: grid;
      grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
      gap: 20px;
      margin-bottom: 24px;
    }
    .narrative-stage {
      padding: 30px 30px 28px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,250,248,.96) 60%, rgba(239,247,244,.96) 100%);
    }
    .narrative-stage .section-title,
    .chart-stage .section-title {
      margin-bottom: 14px;
    }
    .capsule-stack {
      margin-top: 18px;
      display: grid;
      gap: 10px;
    }
    .capsule {
      position: relative;
      padding: 14px 16px 14px 44px;
      border-radius: 16px;
      background: rgba(255,255,255,.78);
      border: 1px solid rgba(213,226,220,.9);
      color: var(--text-2);
      font-size: .88rem;
      line-height: 1.6;
    }
    .capsule::before {
      content: '';
      position: absolute;
      left: 16px;
      top: 17px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--lake-light), var(--forest));
      box-shadow: 0 0 0 5px rgba(76,165,191,.12);
    }
    .chart-stage {
      padding: 30px 30px 26px;
      background:
        radial-gradient(circle at 100% 0%, rgba(76,165,191,.12) 0%, transparent 25%),
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(240,247,249,.96) 100%);
    }
    .chart-stage .chart-wrap {
      height: 420px;
      margin-top: 14px;
      padding: 18px 16px 10px;
      border-radius: 24px;
      border: 1px solid rgba(213,226,220,.92);
      background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(246,250,251,.96) 100%);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
    }

    .program-grid {

      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
      padding: 30px 0 24px;
    }
    .program-card {
      padding: 28px 28px 24px;
      display: grid;
      gap: 16px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(241,247,243,.96) 100%);
    }
    .program-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }
    .program-kicker {
      font-size: .72rem;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--forest);
      margin-bottom: 7px;
    }
    .program-title {
      font-family: var(--font-head);
      font-size: 1.55rem;
      color: var(--text);
      line-height: 1.08;
      letter-spacing: -.02em;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 11px;
      border-radius: 999px;
      font-size: .74rem;
      font-weight: 800;
      white-space: nowrap;
    }
    .chip.good {
      background: var(--forest-soft);
      color: var(--forest);
    }
    .chip.warn {
      background: var(--sand-soft);
      color: #8b5b0d;
    }
    .chip.bad {
      background: var(--danger-soft);
      color: var(--danger);
    }
    .chip.neutral {
      background: var(--lake-soft);
      color: var(--lake-deep);
    }
    .chip.sky {
      background: #edf5f7;
      color: var(--lake);
    }

    .metric-list {
      display: grid;
      gap: 0;
    }
    .metric-header,
    .metric-row {
      display: grid;
      grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.05fr) minmax(0, 1.15fr);
      gap: 14px;
      align-items: start;
    }
    .program-card.no-monthly .metric-header,
    .program-card.no-monthly .metric-row {
      grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.4fr) minmax(0, 1.1fr);
    }
    .metric-header {
      padding-bottom: 10px;
      border-bottom: 2px solid var(--line);
      margin-bottom: 2px;
    }
    .metric-header span {
      font-size: .62rem;
      letter-spacing: .09em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 800;
      line-height: 1.3;
    }
    .metric-row {
      padding: 12px 0;
      border-bottom: 1px solid var(--line-soft);
    }
    .metric-row:last-child {
      border-bottom: none;
    }
    .metric-row .mname {
      font-size: .84rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.55;
      text-align: justify;
      text-justify: inter-word;
      padding-right: 4px;
    }
    .metric-primary {
      font: .78rem/1.5 var(--font-mono);
      color: var(--text-2);
      margin-bottom: 7px;
    }
    .mcol-acum,
    .mcol-pct {
      display: grid;
      align-content: start;
      gap: 0;
    }
    .mbar {
      height: 7px;
      border-radius: 999px;
      background: var(--line-soft);
      overflow: hidden;
      position: relative;
    }
    .mbar > span {
      display: block;
      height: 100%;
      border-radius: inherit;
      transition: width .9s cubic-bezier(.25,.46,.45,.94);
      background: linear-gradient(90deg, #b7ddb0, #8ec886); /* verde pálido — rezagado */
    }
    .mbar > span.mid  { background: linear-gradient(90deg, #6dbf67, #4da84a); } /* verde medio */
    .mbar > span.good { background: linear-gradient(90deg, #3e9d73, #2e7a5f); } /* verde — en ruta */
    .mbar > span.over { background: linear-gradient(90deg, #1c7a4f, #155d3c); } /* verde oscuro — excelente */
    .metric-subgroup {
      margin-top: 10px;
      display: grid;
      gap: 8px;
    }
    .metric-subindicator {
      display: grid;
      gap: 4px;
      padding-left: 10px;
      border-left: 2px solid var(--line);
    }
    .metric-subcopy {
      font-size: .64rem;
      line-height: 1.35;
      color: var(--muted);
    }
    .metric-subcopy strong {
      color: var(--text);
      font-weight: 700;
    }
    .metric-subbar {
      height: 5px;
      border-radius: 999px;
      background: var(--line-soft);
      overflow: hidden;
      width: 100%;
    }
    .metric-subfill {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #6dbf67, #4da84a);
    }
    .metric-subfill.pending {
      width: 0 !important;
      background: transparent;
    }
    /* legacy — kept for safety, not used in new layout */
    .bar {
      height: 7px;
      border-radius: 999px;
      background: var(--line-soft);
      overflow: hidden;
    }
    .bar > span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #b7ddb0, #8ec886);
      transition: width .9s cubic-bezier(.25,.46,.45,.94);
    }
    .bar > span.mid  { background: linear-gradient(90deg, #6dbf67, #4da84a); }
    .bar > span.good { background: linear-gradient(90deg, #3e9d73, #2e7a5f); }
    .bar > span.over { background: linear-gradient(90deg, #1c7a4f, #155d3c); }

    .program-footer {
      margin-top: 4px;
      padding-top: 8px;
      border-top: 1px solid var(--line);
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    /* Barra de avance mensual por programa */
    .prog-score-wrap {
      margin: 4px 0 16px;
      padding: 14px 18px 12px;
      background: rgba(28, 96, 132, .04);
      border: 1px solid rgba(28, 96, 132, .14);
      border-radius: 16px;
    }
    .prog-score-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 8px;
      gap: 12px;
    }
    .prog-score-label {
      font-size: .72rem;
      font-weight: 800;
      letter-spacing: .11em;
      text-transform: uppercase;
      color: var(--lake);
    }
    .prog-score-value {
      font-family: var(--font-head);
      font-size: 1.3rem;
      line-height: 1;
      color: var(--lake-deep);
      letter-spacing: -.025em;
      white-space: nowrap;
    }
    .prog-score-track {
      height: 9px;
      border-radius: 999px;
      background: rgba(28, 96, 132, .10);
      overflow: hidden;
    }
    .prog-score-fill {
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--lake-light), var(--lake-deep));
      transition: width 1s cubic-bezier(.25,.46,.45,.94);
    }
    .prog-score-sub {
      margin-top: 6px;
      font-size: .75rem;
      color: var(--muted);
      font-weight: 600;
    }
    .metric-temporality {
      display: block;
      margin-top: 7px;
      font-size: .75rem;
      color: var(--lake-light);
      font-style: italic;
      line-height: 1.5;
      font-weight: 700;
    }
    .metric-note {
      grid-column: 1 / 2;
      text-align: left;
      font-size: .75rem;
      color: var(--lake-light);
      font-style: italic;
      padding: 4px 0 0;
      line-height: 1.5;
      font-weight: 700;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      text-decoration: none;
      padding: 10px 17px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: .82rem;
      font-weight: 800;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    }
    .btn:hover {
      transform: translateY(-1px);
    }
    .btn svg {
      width: 14px;
      height: 14px;
    }
    .btn {
      color: #fff;
      background: linear-gradient(135deg, var(--forest), var(--lake));
      box-shadow: 0 10px 20px rgba(22,58,95,.16);
    }
    .btn.secondary {
      color: var(--lake);
      background: rgba(255,255,255,.78);
      border-color: rgba(76,165,191,.28);
      box-shadow: none;
    }
    .btn.secondary:hover {
      background: #f0f7fa;
    }

    .table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 16px;
    }
    .table th {
      padding: 10px 10px;
      text-align: left;
      font-size: .68rem;
      font-weight: 800;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--muted);
      border-bottom: 2px solid var(--line);
    }
    .table td {
      padding: 14px 10px;
      font-size: .88rem;
      color: var(--text-2);
      border-bottom: 1px solid var(--line-soft);
      vertical-align: middle;
    }
    .table td strong {
      color: var(--text);
    }
    .table tr:hover td {
      background: #f6fafb;
    }

    .chart-full {
      margin: 30px 0 24px;
      padding: 30px 32px 28px;
      background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(243,248,250,.96) 100%);
    }
    .chart-full .chart-wrap {
      height: 520px;
      padding: 18px 16px 12px;
      border-radius: 24px;
      border: 1px solid rgba(213,226,220,.92);
      background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(246,250,251,.96) 100%);
    }

    .loading-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      padding: 80px 20px;
      color: var(--muted);
      font-size: .92rem;
      grid-column: 1 / -1;
    }
    .spinner {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 3px solid rgba(28,96,132,.12);
      border-top-color: var(--lake);
      animation: spin 1s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .empty {
      padding: 18px;
      border-radius: 16px;
      border: 1px dashed var(--line);
      background: #fbfdfc;
      color: var(--muted);
      font-size: .9rem;
    }

    .stagger-1 { animation: fadeIn .45s .05s ease both; }
    .stagger-2 { animation: fadeIn .45s .12s ease both; }
    .stagger-3 { animation: fadeIn .45s .19s ease both; }
    .stagger-4 { animation: fadeIn .45s .26s ease both; }
    .stagger-5 { animation: fadeIn .45s .33s ease both; }
    .stagger-6 { animation: fadeIn .45s .40s ease both; }

    .site-footer {
      margin-top: 32px;
      background:
        linear-gradient(145deg, #18324c 0%, #1b4f68 62%, #2b6b60 100%);
      color: rgba(255,255,255,.92);
      position: relative;
      overflow: hidden;
    }
    .site-footer::before {
      content: '';
      position: absolute;
      inset: auto -10% -120px -10%;
      height: 220px;
      background:
        radial-gradient(60px 20px at 0 100%, rgba(255,255,255,.12) 50%, transparent 52%) repeat-x;
      background-size: 140px 90px;
      opacity: .55;
      pointer-events: none;
    }
    .footer-wrap {
      width: min(1580px, calc(100vw - 32px));
      margin: 0 auto;
      padding: 34px 0 30px;
      display: grid;
      grid-template-columns: minmax(0,1.35fr) repeat(2,minmax(180px,.7fr)) auto;
      gap: 28px;
      align-items: start;
      position: relative;
      z-index: 1;
    }
    .footer-brand {
      display: grid;
      gap: 12px;
      max-width: 50ch;
    }
    .footer-brandline {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .footer-title {
      font-size: 1.1rem;
      font-weight: 700;
      line-height: 1.2;
    }
    .footer-copy {
      color: rgba(255,255,255,.8);
      font-size: .92rem;
      line-height: 1.75;
    }
    .footer-col h3 {
      font-size: .8rem;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
      margin-bottom: 12px;
      color: rgba(255,255,255,.76);
    }
    .footer-links {
      display: grid;
      gap: 10px;
    }
    .footer-links a {
      color: #fff;
      text-decoration: none;
      font-size: .92rem;
      font-weight: 600;
      opacity: .92;
      width: fit-content;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }
    .social-icon {
      width: 18px;
      height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,.96);
      flex-shrink: 0;
    }
    .social-icon svg {
      width: 18px;
      height: 18px;
      display: block;
    }
    .footer-links a:hover {
      opacity: 1;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .footer-note {
      padding-top: 12px;
      margin-top: 8px;
      border-top: 1px solid rgba(255,255,255,.14);
      color: rgba(255,255,255,.7);
      font-size: .8rem;
    }

    @media (max-width: 1180px) {
      .hero-shell,
      .section-grid {
        grid-template-columns: 1fr;
      }
      .hero-side {
        grid-template-columns: 1.1fr .9fr;
        align-items: stretch;
      }
      .hero-side-note {
        padding: 6px 4px 6px 8px;
        align-content: center;
      }
      .dashboard-ribbon,
      .storyboard,
      .panorama-stage {
        grid-template-columns: 1fr;
      }
      .story-columns {
        grid-template-columns: 1fr;
      }
      .program-grid {
        grid-template-columns: 1fr;
      }
      .footer-wrap {
        grid-template-columns: 1fr 1fr;
      }
      .footer-brand {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 860px) {
      .header {
        height: auto;
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 14px 16px;
      }
      .nav-tabs {
        order: 3;
        width: 100%;
        margin-left: 0;
      }
      .status-badge {
        margin-left: auto;
      }
      .wrap,
      .footer-wrap {
        width: min(100vw - 20px, 1580px);
      }
      .hero-shell {
        padding-top: 22px;
      }
      .hero-main {
        padding: 28px 24px;
      }
      .hero-side {
        grid-template-columns: 1fr;
        padding: 18px;
      }
      .hero-logo-card {
        min-height: 270px;
      }
      .dashboard-ribbon {
        border-radius: 24px;
      }
      .ribbon-item + .ribbon-item {
        border-left: none;
        border-top: 1px solid rgba(213,226,220,.92);
      }
      .signal-top {
        flex-direction: column;
      }
      .signal-grid {
        grid-template-columns: 1fr;
      }
      .metric-header,
      .metric-row {
        grid-template-columns: 1fr;
        gap: 8px;
      }
      .metric-header span:not(:first-child),
      .mcol-pct,
      .mcol-monthly {
        display: none;
      }
      .section-card,
      .chart-card,
      .chart-full,
      .program-card {
        padding: 24px 22px;
      }
      .chart-full .chart-wrap,
      .chart-wrap {
        height: 360px;
      }
      .footer-wrap {
        grid-template-columns: 1fr;
        gap: 22px;
      }
    }
  

    /* Ajustes de distribución solicitados */
    .story-columns {
      grid-template-columns: 1fr;
      gap: 22px;
    }
    .story-columns .prose {
      max-width: 72ch;
      font-size: 1rem;
      line-height: 1.86;
    }
    .story-points {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: stretch;
      gap: 14px;
      margin-top: 2px;
    }
    .story-point {
      height: 100%;
      align-content: start;
      padding: 16px 18px;
    }
    .story-point p {
      font-size: .92rem;
      line-height: 1.7;
    }

    @media (max-width: 1180px) {
      .story-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 980px) {
      .story-points {
        grid-template-columns: 1fr;
      }
    }



    .coverage-section {
      margin-top: 26px;
      margin-bottom: 24px;
    }
    .coverage-section .section-kicker {
      font-size: .74rem;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--forest);
      margin-bottom: 6px;
    }
    .coverage-section .section-title {
      font-family: var(--font-head);
      font-size: clamp(1.35rem, 2.2vw, 1.95rem);
      color: var(--lake-deep);
      line-height: 1.12;
      letter-spacing: -.025em;
      margin-bottom: 20px;
    }
    .coverage-card {
      overflow: hidden;
      border-radius: 30px;
      border: 1px solid rgba(213,226,220,.92);
      box-shadow: var(--shadow-sm);
      background:
        radial-gradient(circle at 0% 100%, rgba(46,106,87,.07) 0%, transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(28,96,132,.09) 0%, transparent 28%),
        linear-gradient(160deg, rgba(255,255,255,.98) 0%, rgba(240,248,244,.96) 100%);
      padding: 20px 20px 20px;
      transition: box-shadow .24s ease, border-color .24s ease;
    }
    .coverage-card:hover {
      box-shadow: var(--shadow);
      border-color: rgba(76,165,191,.35);
    }
    .coverage-filter-group {
      display: flex;
      flex-wrap: nowrap;
      gap: 10px;
      overflow-x: auto;
      overflow-y: hidden;
      margin: 18px 0 18px;
      padding-bottom: 4px;
      scrollbar-width: thin;
      scrollbar-color: rgba(28,96,132,.28) transparent;
    }
    .coverage-filter-group::-webkit-scrollbar {
      height: 8px;
    }
    .coverage-filter-group::-webkit-scrollbar-thumb {
      background: rgba(28,96,132,.22);
      border-radius: 999px;
    }
    .coverage-filter {
      appearance: none;
      border: 1px solid rgba(22,58,95,.10);
      border-radius: 999px;
      cursor: pointer;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
      font: 700 .92rem/1.2 var(--font-body);
      white-space: nowrap;
      padding: 12px 18px;
      background: #fff;
      color: var(--lake-deep);
      box-shadow: 0 8px 18px rgba(18,42,66,.06);
      flex: 0 0 auto;
    }
    .coverage-filter:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 22px rgba(18,42,66,.10);
    }
    .coverage-filter.active {
      background: linear-gradient(135deg, rgba(28,96,132,.96) 0%, rgba(46,106,87,.96) 100%);
      color: #fff;
      border-color: transparent;
      box-shadow: 0 14px 26px rgba(18,42,66,.16);
    }
    .coverage-map-frame {
      min-height: 600px;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid rgba(22,58,95,.10);
      background: #dbe8e3;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 10px rgba(18,42,66,.06);
    }
    .coverage-map {
      height: 600px;
      width: 100%;
    }
    .leaflet-container {
      font-family: var(--font-body);
      background: #dbe8e3;
    }
    .leaflet-control-attribution {
      font-size: .68rem;
    }
    .coverage-tooltip {
      background: rgba(18,42,66,.94);
      border: 1px solid rgba(255,255,255,.16);
      color: #fff;
      box-shadow: 0 10px 20px rgba(18,42,66,.18);
      border-radius: 10px;
      padding: 8px 10px;
    }
    .coverage-tooltip::before {
      border-top-color: rgba(18,42,66,.94);
    }

    @media (max-width: 980px) {
      .coverage-map-frame,
      .coverage-map {
        min-height: 560px;
        height: 560px;
      }
    }

    @media (max-width: 640px) {
      .coverage-filter {
        padding: 11px 15px;
        font-size: .86rem;
      }
      .coverage-map-frame,
      .coverage-map {
        min-height: 500px;
        height: 500px;
      }
    }


/* Numeración de indicadores en círculo azul */
.metric-row .mname{
  display:flex;
  align-items:flex-start;
  gap:10px;
  text-align:left;
}
.metric-number{
  flex:0 0 auto;
  width:26px;
  height:26px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--lake),var(--lake-light));
  color:#ffffff;
  font-weight:900;
  font-size:.82rem;
  line-height:1;
  box-shadow:0 6px 14px rgba(28,96,132,.20);
  margin-top:1px;
}
.metric-label-text{
  display:block;
  min-width:0;
  text-align:justify;
  text-justify:inter-word;
}


/* Ajuste de altura homogénea para la barra de avance mensual de cada tarjeta */
.prog-score-wrap{
  height:96px !important;
  min-height:96px !important;
  display:grid !important;
  align-content:start !important;
  overflow:hidden !important;
}
.prog-score-header{
  min-height:34px !important;
  align-items:flex-start !important;
}
.prog-score-label{
  line-height:1.22 !important;
  max-width:32ch !important;
}
.prog-score-sub{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}


/* Optimización de espacios en tarjetas de programas */
.program-card{
  align-content:start !important;
}
.prog-score-wrap{
  min-height:108px !important;
  height:auto !important;
  overflow:visible !important;
}
.prog-score-header{
  min-height:38px !important;
  align-items:flex-start !important;
}
.prog-score-label{
  line-height:1.2 !important;
  max-width:none !important;
}
.prog-score-sub{
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  line-height:1.35 !important;
}
.metric-row{
  gap:16px !important;
}
.metric-primary{
  overflow-wrap:anywhere !important;
}


/* Temporalidad larga a lo ancho de toda la fila del indicador */
.metric-note-full{
  grid-column:1 / -1;
  margin-top:2px;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(28,96,132,.045);
  color:var(--lake);
  font-size:.74rem;
  font-weight:700;
  line-height:1.5;
  text-align:justify;
  text-justify:inter-word;
}


.mcol-monthly{
  display:grid;
  align-content:start;
  gap:0;
}
.metric-monthly-value{
  font: .78rem/1.5 var(--font-mono);
  color: var(--text-2);
  margin-bottom: 7px;
}
.program-card.no-monthly .prog-score-label::after{
  content:'';
}


/* Ajuste: se eliminó la sección de gráficas comparativas y la tarjeta narrativa ocupa todo el ancho */
.panorama-stage {
  grid-template-columns: 1fr !important;
}
.narrative-stage {
  min-height: 420px;
}
.narrative-stage .prose {
  max-width: 90ch;
}
.narrative-stage .capsule-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .narrative-stage .capsule-stack {
    grid-template-columns: 1fr;
  }
}


/* Ajuste solicitado: textos introductorios justificados y a ancho completo */
.story-panel .story-lead,
.story-panel .story-columns .prose,
.narrative-stage .prose {
  width: 100%;
  max-width: none !important;
  text-align: justify;
  text-justify: inter-word;
}

.story-panel .story-columns {
  grid-template-columns: 1fr !important;
}

.story-panel .story-points {
  width: 100%;
}

.narrative-stage {
  width: 100%;
}



/* Selector mensual para tarjetas de programas */
.program-month-toolbar{
  margin:30px 0 4px;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  background:linear-gradient(180deg,rgba(255,255,255,.96) 0%,rgba(243,248,245,.96) 100%);
  border:1px solid rgba(213,226,220,.95);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
}
.program-month-copy{display:grid;gap:3px;min-width:240px}
.program-month-copy strong{font-size:.82rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--forest)}
.program-month-copy span{font-size:.86rem;color:var(--text-2);line-height:1.45}
.program-month-buttons{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:5px;border-radius:999px;background:rgba(28,96,132,.08);border:1px solid rgba(28,96,132,.14)}
.program-month-btn{border:none;border-radius:999px;padding:9px 15px;font:800 .78rem/1 var(--font-body);color:var(--lake);background:transparent;cursor:pointer;transition:all .2s ease;white-space:nowrap}
.program-month-btn:hover{background:rgba(28,96,132,.09);transform:translateY(-1px)}
.program-month-btn.active{background:#fff;color:var(--lake-deep);box-shadow:0 8px 18px rgba(6,24,42,.12)}
@media(max-width:760px){.program-month-toolbar{align-items:stretch}.program-month-buttons{width:100%;overflow-x:auto;flex-wrap:nowrap}.program-month-btn{flex:0 0 auto}}


/* ────────────────────────────────
   REDISEÑO VISUAL INSTITUCIONAL
   Conserva el orden, los textos, los indicadores y el diseño interno de las tarjetas.
──────────────────────────────── */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #eaf2fb;
  --text: #173b6c;
  --text-2: #3d5a80;
  --muted: #667085;
  --line: #dde5ef;
  --line-soft: #edf1f6;
  --lake-deep: #173b6c;
  --lake: #2767a8;
  --lake-light: #4f86c6;
  --lake-soft: #eaf2fb;
  --radius: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --radius-xs: 8px;
}

html { background: #ffffff; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: var(--text);
}
body::before { display: none; }

.hero-copy,
.story-lead,
.story-columns .prose,
.story-point p,
.signal-copy,
.ribbon-sub,
.signal-stat .mini-sub,
.signal-latest .mini-sub,
.capsule,
.footer-copy,
.metric-label-text,
.metric-note-full,
.metric-row .mname {
  text-align: left;
  text-justify: auto;
}

.header {
  min-height: 72px;
  padding: 10px 28px;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 20px rgba(23, 59, 108, .06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-logo-img {
  height: 46px;
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand-kicker { color: var(--lake); }
.brand-title { color: var(--lake-deep); }

.nav-tabs {
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.nav-tab {
  position: relative;
  padding: 12px 0;
  border-radius: 0;
  color: var(--text-2);
  background: transparent;
}
.nav-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: transparent;
}
.nav-tab:hover { color: var(--lake); background: transparent; }
.nav-tab.active {
  color: var(--lake-deep);
  background: transparent;
  box-shadow: none;
}
.nav-tab.active::after { background: var(--lake); }
.nav-tab:focus-visible,
.program-carousel-arrow:focus-visible,
.program-carousel-dot:focus-visible,
.program-month-btn:focus-visible,
.coverage-filter:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(39, 103, 168, .28);
  outline-offset: 3px;
}

.hero-shell {
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  padding: clamp(54px, 7vw, 92px) 0 clamp(44px, 6vw, 76px);
  font-family: Arial, Helvetica, sans-serif;
}
.hero-main,
.hero-side {
  padding: 0;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-main:hover,
.hero-side:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
.hero-main::before,
.hero-main::after,
.hero-logo-card::before { display: none; }
.eyebrow {
  color: var(--lake);
  margin-bottom: 18px;
}
.eyebrow::before { background: var(--lake); }
.hero-title {
  width: 100%;
  max-width: none;
  margin: 0 0 22px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.7rem, 5.1vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--lake-deep);
  text-align: center;
}
.hero-copy {
  width: 100%;
  max-width: none;
  color: var(--text-2);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.75;
  text-align: left;
}
.hero-copy strong { color: var(--lake-deep); }
.hero-side {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-card {
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.hero-logo {
  width: min(100%, 250px);
  max-height: none;
  animation: none;
  filter: drop-shadow(0 18px 24px rgba(23, 59, 108, .12));
}

.dashboard-ribbon {
  margin: 0 0 34px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: visible;
  font-family: Arial, Helvetica, sans-serif;
}
.dashboard-ribbon::before,
.ribbon-item::after { display: none; }
.ribbon-item {
  min-height: 138px;
  padding: 28px 30px;
}
.ribbon-item + .ribbon-item { border-left-color: var(--line); }
.ribbon-value {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--lake-deep);
}
.ribbon-label { color: var(--lake); }
.ribbon-sub { color: var(--text-2); }

.storyboard,
.panorama-stage {
  margin-bottom: 28px;
  font-family: Arial, Helvetica, sans-serif;
}
.story-panel,
.narrative-stage,
.signal-panel,
.chart-stage {
  padding: 42px 0;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.story-panel::before,
.signal-panel::before { display: none; }
.story-panel:hover,
.narrative-stage:hover { transform: none; box-shadow: none; }
.section-kicker,
.story-point span,
.coverage-section .section-kicker,
.program-month-copy strong { color: var(--lake); }
.section-title,
.coverage-section .section-title {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--lake-deep);
}
.story-lead,
.story-columns .prose,
.narrative-stage .prose { color: var(--text-2); }
.story-points { gap: 0; }
.story-point {
  padding: 18px 20px 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.story-point:hover {
  transform: none;
  border-color: var(--line);
  background: transparent;
}
.capsule-stack { gap: 22px; }
.capsule {
  position: relative;
  padding: 1px 0 1px 18px;
  border: 0;
  border-left: 3px solid var(--lake);
  border-radius: 0;
  background: transparent;
  color: var(--text-2);
}
.capsule::before { display: none; }

.coverage-section {
  margin-top: 12px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
  font-family: Arial, Helvetica, sans-serif;
}
.coverage-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: visible;
}
.coverage-card:hover { box-shadow: none; border-color: transparent; }
.coverage-filter {
  border-color: var(--line);
  background: #ffffff;
  color: var(--lake-deep);
  box-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
}
.coverage-filter:hover {
  color: var(--lake);
  border-color: var(--lake-light);
  box-shadow: none;
}
.coverage-filter.active {
  background: var(--lake);
  color: #ffffff;
  border-color: var(--lake);
  box-shadow: none;
}
.coverage-map-frame {
  border-color: var(--line);
  background: #eaf2fb;
  box-shadow: none;
}
.leaflet-container { font-family: Arial, Helvetica, sans-serif; background: #eaf2fb; }

.program-month-toolbar {
  margin: 34px 0 12px;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
}
.program-month-buttons {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.program-month-btn {
  color: var(--lake);
  border: 1px solid transparent;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}
.program-month-btn:hover { background: var(--lake-soft); transform: none; }
.program-month-btn.active {
  color: #ffffff;
  background: var(--lake);
  box-shadow: none;
}

/* Diseño interno aprobado de las tarjetas: tokens originales protegidos. */
.program-card {
  --text: #17314f;
  --text-2: #36516a;
  --muted: #6b7f90;
  --line: #d5e2dc;
  --line-soft: #e6eeea;
  --lake-deep: #163a5f;
  --lake: #1c6084;
  --lake-light: #4ca5bf;
  --lake-soft: #d9ecf1;
  --forest: #2e6a57;
  --forest-soft: #ddefe6;
  --sand: #d5a34b;
  --sand-soft: #f7ecd6;
  --danger: #9c4242;
  --danger-soft: #f9e5e2;
  --shadow-xs: 0 1px 3px rgba(18, 42, 66, .04), 0 2px 10px rgba(18, 42, 66, .04);
  --shadow-sm: 0 6px 20px rgba(18, 42, 66, .06), 0 2px 8px rgba(18, 42, 66, .04);
  --shadow: 0 14px 34px rgba(18, 42, 66, .08), 0 4px 14px rgba(18, 42, 66, .05);
  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  font-family: var(--font-body);
}

.program-carousel {
  position: relative;
  width: 100%;
  padding: 8px 0 30px;
  font-family: Arial, Helvetica, sans-serif;
}
.program-carousel-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 14px;
}
.program-carousel-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--lake-deep);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.program-carousel-arrow:hover:not(:disabled) {
  color: #ffffff;
  border-color: var(--lake);
  background: var(--lake);
}
.program-carousel-arrow:disabled { opacity: .35; cursor: default; }
.program-carousel-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.program-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 126px;
}
.program-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd7e6;
  cursor: pointer;
  transition: width .18s ease, border-radius .18s ease, background .18s ease;
}
.program-carousel-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--lake);
}
.program-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  padding: 4px;
}
.program-carousel-viewport::-webkit-scrollbar { display: none; }
.program-grid {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0;
}
.program-grid > .program-card {
  flex: 0 0 calc(100% - 8px);
  width: calc(100% - 8px);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.program-grid > .loading-state {
  flex: 0 0 100%;
  width: 100%;
}

.site-footer {
  background: var(--lake-deep);
  font-family: Arial, Helvetica, sans-serif;
}
.site-footer::before { display: none; }

@media (max-width: 1180px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1.25fr) minmax(210px, .55fr);
  }
  .hero-side { display: flex; padding: 0; }
}

@media (max-width: 860px) {
  .header {
    align-items: center;
    padding: 10px 16px 0;
  }
  .nav-tabs {
    gap: 22px;
    border-top: 1px solid var(--line);
    overflow-x: auto;
  }
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 44px 0 46px;
  }
  .hero-main { padding: 0; }
  .hero-side { padding: 0 0 4px; }
  .hero-logo-card { min-height: 0; }
  .hero-logo { width: min(46vw, 190px); }
  .dashboard-ribbon { border-radius: 0; }
  .ribbon-item + .ribbon-item {
    border-left: 0;
    border-top-color: var(--line);
  }
  .story-panel,
  .narrative-stage { padding: 34px 0; }
  .story-point { padding-right: 0; }
}

@media (max-width: 640px) {
  .wrap,
  .footer-wrap { width: min(100vw - 28px, 1580px); }
  .header-logo-img { height: 38px; }
  .brand-kicker { font-size: .64rem; }
  .brand-title { font-size: .88rem; }
  .hero-title {
    width: 100%;
    max-width: none;
    font-size: clamp(2.35rem, 12vw, 3.5rem);
    text-align: center;
  }
  .hero-copy { line-height: 1.68; }
  .ribbon-item { min-height: 0; padding: 24px 0; }
  .program-month-toolbar { align-items: stretch; }
  .program-carousel-actions { gap: 14px; }
  .program-carousel-arrow { width: 42px; height: 42px; }
  .program-carousel-dots { min-width: 108px; gap: 7px; }
  .program-carousel-dot { width: 8px; height: 8px; }
  .program-carousel-dot.active { width: 24px; }
  .program-carousel-viewport { padding: 3px; }
  .program-grid { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .program-carousel-viewport { scroll-behavior: auto; }
}
