/* web/app/foro/foro.css */
/* Foro Bloomberg Inmobiliario - InmoPredict Foro Inmo */

/* ==========================================
   VARIABLES Y COLORES - TEMA AZUL MARINO ELEGANTE
   ========================================== */

#foroSection {
  /* Backgrounds - Azul Marino Profundo */
  --foro-bg-dark: #0a1628;
  --foro-bg-secondary: #0f1f3a;
  --foro-bg-card: #132642;
  
  /* Colores Primarios */
  --foro-primary: #10b981;
  --foro-secondary: #3b82f6;
  --foro-accent: #f59e0b;
  
  /* Text */
  --foro-text: #e5e7eb;
  --foro-text-muted: #94a3b8;
  
  /* Borders */
  --foro-border: rgba(59, 130, 246, 0.2);
  
  /* Status Colors */
  --foro-success: #10b981;
  --foro-warning: #f59e0b;
  --foro-danger: #ef4444;
  
  /* Gradients */
  --foro-gradient-primary: linear-gradient(135deg, #0f1f3a 0%, #0a1628 100%);
  --foro-gradient-accent: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
}

/* ==========================================
   SECTION PRINCIPAL (igual que InverSim)
   ========================================== */

.foro-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height para móviles */
  z-index: 9999;
  background: var(--foro-bg-dark);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

.foro-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

/* ==========================================
   HEADER DEL FORO
   ========================================== */

.foro-header {
  background: var(--foro-bg-secondary);
  border-bottom: 1px solid var(--foro-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.foro-header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.foro-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--foro-border);
  border-radius: 8px;
  color: var(--foro-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.foro-back-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--foro-primary);
}

.foro-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--foro-text);
  margin: 0;
}

.foro-title span {
  color: var(--foro-primary);
}

.foro-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================
   SENTIMIENTO DE MERCADO (Top Bar)
   ========================================== */

.foro-sentiment {
  background: linear-gradient(135deg, #0f1f3a 0%, #132642 100%);
  padding: 12px 24px;
  border-bottom: 1px solid var(--foro-border);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.foro-sentiment__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.foro-sentiment__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--foro-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foro-sentiment__value {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.foro-sentiment__value.bullish {
  color: var(--foro-success);
}

.foro-sentiment__value.bearish {
  color: var(--foro-danger);
}

.foro-sentiment__bar {
  position: relative;
  height: 8px;
  background: linear-gradient(to right, #ef4444, #f59e0b, #10b981);
  border-radius: 4px;
  overflow: hidden;
}

/* ==========================================
   SENTIMIENTO DE MERCADO - ESTILO PROPSPHERE
   ========================================== */

.foro-sentiment {
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  padding: 16px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
}

.foro-sentiment__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.foro-sentiment__title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foro-sentiment__icon {
  color: rgba(16, 185, 129, 0.8);
}

.foro-sentiment__value {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.foro-sentiment__value.bullish {
  color: #10b981;
}

.foro-sentiment__value.bearish {
  color: #ef4444;
}

.foro-sentiment__bar-wrapper {
  position: relative;
}

.foro-sentiment__bar {
  position: relative;
  height: 6px;
  background: linear-gradient(to right, 
    #ef4444 0%,
    #f59e0b 50%,
    #10b981 100%
  );
  border-radius: 3px;
  overflow: visible;
  margin-bottom: 8px;
}

.foro-sentiment__indicator {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid rgba(10, 15, 20, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
              0 0 0 3px rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.foro-sentiment__labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.foro-sentiment__label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.foro-sentiment__label:first-child {
  text-align: left;
}

.foro-sentiment__label:nth-child(2) {
  text-align: center;
}

.foro-sentiment__label:last-child {
  text-align: right;
}

/* ==========================================
   LAYOUT PRINCIPAL (Sidebar + Main)
   ========================================== */

.foro-main {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  height: calc(100vh - 140px); /* Altura específica */
}

.foro-sidebar {
  width: 240px;
  background: var(--foro-bg-secondary);
  border-right: 1px solid var(--foro-border);
  padding: 16px 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

.foro-sidebar__item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--foro-text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.foro-sidebar__item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--foro-text);
}

.foro-sidebar__item.active {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--foro-primary);
  color: var(--foro-primary);
}

.foro-sidebar__icon {
  font-size: 18px;
}

.foro-content {
  flex: 1;
  overflow-y: scroll !important;
  overflow-x: hidden;
  padding: 24px;
  background: var(--foro-bg-dark);
  position: relative;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 140px); /* Header + Sentiment aprox */
}

/* Asegurar que el contenido interno tenga altura suficiente */
.foro-content > * {
  min-height: fit-content;
}

/* Scroll personalizado para webkit (Chrome, Safari, Edge) */
.foro-content::-webkit-scrollbar {
  width: 10px;
  display: block !important;
}

.foro-content::-webkit-scrollbar-track {
  background: var(--foro-bg-secondary);
  border-radius: 5px;
}

.foro-content::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.5);
  border-radius: 5px;
  border: 2px solid var(--foro-bg-dark);
}

.foro-content::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.7);
}

.foro-sidebar::-webkit-scrollbar {
  width: 6px;
}

.foro-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.foro-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.foro-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   CARDS Y MÉTRICAS
   ========================================== */

.foro-card {
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.foro-card:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.foro-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.foro-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--foro-text);
  margin: 0;
}

.foro-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.foro-metric {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid var(--foro-border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.foro-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.foro-metric__icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.foro-metric__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--foro-text);
  margin-bottom: 4px;
}

.foro-metric__label {
  font-size: 12px;
  color: var(--foro-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.foro-metric__change {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.foro-metric__change.positive {
  color: var(--foro-success);
}

.foro-metric__change.negative {
  color: var(--foro-danger);
}

/* ==========================================
   FEED DE NOTICIAS
   ========================================== */

.foro-news-item {
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.foro-news-item:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.foro-news-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.foro-news-item__category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--foro-primary);
  letter-spacing: 0.5px;
}

.foro-news-item__time {
  font-size: 12px;
  color: var(--foro-text-muted);
}

.foro-news-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--foro-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.foro-news-item__summary {
  font-size: 14px;
  color: var(--foro-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.foro-news-item__footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foro-news-item__impact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.foro-news-item__impact.high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--foro-danger);
}

.foro-news-item__impact.medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--foro-warning);
}

.foro-news-item__impact.low {
  background: rgba(16, 185, 129, 0.1);
  color: var(--foro-success);
}

/* ==========================================
   BOTONES
   ========================================== */

.foro-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.foro-btn-primary {
  background: var(--foro-primary);
  color: white;
}

.foro-btn-primary:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.foro-btn-secondary {
  background: transparent;
  color: var(--foro-text);
  border: 1px solid var(--foro-border);
}

.foro-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--foro-primary);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
  .foro-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .foro-sidebar {
    position: fixed;
    left: -240px;
    height: 100%;
    z-index: 200;
    transition: left 0.3s;
  }
  
  .foro-sidebar.open {
    left: 0;
  }
  
  .foro-content {
    padding: 16px;
  }
  
  .foro-metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .foro-header {
    padding: 12px 16px;
  }
}

/* ==========================================
   RESUMEN IA (DEEPSEEK)
   ========================================== */

.foro-ai-summary {
  margin-top: 16px;
  border-top: 1px solid var(--foro-border);
  padding-top: 16px;
  animation: slideDown 0.3s ease;
}

.foro-ai-summary__content {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.foro-ai-summary__loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--foro-text-muted);
  font-size: 14px;
  padding: 12px 0;
}

.foro-ai-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.foro-ai-summary__badge {
  background: var(--foro-primary);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.foro-ai-summary__model {
  font-size: 11px;
  color: var(--foro-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.foro-ai-summary__analysis {
  animation: fadeInUp 0.3s ease;
}

.foro-ai-summary__section {
  margin-bottom: 16px;
}

.foro-ai-summary__section:last-child {
  margin-bottom: 0;
}

.foro-ai-summary__section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--foro-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.foro-ai-summary__section-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--foro-text);
  margin: 0;
}

.foro-ai-summary__error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
}

.foro-ai-summary__error .error-icon {
  font-size: 24px;
}

.foro-ai-summary__error .error-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--foro-danger);
  margin: 0 0 4px 0;
}

.foro-ai-summary__error .error-message {
  font-size: 13px;
  color: var(--foro-text-muted);
  margin: 0;
}

/* Animaciones */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   DEALS ACTIVOS
   ========================================== */

.foro-deals-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.foro-filter-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--foro-border);
  border-radius: 8px;
  color: var(--foro-text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.foro-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--foro-primary);
}

.foro-filter-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--foro-primary);
  color: var(--foro-primary);
}

.foro-sort-select {
  padding: 8px 12px;
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 6px;
  color: var(--foro-text);
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.foro-sort-select:hover {
  border-color: var(--foro-primary);
}

.foro-deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.foro-deal-card {
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.foro-deal-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
}

.foro-deal-card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
}

.foro-deal-card__score {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.foro-deal-card__score .score-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.foro-deal-card__score .score-label {
  display: block;
  font-size: 10px;
  color: white;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.deal-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.deal-badge--hot {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.deal-badge--undervalued {
  background: rgba(16, 185, 129, 0.9);
  color: white;
  bottom: auto;
  top: 12px;
  left: 12px;
}

.deal-badge--cashflow {
  background: rgba(245, 158, 11, 0.9);
  color: white;
  bottom: 12px;
  left: auto;
  right: 12px;
}

.deal-badge--appreciation {
  background: rgba(59, 130, 246, 0.9);
  color: white;
}

.foro-deal-card__content {
  padding: 20px;
}

.foro-deal-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--foro-text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.foro-deal-card__location {
  font-size: 14px;
  color: var(--foro-text-muted);
  margin: 0 0 16px 0;
}

.foro-deal-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 16px;
}

.deal-metric {
  text-align: center;
}

.deal-metric__label {
  display: block;
  font-size: 11px;
  color: var(--foro-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.deal-metric__value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--foro-text);
}

.deal-metric__value--success {
  color: var(--foro-success);
}

.foro-deal-card__ai-insight {
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid var(--foro-primary);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.ai-insight-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ai-insight-icon {
  font-size: 16px;
}

.ai-insight-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--foro-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-insight-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--foro-text);
  margin: 0;
}

.foro-deal-card__footer {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.foro-deal-card__time {
  text-align: center;
  font-size: 11px;
  color: var(--foro-text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--foro-border);
}

@media (max-width: 1024px) {
  .foro-deals-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .foro-deals-grid {
    grid-template-columns: 1fr;
  }
  
  .foro-deal-card__image {
    height: 180px;
  }
}

/* ==========================================
   MODAL DE ANÁLISIS IA
   ========================================== */

.foro-analysis-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.foro-analysis-modal.active {
  opacity: 1;
  visibility: visible;
}

.analysis-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.analysis-modal__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.foro-analysis-modal.active .analysis-modal__container {
  transform: translate(-50%, -50%) scale(1);
}

.analysis-modal__container--large {
  max-width: 800px;
}

.analysis-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--foro-border);
  color: var(--foro-text);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analysis-modal__close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Loading State */
.analysis-modal__loading {
  padding: 60px 40px;
  text-align: center;
  color: var(--foro-text);
}

.analysis-modal__spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(16, 185, 129, 0.2);
  border-top-color: var(--foro-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

.analysis-modal__loading h3 {
  font-size: 20px;
  margin: 0 0 8px 0;
  color: var(--foro-text);
}

.analysis-modal__loading p {
  font-size: 14px;
  color: var(--foro-text-muted);
  margin: 0;
}

/* Error State */
.analysis-modal__error {
  padding: 60px 40px;
  text-align: center;
}

.analysis-modal__error .error-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.analysis-modal__error h3 {
  font-size: 20px;
  color: var(--foro-danger);
  margin: 0 0 12px 0;
}

.analysis-modal__error p {
  font-size: 14px;
  color: var(--foro-text-muted);
  margin: 0 0 24px 0;
}

/* Header */
.analysis-modal__header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--foro-border);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, transparent 100%);
}

.analysis-modal__header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--foro-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.analysis-modal__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--foro-text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.analysis-modal__location {
  font-size: 14px;
  color: var(--foro-text-muted);
  margin: 0;
}

/* Content */
.analysis-modal__content {
  padding: 24px 32px;
  max-height: 60vh;
  overflow-y: auto;
}

.analysis-modal__content::-webkit-scrollbar {
  width: 8px;
}

.analysis-modal__content::-webkit-scrollbar-track {
  background: var(--foro-bg-dark);
}

.analysis-modal__content::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 4px;
}

.analysis-section {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.analysis-section:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--foro-border);
}

.analysis-section:last-child {
  margin-bottom: 0;
}

.analysis-section--highlight {
  background: rgba(16, 185, 129, 0.05);
  border: 2px solid var(--foro-primary);
}

.analysis-section__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.analysis-section__icon {
  font-size: 20px;
}

.analysis-section__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--foro-text);
  margin: 0;
}

.analysis-section__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--foro-text);
  margin: 0;
}

.analysis-list {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.analysis-list li {
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: var(--foro-text);
  margin-bottom: 8px;
  padding-left: 8px;
}

.analysis-list li:last-child {
  margin-bottom: 0;
}

.analysis-list--success li::before {
  content: '✓';
  position: absolute;
  left: -20px;
  color: var(--foro-success);
  font-weight: 700;
}

.analysis-list--warning li::before {
  content: '⚠';
  position: absolute;
  left: -20px;
  color: var(--foro-warning);
}

.analysis-recommendation {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Métricas */
.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.analysis-metric {
  text-align: center;
}

.analysis-metric__label {
  display: block;
  font-size: 11px;
  color: var(--foro-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.analysis-metric__value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--foro-primary);
}

/* Footer */
.analysis-modal__footer {
  padding: 20px 32px;
  border-top: 1px solid var(--foro-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.analysis-modal__powered {
  padding: 12px 32px;
  text-align: center;
  font-size: 11px;
  color: var(--foro-text-muted);
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--foro-border);
}

/* Responsive */
@media (max-width: 768px) {
  .analysis-modal__container {
    width: 95%;
    max-width: none;
  }
  
  .analysis-modal__header,
  .analysis-modal__content,
  .analysis-modal__footer,
  .analysis-modal__powered {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .analysis-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .analysis-modal__title {
    font-size: 20px;
  }
}

/* ==========================================
   INDICADORES DE SENTIMIENTO
   ========================================== */

.sentiment-indicator {
  margin-bottom: 20px;
}

.sentiment-indicator:last-child {
  margin-bottom: 0;
}

.sentiment-indicator__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--foro-text);
}

.sentiment-indicator__value {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sentiment-indicator__value.positive {
  color: var(--foro-success);
}

.sentiment-indicator__value.negative {
  color: var(--foro-danger);
}

.sentiment-indicator__bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.sentiment-indicator__fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}

.sentiment-indicator__fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ==========================================
   CUSTOM MARKER PARA LEAFLET
   ========================================== */

.custom-marker {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ==========================================
   RESPONSIVE PARA GRÁFICOS
   ========================================== */

@media (max-width: 768px) {
  #priceChart,
  #volumeChart {
    max-height: 200px !important;
  }
  
  #heatMap {
    height: 300px !important;
  }
}

/* ==========================================
   SKELETON LOADERS - ESTADOS DE CARGA ELEGANTES
   ========================================== */

.foro-skeleton {
  background: linear-gradient(
    90deg,
    var(--foro-bg-card) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    var(--foro-bg-card) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.foro-skeleton-card {
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
}

.foro-skeleton-line {
  height: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
}

.foro-skeleton-line--short {
  width: 60%;
}

.foro-skeleton-line--medium {
  width: 80%;
}

.foro-skeleton-line--title {
  height: 20px;
  width: 40%;
  margin-bottom: 16px;
}

.foro-skeleton-image {
  height: 200px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.foro-skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================
   MICRO-INTERACCIONES AVANZADAS
   ========================================== */

/* Efecto de brillo en hover para cards */
.foro-card,
.foro-news-item,
.foro-deal-card,
.foro-analyst-card {
  position: relative;
  overflow: hidden;
}

.foro-card::after,
.foro-news-item::after,
.foro-deal-card::after,
.foro-analyst-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 70%
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s;
  pointer-events: none;
}

.foro-card:hover::after,
.foro-news-item:hover::after,
.foro-deal-card:hover::after,
.foro-analyst-card:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* Botones con efecto de escala */
.foro-btn,
.foro-filter-btn,
.foro-tab-btn {
  position: relative;
  overflow: hidden;
  transform-origin: center;
}

.foro-btn:active,
.foro-filter-btn:active,
.foro-tab-btn:active {
  transform: scale(0.97);
}

/* Efecto ripple mejorado para botones principales */
.foro-btn-primary::before,
.foro-chat-send-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.foro-btn-primary:active::before,
.foro-chat-send-btn:active::before {
  width: 300px;
  height: 300px;
}

/* Animación de entrada para elementos */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Aplicar animaciones a elementos que aparecen */
.foro-news-item {
  animation: slideInUp 0.4s ease-out backwards;
}

.foro-news-item:nth-child(1) { animation-delay: 0.05s; }
.foro-news-item:nth-child(2) { animation-delay: 0.1s; }
.foro-news-item:nth-child(3) { animation-delay: 0.15s; }
.foro-news-item:nth-child(4) { animation-delay: 0.2s; }
.foro-news-item:nth-child(5) { animation-delay: 0.25s; }

.foro-deal-card {
  animation: scaleIn 0.4s ease-out backwards;
}

.foro-deal-card:nth-child(1) { animation-delay: 0.05s; }
.foro-deal-card:nth-child(2) { animation-delay: 0.1s; }
.foro-deal-card:nth-child(3) { animation-delay: 0.15s; }

.foro-metric {
  animation: slideInUp 0.5s ease-out backwards;
}

.foro-metric:nth-child(1) { animation-delay: 0.1s; }
.foro-metric:nth-child(2) { animation-delay: 0.2s; }
.foro-metric:nth-child(3) { animation-delay: 0.3s; }
.foro-metric:nth-child(4) { animation-delay: 0.4s; }

/* ==========================================
   EFECTOS VISUALES MODERNOS
   ========================================== */

/* Glow effect para elementos importantes */
.foro-sentiment__indicator {
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 0 0 3px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(255, 255, 255, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.6),
      0 0 0 3px rgba(255, 255, 255, 0.2),
      0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.6),
      0 0 0 3px rgba(255, 255, 255, 0.3),
      0 0 30px rgba(255, 255, 255, 0.4);
  }
}

/* Efecto de destello en badges "HOT" */
.deal-badge--hot {
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 2px 16px rgba(239, 68, 68, 0.6);
  }
}

/* Transición suave para cambios de color */
.foro-metric__value,
.foro-metric__change,
.foro-sentiment__value {
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Efecto hover para métricas */
.foro-metric:hover .foro-metric__value {
  transform: scale(1.1);
  color: var(--foro-primary);
}

/* ==========================================
   MEJORAS DE RESPONSIVE DESIGN
   ========================================== */

/* Transiciones suaves para cambios de layout */
.foro-main,
.foro-content,
.foro-sidebar {
  transition: transform 0.3s ease, width 0.3s ease;
}

/* Mejor padding en móviles */
@media (max-width: 480px) {
  .foro-header {
    padding: 12px;
  }
  
  .foro-sentiment {
    padding: 12px 16px 16px;
  }
  
  .foro-content {
    padding: 12px;
  }
  
  .foro-card,
  .foro-news-item,
  .foro-deal-card__content {
    padding: 16px;
  }
  
  .foro-metrics-grid {
    gap: 12px;
  }
  
  .foro-metric {
    padding: 12px;
  }
  
  .foro-metric__value {
    font-size: 20px;
  }
}

/* Mejoras para tabletas */
@media (min-width: 769px) and (max-width: 1024px) {
  .foro-sidebar {
    width: 200px;
  }
  
  .foro-deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   ESTADOS DE INTERACCIÓN AVANZADOS
   ========================================== */

/* Focus visible para accesibilidad */
.foro-btn:focus-visible,
.foro-filter-btn:focus-visible,
.foro-tab-btn:focus-visible,
.foro-chat-input:focus-visible {
  outline: 2px solid var(--foro-primary);
  outline-offset: 2px;
}

/* Estado disabled elegante */
.foro-btn:disabled,
.foro-filter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Loading state para botones */
.foro-btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.foro-btn--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ==========================================
   TRANSICIONES DE PÁGINA MEJORADAS
   ========================================== */

.foro-section {
  animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Transición al cambiar de vista en sidebar */
.foro-content > * {
  animation: fadeInContent 0.3s ease-out;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   EFECTOS DE PROGRESO Y LOADING
   ========================================== */

/* Barra de progreso animada */
.analyst-metric__bar-fill,
.sentiment-indicator__fill {
  position: relative;
  overflow: hidden;
}

.analyst-metric__bar-fill::before,
.sentiment-indicator__fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* Loading spinner mejorado */
.foro-loading__spinner,
.analysis-modal__spinner {
  position: relative;
}

.foro-loading__spinner::after,
.analysis-modal__spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.2);
  animation: spin 1.5s linear infinite reverse;
}

/* ==========================================
   TOOLTIPS MEJORADOS (OPCIONAL)
   ========================================== */

[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 12px;
  background: var(--foro-bg-secondary);
  border: 1px solid var(--foro-border);
  border-radius: 6px;
  color: var(--foro-text);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ==========================================
   SMOOTH SCROLLING
   ========================================== */

.foro-content,
.foro-sidebar,
.foro-chat-messages,
.analysis-modal__content {
  scroll-behavior: smooth;
}

/* ==========================================
   WALK SCORE - DISEÑO ELEGANTE
   ========================================== */

/* Contenedor de badges compactos */
.walkscore-badges {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.walkscore-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.walkscore-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.walkscore-badge:hover::before {
  left: 100%;
}

.walkscore-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Walk Score - Verde Esmeralda */
.walkscore-badge--walk {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

/* Transit Score - Azul Zafiro */
.walkscore-badge--transit {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

/* Bike Score - Púrpura Amatista */
.walkscore-badge--bike {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(139, 92, 246, 0.3);
  color: #8b5cf6;
}

.walkscore-badge__icon {
  font-size: 14px;
  line-height: 1;
}

.walkscore-badge__score {
  font-size: 14px;
  font-weight: 700;
}

.walkscore-badge__label {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* Versión detallada con barras de progreso */
.walkscore-detailed {
  background: rgba(10, 15, 20, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.walkscore-detailed__title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.walkscore-detailed__item {
  margin-bottom: 16px;
}

.walkscore-detailed__item:last-child {
  margin-bottom: 0;
}

.walkscore-detailed__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.walkscore-detailed__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--foro-text);
}

.walkscore-detailed__value {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.walkscore-detailed__description {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 4px;
}

/* Barra de progreso elegante */
.walkscore-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.walkscore-progress-fill {
  height: 100%;
  border-radius: 4px;
  position: relative;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.walkscore-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: progress-shine 2s infinite;
}

.walkscore-progress-fill--walk {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.walkscore-progress-fill--transit {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.walkscore-progress-fill--bike {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Colores de texto por score */
.walkscore-detailed__value--walk {
  color: #10b981;
}

.walkscore-detailed__value--transit {
  color: #3b82f6;
}

.walkscore-detailed__value--bike {
  color: #8b5cf6;
}

/* Loading state para Walk Score */
.walkscore-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  color: var(--foro-text-muted);
  font-size: 13px;
}

.walkscore-loading__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Badge mock (para desarrollo) */
.walkscore-badge--mock {
  opacity: 0.7;
}

.walkscore-badge--mock::after {
  content: 'DEMO';
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f59e0b;
  color: white;
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .walkscore-badges {
    gap: 6px;
  }
  
  .walkscore-badge {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .walkscore-badge__score {
    font-size: 13px;
  }
  
  .walkscore-detailed {
    padding: 16px;
  }
}

/* ==========================================
   PERFORMANCE: WILL-CHANGE HINTS
   ========================================== */

.foro-card:hover,
.foro-news-item:hover,
.foro-deal-card:hover,
.foro-analyst-card:hover,
.foro-metric:hover {
  will-change: transform, box-shadow;
}

.foro-sentiment__indicator {
  will-change: left;
}

/* ==========================================
   LOADING STATE
   ========================================== */

.foro-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--foro-text-muted);
}

.foro-loading__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(16, 185, 129, 0.2);
  border-top-color: var(--foro-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

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

/* ==========================================
   CHAT - SALAS Y MENSAJES
   ========================================== */

.foro-chat-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.foro-chat-room-card {
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.foro-chat-room-card:hover {
  border-color: var(--foro-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.foro-chat-room-card__header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.foro-chat-room-card__icon {
  font-size: 32px;
  line-height: 1;
}

.foro-chat-room-card__info {
  flex: 1;
}

.foro-chat-room-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--foro-text);
  margin: 0 0 6px 0;
}

.foro-chat-room-card__description {
  font-size: 13px;
  color: var(--foro-text-muted);
  margin: 0;
}

.foro-chat-room-card__stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--foro-border);
}

.foro-chat-room-card__stat {
  font-size: 12px;
  color: var(--foro-text-muted);
}

/* Chat Header */
.foro-chat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--foro-border);
}

.foro-chat-back-btn {
  background: transparent;
  border: 1px solid var(--foro-border);
  color: var(--foro-text);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.foro-chat-back-btn:hover {
  border-color: var(--foro-primary);
  color: var(--foro-primary);
}

.foro-chat-header__info {
  flex: 1;
}

.foro-chat-header__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--foro-text);
  margin: 0 0 4px 0;
}

.foro-chat-header__subtitle {
  font-size: 13px;
  color: var(--foro-text-muted);
  margin: 0;
}

/* Messages Container */
.foro-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  min-height: 400px;
  max-height: calc(100vh - 380px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.foro-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.foro-chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.foro-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 3px;
}

/* Message Styles */
.foro-chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: fadeInUp 0.3s ease;
}

.foro-chat-message--system {
  justify-content: center;
  margin: 8px 0;
}

.foro-chat-message--system .foro-chat-message__text {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--foro-text-muted);
}

.foro-chat-message--user {
  flex-direction: row;
}

.foro-chat-message--ai {
  flex-direction: row;
}

.foro-chat-message__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--foro-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.foro-chat-message--ai .foro-chat-message__avatar {
  background: rgba(16, 185, 129, 0.2);
}

.foro-chat-message__ai-badge {
  position: absolute;
  top: -8px;
  left: 0;
  background: var(--foro-primary);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.foro-chat-message__content {
  flex: 1;
  position: relative;
}

.foro-chat-message--ai .foro-chat-message__content {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 12px 16px;
  border-radius: 12px;
  border-top-left-radius: 4px;
}

.foro-chat-message--user .foro-chat-message__content {
  background: var(--foro-bg-secondary);
  padding: 12px 16px;
  border-radius: 12px;
  border-top-right-radius: 4px;
}

.foro-chat-message__author {
  font-size: 12px;
  font-weight: 600;
  color: var(--foro-primary);
  margin-bottom: 4px;
}

.foro-chat-message__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--foro-text);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.foro-chat-message__meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.foro-chat-message__time {
  font-size: 11px;
  color: var(--foro-text-muted);
}

/* Input Container */
.foro-chat-input-container {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--foro-border);
}

.foro-chat-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.foro-chat-input {
  flex: 1;
  background: var(--foro-bg-secondary);
  border: 1px solid var(--foro-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--foro-text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.foro-chat-input:focus {
  outline: none;
  border-color: var(--foro-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.foro-chat-send-btn {
  background: var(--foro-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.foro-chat-send-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.foro-chat-ai-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--foro-text-muted);
  text-align: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   TOP ANALISTAS - RANKING BLOOMBERG-STYLE
   ========================================== */

.foro-analysts-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.foro-analyst-stat-card {
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.foro-analyst-stat-card:hover {
  border-color: var(--foro-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.foro-analyst-stat__icon {
  font-size: 32px;
  line-height: 1;
}

.foro-analyst-stat__content {
  flex: 1;
}

.foro-analyst-stat__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--foro-text);
  margin-bottom: 4px;
}

.foro-analyst-stat__label {
  font-size: 12px;
  color: var(--foro-text-muted);
}

/* Filtros Analistas */
.foro-analysts-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Grid de Analistas */
.foro-analysts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

/* Card de Analista */
.foro-analyst-card {
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.foro-analyst-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--foro-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.foro-analyst-card:hover {
  border-color: var(--foro-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.foro-analyst-card:hover::before {
  opacity: 1;
}

/* Top 3 styling */
.foro-analyst-card.analyst-rank--top-1 {
  border: 2px solid #fbbf24;
  background: linear-gradient(135deg, var(--foro-bg-card) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.foro-analyst-card.analyst-rank--top-2 {
  border: 2px solid #94a3b8;
  background: linear-gradient(135deg, var(--foro-bg-card) 0%, rgba(148, 163, 184, 0.05) 100%);
}

.foro-analyst-card.analyst-rank--top-3 {
  border: 2px solid #fb923c;
  background: linear-gradient(135deg, var(--foro-bg-card) 0%, rgba(251, 146, 60, 0.05) 100%);
}

/* Header del Card */
.foro-analyst-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.foro-analyst-card__rank {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  min-width: 40px;
}

.analyst-rank-medal {
  font-size: 32px;
}

.analyst-rank-number {
  font-size: 18px;
  color: var(--foro-text-muted);
  font-weight: 600;
}

.foro-analyst-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--foro-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 2px solid var(--foro-border);
}

.foro-analyst-card.analyst-rank--top-1 .foro-analyst-card__avatar {
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.3);
}

.foro-analyst-card.analyst-rank--top-2 .foro-analyst-card__avatar {
  border-color: #94a3b8;
  box-shadow: 0 0 16px rgba(148, 163, 184, 0.3);
}

.foro-analyst-card.analyst-rank--top-3 .foro-analyst-card__avatar {
  border-color: #fb923c;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.3);
}

.foro-analyst-card__info {
  flex: 1;
  min-width: 0;
}

.foro-analyst-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--foro-text);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analyst-verified-icon {
  color: var(--foro-primary);
  font-size: 14px;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.foro-analyst-card__specialties {
  font-size: 12px;
  color: var(--foro-text-muted);
  margin: 0;
}

/* Badges */
.foro-analyst-card__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.analyst-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.analyst-badge--verified {
  background: rgba(16, 185, 129, 0.15);
  color: var(--foro-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.analyst-badge--predictor {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.analyst-badge--specialist {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.analyst-badge--trend {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Métricas */
.foro-analyst-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.analyst-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analyst-metric__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analyst-metric__label {
  font-size: 13px;
  color: var(--foro-text-muted);
  font-weight: 500;
}

.analyst-metric__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--foro-text);
}

.analyst-metric__bar {
  height: 6px;
  background: var(--foro-bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.analyst-metric__bar-fill {
  height: 100%;
  background: var(--foro-primary);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Análisis Destacado */
.foro-analyst-card__top-analysis {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.top-analysis-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.top-analysis-icon {
  font-size: 16px;
}

.top-analysis-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--foro-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-analysis-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--foro-text);
  margin: 0;
}

/* Footer del Card */
.foro-analyst-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--foro-border);
}

.analyst-footer-stats {
  display: flex;
  gap: 16px;
}

.analyst-footer-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--foro-text-muted);
}

.analyst-footer-stat__icon {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .foro-analysts-grid {
    grid-template-columns: 1fr;
  }

  .foro-analysts-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   MI BÓVEDA - PROPIEDADES, ALERTAS, HISTORIAL
   ========================================== */

/* Tabs */
.foro-boveda-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--foro-border);
  padding-bottom: 0;
}

.foro-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--foro-text-muted);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
}

.foro-tab-btn:hover {
  color: var(--foro-text);
  background: rgba(16, 185, 129, 0.05);
}

.foro-tab-btn.active {
  color: var(--foro-primary);
  border-bottom-color: var(--foro-primary);
}

.foro-tab-btn__icon {
  font-size: 16px;
}

.foro-tab-btn__count {
  background: var(--foro-bg-secondary);
  color: var(--foro-text-muted);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.foro-tab-btn.active .foro-tab-btn__count {
  background: var(--foro-primary);
  color: white;
}

/* Tab Panels */
.foro-tab-panel {
  display: none;
}

.foro-tab-panel.active {
  display: block;
}

/* Empty State */
.foro-boveda-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--foro-text-muted);
}

.foro-boveda-empty__icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.foro-boveda-empty__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--foro-text);
  margin: 0 0 8px 0;
}

.foro-boveda-empty__text {
  font-size: 14px;
  margin: 0;
}

/* Properties Grid */
.foro-boveda-properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.foro-boveda-property-card {
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.foro-boveda-property-card:hover {
  border-color: var(--foro-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.foro-boveda-property-card__image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.foro-boveda-remove-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foro-boveda-remove-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  transform: scale(1.1);
}

.foro-boveda-property-card__content {
  padding: 20px;
}

.foro-boveda-property-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.foro-boveda-property-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--foro-text);
  margin: 0;
  flex: 1;
}

.foro-boveda-property-card__score {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.foro-boveda-property-card__location {
  font-size: 13px;
  color: var(--foro-text-muted);
  margin: 0 0 16px 0;
}

.foro-boveda-property-card__metrics {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.boveda-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.boveda-metric__label {
  font-size: 11px;
  color: var(--foro-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.boveda-metric__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--foro-text);
}

.foro-boveda-property-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--foro-border);
}

.foro-boveda-property-card__date {
  font-size: 12px;
  color: var(--foro-text-muted);
}

/* Alerts List */
.foro-boveda-alerts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foro-boveda-alert-card {
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}

.foro-boveda-alert-card:hover {
  border-color: var(--foro-primary);
  transform: translateX(4px);
}

.foro-boveda-alert-card--read {
  opacity: 0.7;
}

.foro-boveda-alert-card__icon {
  font-size: 32px;
  flex-shrink: 0;
}

.foro-boveda-alert-card__content {
  flex: 1;
}

.foro-boveda-alert-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.foro-boveda-alert-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--foro-text);
  margin: 0;
}

.foro-boveda-alert-card__badge {
  background: var(--foro-primary);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.foro-boveda-alert-card__text {
  font-size: 14px;
  color: var(--foro-text-muted);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.foro-boveda-alert-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.foro-boveda-alert-card__time {
  font-size: 12px;
  color: var(--foro-text-muted);
}

/* History List */
.foro-boveda-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foro-boveda-history-card {
  background: var(--foro-bg-card);
  border: 1px solid var(--foro-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}

.foro-boveda-history-card:hover {
  border-color: var(--foro-primary);
  transform: translateX(4px);
}

.foro-boveda-history-card__icon {
  font-size: 32px;
  flex-shrink: 0;
}

.foro-boveda-history-card__content {
  flex: 1;
}

.foro-boveda-history-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.foro-boveda-history-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--foro-text);
  margin: 0;
}

.foro-boveda-history-card__type {
  background: rgba(16, 185, 129, 0.1);
  color: var(--foro-primary);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.foro-boveda-history-card__property {
  font-size: 13px;
  color: var(--foro-text-muted);
  margin: 0 0 12px 0;
}

.foro-boveda-history-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.foro-boveda-history-card__date {
  font-size: 12px;
  color: var(--foro-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .foro-boveda-properties-grid {
    grid-template-columns: 1fr;
  }

  .foro-boveda-tabs {
    overflow-x: auto;
  }
}

/* ==========================================
   DATOS DEMOGRÁFICOS - CENSUS BUREAU
   ========================================== */

.demographics-panel {
  background: linear-gradient(135deg, rgba(15, 31, 58, 0.95) 0%, rgba(19, 38, 66, 0.95) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.demographics-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
  opacity: 0.6;
}

.demographics-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.demographics-panel__title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demographics-panel__badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demographics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.demographic-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.demographic-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--stat-color, #10b981), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demographic-stat:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.demographic-stat:hover::before {
  opacity: 1;
}

.demographic-stat--income {
  --stat-color: #10b981;
}

.demographic-stat--population {
  --stat-color: #3b82f6;
}

.demographic-stat--value {
  --stat-color: #f59e0b;
}

.demographic-stat--rent {
  --stat-color: #8b5cf6;
}

.demographic-stat--growth {
  --stat-color: #10b981;
}

.demographic-stat--affordability {
  --stat-color: #ef4444;
}

.demographic-stat__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  font-weight: 500;
}

.demographic-stat__value {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.demographic-stat__value-main {
  font-size: 28px;
}

.demographic-stat__value-suffix {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.demographic-stat__change {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.demographic-stat__change--positive {
  color: #10b981;
}

.demographic-stat__change--negative {
  color: #ef4444;
}

.demographic-stat__change--neutral {
  color: rgba(255, 255, 255, 0.5);
}

/* Gráfico de barras compacto */
.demographic-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.demographic-bar__fill {
  height: 100%;
  background: var(--stat-color, #10b981);
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.demographic-bar__fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Investment Grade Badge */
.investment-grade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
}

.investment-grade--a-plus {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.investment-grade--a {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

.investment-grade--b {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

/* Loading state */
.demographics-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 16px;
}

.demographics-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.demographics-loading__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .demographics-panel {
    padding: 16px;
  }
  
  .demographics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .demographic-stat {
    padding: 12px;
  }
  
  .demographic-stat__value {
    font-size: 20px;
  }
  
  .demographic-stat__value-main {
    font-size: 24px;
  }
}

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

/* ==========================================
   PANEL DE CLIMA - OPENWEATHERMAP
   ========================================== */

.weather-panel {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.weather-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  opacity: 0.6;
}

.weather-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.weather-panel__title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-panel__badge {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.weather-hero__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weather-hero__temp {
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
}

.weather-hero__condition {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: capitalize;
}

.weather-hero__feels {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.weather-hero__icon {
  font-size: 80px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.weather-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.weather-metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.weather-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--metric-color, #3b82f6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.weather-metric:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.weather-metric:hover::before {
  opacity: 1;
}

.weather-metric--sunny { --metric-color: #f59e0b; }
.weather-metric--rain { --metric-color: #3b82f6; }
.weather-metric--wind { --metric-color: #06b6d4; }
.weather-metric--humidity { --metric-color: #8b5cf6; }

.weather-metric__icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: inline-block;
}

.weather-metric__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  font-weight: 500;
}

.weather-metric__value {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.weather-metric__value-suffix {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.weather-metric__description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* Hurricane Risk Alert */
.hurricane-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.02);
}

.hurricane-alert--low {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.hurricane-alert--medium {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.hurricane-alert--high {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.hurricane-alert__icon {
  font-size: 32px;
  line-height: 1;
}

.hurricane-alert__content {
  flex: 1;
}

.hurricane-alert__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.hurricane-alert__description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.hurricane-alert__score {
  font-size: 32px;
  font-weight: 700;
  opacity: 0.3;
}

/* Habitability Score */
.habitability-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
}

.habitability-score__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.habitability-score__value {
  font-size: 48px;
  font-weight: 700;
  color: #10b981;
  line-height: 1;
}

.habitability-score__suffix {
  font-size: 24px;
  color: rgba(16, 185, 129, 0.6);
  margin-left: 4px;
}

.habitability-score__bar {
  flex: 1;
  margin-left: 32px;
  margin-right: 32px;
}

.habitability-score__bar-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.habitability-score__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.habitability-score__bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.habitability-score__description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .weather-panel {
    padding: 16px;
  }
  
  .weather-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .weather-hero__icon {
    font-size: 60px;
    text-align: center;
  }
  
  .weather-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .habitability-score {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .habitability-score__bar {
    margin: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .weather-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PANEL DE SEGURIDAD - CRIME DATA
   ========================================== */

.safety-panel {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.safety-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #10b981, #06b6d4);
  opacity: 0.6;
}

.safety-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.safety-panel__title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.safety-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.safety-hero__score-container {
  text-align: center;
}

.safety-hero__score {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #8b5cf6, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.safety-hero__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.safety-hero__grade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.safety-hero__grade--a {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  border: 2px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.safety-hero__grade--b {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
  border: 2px solid rgba(139, 92, 246, 0.4);
  color: #8b5cf6;
}

.safety-hero__grade--c {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
  border: 2px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

.safety-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.safety-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.safety-stat:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.safety-stat__icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.safety-stat__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  font-weight: 500;
}

.safety-stat__value {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
}

.safety-stat__description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.safety-factors {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.safety-factors__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.safety-factors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.safety-factor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.safety-factor__icon {
  font-size: 20px;
}

.safety-factor__text {
  flex: 1;
}

.safety-factor__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 2px;
}

.safety-factor__value {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.safety-impact {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 20px;
}

.safety-impact__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.safety-impact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.safety-impact-item {
  text-align: center;
}

.safety-impact-item__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.safety-impact-item__value {
  font-size: 20px;
  font-weight: 700;
  color: #10b981;
}

.safety-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.safety-trend--improving {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.safety-trend--stable {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.safety-trend--worsening {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .safety-panel {
    padding: 16px;
  }
  
  .safety-hero {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .safety-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .safety-factors__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .safety-stats {
    grid-template-columns: 1fr;
  }
  
  .safety-impact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   PANEL BANXICO - TASAS E INFLACIÓN MX
   ========================================== */

.banxico-panel {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.banxico-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  opacity: 0.6;
}

.banxico-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.banxico-panel__title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.banxico-rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.banxico-rate-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.banxico-rate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--rate-color, #ef4444);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banxico-rate-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.banxico-rate-card:hover::before {
  opacity: 1;
}

.banxico-rate-card--mortgage { --rate-color: #ef4444; }
.banxico-rate-card--inflation { --rate-color: #f59e0b; }
.banxico-rate-card--exchange { --rate-color: #10b981; }

.banxico-rate-card__icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}

.banxico-rate-card__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  font-weight: 500;
}

.banxico-rate-card__value {
  font-size: 36px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
  margin-bottom: 4px;
}

.banxico-rate-card__suffix {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-left: 4px;
}

.banxico-rate-card__update {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

/* ==========================================
   PANEL IMPLAN - DATOS LOS CABOS
   ========================================== */

.implan-panel {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.implan-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #10b981);
  opacity: 0.6;
}

.implan-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.implan-panel__title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.implan-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.implan-stat-big {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.implan-stat-big:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.implan-stat-big__icon {
  font-size: 32px;
  margin-bottom: 8px;
  line-height: 1;
}

.implan-stat-big__value {
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
  margin-bottom: 4px;
}

.implan-stat-big__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.implan-zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.implan-zone-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.implan-zone-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.implan-zone-card__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.implan-zone-card__stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.implan-zone-stat {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.implan-zone-stat__value {
  font-weight: 600;
  color: #06b6d4;
}

/* Responsive */
@media (max-width: 768px) {
  .banxico-rates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .implan-hero {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .implan-zones-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .banxico-rates-grid {
    grid-template-columns: 1fr;
  }
  
  .implan-hero {
    grid-template-columns: 1fr;
  }
}
