/* clima.module.css - Widget del clima Premium BEM (Ajustado al 50% de alto) */

.weather {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
}

/* Tarjeta base - misma altura que el reproductor flotante */
.weather-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  border: 1px solid #333;
  border-radius: 6px;
  padding: 5px 8px;
  min-width: 100px;
  max-width: 130px;
  width: 115px;
  height: 74px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  box-sizing: border-box;
}

.weather-card:hover {
  border-color: var(--rally-yellow, #f5c518);
  transform: translateY(-2px);
}

.weather-card__header {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-card__icon-pin {
  font-size: 0.55rem;
  flex-shrink: 0;
}

.weather-card__main {
  display: flex;
  align-items: center;
  gap: 4px;
}

.weather-card__emoji {
  font-size: 1rem;
  line-height: 1;
}

.weather-card__temp {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--rally-yellow, #f5c518);
  line-height: 1;
}

.weather__loader {
  color: var(--color-muted, #888);
  font-size: 0.75rem; /* Ajustado */
  text-align: center;
  width: 100%;
}

.weather-strip {
  background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  padding: 0.15rem 8px; /* Reducido al 50% */
  border-bottom: 2px solid #333;
  border-radius: 6px 6px 0 0;
  position: relative;
  line-height: 1; /* Agregado para eliminar espacio vertical invisible */
}

.weather-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #222 0%, #2a2a2a 100%);
  padding: 1px 4px; /* Padding ultra ultracompacto */
  border-radius: 4px; 
  border: 1px solid #444;
  min-width: 110px; /* Reducido de 150px para ajustar la proporción */
  height: 24px; /* Alto fijo forzado para reducir a la mitad */
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s;
  box-sizing: border-box;
}

.weather-mini:hover {
  border-color: var(--rally-yellow);
  transform: translateY(-1px);
}

.weather-mini img {
  width: 14px; /* Icono reducido */
  height: 14px;
  flex-shrink: 0;
}

.weather-mini-info {
  display: flex;
  flex-direction: column;
  line-height: 1; /* Obliga al texto a compactarse */
  justify-content: center;
}

.weather-mini-city {
  font-size: 0.45rem;
  color: white;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.weather-mini-temp {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--rally-yellow);
  font-family: 'Racing Sans One', cursive;
  margin: 0;
  padding: 0;
}

.weather-card__desc {
  color: #a1a1aa;
  font-size: 0.5rem;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-card__footer {
  display: flex;
  flex-wrap: wrap;
  column-gap: 3px;
  row-gap: 1px;
  font-size: 0.48rem;
  color: #888;
}

.weather-card__stat {
  display: flex;
  align-items: center;
  gap: 1px;
}