:root {
  --gris: #4A4A4A;
  --gris-dark: #3E3E3E;
  --amarillo: #FFBF07;
  --fondo: #EDEFF1;
  --texto: #202124;
  --muted: #6b7280;
  --borde: #d7dadd;
  --verde: #047857;
  --azul: #2563eb;
  --naranja: #f97316;
  --rojo: #c0392b;
  --morado: #7c3aed;
  --soft-yellow: #fff6d9;
  --soft-gray: #f7f8f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--fondo);
  color: var(--texto);
}

.app {
  width: min(1160px, 94vw);
  margin: 0 auto;
  padding: 24px 0 60px;
}

/* HEADER MARCA */
.brand-header {
  background: var(--gris);
  color: #fff;
  border-radius: 0 0 22px 22px;
  margin-bottom: 28px;
  box-shadow: 0 20px 45px rgba(25, 25, 25, .16);
  overflow: hidden;
  border-top: 7px solid var(--amarillo);
}

.brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 34px 16px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  min-height: 78px;
}

.brand-logo {
  max-width: 340px;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.28));
}

.brand-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-avatar {
  width: 82px;
  height: 82px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  border: 4px solid var(--amarillo);
  box-shadow: 0 8px 18px rgba(0,0,0,.34);
  background: #222;
}

.tutorial-main-btn {
  border: 2px solid var(--amarillo);
  background: var(--amarillo);
  color: #262626;
  border-radius: 18px;
  padding: 13px 18px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255,191,7,.25);
  text-align: left;
  max-width: 280px;
}

.tutorial-main-btn span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #3d3d3d;
}

.tutorial-main-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.brand-line {
  height: 2px;
  background: var(--amarillo);
  width: calc(100% - 250px);
  margin: 0 34px;
  opacity: .78;
}

.brand-content {
  padding: 18px 34px 22px;
}

.brand-kicker {
  color: var(--amarillo);
  font-weight: 900;
  letter-spacing: .16em;
  font-size: 13px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.brand-content h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.045em;
  color: #fff;
}

.brand-subtitle {
  margin: 12px 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--fondo);
}

.brand-description {
  margin: 0 0 14px;
  color: rgba(255,255,255,.9);
  font-size: 18px;
  line-height: 1.45;
}

.brand-explanation {
  max-width: 980px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height: 1.58;
  text-align: justify;
}

.brand-footer {
  padding: 14px 34px;
  color: rgba(255,255,255,.78);
  background: rgba(255, 191, 7, .15);
  letter-spacing: .06em;
  font-size: 13px;
}

/* ESTRUCTURA */
.card {
  background: #fff;
  border: 1px solid #dfe3e7;
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: 0 14px 34px rgba(74,74,74,.10);
  margin-bottom: 18px;
}

h2 {
  margin: 0 0 14px;
  font-size: 23px;
  color: #111827;
  letter-spacing: -.02em;
}

h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 22px;
  border-radius: 8px;
  background: var(--amarillo);
  margin-right: 10px;
  vertical-align: -4px;
}

h3 {
  margin: 0 0 8px;
  color: var(--gris-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 800;
  color: #172033;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cdd2d8;
  border-radius: 12px;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111827;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--amarillo);
  box-shadow: 0 0 0 4px rgba(255, 191, 7, .22);
}

.full-label {
  margin-top: 16px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.explain {
  background: var(--soft-yellow);
  border-left: 5px solid var(--amarillo);
  padding: 14px 16px;
  border-radius: 12px;
  line-height: 1.5;
  color: #3d3d3d;
  margin: 0 0 16px;
}

.hidden {
  display: none !important;
}

/* CHECKS FAMILIAS */
.check-section {
  margin-top: 16px;
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 8px;
}

.check-pill {
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 10px 11px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  transition: border .12s ease, background .12s ease, transform .12s ease;
}

.check-pill:hover {
  border-color: var(--amarillo);
  background: #fffdf4;
  transform: translateY(-1px);
}

.check-pill input {
  width: 16px;
  height: 16px;
  accent-color: var(--amarillo);
  margin: 0;
  flex: 0 0 auto;
}

/* BOTONES */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

button {
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 900;
  font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--amarillo);
  color: #262626;
  box-shadow: 0 10px 22px rgba(255,191,7,.25);
}

.secondary {
  background: var(--gris);
  color: #fff;
}

.ghost {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid var(--borde);
}

.danger {
  background: #ffe4df;
  color: var(--rojo);
  padding: 8px 10px;
  border-radius: 10px;
}

/* CATÁLOGO */
.catalogo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.check-card {
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  background: #fff;
  min-height: 105px;
  transition: border .12s ease, background .12s ease, transform .12s ease;
}

.check-card:hover {
  border-color: var(--amarillo);
  background: #fffdf4;
  transform: translateY(-1px);
}

.check-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--amarillo);
  margin-top: 1px;
  flex: 0 0 auto;
}

.check-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.check-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* TABLAS */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

th {
  background: var(--gris);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
}

th,
td {
  padding: 11px;
  border-bottom: 1px solid var(--borde);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

/* TAGS */
.tag {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  margin: 2px 4px 2px 0;
}

.tag-equipo {
  background: #ecfdf5;
  color: var(--verde);
}

.tag-gestion {
  background: #eff6ff;
  color: var(--azul);
}

.tag-mixto {
  background: #fff7ed;
  color: #c2410c;
}

.tag-alto {
  background: #fee2e2;
  color: #991b1b;
}

.tag-medio {
  background: #fff1b8;
  color: #6f5700;
}

.tag-bajo {
  background: #f3f4f6;
  color: #374151;
}

.tag-familia {
  background: #f3f4f6;
  color: #374151;
}

.tag-zona {
  background: #f5f3ff;
  color: var(--morado);
}

/* KPIS */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.kpi {
  border: 1px solid var(--borde);
  border-top: 5px solid var(--amarillo);
  border-radius: 18px;
  padding: 16px;
  background: #f8f9fa;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.kpi strong {
  font-size: 26px;
  color: var(--gris);
}

.kpi.verde {
  border-top-color: var(--verde);
  background: #f0fdf4;
}

.kpi.azul {
  border-top-color: var(--azul);
  background: #eff6ff;
}

.kpi.naranja {
  border-top-color: var(--naranja);
  background: #fff7ed;
}

/* RESULTADOS */
.result-box {
  border: 1px solid var(--borde);
  border-left: 5px solid var(--amarillo);
  border-radius: 14px;
  padding: 15px;
  background: var(--soft-gray);
  line-height: 1.6;
  margin-top: 14px;
}

.routes,
.zone-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.route,
.zone-card,
.module-card,
.competency-card {
  border: 1px solid var(--borde);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.route h3,
.zone-card h3,
.module-card h3,
.competency-card h4 {
  margin: 0 0 8px;
  color: var(--gris-dark);
}

.route p,
.zone-card p,
.module-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.route ul,
.zone-card ul,
.module-card ul,
.competency-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
  color: #374151;
  font-size: 14px;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.empty {
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
  padding: 8px 0;
}

/* MEO */
.meo {
  background: linear-gradient(135deg, #3E3E3E, #565656);
  color: #fff;
  border-top: 7px solid var(--amarillo);
  border-radius: 20px;
  padding: 22px;
  margin-top: 16px;
}

.meo h3 {
  margin: 0 0 10px;
  font-size: 27px;
  color: #fff;
}

.meo p {
  color: rgba(255,255,255,.88);
  line-height: 1.55;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pillar {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 13px;
}

.pillar strong {
  color: var(--amarillo);
  display: block;
  margin-bottom: 6px;
}

.pillar span {
  font-size: 13px;
  color: rgba(255,255,255,.82);
  line-height: 1.35;
}

/* RESPONSIVE */
@media (max-width: 940px) {
  .grid,
  .routes,
  .pillars,
  .zone-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .catalogo,
  .kpis,
  .competency-grid,
  .checks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-line {
    width: calc(100% - 68px);
  }
}

@media (max-width: 620px) {
  .catalogo,
  .kpis,
  .competency-grid,
  .checks-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px 18px;
  }

  .brand-content,
  .brand-top,
  .brand-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .brand-logo {
    max-width: 280px;
  }
}

/* IMPRESIÓN */
@media print {
  body {
    background: #fff;
  }

  .buttons,
  .input-zone,
  .catalogo {
    display: none !important;
  }

  .card,
  .brand-header {
    box-shadow: none;
  }

  .app {
    width: 100%;
    padding: 0;
  }

  .zone-card,
  .module-card,
  .competency-card,
  .route {
    break-inside: avoid;
  }
}
.result-shortcut {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 18px;
}

.shortcut-btn {
  max-width: 320px;
}

.zone-card.full-wide {
  grid-column: 1 / -1;
}

.zone-card.full-wide .competency-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 940px) {
  .result-shortcut {
    justify-content: stretch;
  }

  .shortcut-btn {
    width: 100%;
    max-width: none;
  }

  .zone-card.full-wide .competency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .zone-card.full-wide .competency-grid {
    grid-template-columns: 1fr;
  }
}
.catalogo-temas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.tema-card {
  border: 1px solid var(--borde);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.tema-header {
  background: #f8f9fa;
  border-bottom: 1px solid var(--borde);
  padding: 14px 16px;
}

.tema-header h3 {
  margin: 0 0 4px;
  color: var(--gris-dark);
  font-size: 18px;
}

.tema-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tema-lista {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.tema-contador {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--amarillo);
  color: #262626;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 940px) {
  .tema-lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .tema-lista {
    grid-template-columns: 1fr;
  }
}
/* CATÁLOGO EN PESTAÑAS */
.catalogo-tabs {
  margin-top: 16px;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--borde);
  border-radius: 18px;
  background: #f8f9fa;
}

.tab-btn {
  background: #fff;
  color: #374151;
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: none;
}

.tab-btn:hover {
  border-color: var(--amarillo);
  background: #fffdf4;
}

.tab-btn.active {
  background: var(--amarillo);
  color: #262626;
  border-color: var(--amarillo);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
  font-size: 12px;
  font-weight: 900;
}

.tab-panel {
  border: 1px solid var(--borde);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.tab-panel-header {
  padding: 18px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--borde);
}

.tab-panel-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--gris-dark);
}

.tab-panel-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tab-panel-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.tab-panel-list .check-card {
  min-height: 135px;
}

@media (max-width: 1100px) {
  .tab-panel-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .tab-panel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tab-panel-list {
    grid-template-columns: 1fr;
  }
}
/* =====================================================
   CORRECCIÓN CATÁLOGO EN PESTAÑAS - ANCHO COMPLETO
===================================================== */

#catalogo.catalogo {
  display: block;
  width: 100%;
}

.catalogo-tabs {
  width: 100%;
  margin-top: 18px;
}

/* PESTAÑAS HORIZONTALES */
.tabs-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--borde);
  border-radius: 18px;
  background: #f8f9fa;
}

.tab-btn {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: none;
  text-align: center;
}

.tab-btn:hover {
  border-color: var(--amarillo);
  background: #fffdf4;
}

.tab-btn.active {
  background: var(--amarillo);
  color: #262626;
  border-color: var(--amarillo);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0,0,0,.14);
  font-size: 12px;
  font-weight: 900;
}

/* PANEL DEL TEMA */
.tab-panel {
  width: 100%;
  border: 1px solid var(--borde);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.tab-panel-header {
  padding: 20px 24px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--borde);
}

.tab-panel-header h3 {
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--gris-dark);
}

.tab-panel-header p {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

/* TARJETAS DE LADRONES */
.tab-panel-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  width: 100%;
}

.tab-panel-list .check-card {
  width: 100%;
  min-height: 150px;
  padding: 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.tab-panel-list .check-card input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.tab-panel-list .check-card span {
  display: block;
  width: 100%;
}

.tab-panel-list .check-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #374151;
}

.tab-panel-list .check-card span span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 1120px) {
  .tab-panel-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tab-panel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-btn {
    font-size: 13px;
    padding: 10px 13px;
  }
}

@media (max-width: 560px) {
  .tab-panel-list {
    grid-template-columns: 1fr;
  }

  .tabs-nav {
    align-items: stretch;
  }

  .tab-btn {
    width: 100%;
  }
}
/* SUBPESTAÑAS DE CALIDAD */
.calidad-subtabs {
  padding: 18px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calidad-subtab-btn {
  background: #fff;
  color: #374151;
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  font-size: 14px;
  box-shadow: none;
}

.calidad-subtab-btn.active {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: #262626;
}

.calidad-subtab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0,0,0,.14);
  font-size: 12px;
  font-weight: 900;
}

.calidad-subtab-info {
  padding: 14px 20px 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 15px;
}
/* =====================================================
   RANKING PEDAGÓGICO DE IMPACTO - VERSIÓN EJECUTIVA
===================================================== */

#rankingImpacto {
  border-top: 7px solid var(--amarillo);
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

#rankingImpacto .explain {
  font-size: 16px;
  line-height: 1.55;
}

/* KPIS SUPERIORES */
.impact-kpis {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 16px;
  margin: 22px 0 18px;
}

.impact-kpi {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 20px 20px 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0,0,0,.06);
}

.impact-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--amarillo);
}

.impact-kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
  padding-left: 4px;
}

.impact-kpi strong {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  font-weight: 900;
  color: var(--gris-dark);
  padding-left: 4px;
}

.impact-kpi.rojo::before {
  background: #dc2626;
}

.impact-kpi.rojo {
  background: #fff7f7;
}

.impact-kpi.naranja::before {
  background: #f97316;
}

.impact-kpi.naranja {
  background: #fff7ed;
}

.impact-kpi.naranja strong {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
}

/* MENSAJE DE IMPACTO */
.impact-message {
  border: 1px solid #f5d26b;
  border-left: 7px solid var(--amarillo);
  border-radius: 18px;
  padding: 18px 20px;
  background: #fff8dc;
  line-height: 1.6;
  margin: 18px 0 20px;
  color: #374151;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(255,191,7,.12);
}

.impact-message strong {
  color: #111827;
}

/* CONTENEDOR DE GRÁFICA */
.ranking-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

/* FILA DE BARRA */
.bar-row {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr 74px;
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--borde);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.045);
  transition: transform .12s ease, box-shadow .12s ease;
}

.bar-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,.07);
}

.bar-label strong {
  display: block;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.25;
}

.bar-label span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.35;
}

.bar-track {
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: #eef0f2;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.08);
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 8%;
  transition: width .35s ease;
}

.bar-fill.alto {
  background: linear-gradient(90deg, #f97316, #dc2626);
}

.bar-fill.medio {
  background: linear-gradient(90deg, #ffbf07, #f97316);
}

.bar-fill.bajo {
  background: linear-gradient(90deg, #86efac, #16a34a);
}

.bar-value {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 58px;
  height: 38px;
  border-radius: 999px;
  font-weight: 900;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid var(--borde);
}

/* TÍTULO INTERNO PARA LA GRÁFICA */
.ranking-chart-title {
  margin: 20px 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: var(--gris-dark);
}

.ranking-empty {
  border: 1px dashed var(--borde);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .impact-kpis {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bar-value {
    justify-content: flex-start;
    width: fit-content;
    padding: 0 14px;
  }
}
.brand-core-subtitle {
  margin: 4px 0 22px;
  color: #ffffff;
  font-size: clamp(18px, 2.3vw, 28px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}