/**
 * Estilos Principales - Pronóstico del Tiempo y Radar en Directo
 * Fijate Tools - Suite Clima & Meteorología
 * Tipografía estándar unificada: Inter & JetBrains Mono
 */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg-app: #0b0f17;
  --bg-card: rgba(18, 24, 38, 0.78);
  --bg-card-solid: #121826;
  --bg-card-hover: rgba(28, 38, 58, 0.88);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-focus: #ff8507;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-color: #ff8507;
  --accent-hover: #e07404;
  --accent-glow: rgba(255, 133, 7, 0.35);

  --color-sun: #f59e0b;
  --color-rain: #38bdf8;
  --color-snow: #e0f2fe;
  --color-storm: #eab308;
  --color-wind: #10b981;
  --color-danger: #ef4444;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
  --bg-app: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-solid: #ffffff;
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --border-card: rgba(0, 0, 0, 0.08);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --shadow-card: 0 10px 20px -5px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   CANVAS DE FONDO DINÁMICO ATMOSFÉRICO
   ============================================================ */
.sky-canvas-wrapper {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85;
}

#sky-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   MAQUETACIÓN Y CONTENEDOR PRINCIPAL
   ============================================================ */
.main-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.tool-with-sidebar {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.tool-main-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool-ad-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 84px;
}

@media (max-width: 1240px) {
  .tool-with-sidebar {
    flex-direction: column;
  }
  .tool-ad-sidebar {
    width: 100%;
    position: static;
    margin-top: 10px;
  }
}

/* ============================================================
   BARRA SUPERIOR DE BÚSQUEDA Y ACCIONES RÁPIDAS
   ============================================================ */
.weather-search-bar-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-group {
  position: relative;
  flex: 1 1 280px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-dropdown.is-open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-card);
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-card-hover);
}

.search-item-flag {
  font-size: 20px;
}

.search-item-info {
  flex: 1;
}

.search-item-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-sans);
}

.search-item-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.search-item-elev {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.search-item-empty,
.search-item-loading {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.search-actions-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-weather-action {
  height: 46px;
  padding: 0 16px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-weather-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.btn-weather-action.is-loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Barra de Chips de Favoritos */
.favorites-chips-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.fav-chip {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.fav-chip:hover {
  color: var(--text-main);
  border-color: var(--accent-color);
}

.fav-chip.is-active {
  background: var(--accent-color);
  color: #0b0f17 !important;
  border-color: var(--accent-color);
  font-weight: 700;
}

/* ============================================================
   TARJETA HERO CLIMÁTICA PRINCIPAL
   ============================================================ */
.weather-hero-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.weather-hero-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 133, 7, 0.15) 0%, rgba(255, 133, 7, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.hero-city-title {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-city-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-sans);
}

.hero-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-hero-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-hero-icon:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(255, 133, 7, 0.1);
}

.btn-hero-icon.is-favorited {
  color: var(--accent-color);
}

.hero-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-temp-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hero-temp-number {
  font-family: var(--font-sans);
  font-size: 80px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 0.9;
  letter-spacing: -2px;
}

.hero-temp-degree {
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 600;
  color: var(--accent-color);
}

.hero-weather-icon-box {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-condition-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 8px;
  font-family: var(--font-sans);
}

.hero-sub-details {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
}

.hero-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

/* ============================================================
   SECCIÓN DE PRONÓSTICO HORARIO
   ============================================================ */
.section-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-pill-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.btn-pill-tab {
  padding: 4px 12px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pill-tab:hover {
  color: var(--text-main);
}

.btn-pill-tab.is-active {
  background: var(--accent-color);
  color: #0b0f17 !important;
  font-weight: 700;
}

/* Gráfico SVG Horario */
.hourly-chart-container {
  width: 100%;
  height: 180px;
  margin-bottom: 16px;
}

.hourly-chart-container svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  font-family: var(--font-sans);
}

/* Carrusel de Tarjetas Horarias */
.hourly-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-card) transparent;
}

.hourly-item {
  flex: 0 0 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  font-family: var(--font-sans);
}

.hourly-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
}

.hourly-item.is-current {
  border-color: var(--accent-color);
  background: rgba(255, 133, 7, 0.08);
}

.hourly-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hourly-icon {
  margin-bottom: 8px;
}

.hourly-temp {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.hourly-precip-prob {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-rain);
  margin-top: 4px;
}

.hourly-precip-spacer {
  height: 17px;
}

.hourly-wind {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* ============================================================
   SECCIÓN DE PRONÓSTICO A 7 - 14 DÍAS
   ============================================================ */
.daily-forecast-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daily-item {
  display: grid;
  grid-template-columns: 140px 60px 1fr 220px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: background 0.2s, border-color 0.2s;
  gap: 12px;
  font-family: var(--font-sans);
}

.daily-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.daily-item.is-today {
  border-color: rgba(255, 133, 7, 0.4);
}

.daily-day-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.daily-date-sub {
  font-size: 12px;
  color: var(--text-dim);
  display: block;
}

.daily-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.daily-precip-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-rain);
}

.daily-desc-text {
  font-size: 13px;
  color: var(--text-muted);
}

.daily-rain-mm {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 6px;
  font-family: var(--font-mono);
}

.daily-temp-bar-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.daily-temp-min,
.daily-temp-max {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  width: 40px;
  font-family: var(--font-sans);
}

.daily-temp-min {
  color: var(--text-muted);
  text-align: right;
}

.temp-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.temp-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #38bdf8, #f59e0b, #ef4444);
}

@media (max-width: 768px) {
  .daily-item {
    grid-template-columns: 110px 45px 1fr 140px;
    padding: 10px 12px;
  }
  .daily-desc-col {
    display: none;
  }
}

/* ============================================================
   BENTO GRID DE MÉTRICAS DETALLADAS
   ============================================================ */
.bento-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-sans);
}

.bento-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.bento-card-header svg {
  color: var(--accent-color);
}

.bento-metric-large {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.bento-metric-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Medidor UV */
.uv-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 10px 0 6px;
  overflow: hidden;
}

.uv-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Brújula de Viento */
.compass-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.compass-dial {
  width: 58px;
  height: 58px;
  border: 2px solid var(--border-card);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-label-n {
  position: absolute;
  top: 2px;
  font-size: 9px;
  font-weight: 800;
  color: var(--accent-color);
  font-family: var(--font-sans);
}

.compass-arrow-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Arco Solar */
.sun-arc-box {
  position: relative;
  width: 100%;
  height: 70px;
  margin: 8px 0;
}

.sun-arc-svg {
  width: 100%;
  height: 100%;
}

.sun-times-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-sans);
}

/* ============================================================
   VISOR DE RADAR METEOROLÓGICO LEAFLET
   ============================================================ */
.radar-section-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.radar-map-box {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: #0b0f17;
}

#radar-map-container {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.radar-controls-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(18, 24, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radar-controls-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.radar-playback-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-radar-ctrl {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-radar-ctrl:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-color);
}

.btn-radar-ctrl.is-playing {
  background: var(--accent-color);
  color: #0b0f17 !important;
  font-weight: 700;
}

.radar-timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radar-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.radar-time-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-color);
  min-width: 65px;
}

.radar-badge-live {
  background: #10b98120;
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-sans);
}

.radar-badge-nowcast {
  background: #38bdf820;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-sans);
}

.radar-badge-satellite {
  background: #a855f720;
  color: #a855f7;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-sans);
}

/* Marcador de Punto en Radar */
.pulse-pin-dot {
  width: 14px;
  height: 14px;
  background: #ff8507;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff8507;
}

.pulse-pin-ring {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 28px;
  height: 28px;
  border: 2px solid #ff8507;
  border-radius: 50%;
  animation: pulse-pin 2s ease-out infinite;
}

@keyframes pulse-pin {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ============================================================
   COMPARADOR DE MODELOS METEOROLÓGICOS
   ============================================================ */
.models-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.model-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.2s, border-color 0.2s;
  font-family: var(--font-sans);
}

.model-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.model-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.model-card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.model-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.model-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  font-family: var(--font-sans);
}

.model-metrics-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.model-metric-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.model-metric-label {
  color: var(--text-muted);
}

.model-metric-val {
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-sans);
}

/* ============================================================
   SECCIÓN DE CALIDAD DEL AIRE Y POLEN
   ============================================================ */
.aqi-summary-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.aqi-gauge-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid var(--border-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.aqi-number {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
}

.aqi-label-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.aqi-info-text {
  flex: 1;
}

.aqi-level-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-sans);
}

.aqi-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.aqi-pollutants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.pollutant-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.pollutant-name {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
  font-family: var(--font-sans);
}

.pollutant-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.pollen-levels-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.pollen-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-sans);
}

.pollen-name {
  color: var(--text-muted);
}

.pollen-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ============================================================
   SECCIÓN DIDÁCTICA Y FAQ PARA SEO
   ============================================================ */
.didactic-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  margin-top: 20px;
  font-family: var(--font-sans);
}

.didactic-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.didactic-lead {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.faq-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
}

.faq-question {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.faq-answer {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   MODAL NATIVO DE INFORMACIÓN
   ============================================================ */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.app-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.app-modal-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-sans);
}

.app-modal-backdrop.is-open .app-modal-card {
  transform: scale(1);
}

.app-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-card);
}

.app-modal-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.app-modal-body {
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.app-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: flex-end;
}
