/* ============================================================================
   MODAL ENHANCEMENTS - VERSIÓN VERTICAL COLAPSABLE
   ============================================================================ */

/* ============================================================================
   PANEL VERTICAL (Lado izquierdo del mapa)
   ============================================================================ */

.enhancement-panel-vertical {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 600;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}

/* Estado colapsado */
.enhancement-panel-vertical.collapsed {
  width: 60px;
}

.enhancement-panel-vertical.collapsed .enhancement-panel-content {
  width: 60px;
  opacity: 1;
  pointer-events: auto;
}

.enhancement-panel-vertical.collapsed .enhancement-panel-header {
  padding: 12px 8px;
  justify-content: center;
}

.enhancement-panel-vertical.collapsed .panel-header-text,
.enhancement-panel-vertical.collapsed .panel-header-icon {
  display: none;
}

.enhancement-panel-vertical.collapsed .enhancement-panel-toggle {
  display: flex;
  margin: 0;
}

.enhancement-panel-vertical.collapsed .enhancement-buttons-vertical {
  padding: 4px;
}

.enhancement-panel-vertical.collapsed .enhancement-vertical-button {
  padding: 10px;
  margin-bottom: 4px;
  justify-content: center;
}

.enhancement-panel-vertical.collapsed .btn-label,
.enhancement-panel-vertical.collapsed .btn-arrow {
  display: none;
}

.enhancement-panel-vertical.collapsed .btn-icon {
  font-size: 28px;
}

.enhancement-panel-vertical.collapsed .enhancement-panel-footer {
  display: none;
}

/* Estado expandido */
.enhancement-panel-vertical.expanded {
  width: 280px;
}

.enhancement-panel-vertical.expanded .enhancement-panel-content {
  opacity: 1;
  pointer-events: auto;
  width: 100%;
}

.enhancement-panel-vertical.expanded .panel-header-text,
.enhancement-panel-vertical.expanded .panel-header-icon {
  display: block;
}

.enhancement-panel-vertical.expanded .enhancement-panel-toggle {
  display: flex;
}

.enhancement-panel-vertical.expanded .btn-label,
.enhancement-panel-vertical.expanded .btn-arrow {
  display: inline;
}

.enhancement-panel-vertical.expanded .enhancement-panel-footer {
  display: block;
}

/* Botón de toggle en el header */
.enhancement-panel-toggle {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.enhancement-panel-toggle:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.enhancement-panel-toggle .toggle-icon {
  color: white;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.enhancement-panel-vertical.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.enhancement-panel-vertical.expanded .toggle-icon {
  transform: rotate(0deg);
}

/* Contenido del panel */
.enhancement-panel-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  max-height: calc(100vh - 120px);
  transition: all 0.3s ease;
}

/* Header del panel */
.enhancement-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 2px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 16px 16px 0 0;
}

.panel-header-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-header-icon .material-symbols-outlined {
  color: white;
  font-size: 24px;
}

.panel-header-text {
  flex: 1;
  min-width: 0;
}

.panel-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-subtitle {
  display: block;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  margin-top: 2px;
}

/* Botones verticales */
.enhancement-buttons-vertical {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #f3f4f6;
}

.enhancement-buttons-vertical::-webkit-scrollbar {
  width: 6px;
}

.enhancement-buttons-vertical::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.enhancement-buttons-vertical::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 3px;
}

.enhancement-buttons-vertical::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* Tooltip para botones en estado colapsado */
.enhancement-panel-vertical.collapsed .enhancement-vertical-button {
  position: relative;
}

.enhancement-panel-vertical.collapsed .enhancement-vertical-button::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(31, 41, 55, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.enhancement-panel-vertical.collapsed .enhancement-vertical-button:hover::after {
  opacity: 1;
}

/* Flecha del tooltip */
.enhancement-panel-vertical.collapsed .enhancement-vertical-button::before {
  content: '';
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 6px 6px 0;
  border-color: transparent rgba(31, 41, 55, 0.95) transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.enhancement-panel-vertical.collapsed .enhancement-vertical-button:hover::before {
  opacity: 1;
}

/* Botones individuales */
.enhancement-vertical-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 6px;
  border: 2px solid transparent;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.enhancement-vertical-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--btn-color, #8b5cf6);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.enhancement-vertical-button:hover {
  background: #f9fafb;
  border-color: var(--btn-color, #8b5cf6);
  transform: translateX(4px);
}

.enhancement-vertical-button:hover::before {
  transform: scaleY(1);
}

.enhancement-vertical-button:active {
  transform: translateX(2px);
}

.enhancement-vertical-button .btn-icon {
  font-size: 24px;
  color: var(--btn-color, #8b5cf6);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.enhancement-vertical-button:hover .btn-icon {
  transform: scale(1.1) rotate(5deg);
}

.enhancement-vertical-button .btn-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.enhancement-vertical-button .btn-arrow {
  font-size: 18px;
  color: #9ca3af;
  flex-shrink: 0;
  opacity: 0;
  transition: all 0.2s ease;
}

.enhancement-vertical-button:hover .btn-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Footer del panel */
.enhancement-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
}

.footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.footer-text::before {
  content: '•';
  color: #10b981;
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================================================
   OVERLAY Y MODAL
   ============================================================================ */

.enhancement-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.enhancement-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.enhancement-modal {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.enhancement-modal-overlay.active .enhancement-modal {
  transform: scale(1);
}

/* Header del modal */
.enhancement-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 2px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 20px 20px 0 0;
}

.enhancement-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.enhancement-modal-title .material-symbols-outlined {
  font-size: 32px;
}

.enhancement-modal-title h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.5px;
}

.enhancement-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: #f3f4f6;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.enhancement-modal-close:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.enhancement-modal-close .material-symbols-outlined {
  font-size: 24px;
  color: #6b7280;
}

/* Contenido del modal */
.enhancement-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #f3f4f6;
}

.enhancement-modal-content::-webkit-scrollbar {
  width: 8px;
}

.enhancement-modal-content::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.enhancement-modal-content::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 4px;
}

/* Estados de carga y error */
.modal-loading,
.modal-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.modal-loading .material-symbols-outlined,
.modal-error .material-symbols-outlined {
  font-size: 64px;
  color: #8b5cf6;
  margin-bottom: 16px;
}

.modal-error .material-symbols-outlined {
  color: #ef4444;
}

.modal-loading p,
.modal-error p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.modal-error .error-details {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 8px;
  font-family: monospace;
}

.spinning {
  animation: spin 1s linear infinite;
}

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

/* ============================================================================
   ESTILOS DE CONTENIDO DE MODALES
   ============================================================================ */

/* Panel "Ahora Mismo" */
.now-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.now-panel-main {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 16px;
}

.weather-icon-large {
  font-size: 80px;
  margin-bottom: 16px;
}

.weather-icon-large .material-symbols-outlined {
  font-size: 80px;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

.now-temp-large {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.temp-value {
  font-size: 56px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.temp-unit {
  font-size: 28px;
  font-weight: 500;
  color: #6b7280;
}

.now-feels-like {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.now-condition {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.now-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.now-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.now-stat .material-symbols-outlined {
  font-size: 32px;
  color: #8b5cf6;
  flex-shrink: 0;
}

.stat-data {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

/* Pronóstico por horas */
.hourly-forecast {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hourly-header h4 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #1f2937;
}

.hourly-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.hourly-scroll {
  overflow-x: auto;
  padding: 16px 0;
  display: flex;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #f3f4f6;
}

.hourly-scroll::-webkit-scrollbar {
  height: 8px;
}

.hourly-scroll::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 4px;
}

.hourly-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-width: 90px;
  transition: all 0.2s ease;
}

.hourly-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hourly-time {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.hourly-icon {
  font-size: 40px;
}

.hourly-icon .material-symbols-outlined {
  font-size: 40px;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 40;
}

.hourly-temp {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.hourly-precip,
.hourly-wind {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
}

.hourly-precip .material-symbols-outlined,
.hourly-wind .material-symbols-outlined {
  font-size: 16px;
}

/* Resumen natural */
.natural-summary {
  text-align: center;
  padding: 32px;
}

.summary-icon {
  margin-bottom: 20px;
}

.summary-icon .material-symbols-outlined {
  font-size: 64px;
  color: #8b5cf6;
}

.summary-text {
  font-size: 18px;
  line-height: 1.7;
  color: #1f2937;
  margin-bottom: 20px;
}

.summary-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

.summary-footer .material-symbols-outlined {
  font-size: 18px;
}

/* Actividades */
.activity-conditions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-header h4 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #1f2937;
}

.activity-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.activity-icon {
  font-size: 48px;
}

.activity-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.activity-rating {
  font-size: 20px;
  color: #f59e0b;
  letter-spacing: 2px;
  display: flex;
  gap: 2px;
}

.activity-rating .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.activity-reason {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

/* Índices de confort */
.comfort-indices {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comfort-header h4 {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
}

.comfort-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.comfort-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comfort-card .material-symbols-outlined {
  font-size: 40px;
  color: #8b5cf6;
}

.comfort-name {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

.comfort-value {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
}

.comfort-level {
  font-size: 13px;
  font-weight: 600;
}

/* Alertas */
.smart-alerts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.alerts-header h4 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #1f2937;
}

.alerts-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid;
}

.alert-item.alert-yellow {
  background: linear-gradient(135deg, var(--color-orange-100), var(--color-yellow-50));
  border-color: var(--color-orange-300);
}

.alert-item.alert-orange {
  background: #fed7aa;
  border-color: #ea580c;
}

.alert-item.alert-red {
  background: #fee2e2;
  border-color: #ef4444;
}

.alert-icon .material-symbols-outlined {
  font-size: 32px;
}

.alert-yellow .alert-icon .material-symbols-outlined {
  color: var(--color-orange-600);
}

.alert-orange .alert-icon .material-symbols-outlined {
  color: #ea580c;
}

.alert-red .alert-icon .material-symbols-outlined {
  color: #ef4444;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.alert-message {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.alerts-empty {
  text-align: center;
  padding: 60px 20px;
}

.alerts-empty .material-symbols-outlined {
  font-size: 80px;
  color: #10b981;
  margin-bottom: 16px;
}

.alerts-empty h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #1f2937;
}

.alerts-empty p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* Vista semanal */
.week-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.week-header h4 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #1f2937;
}

.week-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

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

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.week-day:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.week-day-header {
  text-align: center;
}

.week-day-name {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
}

.week-day-date {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.week-weather-icon {
  font-size: 40px;
}

.week-weather-icon .material-symbols-outlined {
  font-size: 40px;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 40;
}

.week-temps {
  display: flex;
  gap: 8px;
  font-weight: 700;
}

.temp-max {
  color: #ef4444;
  font-size: 16px;
}

.temp-min {
  color: #3b82f6;
  font-size: 14px;
}

.week-precip,
.week-wind {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
}

.week-precip .material-symbols-outlined,
.week-wind .material-symbols-outlined {
  font-size: 14px;
}

/* Tendencia de presión */
.pressure-trend {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pressure-header h4 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #1f2937;
}

.pressure-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.pressure-current {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 16px;
}

.pressure-current .material-symbols-outlined {
  font-size: 48px;
  color: #8b5cf6;
}

.pressure-data {
  flex: 1;
}

.pressure-value-large {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.pressure-trend-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #6b7280;
  font-weight: 600;
}

.pressure-trend-text .material-symbols-outlined {
  font-size: 24px;
  color: #8b5cf6;
}

.pressure-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 150px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pressure-bar {
  flex: 1;
  background: linear-gradient(to top, #8b5cf6, #a78bfa);
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  position: relative;
  transition: height 0.3s ease;
}

.pressure-bar .pressure-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #6b7280;
  font-weight: 600;
  white-space: nowrap;
}

.pressure-info {
  display: flex;
  justify-content: space-around;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
}

.info-item {
  text-align: center;
}

.info-item .label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.info-item .value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

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

@media (max-width: 768px) {
  /* Panel más estrecho en móviles */
  .enhancement-panel-vertical.expanded {
    width: 260px;
  }
  
  .enhancement-panel-vertical.collapsed {
    width: 56px;
  }
  
  /* Modal a pantalla completa */
  .enhancement-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .enhancement-modal-header {
    border-radius: 0;
  }
  
  /* Grids a una columna */
  .now-panel-grid,
  .activity-grid,
  .comfort-grid {
    grid-template-columns: 1fr;
  }
  
  /* Fuentes más pequeñas */
  .temp-value {
    font-size: 48px;
  }
  
  .weather-icon-large {
    font-size: 64px;
  }
}

@media (max-width: 480px) {
  /* Panel aún más estrecho */
  .enhancement-panel-vertical.expanded {
    width: 240px;
  }
  
  .enhancement-panel-vertical.collapsed {
    width: 52px;
  }
  
  .enhancement-panel-vertical {
    top: 5px;
    left: 5px;
  }
  
  /* Botones más compactos */
  .enhancement-vertical-button {
    padding: 10px;
  }
  
  .enhancement-vertical-button .btn-icon {
    font-size: 20px;
  }
  
  .enhancement-vertical-button .btn-label {
    font-size: 12px;
  }
  
  /* Iconos más pequeños en estado colapsado */
  .enhancement-panel-vertical.collapsed .btn-icon {
    font-size: 24px;
  }
}

/* ============================================================================
   DARK MODE (opcional)
   ============================================================================ */

@media (prefers-color-scheme: dark) {
  .enhancement-panel-vertical {
    background: rgba(31, 41, 55, 0.98);
  }
  
  .enhancement-panel-header,
  .enhancement-modal-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  }
  
  .panel-title,
  .enhancement-modal-title h3,
  .stat-value,
  .temp-value,
  .now-condition {
    color: #f9fafb;
  }
  
  .panel-subtitle,
  .stat-label {
    color: #9ca3af;
  }
  
  .enhancement-vertical-button,
  .now-stat,
  .hourly-item,
  .activity-card,
  .comfort-card,
  .week-day {
    background: rgba(55, 65, 81, 0.5);
  }
  
  .enhancement-vertical-button .btn-label {
    color: #f9fafb;
  }
  
  .enhancement-modal {
    background: #1f2937;
  }
  
  .enhancement-panel-footer {
    background: #111827;
    border-top-color: #374151;
  }
}

/* Estado del panel con/sin coordenadas */
.enhancement-panel-vertical.no-coordinates .panel-header-icon {
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.enhancement-panel-vertical.has-coordinates .panel-header-icon {
  animation: none;
}

.panel-subtitle {
  font-size: 11px;
  color: #6b7280;
  transition: color 0.3s ease;
}

/* ============================================================================
   SISTEMA DE ALERTAS
   ============================================================================ */

.enhancement-alert-box {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 420px;
  opacity: 0;
  transform: translateX(100%) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.enhancement-alert-box.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all;
}

.enhancement-alert-box .alert-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 
              0 4px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Variantes de color para alertas */
.enhancement-alert-box.alert-warning .alert-content {
  background: linear-gradient(135deg, var(--color-orange-100), var(--color-yellow-50));
  border-color: var(--color-orange-300);
}

.enhancement-alert-box.alert-warning .alert-icon .material-symbols-outlined {
  color: var(--color-orange-600);
}

.enhancement-alert-box.alert-warning .alert-title {
  color: var(--color-orange-900);
}

.enhancement-alert-box.alert-warning .alert-message {
  color: var(--color-orange-800);
}

.enhancement-alert-box.alert-error .alert-content {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-color: #ef4444;
}

.enhancement-alert-box.alert-error .alert-icon .material-symbols-outlined {
  color: #dc2626;
}

.enhancement-alert-box.alert-success .alert-content {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #10b981;
}

.enhancement-alert-box.alert-success .alert-icon .material-symbols-outlined {
  color: #059669;
}

.enhancement-alert-box.alert-info .alert-content {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #3b82f6;
}

.enhancement-alert-box.alert-info .alert-icon .material-symbols-outlined {
  color: #2563eb;
}

.enhancement-alert-box .alert-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enhancement-alert-box .alert-icon .material-symbols-outlined {
  font-size: 32px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 32;
}

.enhancement-alert-box .alert-text {
  flex: 1;
  min-width: 0;
}

.enhancement-alert-box .alert-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.enhancement-alert-box .alert-message {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

.enhancement-alert-box .alert-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: #6b7280;
}

.enhancement-alert-box .alert-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1f2937;
}

.enhancement-alert-box .alert-close .material-symbols-outlined {
  font-size: 20px;
}

/* Animación de entrada más dramática */
@keyframes alertSlideIn {
  from {
    transform: translateX(100%) scale(0.8) rotate(5deg);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

.enhancement-alert-box.active {
  animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Estilos responsive para alertas */
@media (max-width: 768px) {
  .enhancement-alert-box {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .enhancement-alert-box .alert-content {
    padding: 16px;
  }
  
  .enhancement-alert-box .alert-icon .material-symbols-outlined {
    font-size: 28px;
  }
  
  .enhancement-alert-box .alert-title {
    font-size: 15px;
  }
  
  .enhancement-alert-box .alert-message {
    font-size: 13px;
  }
}

/* Dark mode para alertas */
@media (prefers-color-scheme: dark) {
  .enhancement-alert-box .alert-title {
    color: #f9fafb;
  }
  
  .enhancement-alert-box .alert-message {
    color: #d1d5db;
  }
  
  .enhancement-alert-box .alert-close {
    color: #9ca3af;
  }
  
  .enhancement-alert-box .alert-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
  }
}