/* Final visual pass for the public calculator and map pages. */
:root {
  --placid-ink: #111827;
  --placid-muted: #667085;
  --placid-line: rgba(148, 163, 184, 0.28);
  --placid-surface: rgba(255, 255, 255, 0.9);
  --placid-panel: rgba(255, 255, 255, 0.78);
  --placid-teal: #28bfb0;
  --placid-blue: #2f6fe4;
  --placid-shadow: 0 18px 48px rgba(24, 44, 88, 0.14);
  --placid-shadow-soft: 0 10px 28px rgba(24, 44, 88, 0.1);
}

body.site-modern {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(239, 246, 255, 0.48) 42%, rgba(226, 237, 255, 0.66)),
    linear-gradient(135deg, #f6fbff 0%, #edf7f5 48%, #eef3ff 100%) !important;
  color: var(--placid-ink);
  animation: none !important;
}

body.site-modern .page {
  width: min(100%, 1380px);
  padding: 10px clamp(18px, 4vw, 44px) 14px !important;
  gap: 12px !important;
  justify-content: flex-start !important;
}

body.site-modern .topbar {
  grid-template-columns: minmax(180px, 0.7fr) minmax(360px, 1fr) auto;
  gap: 20px;
  min-height: 86px;
  padding: 14px clamp(22px, 3vw, 36px) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 20px 55px rgba(37, 54, 93, 0.13) !important;
}

body.site-modern .brand-left,
body.site-modern .top-actions {
  min-width: 0;
}

body.site-modern .logo-img {
  width: clamp(150px, 14vw, 190px) !important;
}

body.site-modern .brand-center h1 {
  margin: 0 0 4px !important;
  color: #101828 !important;
  font-size: clamp(24px, 1.78vw, 29px) !important;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0 !important;
}

body.site-modern .brand-center p {
  max-width: 540px;
  margin: 0 auto !important;
  color: var(--placid-muted) !important;
  font-size: 14px !important;
  line-height: 1.35;
}

body.site-modern .top-actions {
  gap: 9px !important;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

body.site-modern .top-actions .pill-btn,
body.site-modern .top-actions .lang-dd__btn,
body.site-modern .top-actions .theme-toggle,
body.site-modern .pill-ghost {
  height: 38px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  background: rgba(248, 251, 255, 0.78) !important;
  color: #182230 !important;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06) !important;
  backdrop-filter: blur(10px);
}

body.site-modern .top-actions .pill-btn {
  padding: 0 14px !important;
  font-size: 14px !important;
}

body.site-modern .top-actions .pill-btn:hover,
body.site-modern .top-actions .lang-dd__btn:hover,
body.site-modern .pill-ghost:hover {
  border-color: rgba(47, 111, 228, 0.55) !important;
  background: #ffffff !important;
  transform: translateY(-1px);
}

body.site-modern .top-actions .pill-btn[aria-current="page"],
body.site-modern .top-actions .pill-btn.is-active {
  background: rgba(47, 111, 228, 0.12) !important;
  border-color: rgba(47, 111, 228, 0.5) !important;
  color: #1d4c9f !important;
}

body.site-modern .container {
  max-width: 1260px;
  margin: 4px auto 0 !important;
  padding: 0 24px !important;
}

body.site-modern .intro-wrapper {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  max-width: 1160px;
  gap: clamp(22px, 2.6vw, 38px) !important;
  padding: clamp(18px, 2vw, 26px) !important;
  border-radius: 22px !important;
  background: var(--placid-panel) !important;
  border: 1px solid var(--placid-line) !important;
  box-shadow: var(--placid-shadow) !important;
}

body.site-modern .intro-left {
  display: grid;
  place-items: center;
}

body.site-modern .intro-left .intro-img,
body.site-modern .intro-wrapper .intro-img {
  max-width: 196px !important;
  margin: 0 !important;
  filter: drop-shadow(0 18px 32px rgba(20, 77, 90, 0.22)) !important;
}

body.site-modern .intro-right {
  width: 100%;
}

body.site-modern .form-card {
  max-width: none !important;
  padding: clamp(18px, 2vw, 24px) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1) !important;
}

body.site-modern .form-card:hover {
  transform: none !important;
}

body.site-modern #calc-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px 18px;
}

body.site-modern .form-card .grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 12px 16px !important;
}

body.site-modern .form-card .grid .field:nth-child(1),
body.site-modern .form-card .grid .field:nth-child(2),
body.site-modern .form-card .grid .field:nth-child(3),
body.site-modern .form-card .grid .field:nth-child(4) {
  grid-column: span 3 !important;
}

body.site-modern .form-card .grid .field:nth-child(5) {
  grid-column: span 2 !important;
}

body.site-modern .form-card .grid .field:nth-child(6) {
  grid-column: span 4 !important;
}

body.site-modern .form-card .grid .field:nth-child(7),
body.site-modern .form-card .grid .field:nth-child(8) {
  grid-column: span 3 !important;
}

body.site-modern .field label {
  margin-bottom: 5px;
  color: #596579;
  font-size: 13px !important;
  font-weight: 700;
}

body.site-modern .field input,
body.site-modern .field select,
body.site-modern .map-search,
body.site-modern .map-select {
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

body.site-modern .field input:focus,
body.site-modern .field select:focus,
body.site-modern .map-search:focus,
body.site-modern .map-select:focus {
  border-color: rgba(40, 191, 176, 0.86) !important;
  box-shadow: 0 0 0 4px rgba(40, 191, 176, 0.16) !important;
}

body.site-modern .field.has-icon input {
  padding-left: 40px !important;
}

body.site-modern .field-icon {
  color: #8b98aa;
}

body.site-modern .primary,
body.site-modern .btn-calculate {
  grid-column: 1;
  min-height: 48px;
  padding: 0 28px !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #28bfb0, #159b91) !important;
  border: 1px solid rgba(21, 155, 145, 0.38) !important;
  box-shadow: 0 16px 32px rgba(40, 191, 176, 0.28) !important;
}

body.site-modern .primary:hover,
body.site-modern .btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(40, 191, 176, 0.34) !important;
}

body.site-modern .privacy-block {
  grid-column: 2;
  margin-top: 0 !important;
  padding: 13px 16px !important;
  border-radius: 18px !important;
  background: rgba(248, 251, 255, 0.86) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

body.site-modern .contact-checkbox {
  align-items: center !important;
  margin: 0 !important;
}

body.site-modern .contact-checkbox input[type="checkbox"] {
  width: 19px;
  height: 19px;
  border-radius: 6px;
}

body.site-modern .intro-text {
  max-width: 760px;
  margin-top: -2px;
  margin-bottom: 0;
  color: #75839a !important;
  font-size: 12px;
  line-height: 1.3;
}

body.site-modern.results-mode .container {
  max-width: 1240px;
  gap: 18px;
}

body.site-modern.results-mode .info-card {
  padding: clamp(22px, 2.5vw, 30px) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 251, 255, 0.72)) !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  box-shadow: var(--placid-shadow) !important;
}

body.site-modern.results-mode .info-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 34px;
}

body.site-modern.results-mode .info-col .label {
  color: #6b778c !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.site-modern.results-mode .info-col .value {
  margin-top: 7px;
  color: #111827 !important;
  font-size: 16px;
}

body.site-modern.results-mode .results-toolbar {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.site-modern.results-mode .results-toolbar::before {
  content: "";
  flex: 1 1 auto;
  min-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0));
}

body.site-modern.results-mode .btn-ghost-lg,
body.site-modern.results-mode .btn-primary-lg,
body.site-modern .actions .btn-primary-lg {
  min-height: 48px;
  border-radius: 13px !important;
  padding: 0 22px !important;
  font-size: 15px !important;
  font-weight: 800;
}

body.site-modern.results-mode .btn-ghost-lg {
  background: rgba(248, 251, 255, 0.88) !important;
  color: #182230 !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

body.site-modern.results-mode .btn-primary-lg,
body.site-modern .actions .btn-primary-lg {
  background: linear-gradient(135deg, #2f6fe4, #2563eb) !important;
  border: 1px solid rgba(37, 99, 235, 0.38) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.25) !important;
}

body.site-modern.results-mode #kpi-section.kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px !important;
}

body.site-modern.results-mode #kpi-section .kpi-card {
  min-height: 104px;
  padding: 22px 24px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
  color: #111827 !important;
}

body.site-modern.results-mode #kpi-section .kpi-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(40, 191, 176, 0.12), rgba(255, 255, 255, 0.84)) !important;
}

body.site-modern.results-mode #kpi-section .kpi-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(47, 111, 228, 0.12), rgba(255, 255, 255, 0.84)) !important;
}

body.site-modern.results-mode #kpi-section .kpi-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.12), rgba(255, 255, 255, 0.84)) !important;
}

body.site-modern.results-mode #kpi-section .kpi-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(240, 247, 255, 0.95) !important;
  box-shadow: 0 12px 26px rgba(47, 111, 228, 0.12) !important;
}

body.site-modern.results-mode #kpi-section .kpi-label {
  color: #8a95a8 !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.08em !important;
}

body.site-modern.results-mode #kpi-section .kpi-value {
  display: block;
  margin-top: 3px;
  color: #101828 !important;
  font-size: clamp(25px, 2.2vw, 31px) !important;
  font-weight: 850 !important;
}

body.site-modern.results-mode .kpi-compare {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 5px;
  font-size: 16px;
  font-weight: 800;
}

body.site-modern.results-mode .kpi-diff {
  border-radius: 999px;
  padding: 4px 8px;
}

body.site-modern.results-mode #chart-section.chart-card {
  padding: 26px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
}

body.site-modern.results-mode #chart-section .card-head {
  margin-bottom: 16px;
}

body.site-modern.results-mode #chart-section .card-head h2 {
  color: #111827;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

body.site-modern.results-mode #chart-section .icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px !important;
  background: rgba(248, 251, 255, 0.92) !important;
  box-shadow: none !important;
}

body.site-modern.results-mode .chart-card .legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: auto;
  max-width: none;
  margin: 0 0 14px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #475467 !important;
  font-size: 13px;
}

body.site-modern.results-mode .chart-card .legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.site-modern.results-mode .chart-card canvas#chart {
  max-height: 500px !important;
}

body.site-modern.results-mode #zona-datos,
body.site-modern.results-mode #informe-section {
  padding: clamp(26px, 3vw, 34px) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1) !important;
}

body.site-modern.results-mode #zona-datos h2,
body.site-modern.results-mode #informe-section h3 {
  margin: 0 0 16px !important;
  color: #111827 !important;
  font-size: clamp(22px, 2vw, 27px) !important;
  line-height: 1.18;
}

body.site-modern.results-mode #zona-resumen {
  max-width: 1060px;
  margin-bottom: 22px !important;
  color: #5f6c80 !important;
  font-size: 16px;
  line-height: 1.65;
}

body.site-modern.results-mode .zona-metricas {
  gap: 14px;
}

body.site-modern.results-mode .metric {
  border-radius: 18px !important;
  padding: 17px 18px !important;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.84), rgba(255, 255, 255, 0.72)) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
}

body.site-modern.results-mode .metric .label {
  color: #77839a !important;
  font-weight: 700;
}

body.site-modern.results-mode .metric .value {
  color: #111827 !important;
  font-size: 19px !important;
}

body.site-modern.results-mode #informe-diagnostico {
  margin: 0 0 30px !important;
  padding: 22px 26px !important;
  border-left: 4px solid var(--placid-blue) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(47, 111, 228, 0.08), rgba(255, 255, 255, 0.52)) !important;
  color: #182230 !important;
  font-size: 15.5px !important;
  line-height: 1.7 !important;
}

body.site-modern.results-mode .report-card h4 {
  margin: 28px 0 14px !important;
  color: #111827 !important;
  font-size: 19px !important;
  letter-spacing: 0 !important;
}

body.site-modern.results-mode .report-card h4::before,
body.site-modern.results-mode #informe-palancas li::before,
body.site-modern.results-mode #informe-recomendaciones li::before {
  box-shadow: none !important;
}

body.site-modern.results-mode .report-card ul {
  display: grid;
  gap: 12px;
  margin-bottom: 6px !important;
}

body.site-modern.results-mode .report-card li {
  margin: 0 !important;
  padding: 17px 18px 17px 58px !important;
  border-radius: 16px !important;
  background: rgba(239, 246, 255, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 8px 20px rgba(47, 111, 228, 0.06) !important;
  color: #182230 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

body.site-modern.results-mode .report-card li:hover {
  transform: none !important;
  border-color: rgba(47, 111, 228, 0.35) !important;
  background: rgba(232, 241, 255, 0.86) !important;
}

body.site-modern.results-mode .actions {
  justify-content: flex-end;
  margin: 4px 0 0 !important;
}

body.site-modern .map-shell,
body.site-modern .charts-shell {
  max-width: 1220px !important;
  width: 100%;
}

body.site-modern .map-shell {
  margin: 8px auto 0 !important;
  padding: 0 20px !important;
}

body.site-modern .adr-explain,
body.site-modern .map-toolbar,
body.site-modern .charts-shell {
  border-radius: 22px !important;
  background: var(--placid-surface) !important;
  border: 1px solid var(--placid-line) !important;
  box-shadow: var(--placid-shadow-soft) !important;
}

body.site-modern .adr-explain {
  align-items: center !important;
  padding: 18px 22px !important;
  margin: 0 0 16px !important;
}

body.site-modern .adr-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 111, 228, 0.16), rgba(40, 191, 176, 0.2)) !important;
  border-color: rgba(47, 111, 228, 0.28) !important;
  box-shadow: none !important;
}

body.site-modern .adr-explain h3 {
  color: #101828;
  font-size: 15px;
}

body.site-modern .adr-explain p {
  max-width: 980px;
  color: #5f6c80 !important;
}

body.site-modern .map-toolbar {
  position: relative;
  z-index: 20;
  display: grid !important;
  grid-template-columns: minmax(190px, 1.4fr) minmax(180px, 1fr) repeat(3, auto);
  gap: 10px !important;
  align-items: center;
  margin: 0 0 12px !important;
  padding: 14px 16px !important;
}

body.site-modern .map-toolbar .pill-ghost {
  border-style: solid !important;
  font-weight: 700;
}

body.site-modern #map {
  height: clamp(540px, 62vh, 720px) !important;
  min-height: 540px;
  border-radius: 24px !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16) !important;
}

body.site-modern .leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16) !important;
}

body.site-modern .leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 32px !important;
  border: 0 !important;
  color: #182230 !important;
}

body.site-modern .leaflet-control .legend,
body.site-modern #map .legend {
  max-width: calc(100vw - 96px);
  border-radius: 999px !important;
  padding: 10px 14px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14) !important;
}

body.site-modern .charts-shell {
  margin: 28px auto 22px !important;
  padding: 24px !important;
}

body.site-modern .kpis {
  gap: 14px !important;
}

body.site-modern .kpi,
body.site-modern .chart-card {
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
}

body.site-modern .kpi {
  min-height: 96px;
  border-radius: 20px !important;
  padding: 18px 20px !important;
}

body.site-modern .kpi .tag {
  color: #667085 !important;
  font-weight: 600;
}

body.site-modern .kpi .val {
  font-size: 25px !important;
}

body.site-modern .chart-card {
  border-radius: 22px !important;
  padding: 20px !important;
}

body.site-modern .chart-head h3 {
  font-size: 17px !important;
}

body.site-modern .site-footer {
  margin-top: 14px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 -12px 38px rgba(15, 23, 42, 0.08) !important;
}

body.site-modern .footer-contact {
  gap: 16px !important;
}

body.site-modern .footer-item {
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
}

body.site-modern .footer-link {
  color: #153f8f !important;
}

body.site-modern.site-modern--dark {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 30, 55, 0.96)),
    linear-gradient(135deg, #101828 0%, #12323f 52%, #172554 100%) !important;
  color: #eef4ff;
}

body.site-modern.site-modern--dark .topbar,
body.site-modern.site-modern--dark .form-card,
body.site-modern.site-modern--dark .intro-wrapper,
body.site-modern.site-modern--dark .adr-explain,
body.site-modern.site-modern--dark .map-toolbar,
body.site-modern.site-modern--dark .charts-shell,
body.site-modern.site-modern--dark .chart-card,
body.site-modern.site-modern--dark .kpi,
body.site-modern.site-modern--dark .site-footer,
body.site-modern.site-modern--dark .footer-item {
  background: rgba(15, 23, 42, 0.78) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #eef4ff !important;
}

body.site-modern.site-modern--dark .brand-center h1,
body.site-modern.site-modern--dark .adr-explain h3,
body.site-modern.site-modern--dark .kpi .val,
body.site-modern.site-modern--dark .chart-head h3 {
  color: #f8fbff !important;
}

body.site-modern.site-modern--dark .brand-center p,
body.site-modern.site-modern--dark .adr-explain p,
body.site-modern.site-modern--dark .field label,
body.site-modern.site-modern--dark .kpi .tag,
body.site-modern.site-modern--dark .kpi .sub,
body.site-modern.site-modern--dark .intro-text {
  color: rgba(226, 232, 240, 0.75) !important;
}

body.site-modern.site-modern--dark .field input,
body.site-modern.site-modern--dark .field select,
body.site-modern.site-modern--dark .map-search,
body.site-modern.site-modern--dark .map-select {
  background-color: rgba(15, 23, 42, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: #f8fbff !important;
}

body.site-modern.site-modern--dark .top-actions .pill-btn,
body.site-modern.site-modern--dark .top-actions .lang-dd__btn,
body.site-modern.site-modern--dark .top-actions .theme-toggle,
body.site-modern.site-modern--dark .pill-ghost {
  background: rgba(30, 41, 59, 0.78) !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #eef4ff !important;
}

body.site-modern.site-modern--dark.results-mode .info-card,
body.site-modern.site-modern--dark.results-mode #kpi-section .kpi-card,
body.site-modern.site-modern--dark.results-mode #chart-section.chart-card,
body.site-modern.site-modern--dark.results-mode #zona-datos,
body.site-modern.site-modern--dark.results-mode #informe-section {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28) !important;
  color: #eef4ff !important;
}

body.site-modern.site-modern--dark.results-mode .info-col .value,
body.site-modern.site-modern--dark.results-mode #kpi-section .kpi-value,
body.site-modern.site-modern--dark.results-mode #chart-section .card-head h2,
body.site-modern.site-modern--dark.results-mode #zona-datos h2,
body.site-modern.site-modern--dark.results-mode #informe-section h3,
body.site-modern.site-modern--dark.results-mode .metric .value,
body.site-modern.site-modern--dark.results-mode .report-card h4 {
  color: #f8fbff !important;
}

body.site-modern.site-modern--dark.results-mode .info-col .label,
body.site-modern.site-modern--dark.results-mode #kpi-section .kpi-label,
body.site-modern.site-modern--dark.results-mode .chart-card .legend,
body.site-modern.site-modern--dark.results-mode #zona-resumen,
body.site-modern.site-modern--dark.results-mode .metric .label {
  color: rgba(226, 232, 240, 0.72) !important;
}

body.site-modern.site-modern--dark.results-mode .btn-ghost-lg,
body.site-modern.site-modern--dark.results-mode #chart-section .icon-btn {
  background: rgba(30, 41, 59, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #eef4ff !important;
}

body.site-modern.site-modern--dark.results-mode .results-toolbar::before {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.28), rgba(148, 163, 184, 0));
}

body.site-modern.site-modern--dark.results-mode .metric,
body.site-modern.site-modern--dark.results-mode .report-card li,
body.site-modern.site-modern--dark.results-mode #informe-diagnostico {
  background: rgba(30, 41, 59, 0.58) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #eef4ff !important;
}

@media (max-width: 1120px) {
  body.site-modern .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  body.site-modern .brand-center {
    grid-column: auto;
  }

  body.site-modern .top-actions {
    justify-content: center;
  }

  body.site-modern .intro-wrapper {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  body.site-modern .form-card .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site-modern .form-card .grid .field:nth-child(n) {
    grid-column: span 1 !important;
  }

  body.site-modern .form-card .grid .field:nth-child(6) {
    grid-column: span 2 !important;
  }

  body.site-modern .map-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site-modern.results-mode .info-row,
  body.site-modern.results-mode #kpi-section.kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site-modern.results-mode .zona-metricas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.site-modern .page {
    padding: 8px 10px 14px !important;
  }

  body.site-modern .topbar {
    min-height: 0;
    padding: 14px !important;
    gap: 10px !important;
  }

  body.site-modern .brand-center h1 {
    font-size: 18px !important;
    line-height: 1.18;
  }

  body.site-modern .brand-center p {
    font-size: 12px !important;
  }

  body.site-modern .top-actions {
    gap: 7px !important;
  }

  body.site-modern .container,
  body.site-modern .map-shell,
  body.site-modern .charts-shell {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.site-modern .intro-wrapper {
    display: block;
    padding: 12px !important;
  }

  body.site-modern .form-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  body.site-modern #calc-form {
    display: block;
  }

  body.site-modern .form-card .grid {
    gap: 12px !important;
  }

  body.site-modern .privacy-block {
    margin-top: 12px !important;
    padding: 14px !important;
  }

  body.site-modern .adr-explain {
    align-items: flex-start !important;
    padding: 16px !important;
  }

  body.site-modern .map-toolbar {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  body.site-modern #map {
    height: 68svh !important;
    min-height: 430px;
    border-radius: 18px !important;
  }

  body.site-modern .legend {
    border-radius: 16px !important;
    max-width: calc(100vw - 38px);
  }

  body.site-modern .charts-shell {
    padding: 14px !important;
  }

  body.site-modern .kpis {
    grid-template-columns: 1fr 1fr !important;
  }

  body.site-modern.results-mode .info-card {
    padding: 18px !important;
  }

  body.site-modern.results-mode .info-row,
  body.site-modern.results-mode #kpi-section.kpis,
  body.site-modern.results-mode .zona-metricas {
    grid-template-columns: 1fr !important;
  }

  body.site-modern.results-mode .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.site-modern.results-mode .results-toolbar::before {
    display: none;
  }

  body.site-modern.results-mode .btn-ghost-lg,
  body.site-modern.results-mode .btn-primary-lg,
  body.site-modern .actions .btn-primary-lg {
    width: 100%;
  }

  body.site-modern.results-mode #chart-section.chart-card,
  body.site-modern.results-mode #zona-datos,
  body.site-modern.results-mode #informe-section {
    padding: 18px !important;
  }

  body.site-modern.results-mode .report-card li {
    padding: 15px 15px 15px 52px !important;
  }
}

@media (max-width: 520px) {
  body.site-modern .logo-img {
    width: 140px !important;
  }

  body.site-modern .top-actions .pill-btn span {
    display: none;
  }

  body.site-modern .top-actions .pill-btn {
    width: 38px;
    padding: 0 !important;
    justify-content: center;
  }

  body.site-modern .form-card .grid,
  body.site-modern .kpis {
    grid-template-columns: 1fr !important;
  }

  body.site-modern .form-card .grid .field:nth-child(n) {
    grid-column: 1 / -1 !important;
  }

  body.site-modern .primary,
  body.site-modern .btn-calculate {
    width: 100%;
  }

  body.site-modern .contact-checkbox {
    align-items: flex-start !important;
  }
}
