/* ==========================================================================
   LA NOCHE DE LOS INSTITUTOS — ESTACIÓN B: IPSA (SEDE POLIVALENTE DE ARTE N° 1)
   SISTEMA GRÁFICO NOCTURNO ESTRELLADO • LUNA 4 DE NOVIEMBRE • 3 COLORES IPSA
   ========================================================================== */

:root {
  --bg-space: #040508;
  --bg-night: #080B12;
  --bg-panel: #0D111C;
  --bg-card: #121826;
  --bg-card-hover: #182032;

  --text-pure: #FFFFFF;
  --text-silver: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --border-night: rgba(255, 255, 255, 0.14);
  --border-bright: rgba(255, 255, 255, 0.32);

  /* 3 Colores Destacados Oficiales de los Profesorados del IPSA */
  --c-teatro: #A20E2A;
  --c-musica: #F18211;
  --c-visuales: #05ADC2;
  --c-inter: #FFFFFF;

  --shadow-night: 0 12px 32px rgba(0, 0, 0, 0.65);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-space);
  background-image:
    radial-gradient(1.6px 1.6px at 18px 24px, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 52px 68px, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.4px 1.4px at 88px 19px, rgba(226, 232, 240, 0.85), transparent),
    radial-gradient(0.9px 0.9px at 124px 112px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(2.2px 2.2px at 162px 44px, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 198px 154px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 234px 82px, rgba(226, 232, 240, 0.9), transparent),
    radial-gradient(0.8px 0.8px at 272px 28px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.8px 1.8px at 312px 136px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.1px 1.1px at 348px 62px, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 386px 172px, rgba(255, 255, 255, 0.92), transparent),
    radial-gradient(1px 1px at 424px 36px, rgba(226, 232, 240, 0.8), transparent),
    radial-gradient(1.4px 1.4px at 462px 104px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(0.9px 0.9px at 496px 148px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.2px 1.2px at 40px 168px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 142px 182px, rgba(255, 255, 255, 0.88), transparent),
    radial-gradient(1px 1px at 285px 178px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(circle at 50% 0%, #131B2E 0%, #060810 60%, #030407 100%);
  background-size:
    520px 200px, 520px 200px, 520px 200px, 520px 200px, 520px 200px,
    520px 200px, 520px 200px, 520px 200px, 520px 200px, 520px 200px,
    520px 200px, 520px 200px, 520px 200px, 520px 200px, 520px 200px,
    520px 200px, 520px 200px, 100% 100%;
  color: var(--text-pure);
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   ICONOS VECTORIALES DE CONTORNO BLANCO
   ========================================================================== */
.white-outline-icon {
  display: inline-block;
  vertical-align: middle;
  color: #FFFFFF;
  stroke: currentColor;
  flex-shrink: 0;
}

.icon-circle-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0B0E17;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

/* ==========================================================================
   BOTONES E INPUTS GENERALES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-pure);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-silver);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.btn-lunar {
  background: #FFFFFF;
  color: #05070C;
  border: 1px solid #FFFFFF;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.btn-lunar:hover {
  background: #E2E8F0;
  color: #020305;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.btn-xs {
  padding: 0.32rem 0.65rem;
  font-size: 0.74rem;
  border-radius: 5px;
}

.btn-danger {
  background: rgba(162, 14, 42, 0.22);
  border-color: rgba(244, 63, 94, 0.45);
  color: #FECDD3;
}

.btn-danger:hover {
  background: #A20E2A;
  color: #FFFFFF;
  border-color: #F43F5E;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.select-control,
.input-control {
  background: #070A12;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.18s;
}

.select-control:focus,
.input-control:focus {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

textarea.input-control {
  min-height: 62px;
  resize: vertical;
}

/* ==========================================================================
   ENCABEZADO ESTELAR NOCTURNO (.app-header)
   ========================================================================== */
.app-header {
  background: linear-gradient(180deg, rgba(4, 5, 9, 0.96) 0%, rgba(10, 14, 24, 0.96) 100%);
  border-bottom: 1px solid var(--border-night);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

.header-top-row {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.brand-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  width: 100%;
}

.brand-logos-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ipsa-logo-badge {
  width: 78px;
  height: 78px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

.ipsa-logo-badge img {
  max-width: 100%;
  max-height: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.station-b-stamp-badge {
  width: 150px;
  height: 72px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-5deg);
  filter: drop-shadow(0 0 10px rgba(225, 29, 72, 0.45));
  transition: transform 0.22s ease;
}

.station-b-stamp-badge:hover {
  transform: rotate(0deg) scale(1.08);
}

.station-b-stamp-badge img {
  max-width: 100%;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.station-b-stamp-mini {
  width: auto !important;
  height: 46px !important;
  max-width: 100px;
  object-fit: contain;
  transform: rotate(-5deg);
  filter: drop-shadow(0 0 8px rgba(225, 29, 72, 0.4));
}

.gov-cpe-header-box {
  height: 68px;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.gov-logo-img {
  height: 38px !important;
  width: auto !important;
  max-width: 125px !important;
  object-fit: contain;
  display: block;
}

.cpe-logo-img {
  height: 26px !important;
  width: auto !important;
  max-width: 235px !important;
  object-fit: contain;
  display: block;
}

.gov-cpe-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
}

.night-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
}

.event-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #CBD5E1;
  text-transform: uppercase;
  text-align: center;
}

.night-main-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.28);
}

.word-noche {
  display: inline-flex;
  align-items: center;
}

.moon-o-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.98em;
  height: 0.98em;
  margin: 0 0.03em;
  cursor: pointer;
  vertical-align: middle;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.65));
  transition: transform 0.25s ease;
}

.moon-o-wrapper:hover {
  transform: scale(1.12);
}

.moon-o-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.word-rest {
  font-weight: 700;
  color: #E2E8F0;
}

.moon-caption-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.moon-phase-pill,
.schedule-summary-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #E2E8F0;
}

.moon-phase-pill {
  cursor: pointer;
  font-weight: 700;
}

.moon-phase-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

/* Controles superiores y Pestañas de Modo centrados */
.header-right-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}

@media (max-width: 1150px) {
  .header-right-controls {
    align-items: center;
    width: 100%;
  }
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.28rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-night);
}

.mode-tab {
  background: transparent;
  color: var(--text-silver);
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.09);
}

.mode-tab.active {
  background: #FFFFFF;
  color: #05070C;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

/* Links y Desplegable en la barra de navegación de Uso Interno */
.mode-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}

.mode-tab-link.link-metricas {
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}
.mode-tab-link.link-metricas:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34D399;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.mode-tab-link.link-evento {
  color: #67E8F9;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}
.mode-tab-link.link-evento:hover {
  background: rgba(34, 211, 238, 0.22);
  border-color: #67E8F9;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Desplegable de Estaciones */
.estaciones-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.dropdown-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(253, 230, 138, 0.08);
  border: 1px solid rgba(253, 230, 138, 0.4);
  color: #FDE68A;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dropdown-trigger-btn:hover,
.dropdown-trigger-btn[aria-expanded="true"] {
  background: rgba(253, 230, 138, 0.2);
  border-color: #FDE68A;
  color: #FFFFFF;
}

.dropdown-trigger-btn .dropdown-chevron {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.2s ease;
}

.dropdown-trigger-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.estaciones-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 285px;
  max-width: calc(100vw - 32px);
  background: rgba(10, 15, 29, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.18);
  z-index: 1100;
}

.estaciones-dropdown-menu.show {
  display: flex;
}

.estaciones-dropdown-header {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  padding: 0.3rem 0.55rem 0.15rem;
}

.estaciones-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.15s ease;
}

.estaciones-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.estaciones-dropdown-item.item-ipes:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(2, 132, 199, 0.14);
}

.estaciones-dropdown-item.item-ipsa:hover {
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(225, 29, 72, 0.14);
}

.estaciones-dropdown-item.item-ises:hover {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(16, 185, 129, 0.14);
}

.dropdown-badge-letter {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.dropdown-badge-ipes {
  background: rgba(2, 132, 199, 0.25);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.dropdown-badge-ipsa {
  background: rgba(225, 29, 72, 0.25);
  color: #FDA4AF;
  border: 1px solid rgba(225, 29, 72, 0.4);
}

.dropdown-badge-ises {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.dropdown-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.dropdown-item-info strong {
  font-size: 0.82rem;
  color: #F8FAFC;
  line-height: 1.2;
}

.dropdown-item-info small {
  font-size: 0.69rem;
  color: #94A3B8;
  line-height: 1.2;
}

.dropdown-item-arrow {
  font-size: 0.85rem;
  color: #64748B;
  transition: transform 0.15s, color 0.15s;
}

.estaciones-dropdown-item:hover .dropdown-item-arrow {
  color: #FFFFFF;
  transform: translateX(2px);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

/* ==========================================================================
   BARRA DE RUTA DE LAS 3 ESTACIONES (IPES • IPSA • ISES)
   ========================================================================== */
.stations-route-bar {
  max-width: 1680px;
  margin: 0.9rem auto 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.station-node {
  flex: 1;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
}

.station-logo-pill {
  width: 52px;
  height: 44px;
  border-radius: 8px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.station-logo-pill.light-bg {
  background: #FFFFFF;
}

.station-logo-pill.dark-bg {
  width: 58px;
  height: 58px;
  background: transparent;
  border: none;
  padding: 0;
}

.station-logo-pill.dark-bg img {
  max-height: 56px;
}

.station-logo-pill img {
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.station-node-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.08rem;
}

.station-node.active-station {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
}

.station-code {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #94A3B8;
  text-transform: uppercase;
}

.station-node.active-station .station-code {
  color: #FFFFFF;
}

.station-sigla {
  font-size: 0.9rem;
  font-weight: 900;
  color: #FFFFFF;
}

.station-desc {
  font-size: 0.72rem;
  color: #CBD5E1;
}

.station-connector {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.connector-line {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.connector-star {
  color: #FFFFFF;
  font-size: 0.85rem;
}

.btn-swap-stations {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 0.22rem 0.5rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-swap-stations:hover {
  background: #FFFFFF;
  color: #05070C;
}

/* ==========================================================================
   BARRA DE FILTROS DE PROFESORADOS (.filter-bar)
   ========================================================================== */
.filter-bar {
  max-width: 1680px;
  margin: 0.9rem auto 0;
  padding: 0.75rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  box-shadow: var(--shadow-night);
  text-align: center;
}

.filter-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.chip.prof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-silver);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chip.prof-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.chip.prof-chip.active {
  background: #FFFFFF;
  color: #05070C;
  border-color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.chip.prof-chip[data-prof="teatro"].active {
  background: var(--c-teatro);
  color: #FFFFFF;
  border-color: #F43F5E;
}

.chip.prof-chip[data-prof="musica"].active {
  background: var(--c-musica);
  color: #05070C;
  border-color: #FDBA74;
}

.chip.prof-chip[data-prof="visuales"].active {
  background: var(--c-visuales);
  color: #05070C;
  border-color: #67E8F9;
}

.search-select-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ==========================================================================
   ÁREA DE TRABAJO PRINCIPAL: PLANOS INTERACTIVOS + SIDEBAR (.main-workspace)
   ========================================================================== */
.main-workspace {
  max-width: 1680px;
  margin: 0.9rem auto 2.5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .main-workspace {
    grid-template-columns: 1fr;
  }
}

.map-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-toolbar {
  background: var(--bg-panel);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.95rem;
  text-align: center;
}

.floor-switcher {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.floor-btn.active {
  background: #FFFFFF;
  color: #05070C;
  border-color: #FFFFFF;
  font-weight: 800;
}

.map-theme-and-tour {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tour-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Grilla de los 2 Planos (PB y PA lado a lado o 1 solo) */
.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.maps-grid.single-floor {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 900px) {
  .maps-grid {
    grid-template-columns: 1fr;
  }
}

.floor-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-night);
}

.floor-card-header {
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, #090C15 0%, #121829 100%);
  border-bottom: 1px solid var(--border-night);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.floor-card-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

.floor-subtitle {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.floor-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  white-space: nowrap;
}

.svg-wrapper {
  padding: 0.65rem;
  background: #05070D;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-wrapper.light-map {
  background: #F1F5F9;
}

/* ==========================================================================
   ESTILOS DE LOS PLANOS VECTORIALES SVG (.plan-svg)
   ========================================================================== */
.plan-svg {
  width: 100%;
  max-height: 620px;
  height: auto;
  display: block;
  border-radius: 8px;
  user-select: none;
}

/* Estética Nocturna Estrellada */
.plan-svg.night-svg {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.plan-svg.night-svg .street-label {
  fill: #64748B;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.plan-svg.night-svg .building-outline {
  fill: #0B0F1A;
  stroke: #FFFFFF;
  stroke-width: 2.5;
}

.plan-svg.night-svg .corridor-area {
  fill: #101726;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  stroke-dasharray: 4 2;
}

.plan-svg.night-svg .room-shape {
  fill: #131B2E;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
  transition: all 0.18s ease;
}

.plan-svg.night-svg .service-room .room-shape {
  fill: #0D121F;
}

.plan-svg.night-svg .sanitario-room .room-shape {
  fill: #0F172A;
}

.plan-svg.night-svg .patio-room .room-shape {
  fill: #070A12;
  stroke-dasharray: 4 3;
}

.plan-svg.night-svg .room-label {
  fill: #F8FAFC;
  font-size: 9.5px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.plan-svg.night-svg .room-label.small {
  font-size: 7.8px;
}

/* Estética Clara B/N opcional */
.plan-svg.light-svg {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
}

.plan-svg.light-svg .street-label {
  fill: #64748B;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.plan-svg.light-svg .building-outline {
  fill: #F8FAFC;
  stroke: #0F172A;
  stroke-width: 2.5;
}

.plan-svg.light-svg .corridor-area {
  fill: #F1F5F9;
  stroke: #94A3B8;
  stroke-width: 1;
  stroke-dasharray: 4 2;
}

.plan-svg.light-svg .room-shape {
  fill: #FFFFFF;
  stroke: #475569;
  stroke-width: 1.5;
}

.plan-svg.light-svg .room-label {
  fill: #0F172A;
  font-size: 9.5px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

/* Interacción en las aulas del SVG */
.room-group {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.room-group:hover .room-shape {
  stroke: #FFFFFF !important;
  stroke-width: 3px !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}

.room-group.selected .room-shape {
  stroke: #FFFFFF !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

.room-group.dimmed {
  opacity: 0.22;
}

/* ==========================================================================
   LEYENDA INFERIOR CON LOS 3 LOGOS OFICIALES DEL IPSA (.map-legend-bar)
   ========================================================================== */
.map-legend-bar {
  background: var(--bg-panel);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.legend-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.legend-prof-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.18s;
}

.legend-prof-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.legend-logo-pill {
  width: 58px;
  height: 44px;
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legend-logo-pill.dark-pill {
  background: rgba(8, 12, 22, 0.85);
}

.legend-logo-pill img {
  max-width: 100%;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.legend-prof-info {
  display: flex;
  flex-direction: column;
  font-size: 0.73rem;
}

.legend-prof-info strong {
  font-size: 0.8rem;
}

.legend-prof-info span {
  color: var(--text-muted);
}

/* ==========================================================================
   PANEL LATERAL DE DETALLE Y EDICIÓN (.sidebar-pane)
   ========================================================================== */
.sidebar-pane {
  background: var(--bg-panel);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-night);
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, #0D1322 0%, #070A12 100%);
  border-bottom: 1px solid var(--border-night);
  text-align: center;
}

.space-tag-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.sidebar-header h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
}

.space-suggestion {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.sidebar-body {
  padding: 0.9rem 1.1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.activity-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid #FFFFFF;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.activity-card[data-prof="teatro"] {
  border-left-color: var(--c-teatro);
}

.activity-card[data-prof="musica"] {
  border-left-color: var(--c-musica);
}

.activity-card[data-prof="visuales"] {
  border-left-color: var(--c-visuales);
}

.act-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.prof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.16rem 0.5rem;
  border-radius: 99px;
  color: #FFFFFF;
  background: #334155;
}

.prof-badge.teatro {
  background: var(--c-teatro);
}

.prof-badge.musica {
  background: var(--c-musica);
}

.prof-badge.visuales {
  background: var(--c-visuales);
}

.prof-badge.interdisciplinario {
  background: #475569;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-silver);
}

.act-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
}

.act-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--text-silver);
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.act-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
}

.act-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

/* Formulario lateral de edición */
.editor-box {
  margin-top: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.editor-box h4 {
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-silver);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* ==========================================================================
   CONTROL DE VISIBILIDAD DE LAS VISTAS SECUNDARIAS (.active)
   ========================================================================== */
.difusion-view-container,
.credenciales-view-container,
.mobile-pdf-container,
.pdf-view-container {
  display: none;
  max-width: 1680px;
  margin: 1rem auto 3rem;
  padding: 0 1.25rem;
}

.difusion-view-container.active,
.credenciales-view-container.active,
.mobile-pdf-container.active,
.pdf-view-container.active {
  display: block;
}

/* ==========================================================================
   VISTA 2: KIT GRÁFICO Y REDES SOCIALES (.difusion-view-container)
   ========================================================================== */
.kit-hero-banner {
  background: var(--bg-panel);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-night);
}

.kit-hero-banner h2 {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0.2rem 0;
  text-align: center;
}

.kit-hero-banner p {
  font-size: 0.82rem;
  color: var(--text-silver);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.kit-section-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-night);
}

.kit-section-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-night);
}

.kit-section-header h3 {
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.kit-section-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.social-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.canvas-card {
  background: var(--bg-card);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.canvas-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.preview-canvas-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #04060B;
  display: block;
}

.kit-two-cols {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .kit-two-cols {
    grid-template-columns: 1fr;
  }
}

.story-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.preview-canvas-story {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: block;
}

.watermark-controls {
  margin-bottom: 1rem;
}

.watermark-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.banner-preview-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-canvas-banner {
  width: 100%;
  height: auto;
  display: block;
}

.door-signs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.door-sign-card {
  background: #080B12;
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
}

.door-sign-top {
  padding: 0.4rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
}

.door-sign-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.door-sign-space {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94A3B8;
}

.door-sign-title {
  font-size: 0.9rem;
  font-weight: 900;
  color: #FFFFFF;
}

.door-sign-resp {
  font-size: 0.75rem;
  color: #CBD5E1;
}

.door-sign-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-top: 0.2rem;
}

/* ==========================================================================
   VISTA 3: CREDENCIALES Y GAFETES COLGANTES (.credenciales-view-container)
   ========================================================================== */
.cred-header-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-night);
}

.cred-header-card h2 {
  font-size: 1.18rem;
  font-weight: 900;
  color: #FFFFFF;
  text-align: center;
}

.cred-header-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-align: center;
}

.cred-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.btn-cred-action {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-cred-action:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
}

.btn-cred-primary {
  background: #FFFFFF;
  color: #05070B;
  border-color: #FFFFFF;
  font-weight: 900;
}

.btn-cred-primary:hover {
  background: var(--text-silver);
  color: #05070B;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

.cred-workspace {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 1.35rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .cred-workspace {
    grid-template-columns: 1fr;
  }
}

.cred-editor-pane {
  background: var(--bg-panel);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-night);
  position: sticky;
  top: 1rem;
}

.cred-editor-pane h3,
.cred-batch-pane h3 {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-align: center;
}

.cred-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.cred-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-silver);
}

.cred-form-grid label.full-width {
  grid-column: 1 / -1;
}

.cred-form-grid input,
.cred-form-grid select {
  background: #07090F;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
}

.cred-form-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cred-canvas-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-night);
}

.cred-canvas-preview canvas {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
}

.cred-preview-caption {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.cred-batch-pane {
  background: var(--bg-panel);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-night);
}

.cred-batch-toolbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-night);
}

.cred-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.cred-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-silver);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
}

.cred-pill.active {
  background: var(--pill-c, #FFFFFF);
  color: #FFFFFF;
  border-color: var(--pill-c, #FFFFFF);
}

.cred-pill[data-cfilter="all"].active {
  background: #FFFFFF;
  color: #05070B;
}

.cred-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 1rem;
}

.cred-grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cred-grid-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.btn-cred-mini {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-silver);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-cred-mini:hover {
  background: #FFFFFF;
  color: #05070B;
}

/* Tarjeta vectorial de Credencial (9x13 cm) en grilla e impresión */
.cred-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-silver);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.cred-filter-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.cred-filter-chip.active {
  background: #FFFFFF;
  color: #05070B;
  border-color: #FFFFFF;
  font-weight: 800;
}

canvas.cred-canvas-preview {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
}

.cred-badge-card,
.cred-print-item {
  position: relative;
  background-color: #05070C;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 14%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 28% 8%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 84% 12%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(0.9px 0.9px at 68% 22%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.3px 1.3px at 16% 36%, rgba(226, 232, 240, 0.8), transparent),
    radial-gradient(1px 1px at 88% 42%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.4px 1.4px at 10% 68%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 92% 74%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 24% 88%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 78% 90%, rgba(255, 255, 255, 0.85), transparent);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem 0.5rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cred-badge-card:hover {
  transform: translateY(-3px);
}

.cred-badge-card.selected {
  box-shadow: 0 0 0 2px #FFFFFF, 0 10px 28px rgba(255, 255, 255, 0.28);
}

.cred-top-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
}

.cred-lanyard-hole {
  width: 44px;
  height: 8px;
  border-radius: 99px;
  background: #020305;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  margin: 0.25rem auto 0.2rem;
}

.cred-institutes-mini-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.15rem;
}

.cred-mini-inst-pill {
  background: #FFFFFF;
  border-radius: 4px;
  padding: 2px 4px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cred-mini-inst-pill.dark {
  background: #0A0E17;
  border-color: #FFFFFF;
}

.cred-mini-inst-pill img {
  max-height: 15px !important;
  width: auto !important;
  max-width: 38px !important;
  object-fit: contain;
  display: block;
}

.cred-gov-cpe-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 3px 6px;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.cred-gov-cpe-bar img {
  max-height: 20px !important;
  width: auto !important;
  max-width: 56% !important;
  object-fit: contain;
  display: block;
}

.cred-gov-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
}

.cred-route-mini {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #CBD5E1;
}

.cred-night-title {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  line-height: 1.1;
  margin: 0.15rem 0;
}

.cred-night-title span {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: #E2E8F0;
  display: block;
}

.cred-date-mini {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94A3B8;
  margin-bottom: 0.25rem;
}

.cred-logo-box {
  width: 84%;
  height: 46px;
  background: rgba(8, 12, 22, 0.88);
  border: 2px solid #FFFFFF;
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.15rem auto;
}

.cred-logo-box.dark-logo-box {
  background: rgba(8, 12, 22, 0.88);
}

.cred-logo-box img {
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.cred-role-pill {
  width: 100%;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.22rem 0.35rem;
  border-radius: 5px;
  margin: 0.2rem 0;
  text-transform: uppercase;
}

.cred-person-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0.45rem;
  text-align: center;
  margin: 0.15rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
}

.cred-prof-label {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cred-person-name {
  font-size: 0.82rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
}

.cred-blank-line {
  background: #FFFFFF;
  color: #94A3B8;
  font-size: 0.52rem;
  font-weight: 800;
  padding: 0.55rem 0.3rem 0.2rem;
  border-radius: 5px;
  margin: 0.15rem 0;
}

.cred-person-unit {
  font-size: 0.58rem;
  font-weight: 700;
  color: #E2E8F0;
  line-height: 1.2;
}

.cred-person-space {
  font-size: 0.55rem;
  font-weight: 800;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  margin-top: 0.1rem;
}

.cred-footer-mini {
  width: 100%;
  background: #FFFFFF;
  color: #05070C;
  font-size: 0.48rem;
  font-weight: 900;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  margin-top: 0.2rem;
}

.cred-card-actions {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.cred-card-actions .select-cred-btn {
  flex: 1;
  justify-content: center;
}

.cred-print-sheets-only {
  display: none;
}

/* ==========================================================================
   VISTA 4: FOLLETO DIGITAL VERTICAL PARA CELULARES (.mobile-pdf-container)
   ========================================================================== */
.mobile-sheet {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  background-color: #05070D;
  background-image:
    radial-gradient(1.4px 1.4px at 24px 32px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 86px 74px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.8px 1.8px at 154px 28px, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 218px 118px, rgba(226, 232, 240, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 284px 52px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 342px 144px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 412px 68px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 468px 132px, rgba(255, 255, 255, 0.7), transparent);
  background-size: 500px 180px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  padding-bottom: 1.25rem;
}

.mob-three-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 7px;
}

.mob-header {
  padding: 1.25rem 1.15rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mob-route-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #CBD5E1;
  margin-bottom: 0.65rem;
}

.mob-logo-main {
  height: 52px !important;
  width: auto !important;
  margin: 0 auto 0.45rem;
  display: block;
  object-fit: contain;
}

.mob-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #94A3B8;
}

.mob-title {
  font-family: 'Cinzel', serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0.25rem 0 0.75rem;
  line-height: 1.2;
}

.mob-schedule-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.65rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mob-section-title {
  padding: 0.65rem 1.15rem 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
}

.mob-map-box {
  padding: 0 1rem;
}

.mob-prof-header {
  margin: 1rem 1rem 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  color: #FFFFFF;
}

.mob-prof-header strong {
  display: block;
  font-size: 0.84rem;
}

.mob-prof-header span {
  font-size: 0.7rem;
  opacity: 0.92;
}

.mob-gov-footer {
  margin: 1.1rem 1rem 0.25rem;
  padding: 0.75rem 0.9rem;
  background: rgba(8, 12, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.mob-gov-footer-address {
  font-size: 0.68rem;
  font-weight: 700;
  color: #CBD5E1;
}

.mob-gov-footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  width: 100%;
}

.mob-gov-footer-logos img {
  max-height: 36px !important;
  width: auto !important;
  max-width: 210px !important;
  object-fit: contain;
  display: block;
}

.mob-acts-list {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mob-act-item {
  background: #0C101C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #FFFFFF;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.mob-act-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94A3B8;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.mob-act-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #FFFFFF;
}

.mob-act-resp {
  font-size: 0.72rem;
  color: #CBD5E1;
  margin-top: 0.15rem;
}

/* ==========================================================================
   VISTA 5: FOLLETO IMPRIMIBLE DOBLE FAZ A4 (.pdf-view-container)
   ========================================================================== */
.pdf-sheet {
  background-color: #060911;
  background-image:
    radial-gradient(1.5px 1.5px at 28px 34px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 94px 82px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.8px 1.8px at 168px 26px, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.1px 1.1px at 242px 124px, rgba(226, 232, 240, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 318px 58px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 396px 148px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 468px 44px, rgba(255, 255, 255, 0.9), transparent);
  background-size: 520px 180px;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 1.35rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-night);
}

.pdf-sheet.light-print-sheet {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
}

.pdf-night-poster-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

.pdf-sheet.light-print-sheet .pdf-night-poster-header {
  background: #0F172A;
  color: #FFFFFF;
  padding: 1rem;
  border-radius: 8px;
}

.brochure-gov-footer {
  margin-top: 1.1rem;
  padding: 0.75rem 1.1rem;
  background: rgba(7, 10, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
}

.pdf-sheet.light-print-sheet .brochure-gov-footer {
  background: #0F172A;
  color: #FFFFFF;
}

.brochure-gov-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brochure-gov-logos img {
  max-height: 44px !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain;
  display: block;
}

.pdf-maps-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .pdf-maps-side-by-side {
    grid-template-columns: 1fr;
  }
}

.references-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.74rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ref-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.2rem 0.6rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.78rem;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.pdf-sheet.light-print-sheet .schedule-table th,
.pdf-sheet.light-print-sheet .schedule-table td {
  border-color: #CBD5E1;
}

.schedule-table th {
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   MODAL DEL PLANO ESCANEADO BASE (#scanModal)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  max-width: 1050px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-night);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1rem;
  overflow: auto;
  text-align: center;
  background: #04060A;
}

.modal-body img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 6px;
}

/* ==========================================================================
   REGLAS DE IMPRESIÓN (@media print)
   ========================================================================== */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: #05070C !important;
    color: #FFFFFF !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .no-print,
  .app-header,
  .filter-bar,
  .main-workspace,
  .difusion-view-container,
  .modal-backdrop {
    display: none !important;
  }

  .page-break {
    page-break-before: always;
    break-before: page;
  }

  /* Modo A4 Doble Faz */
  body.print-mode-a4 .pdf-view-container {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  /* Modo Folleto Celular */
  body.print-mode-mobile .mobile-pdf-container {
    display: block !important;
  }

  /* Modo Credenciales (4 por hoja A4 Vertical — 90mm x 130mm) */
  body.print-mode-credenciales .credenciales-view-container {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  body.print-mode-credenciales .cred-print-sheets-only {
    display: block !important;
  }

  .cred-print-page {
    width: 210mm;
    height: 296mm;
    padding: 8mm 10mm;
    margin: 0 auto;
    background: #04060A !important;
    color: #FFFFFF !important;
    page-break-after: always;
    break-after: page;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .cred-print-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 7.5pt;
    color: #CBD5E1;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 2mm;
    margin-bottom: 3mm;
  }

  .cred-print-grid-4 {
    display: grid;
    grid-template-columns: 90mm 90mm;
    grid-template-rows: 130mm 130mm;
    gap: 6mm 8mm;
    justify-content: center;
    align-content: center;
    flex: 1;
  }

  .cred-print-item {
    width: 90mm;
    height: 130mm;
  }

  .cred-print-item .cred-badge-card {
    width: 90mm;
    height: 130mm;
    aspect-ratio: auto;
    border: 1.5px dashed rgba(255, 255, 255, 0.55);
    box-shadow: none;
  }
}

/* ==========================================================================
   BADGES Y MODAL DE MÉTRICAS EN VIVO DEL CIRCUITO (INDEX & PLANO)
   ========================================================================== */
.station-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
}
.station-metric-pill:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(16, 185, 129, 0.7);
  transform: translateY(-1px);
}
.station-metric-pill strong {
  font-size: 0.85rem;
  color: #FFFFFF;
}

.metrics-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 7, 18, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.metrics-modal-container {
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(34, 211, 238, 0.18);
  display: flex;
  flex-direction: column;
}

.metrics-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.dash-header-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dash-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  color: #22D3EE;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dash-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0.15rem 0;
}

.dash-subtitle {
  font-size: 0.8rem;
  color: #94A3B8;
}

.dash-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-close-btn:hover {
  background: rgba(225, 29, 72, 0.6);
  border-color: #E11D48;
}

.metrics-modal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dash-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.dash-hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-hero-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem;
  border-radius: 12px;
}

.dash-hero-data {
  display: flex;
  flex-direction: column;
}

.dash-hero-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
}

.dash-hero-label {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 600;
}

.dash-section-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dash-sec-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: 0.04em;
}

.dash-stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.dash-station-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-station-item.station-a-border {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.08) 0%, rgba(2, 132, 199, 0.02) 100%);
}

.dash-station-item.station-b-border {
  border-color: rgba(225, 29, 72, 0.4);
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.1) 0%, rgba(225, 29, 72, 0.02) 100%);
}

.dash-station-item.station-c-border {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.dash-station-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.dash-st-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: #FFFFFF;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.dash-st-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #E2E8F0;
}

.dash-st-body {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.25rem 0;
}

.dash-st-count {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}

.dash-st-unit {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
}

.dash-st-foot {
  font-size: 0.68rem;
  color: #64748B;
}

.dash-progress-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dash-bar-wrapper {
  height: 14px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dash-bar-gold {
  background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%);
  transition: width 0.4s ease;
}

.dash-bar-cyan {
  background: linear-gradient(90deg, #0284C7 0%, #38BDF8 100%);
  transition: width 0.4s ease;
}

.dash-cards-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.dash-compare-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash-compare-card.gold-glow {
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.dash-compare-card.cyan-glow {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(2, 132, 199, 0.02) 100%);
}

.dash-cmp-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dash-cmp-head strong {
  font-size: 0.88rem;
  color: #FFFFFF;
  display: block;
}

.dash-cmp-head small {
  font-size: 0.72rem;
  color: #94A3B8;
  display: block;
}

.dash-cmp-icon {
  font-size: 1.6rem;
}

.dash-cmp-stat {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.2rem 0;
}

.dash-cmp-big {
  font-size: 1.85rem;
  font-weight: 900;
  color: #FFFFFF;
}

.dash-compare-card.gold-glow .dash-cmp-big {
  color: #FBBF24;
}

.dash-compare-card.cyan-glow .dash-cmp-big {
  color: #38BDF8;
}

.dash-cmp-pct {
  font-size: 1rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
}

.dash-cmp-note {
  font-size: 0.72rem;
  color: #94A3B8;
}

.metrics-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dash-last-update {
  font-size: 0.75rem;
  color: #64748B;
}

.dash-footer-actions {
  display: flex;
  gap: 0.65rem;
}

.dash-refresh-btn {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: #67E8F9;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-refresh-btn:hover {
  background: rgba(34, 211, 238, 0.3);
}

.dash-close-foot-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.dash-close-foot-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   ÍCONOS VECTORIALES DE LÍNEA BLANCA UNIFICADOS (.ui-icon)
   ========================================================================== */
.ui-icon {
  width: 1.18em;
  height: 1.18em;
  display: inline-block;
  vertical-align: -0.2em;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.ui-icon-lg {
  width: 1.45em;
  height: 1.45em;
  vertical-align: -0.25em;
}

.ui-icon-xl {
  width: 2.4em;
  height: 2.4em;
  vertical-align: middle;
}

.ui-icon-sm {
  width: 0.95em;
  height: 0.95em;
  vertical-align: -0.12em;
}

