/* Generado por scripts/build-research-panel.mjs desde pagina-web-gps-property@595d455. No editar. */
/* Estilos del host */
body {
  display: block;
  background-color: #f8fafc;
}

.rp-loading-overlay {
  position: fixed;
  inset: 0;
  background-color: #0c1a30;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.rp-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.rp-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 193, 7, 0.2);
  border-top-color: #ffc107;
  border-radius: 50%;
  animation: rp-spin 0.85s linear infinite;
}

@keyframes rp-spin {
  to {
    transform: rotate(360deg);
  }
}
.rp-loading-text {
  color: #b0bec5;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.rp-hero {
  background-color: #0c1a30;
  color: #fff;
  padding: 40px 0 32px;
}

.rp-hero-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.rp-hero-header {
  text-align: center;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.rp-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}

.rp-hero-accent {
  color: #ffc107;
}

/* Clases del dashboard original */
.hidden {
  display: none !important;
}

#map {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 1024px) {
  button,
  select {
    min-height: 40px;
  }
  select {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  button {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}
@media (max-width: 640px) {
  #main-chart {
    height: 200px !important;
    min-height: 200px !important;
  }
  .relative.w-full.h-64 {
    height: 200px !important;
  }
}
body .leaflet-tooltip-custom {
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 8px;
  white-space: normal;
  max-width: 200px;
}

body .rp-dashboard-theme {
  --gps-accent-blue: #00a7d8;
  --gps-accent-blue-hover: #0093be;
  --gps-accent-blue-soft: rgba(0, 167, 216, 0.12);
}

/* Unifica todos los estados "sky" al azul de la P del logo. */
body .rp-dashboard-theme .bg-sky-500 {
  background-color: var(--gps-accent-blue) !important;
}

body .rp-dashboard-theme .border-sky-500 {
  border-color: var(--gps-accent-blue) !important;
}

body .rp-dashboard-theme .text-sky-600,
body .rp-dashboard-theme .text-sky-700,
body .rp-dashboard-theme .text-sky-800 {
  color: var(--gps-accent-blue) !important;
}

body .rp-dashboard-theme .bg-sky-50,
body .rp-dashboard-theme .bg-sky-100 {
  background-color: var(--gps-accent-blue-soft) !important;
}

body .rp-dashboard-theme .border-sky-100,
body .rp-dashboard-theme .border-sky-300 {
  border-color: rgba(0, 167, 216, 0.35) !important;
}

body .rp-dashboard-theme .hover\:bg-sky-400:hover {
  background-color: var(--gps-accent-blue-hover) !important;
}

body .rp-dashboard-theme .hover\:border-sky-400:hover {
  border-color: var(--gps-accent-blue) !important;
}

body .rp-dashboard-theme .hover\:text-sky-600:hover {
  color: var(--gps-accent-blue) !important;
}

body .rp-dashboard-theme .focus\:ring-sky-500:focus {
  --tw-ring-color: rgba(0, 167, 216, 0.55) !important;
}

body .rp-dashboard-theme .focus\:border-sky-500:focus {
  border-color: var(--gps-accent-blue) !important;
}

#pdf-viewer-container {
  overflow: auto;
  display: flex;
  flex-direction: column;
}

#pdf-canvas-1-wrapper {
  display: block;
  overflow: auto;
  padding: 0.75rem;
  width: 100%;
  background: transparent;
}
#pdf-canvas-1-wrapper canvas {
  display: block;
  height: auto !important;
}

#pdf-canvas-1-wrapper.is-landscape {
  justify-content: center;
}

#pdf-native-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
  padding: 0;
  width: 100%;
  background: transparent;
}

#pdf-native-frame {
  width: 100%;
  height: min(88vh, 1100px);
  border: 0;
  background: #fff;
  transform-origin: top center;
}

#pdf-viewer-container.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1e293b;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}
#pdf-viewer-container.fullscreen #pdf-canvases-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}
#pdf-viewer-container.fullscreen #pdf-canvas-1-wrapper {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #0f172a;
}
#pdf-viewer-container.fullscreen #pdf-canvas-1-wrapper canvas {
  max-width: none;
}

#pdf-viewer-container.fullscreen .pdf-fullscreen-bar {
  display: flex;
}

#pdf-viewer-container:not(.fullscreen) .pdf-fullscreen-bar {
  display: none;
}

.pdf-fullscreen-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.875rem;
}

#pdf-viewer-container.fullscreen canvas {
  height: auto;
}

#pdf-viewer-container.fullscreen #pdf-native-frame {
  width: min(100%, 1600px);
  height: calc(100vh - 150px);
}

.rp-dashboard-theme {
  position: relative;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(34, 211, 238, 0.14), transparent 55%), radial-gradient(900px 500px at 100% 0%, rgba(59, 130, 246, 0.16), transparent 60%), linear-gradient(180deg, #07152f 0%, #061127 55%, #050d1f 100%);
  color: #dbe8ff;
}

.rp-dashboard-theme main,
.rp-dashboard-theme footer {
  background: transparent !important;
}

.rp-dashboard-theme .max-w-7xl > section.space-y-4 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body .rp-dashboard-theme #kpi-section-content > .grid > div:not(.rp-informe-fila),
body .rp-dashboard-theme #kpi-section-content > .grid > :is(.rp-map-col, .rp-graficos) > div:not(.rp-informe-fila),
body .rp-dashboard-theme #kpi-section-content > .grid > div:not(.rp-informe-fila):hover,
body .rp-dashboard-theme #kpi-section-content > .grid > :is(.rp-map-col, .rp-graficos) > div:not(.rp-informe-fila):hover,
body .rp-dashboard-theme .max-w-7xl > section:not(.intro-grid):not(.space-y-4),
body .rp-dashboard-theme .max-w-7xl > section:not(.intro-grid):not(.space-y-4):hover {
  border: 1px solid rgba(117, 149, 203, 0.28) !important;
  transition: none !important;
}

/* Evita variaciones de tipografia en controles nativos entre navegadores */
.rp-dashboard-theme #filter-mercado,
.rp-dashboard-theme #filter-corredor,
.rp-dashboard-theme #filter-criterio,
.rp-dashboard-theme #filter-tipo,
.rp-dashboard-theme #filter-comuna,
.rp-dashboard-theme #chart-mercado-select,
.rp-dashboard-theme #chart-corredor-select,
.rp-dashboard-theme #chart-comuna-select,
.rp-dashboard-theme #chart-tipo-select,
.rp-dashboard-theme #chart-metric-select,
.rp-dashboard-theme #map-mercado-select,
.rp-dashboard-theme #map-corredor-select,
.rp-dashboard-theme #map-metric-select {
  font-family: inherit !important;
}

.rp-dashboard-theme #filter-mercado option,
.rp-dashboard-theme #filter-corredor option,
.rp-dashboard-theme #filter-criterio option,
.rp-dashboard-theme #filter-tipo option,
.rp-dashboard-theme #filter-comuna option,
.rp-dashboard-theme #chart-mercado-select option,
.rp-dashboard-theme #chart-corredor-select option,
.rp-dashboard-theme #chart-comuna-select option,
.rp-dashboard-theme #chart-tipo-select option,
.rp-dashboard-theme #chart-metric-select option,
.rp-dashboard-theme #map-mercado-select option,
.rp-dashboard-theme #map-corredor-select option,
.rp-dashboard-theme #map-metric-select option {
  font-family: inherit !important;
}

body .rp-dashboard-theme .max-w-7xl > section,
body .rp-dashboard-theme .max-w-7xl > section:hover,
body .rp-dashboard-theme #kpi-section-content > .grid > div:not(.rp-informe-fila),
body .rp-dashboard-theme #kpi-section-content > .grid > :is(.rp-map-col, .rp-graficos) > div:not(.rp-informe-fila),
body .rp-dashboard-theme #kpi-section-content > .grid > div:not(.rp-informe-fila):hover,
body .rp-dashboard-theme #kpi-section-content > .grid > :is(.rp-map-col, .rp-graficos) > div:not(.rp-informe-fila):hover,
body .rp-dashboard-theme #pdf-viewer-container,
body .rp-dashboard-theme #pdf-controls,
body .rp-dashboard-theme #lead-modal-backdrop > div {
  background: linear-gradient(170deg, rgba(8, 23, 51, 0.95), rgba(7, 19, 43, 0.95)) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 5, 30, 0.65), 0 32px 56px rgba(0, 4, 22, 0.5) !important;
  transition: none !important;
}

.rp-dashboard-theme .max-w-7xl > section,
.rp-dashboard-theme #kpi-section-content > .grid > div:not(.rp-informe-fila),
.rp-dashboard-theme #kpi-section-content > .grid > :is(.rp-map-col, .rp-graficos) > div:not(.rp-informe-fila),
.rp-dashboard-theme #kpi-cards-container > div,
.rp-dashboard-theme #report-cards-grid .report-card {
  backdrop-filter: blur(5px);
}

.rp-dashboard-theme #kpi-cards-container > div {
  background: transparent !important;
  border: none !important;
  border-radius: 0;
}

body .rp-dashboard-theme #kpi-cards-container .kpi-indicator-card,
body .rp-dashboard-theme #kpi-cards-container .kpi-indicator-card:hover,
body .rp-dashboard-theme #kpi-cards-container .kpi-indicator-card:focus,
body .rp-dashboard-theme #kpi-cards-container .kpi-indicator-card:active {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(7, 21, 46, 0.98), rgba(5, 16, 35, 0.98)) !important;
  box-shadow: 0 14px 30px rgba(2, 9, 30, 0.55) !important;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
  transition: none !important;
  cursor: default;
}

.rp-dashboard-theme #kpi-cards-container .kpi-indicator-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px 90px at 100% -5%, rgba(45, 212, 191, 0.12), transparent 65%);
}

.rp-dashboard-theme .kpi-indicator-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rp-dashboard-theme .kpi-indicator-card__metric {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.rp-dashboard-theme .kpi-indicator-card__icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.5rem;
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rp-dashboard-theme .kpi-indicator-card__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.rp-dashboard-theme .kpi-indicator-card__label {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(213, 229, 255, 0.8);
  line-height: 1.2;
}

.rp-dashboard-theme .kpi-indicator-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.rp-dashboard-theme .kpi-indicator-card__trend.is-up {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.rp-dashboard-theme .kpi-indicator-card__trend.is-down {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.rp-dashboard-theme .kpi-indicator-card__trend.is-neutral {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(125, 161, 255, 0.32);
  color: #bfdbfe;
}

.rp-dashboard-theme .kpi-indicator-card__trend-icon {
  font-size: 0.7rem;
  line-height: 1;
}

.rp-dashboard-theme .kpi-indicator-card__value {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  color: #f7fbff;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.rp-dashboard-theme .kpi-indicator-card__previous {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(198, 217, 247, 0.7);
}

.rp-dashboard-theme .kpi-indicator-card__previous span {
  color: #dcecff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .rp-dashboard-theme #kpi-cards-container .kpi-indicator-card {
    padding: 0.9rem 0.9rem;
  }
  .rp-dashboard-theme .kpi-indicator-card__value {
    font-size: 1.9rem;
  }
}
.rp-dashboard-theme #kpi-cards-container p,
.rp-dashboard-theme #kpi-cards-container span,
.rp-dashboard-theme #kpi-section-label,
.rp-dashboard-theme h2,
.rp-dashboard-theme h3,
.rp-dashboard-theme .text-slate-900,
.rp-dashboard-theme .text-slate-800,
.rp-dashboard-theme .text-slate-700,
.rp-dashboard-theme .text-slate-600,
.rp-dashboard-theme .text-slate-500,
.rp-dashboard-theme .text-slate-400 {
  color: #dce8ff !important;
}

.rp-dashboard-theme .text-slate-500,
.rp-dashboard-theme .text-slate-400,
.rp-dashboard-theme .text-xs,
.rp-dashboard-theme .text-sm {
  color: rgba(206, 223, 255, 0.74) !important;
}

.rp-dashboard-theme select,
.rp-dashboard-theme input[type=text],
.rp-dashboard-theme input[type=email],
.rp-dashboard-theme input[type=tel],
.rp-dashboard-theme button {
  border-color: rgba(107, 137, 190, 0.48) !important;
}

.rp-dashboard-theme select,
.rp-dashboard-theme input[type=text],
.rp-dashboard-theme input[type=email],
.rp-dashboard-theme input[type=tel] {
  background: rgba(7, 17, 40, 0.94) !important;
  color: #e6efff !important;
}

.rp-dashboard-theme select:focus,
.rp-dashboard-theme input:focus {
  border-color: rgba(248, 208, 89, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(248, 208, 89, 0.18) !important;
}

.rp-dashboard-theme button {
  background: rgba(14, 30, 63, 0.94) !important;
  color: #e8f2ff !important;
}

.rp-dashboard-theme button:hover {
  background: rgba(20, 42, 85, 0.98) !important;
}

.rp-dashboard-theme #pdf-controls {
  background: linear-gradient(180deg, rgba(15, 31, 64, 0.95), rgba(10, 22, 49, 0.95)) !important;
}

.rp-dashboard-theme #pdf-placeholder,
.rp-dashboard-theme #chart-no-data,
.rp-dashboard-theme #map-error-msg {
  background: rgba(8, 20, 45, 0.88) !important;
  color: rgba(220, 234, 255, 0.78) !important;
  border-color: rgba(104, 133, 183, 0.3) !important;
}

.rp-dashboard-theme #report-cards-grid .report-card {
  background: linear-gradient(180deg, rgba(10, 25, 55, 0.95), rgba(7, 18, 41, 0.95)) !important;
  border-color: rgba(98, 127, 177, 0.35) !important;
}

body .rp-dashboard-theme #report-cards-grid .report-card,
body .rp-dashboard-theme #report-cards-grid .report-card:hover {
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: none !important;
  transition: none !important;
}

.rp-dashboard-theme #report-cards-grid .report-card .border-t {
  border-color: rgba(90, 120, 172, 0.3) !important;
}

.rp-dashboard-theme footer {
  border-top-color: rgba(93, 123, 172, 0.35) !important;
}

.rp-banner {
  position: relative;
  z-index: 20;
  background: #0c1a30;
  border-bottom: 1px solid rgba(96, 130, 185, 0.35);
}

.rp-hero {
  position: relative;
  z-index: 3;
  overflow: visible;
  padding: 22px 0 16px;
  background: transparent;
}

.rp-hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0c1a30;
}

.rp-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.rp-hero-slide.is-activa {
  opacity: 1;
}

.rp-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 26, 48, 0.78) 0%, rgba(10, 24, 50, 0.88) 55%, rgba(8, 23, 51, 0.97) 100%);
}

.rp-mercados-bar {
  position: relative;
  z-index: 2;
  padding: 10px 28px 14px;
  background: transparent;
}
.rp-mercados-bar .rp-map-title {
  margin-bottom: 0.45rem;
}
.rp-mercados-bar .rp-map-title > div:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
}
.rp-mercados-bar .rp-map-title > div:first-child h2 {
  font-size: 1.05rem !important;
  line-height: 1.2;
  margin: 0;
}
.rp-mercados-bar .rp-map-title > div:first-child p {
  margin: 0;
  font-size: 0.78rem !important;
}

.rp-zona {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: 12px;
  min-height: 34px;
}

.rp-zona > * {
  grid-area: 1/1;
  align-self: center;
  transition: opacity 0.5s ease;
}

.rp-mk-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  padding: 0 28px;
  opacity: 0;
  pointer-events: none;
}

.rp-zona.is-lista .rp-mk-lista {
  opacity: 1;
}

.rp-zona.is-lista .rp-ticker {
  opacity: 0;
}

.rp-zona.is-cinta .rp-mk-lista {
  opacity: 0;
}

.rp-zona.is-cinta .rp-ticker {
  opacity: 1;
}

.rp-zona.is-lista .rp-ticker-track {
  animation-play-state: paused;
}

body .rp-mk-label {
  margin-right: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214, 228, 252, 0.85);
}

body .rp-mk-chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(26, 152, 191, 0.26);
  border: 1px solid rgb(26, 152, 191);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

body .rp-zona.is-lista .rp-mk-chip,
body .rp-zona.is-lista .rp-mk-label {
  animation: rp-mk-in 0.5s ease both;
  animation-delay: calc(var(--k, 0) * 0.14s);
}

@keyframes rp-mk-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.rp-ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.rp-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: rp-ticker-move var(--dur, 120s) linear infinite;
}

.rp-ticker:hover .rp-ticker-track {
  animation-play-state: paused;
}

@keyframes rp-ticker-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
body .rp-tk-grupo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 34px;
}

body .rp-tk-mercado {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(26, 152, 191, 0.28);
  border: 1px solid rgb(26, 152, 191);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body .rp-tk-mercado i {
  margin-left: 6px;
  font-style: normal;
  font-weight: 500;
  opacity: 0.75;
}

body .rp-tk-chip {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(8, 23, 51, 0.6);
  border: 1px solid rgba(117, 149, 203, 0.4);
  color: #f2f7ff;
  font-size: 0.86rem;
  font-weight: 500;
}
body .rp-tk-chip b {
  margin-left: 4px;
  font-weight: 700;
  color: #f8c400;
  font-variant-numeric: tabular-nums;
}
body .rp-tk-chip .rp-tk-var {
  margin-left: 7px;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1;
  vertical-align: 1px;
}
body .rp-tk-chip .rp-tk-var.verde {
  color: #22c55e;
}
body .rp-tk-chip .rp-tk-var.rojo {
  color: #ef4444;
}

@media (prefers-reduced-motion: reduce) {
  .rp-hero-slide {
    transition: none;
  }
  .rp-ticker {
    overflow-x: auto;
  }
  .rp-ticker-track {
    animation: none;
  }
}
.rp-hero-container {
  position: relative;
  z-index: 3;
}

.rp-hero-titlewrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: help;
  outline: none;
}

.rp-hero-title {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 2px 14px rgba(3, 14, 38, 0.45);
}

.rp-hero-research {
  margin-right: 0.28em;
  font-weight: 300;
  color: #eaf2ff;
}

.rp-hero-accent {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.rp-hero-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(214, 228, 252, 0.6);
  color: rgba(234, 242, 255, 0.9);
  font: italic 700 0.8rem/1 Georgia, serif;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rp-hero-titlewrap:hover .rp-hero-info,
.rp-hero-titlewrap:focus-visible .rp-hero-info {
  background: rgba(26, 152, 191, 0.35);
  border-color: rgb(26, 152, 191);
}

.rp-hero-tip {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, -6px);
  width: min(380px, 86vw);
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: #0c1a30;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-shadow: none;
  box-shadow: 0 14px 34px rgba(3, 14, 38, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 5;
}
.rp-hero-tip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

.rp-hero-titlewrap:hover .rp-hero-tip,
.rp-hero-titlewrap:focus-visible .rp-hero-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.rp-main-shell {
  max-width: min(1720px, 100vw - 56px) !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.5rem !important;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rp-main-shell > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0 !important;
}

.rp-main-shell > section.space-y-4 {
  order: 1;
}

.rp-main-shell > .rp-kpi-block {
  order: 3;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid rgba(117, 149, 203, 0.28);
  border-radius: 0.75rem;
  background: linear-gradient(170deg, rgba(8, 23, 51, 0.95), rgba(7, 19, 43, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 42px rgba(0, 5, 22, 0.38);
}

.rp-chart-panel .space-y-3 > h3,
.rp-vacancia-card #vacancia-title {
  font-weight: 700 !important;
}

.rp-kpi-head {
  margin: 0 0 0.75rem;
}

.rp-kpi-mercado:empty {
  display: none;
}

body .rp-kpi-mercado {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 1.8vw, 1.95rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.rp-kpi-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
}

.rp-kpi-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(196, 214, 244, 0.92);
}

.rp-kpi-subtitle:empty {
  display: none;
}

.rp-main-shell > section:not(.intro-grid):not(.space-y-4) {
  order: 4;
}

.rp-dashboard-theme #kpi-section-label {
  text-align: left !important;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(211, 226, 249, 0.62) !important;
  padding-top: 0.35rem;
}

.rp-dashboard-theme #mercados-tabs {
  justify-content: center !important;
  max-height: none;
  overflow: visible;
  padding-right: 0.25rem;
}

.rp-dashboard-theme #mercado-dropdown-wrapper,
.rp-dashboard-theme #criterio-wrapper,
.rp-dashboard-theme #corredor-wrapper,
.rp-dashboard-theme #tipo-wrapper,
.rp-dashboard-theme #comuna-wrapper {
  max-width: none !important;
  width: 100% !important;
}

.rp-dashboard-theme #mercado-dropdown-wrapper label,
.rp-dashboard-theme #corredor-wrapper label,
.rp-dashboard-theme #comuna-wrapper label,
.rp-dashboard-theme #criterio-wrapper label,
.rp-dashboard-theme #tipo-wrapper label {
  text-align: left !important;
  margin-bottom: 0.35rem;
  font-size: 0.68rem !important;
  color: rgba(213, 228, 252, 0.66) !important;
}

.rp-dashboard-theme #btn-exportar-csv {
  display: none !important;
}

.rp-map-chart-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px) !important;
  align-items: stretch;
}

.rp-map-panel {
  order: 1;
  grid-column: 1/2 !important;
  padding: 0.95rem !important;
}

.rp-chart-panel {
  order: 2;
  grid-column: 2/3 !important;
  padding: 0.95rem !important;
}

.rp-map-panel > .space-y-3,
.rp-chart-panel > .space-y-3 {
  margin-bottom: 0.75rem !important;
}

.rp-map-panel .grid.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
}

.rp-mercados-bar #map-mercados-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rp-mercados-bar #map-mercados-tabs::-webkit-scrollbar {
  display: none;
}

.rp-mercados-carril {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-mk-flecha {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(117, 149, 203, 0.55);
  background: rgba(8, 23, 51, 0.9);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0 3px;
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.rp-mk-flecha:hover {
  border-color: rgb(26, 152, 191);
  box-shadow: 0 0 0 3px rgba(26, 152, 191, 0.35), 0 0 14px 2px rgba(26, 152, 191, 0.7);
}
.rp-mk-flecha.is-oculta {
  visibility: hidden;
}

.rp-auto-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(117, 149, 203, 0.55);
  background: rgba(8, 23, 51, 0.75);
  color: #dbe8ff;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.rp-auto-btn:hover {
  border-color: rgb(26, 152, 191);
  box-shadow: 0 0 0 3px rgba(26, 152, 191, 0.35), 0 0 14px 2px rgba(26, 152, 191, 0.7);
}
.rp-auto-btn .rp-auto-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}
.rp-auto-btn.is-activo .rp-auto-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.rp-chart-panel select,
.rp-map-panel select {
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.rp-chart-panel select:hover,
.rp-chart-panel select:focus,
.rp-map-panel select:hover,
.rp-map-panel select:focus {
  outline: none;
  border-color: rgb(26, 152, 191) !important;
  box-shadow: 0 0 0 3px rgba(26, 152, 191, 0.35), 0 0 14px 2px rgba(26, 152, 191, 0.7) !important;
}

body .rp-mercados-bar .rp-map-title #btn-reset-filtros,
body .rp-mercados-bar .rp-map-title #btn-ampliar-mercados {
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

body .rp-mercados-bar .rp-map-title #btn-reset-filtros:hover,
body .rp-mercados-bar .rp-map-title #btn-ampliar-mercados:hover {
  border-color: rgb(26, 152, 191) !important;
  box-shadow: 0 0 0 3px rgba(26, 152, 191, 0.35), 0 0 14px 2px rgba(26, 152, 191, 0.7) !important;
}

body .rp-mercados-bar #map-mercados-tabs > button[data-unlocked=true]:hover {
  border-color: rgb(26, 152, 191) !important;
  box-shadow: 0 0 0 3px rgba(26, 152, 191, 0.35), 0 0 14px 2px rgba(26, 152, 191, 0.7);
}

body .rp-mercados-bar #map-mercados-tabs > button {
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
  font-size: 0.98rem;
  line-height: 1.15;
}
body .rp-mercados-bar #map-mercados-tabs > button img {
  width: 1.25rem;
  height: 1.25rem;
}

.rp-map-col {
  order: 1;
  grid-column: 1/2 !important;
  grid-row: 1/span 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-width: 0;
}

.rp-map-col > .rp-map-panel {
  order: 1;
}

.rp-map-col > .rp-informe-fila {
  order: 2;
}

.rp-map-panel > .relative {
  flex: 1 1 auto;
}

.rp-map-panel #map {
  flex: 1 1 auto !important;
  min-height: clamp(380px, 100vh - 500px, 760px) !important;
  border-radius: 0.5rem !important;
  border-color: rgba(112, 143, 194, 0.24) !important;
}

.rp-chart-panel #main-chart {
  height: 230px !important;
}

.rp-chart-panel .relative.w-full {
  height: 230px !important;
  min-height: 230px !important;
}

.rp-dashboard-theme #kpi-cards-container {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
}

body .rp-dashboard-theme #kpi-cards-container .kpi-indicator-card {
  border-color: rgba(115, 148, 204, 0.3) !important;
  border-radius: 0.65rem;
  padding: 0.85rem 0.9rem;
  box-shadow: 0 10px 24px rgba(2, 8, 28, 0.36) !important;
}

.rp-dashboard-theme .kpi-indicator-card__value {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
}

body .rp-dashboard-theme #kpi-cards-container .kpi-indicator-card {
  cursor: pointer;
}

body .rp-dashboard-theme #kpi-cards-container .kpi-indicator-card.is-active {
  background: linear-gradient(180deg, rgba(22, 52, 98, 0.98), rgba(13, 34, 70, 0.98)) !important;
}

body .rp-dashboard-theme #kpi-cards-container .kpi-indicator-card:focus-visible {
  outline: 2px solid rgb(26, 152, 191);
  outline-offset: 3px;
}

body .rp-dashboard-theme #kpi-cards-container .kpi-indicator-card:hover {
  border-color: rgb(26, 152, 191) !important;
  box-shadow: 0 0 0 3px rgba(26, 152, 191, 0.35), 0 0 14px 2px rgba(26, 152, 191, 0.7), 0 14px 30px rgba(2, 9, 30, 0.55) !important;
  transition: box-shadow 0.18s ease, border-color 0.18s ease !important;
}

body .rp-dashboard-theme .max-w-7xl > section,
body .rp-dashboard-theme #kpi-section-content > .grid > div:not(.rp-informe-fila),
body .rp-dashboard-theme #kpi-section-content > .grid > :is(.rp-map-col, .rp-graficos) > div:not(.rp-informe-fila),
body .rp-dashboard-theme #pdf-viewer-container,
body .rp-dashboard-theme #pdf-controls,
body .rp-dashboard-theme #lead-modal-backdrop > div {
  border-color: rgba(117, 149, 203, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 42px rgba(0, 5, 22, 0.38) !important;
}

.rp-dashboard-theme #reports-access-form {
  padding: 1.25rem 1.5rem !important;
}

.rp-dashboard-theme #report-cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
}

#pdf-viewer-container {
  min-height: min(82vh, 1100px);
  background: #071127 !important;
}

#pdf-native-wrapper {
  flex: 1;
  min-height: min(82vh, 1100px);
  background: #0a1224;
}

#pdf-native-frame {
  width: 100%;
  height: min(82vh, 1100px);
  border: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  background: #111827;
}

#pdf-viewer-container.fullscreen #pdf-native-wrapper {
  flex: 1;
  min-height: 0;
  width: 100%;
}

#pdf-viewer-container.fullscreen #pdf-native-frame {
  width: 100%;
  height: calc(100vh - 54px);
  border-radius: 0;
}

@media (max-width: 1280px) {
  .rp-main-shell {
    max-width: min(100% - 32px, 1280px) !important;
  }
  .rp-dashboard-theme .intro-grid,
  .rp-map-chart-grid {
    grid-template-columns: 1fr !important;
  }
  .rp-map-panel,
  .rp-chart-panel {
    grid-column: auto !important;
    min-height: auto;
  }
  .rp-map-col {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .rp-main-shell .rp-map-panel {
    grid-row: auto !important;
  }
  .rp-main-shell .rp-map-chart-grid .rp-vacancia-card {
    grid-column: auto !important;
  }
  .rp-chart-panel {
    order: 2;
  }
}
body.rp-modo-monitor .rp-main-shell {
  --rp-col-chart: clamp(360px, 22vw, 560px);
  --rp-col-kpi: clamp(400px, 24vw, 640px);
  max-width: calc(100vw - 56px) !important;
  display: grid;
  grid-template-columns: var(--rp-col-kpi) minmax(0, 1fr) var(--rp-col-chart);
  column-gap: 1rem;
  row-gap: 1.25rem;
  align-items: stretch;
  grid-template-rows: auto 1fr auto auto auto;
}
body.rp-modo-monitor .rp-main-shell > section.space-y-4,
body.rp-modo-monitor .rp-main-shell > section.space-y-4 > #kpi-section-content:not(.hidden),
body.rp-modo-monitor .rp-main-shell > section.space-y-4 .rp-map-chart-grid,
body.rp-modo-monitor .rp-main-shell .rp-map-col {
  display: contents;
}
body.rp-modo-monitor .rp-main-shell .rp-map-panel {
  grid-column: 2/3 !important;
  grid-row: 1/span 2;
}
body.rp-modo-monitor .rp-informe-fila:has(> .rp-side-panel:not(.hidden)) {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-column: 1/-1;
  grid-row: 3;
  padding: 0;
}
body.rp-modo-monitor .rp-informe-fila > .rp-side-panel {
  border: 0;
  background: none;
  box-shadow: none;
  padding: 1rem 1.4rem;
}
body.rp-modo-monitor .rp-informe-fila > .rp-opinion {
  border-left: 1px solid rgba(117, 149, 203, 0.28);
}
body.rp-modo-monitor .rp-main-shell .rp-chart-panel {
  grid-column: 3/4 !important;
  grid-row: 1;
}
body.rp-modo-monitor .rp-main-shell .rp-map-chart-grid .rp-vacancia-card {
  grid-column: 3/4 !important;
  grid-row: 2;
}
body.rp-modo-monitor .rp-main-shell > .rp-kpi-block {
  grid-column: 1/2;
  grid-row: 1/span 2;
  align-self: start;
}
body.rp-modo-monitor .rp-dashboard-theme .rp-main-shell > .rp-kpi-block #kpi-cards-container .kpi-indicator-card > div:nth-child(2) > p:first-child {
  font-size: clamp(1.1rem, 1.15vw, 1.5rem) !important;
}
body.rp-modo-monitor .rp-main-shell > section:not(.intro-grid):not(.space-y-4) {
  grid-column: 1/-1;
  grid-row: 4;
}
body.rp-modo-monitor .rp-main-shell > section.rp-intel-section:not(.intro-grid):not(.space-y-4) {
  grid-row: 5;
}

@media (max-width: 640px) {
  .rp-chart-panel .space-y-3 .grid {
    grid-template-columns: 1fr !important;
  }
  .rp-chart-panel .space-y-3 .grid > * {
    grid-column: auto !important;
  }
}
body .rp-map-panel #map .leaflet-overlay-pane path.leaflet-interactive {
  filter: drop-shadow(2px 3px 3px rgba(55, 65, 81, 0.6));
}

.rp-dashboard-theme .rp-main-shell > section.intro-grid {
  display: none !important;
}

.rp-map-chart-grid {
  grid-template-rows: auto 1fr;
}

.rp-map-chart-grid .rp-vacancia-card {
  order: 1;
  grid-column: 2/3 !important;
}

.rp-map-panel {
  grid-row: 1/span 2;
}

.rp-vacancia-card .rp-vac-bloque {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: auto;
}

.rp-vacancia-card .rp-vac-bloque + .rp-vac-bloque {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(117, 149, 203, 0.2);
}

.rp-vacancia-card .rp-vac-bloque-titulo {
  margin: 0.7rem 0 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8c400;
}

.rp-vacancia-card .rp-vacancia-wrap {
  flex: 1 1 auto;
  min-height: 90px;
  margin-top: 0.6rem;
}

.rp-vacancia-card #vacancia-chart,
.rp-vacancia-card #vacancia-chart-2 {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.rp-main-shell > section.rp-intel-section:not(.intro-grid):not(.space-y-4) {
  order: 5;
}

.rp-main-shell > section.rp-intel-section h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  color: #f8c400 !important;
}

.rp-main-shell > section.rp-intel-section p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(214, 228, 252, 0.72) !important;
  margin: 0;
  max-width: 62rem;
}

.rp-intel-section .rp-contacto {
  width: 100%;
  margin-top: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(117, 149, 203, 0.2);
}

.rp-intel-section .rp-contacto-title {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8c400;
}

.rp-intel-section .rp-contacto-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.rp-intel-section .rp-contacto-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 18rem;
  padding: 0.75rem 1.1rem 0.75rem 0.8rem;
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(117, 149, 203, 0.28);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(9, 25, 55, 0.94), rgba(5, 16, 37, 0.96));
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.rp-intel-section .rp-contacto-card:hover,
.rp-intel-section .rp-contacto-card:focus-visible {
  outline: none;
  border-color: rgb(26, 152, 191);
  box-shadow: 0 0 0 3px rgba(26, 152, 191, 0.35), 0 0 14px 2px rgba(26, 152, 191, 0.7);
}

.rp-intel-section .rp-contacto-card img {
  width: 4rem;
  height: 4rem;
  flex: 0 0 4rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(26, 152, 191, 0.55);
}

.rp-intel-section .rp-contacto-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}

.rp-intel-section .rp-contacto-nombre {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f7fbff;
}

.rp-intel-section .rp-contacto-cargo {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: none;
  color: rgba(248, 196, 0, 0.9);
}

.rp-intel-section .rp-contacto-mail {
  font-size: 0.78rem;
  color: rgba(160, 205, 235, 0.95);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .rp-intel-section .rp-contacto-card {
    min-width: 0;
    width: 100%;
  }
}
.rp-main-shell > section.rp-intel-section p.rp-intel-copy {
  font-size: 0.7rem;
  color: rgba(160, 182, 220, 0.6) !important;
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(117, 149, 203, 0.2);
  width: 100%;
  max-width: 62rem;
}

@media (max-width: 900px) {
  .rp-dashboard-theme .intro-grid > div:nth-child(2) > .space-y-2,
  .rp-dashboard-theme .intro-grid > div:nth-child(2) > .flex.flex-col.gap-3,
  .rp-map-panel .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  .rp-dashboard-theme #kpi-cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .rp-main-shell {
    max-width: 100% !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  .rp-hero {
    padding: 20px 0 14px;
  }
  .rp-dashboard-theme #kpi-cards-container {
    grid-template-columns: 1fr !important;
  }
}
.rp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@keyframes rp-spin {
  to {
    transform: rotate(360deg);
  }
}
#reports-change-markets {
  background: linear-gradient(135deg, rgba(8, 20, 46, 0.95), rgba(6, 16, 38, 0.95));
  border-bottom-color: rgba(103, 133, 183, 0.2) !important;
}
#reports-change-markets input[type=checkbox] {
  cursor: pointer;
}
#reports-change-markets #btn-apply-markets:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .rp-zona .rp-mk-lista {
    display: none;
  }
  .rp-zona .rp-ticker {
    opacity: 1 !important;
  }
  .rp-zona .rp-ticker-track {
    animation-play-state: running !important;
  }
}
body .rp-map-label {
  background: none;
  border: 0;
}
body .rp-map-label span {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0c1a30;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
  pointer-events: none;
}

.rp-side-panel,
body.rp-modo-monitor .rp-informe-fila:has(> .rp-side-panel:not(.hidden)),
body.rp-modo-monitor .rp-graficos {
  padding: 0.95rem;
  border: 1px solid rgba(117, 149, 203, 0.28);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(8, 23, 51, 0.95), rgba(7, 19, 43, 0.95));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 42px rgba(0, 5, 22, 0.38);
  transition: border-color 0.18s ease;
}
.rp-side-panel.hidden,
body.rp-modo-monitor .rp-informe-fila:has(> .rp-side-panel:not(.hidden)).hidden,
body.rp-modo-monitor .rp-graficos.hidden {
  display: none;
}

.rp-informe-fila {
  display: contents;
}

.rp-informe {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.rp-informe-portada {
  position: relative;
  flex: 0 0 min(38%, 280px);
  align-self: center;
  min-height: 6.5rem;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #0b1530;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.rp-informe-portada img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.rp-informe-portada img.hidden {
  display: none;
}

.rp-informe-cargando {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(160, 182, 220, 0.8);
}
.rp-informe-cargando.hidden {
  display: none;
}

.rp-informe-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  justify-content: center;
}

.rp-informe-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8c400;
}

.rp-informe-titulo {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.rp-informe-meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(196, 214, 244, 0.92);
}
.rp-informe-meta:empty {
  display: none;
}

.rp-informe-texto {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(214, 228, 252, 0.72);
}

.rp-informe-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin-top: 0.4rem;
}

.rp-informe-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #f8c400;
  background: #f8c400;
  color: #0c1a30;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.rp-informe-btn:hover {
  border-color: rgb(26, 152, 191);
  box-shadow: 0 0 0 3px rgba(26, 152, 191, 0.35), 0 0 14px 2px rgba(26, 152, 191, 0.7);
}

.rp-informe-nota {
  font-size: 0.72rem;
  color: rgba(160, 182, 220, 0.85);
}
.rp-informe-nota.hidden {
  display: none;
}

@media (max-width: 640px) {
  .rp-informe {
    flex-direction: column;
  }
  .rp-informe-portada {
    flex: none;
    width: 100%;
  }
}
.rp-opinion {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rp-opinion-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8c400;
}

.rp-opinion-frase {
  position: relative;
  margin: 0.1rem 0 0.2rem;
  padding: 0.1rem 0 0.1rem 1.9rem;
  border-left: 3px solid rgb(26, 152, 191);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
  color: #f2f7ff;
}

.rp-opinion-comilla {
  position: absolute;
  left: 0.45rem;
  top: -0.35rem;
  font-size: 2.6rem;
  line-height: 1;
  color: rgb(26, 152, 191);
  font-family: Georgia, serif;
}

.rp-opinion-autor {
  margin: 0;
  font-size: 0.98rem;
  color: #ffffff;
}

.rp-opinion-cargo {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(196, 214, 244, 0.92);
}

body .rp-dashboard-theme #kpi-section-content > .grid > .rp-map-col,
body .rp-dashboard-theme #kpi-section-content > .grid > .rp-map-col:hover {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.rp-modo-laptop .rp-main-shell,
body.rp-modo-monitor .rp-main-shell {
  --rp-alto-mapa: clamp(380px, calc(100vh - 500px), 760px);
}
body.rp-modo-laptop .rp-main-shell > .rp-kpi-block,
body.rp-modo-monitor .rp-main-shell > .rp-kpi-block {
  max-height: calc(var(--rp-alto-mapa) + 200px);
  overflow-y: scroll;
}
body.rp-modo-laptop .rp-dashboard-theme .rp-main-shell > .rp-kpi-block #kpi-cards-container,
body.rp-modo-monitor .rp-dashboard-theme .rp-main-shell > .rp-kpi-block #kpi-cards-container {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: start;
}

body.rp-modo-laptop .rp-main-shell {
  --rp-col-lado: clamp(360px, 33vw, 470px);
  max-width: calc(100vw - 40px) !important;
  display: grid;
  grid-template-columns: var(--rp-col-lado) minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 1.25rem;
  align-items: stretch;
}
body.rp-modo-laptop .rp-main-shell > section.space-y-4,
body.rp-modo-laptop .rp-main-shell > section.space-y-4 > #kpi-section-content:not(.hidden),
body.rp-modo-laptop .rp-main-shell > section.space-y-4 .rp-map-chart-grid,
body.rp-modo-laptop .rp-main-shell .rp-map-col {
  display: contents;
}
body.rp-modo-laptop .rp-main-shell > .rp-kpi-block {
  grid-column: 1/2;
  grid-row: 1;
  align-self: start;
}
body.rp-modo-laptop .rp-main-shell .rp-map-panel {
  grid-column: 2/3 !important;
  grid-row: 1 !important;
  align-self: start;
}
body.rp-modo-laptop .rp-dashboard-theme .rp-main-shell > .rp-kpi-block #kpi-cards-container .kpi-indicator-card > div:nth-child(2) > p:first-child {
  font-size: clamp(1.05rem, 1.3vw, 1.4rem) !important;
}
body.rp-modo-laptop .rp-main-shell .rp-chart-panel {
  grid-column: 1/2 !important;
  grid-row: 2;
  order: 0;
}
body.rp-modo-laptop .rp-main-shell .rp-map-chart-grid .rp-vacancia-card {
  grid-column: 2/3 !important;
  grid-row: 2;
}
body.rp-modo-laptop .rp-chart-panel .space-y-3 .grid {
  grid-template-columns: 1fr !important;
}
body.rp-modo-laptop .rp-chart-panel .space-y-3 .grid > * {
  grid-column: auto !important;
}
body.rp-modo-laptop .rp-main-shell .rp-opinion {
  grid-column: 1/2;
  grid-row: 3;
}
body.rp-modo-laptop .rp-main-shell .rp-informe {
  grid-column: 2/3;
  grid-row: 3;
}
body.rp-modo-laptop .rp-main-shell > section:not(.intro-grid):not(.space-y-4) {
  grid-column: 1/-1;
  grid-row: 4;
}
body.rp-modo-laptop .rp-main-shell > section.rp-intel-section:not(.intro-grid):not(.space-y-4) {
  grid-row: 5;
}

body .leaflet-container .leaflet-interactive,
body .leaflet-container .leaflet-interactive:focus,
body .leaflet-container .leaflet-interactive:focus-visible,
body .leaflet-container path:focus,
body .leaflet-container svg:focus {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.rp-graficos {
  display: contents;
}

body.rp-modo-monitor .rp-main-shell .rp-graficos {
  display: flex;
  flex-direction: column;
  grid-column: 3/4;
  grid-row: 1/span 2;
  align-self: start;
  min-width: 0;
  max-height: calc(var(--rp-alto-mapa) + 200px);
  overflow-y: scroll;
  padding: 0.95rem 0.5rem 0.95rem 0.95rem;
}
body.rp-modo-monitor .rp-dashboard-theme #kpi-section-content#kpi-section-content > .grid > .rp-graficos > div,
body.rp-modo-monitor .rp-dashboard-theme #kpi-section-content#kpi-section-content > .grid > .rp-graficos > div:hover {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  grid-column: auto !important;
  padding: 0 0.6rem 1rem 0 !important;
}
body.rp-modo-monitor .rp-dashboard-theme #kpi-section-content#kpi-section-content > .grid > .rp-graficos > .rp-chart-panel {
  border-top: 1px solid rgba(117, 149, 203, 0.28) !important;
  padding: 1rem 0.6rem 0.4rem 0 !important;
}

.rp-main-shell > .rp-kpi-block::-webkit-scrollbar,
.rp-main-shell .rp-graficos::-webkit-scrollbar {
  width: 10px;
}
.rp-main-shell > .rp-kpi-block::-webkit-scrollbar-track,
.rp-main-shell .rp-graficos::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin: 8px 0;
}
.rp-main-shell > .rp-kpi-block::-webkit-scrollbar-thumb,
.rp-main-shell .rp-graficos::-webkit-scrollbar-thumb {
  background: rgba(117, 149, 203, 0.75);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.rp-main-shell > .rp-kpi-block::-webkit-scrollbar-thumb:hover,
.rp-main-shell .rp-graficos::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 190, 235, 0.95);
  background-clip: padding-box;
}
@supports (-moz-appearance: none) {
  .rp-main-shell > .rp-kpi-block,
  .rp-main-shell .rp-graficos {
    scrollbar-width: auto;
    scrollbar-color: rgba(117, 149, 203, 0.75) rgba(255, 255, 255, 0.06);
  }
}
