/* =========================================================
   Mizunara Studio Design System
   Weather Component
   css/components/weather.css
   Version 1.0
========================================================= */

/* =========================================================
   WRAPPER DEL BUILDER
========================================================= */

.ms-component[data-component="weather"] {
  display: block;

  width: 100%;
  max-width: 100%;
  min-height: 0;

  margin: 0;
  padding: 0;

  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;

  background: transparent;

  filter: none !important;
  -webkit-filter: none !important;

  opacity: 1 !important;
  visibility: visible !important;
}

.ms-component[data-component="weather"][hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] > .ms-weather {
  width: 100%;
  max-width: 100%;

  filter: none !important;
  -webkit-filter: none !important;
}

/* =========================================================
   VARIABLES
========================================================= */

.ms-component[data-component="weather"] {
  --weather-primary: var(--ms-color-primary, #c8a46b);

  --weather-primary-dark: var(--ms-color-primary-dark, #8f6d35);

  --weather-text: var(--ms-color-text, #342b25);

  --weather-muted: var(--ms-color-muted, rgba(52, 43, 37, 0.68));

  --weather-soft-text: rgba(52, 43, 37, 0.52);

  --weather-surface: rgba(255, 255, 255, 0.54);

  --weather-surface-strong: rgba(255, 255, 255, 0.8);

  --weather-border: rgba(255, 255, 255, 0.58);

  --weather-gold-border: rgba(200, 164, 107, 0.28);

  --weather-blue: #6f8fa6;

  --weather-blue-soft: rgba(111, 143, 166, 0.11);

  --weather-sky: #8fb5c8;

  --weather-sky-soft: rgba(143, 181, 200, 0.12);

  --weather-warning: #9a6b3b;

  --weather-warning-soft: rgba(154, 107, 59, 0.09);

  --weather-success: #55745d;

  --weather-success-soft: rgba(85, 116, 93, 0.09);

  --weather-error: #a34b4b;

  --weather-info: #6b6f86;

  --weather-radius: var(--ms-radius-xl, 30px);

  --weather-card-radius: var(--ms-radius-lg, 21px);

  --weather-shadow:
    0 32px 90px rgba(48, 36, 28, 0.13), 0 12px 34px rgba(48, 36, 28, 0.06);

  --weather-item-shadow: 0 18px 48px rgba(48, 36, 28, 0.09);

  --weather-transition: 280ms ease;
}

/* =========================================================
   SECCIÓN
========================================================= */

.ms-component[data-component="weather"] .ms-weather {
  position: relative;
  isolation: isolate;

  width: 100%;
  max-width: 100%;

  padding: var(--ms-section-padding, clamp(5rem, 10vw, 8rem)) 0;

  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;

  background:
    radial-gradient(
      circle at 7% 16%,
      rgba(200, 164, 107, 0.13),
      transparent 31%
    ),
    radial-gradient(
      circle at 94% 32%,
      rgba(143, 181, 200, 0.14),
      transparent 34%
    ),
    radial-gradient(
      circle at 46% 100%,
      rgba(111, 143, 166, 0.09),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.08)
    );

  filter: none !important;
  -webkit-filter: none !important;
}

.ms-component[data-component="weather"] .ms-weather[aria-busy="true"] {
  cursor: progress;
}

/* =========================================================
   ORBES DECORATIVOS
========================================================= */

.ms-component[data-component="weather"] .ms-weather-orb {
  position: absolute;
  z-index: -2;

  border-radius: 50%;

  filter: blur(18px);

  pointer-events: none;
}

.ms-component[data-component="weather"] .ms-weather-orb--left {
  top: 3%;
  left: -190px;

  width: 430px;
  height: 430px;

  background: radial-gradient(
    circle,
    rgba(200, 164, 107, 0.18),
    transparent 70%
  );
}

.ms-component[data-component="weather"] .ms-weather-orb--right {
  right: -230px;
  bottom: 4%;

  width: 510px;
  height: 510px;

  background: radial-gradient(
    circle,
    rgba(143, 181, 200, 0.17),
    transparent 70%
  );
}

/* =========================================================
   DECORACIÓN SUPERIOR
========================================================= */

.ms-component[data-component="weather"] .ms-weather-decoration {
  position: absolute;
  top: 4.5rem;
  left: 50%;
  z-index: -1;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.65rem;

  transform: translateX(-50%);

  pointer-events: none;
}

.ms-component[data-component="weather"] .ms-weather-decoration span {
  display: block;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: var(--weather-primary);

  opacity: 0.45;
}

.ms-component[data-component="weather"]
  .ms-weather-decoration
  span:nth-child(2) {
  width: 42px;
  height: 1px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--weather-primary),
    transparent
  );
}

/* =========================================================
   CONTENEDOR
========================================================= */

.ms-component[data-component="weather"] .ms-weather .ms-container {
  position: relative;
  z-index: 1;

  width: min(92%, 1160px);
  max-width: 100%;

  margin-inline: auto;
}

/* =========================================================
   ENCABEZADO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-header {
  width: min(100%, 790px);

  margin: 0 auto clamp(2.8rem, 7vw, 4.8rem);

  text-align: center;
}

.ms-component[data-component="weather"] .ms-weather-header .ms-section-kicker {
  display: inline-block;

  margin-bottom: 1rem;

  color: var(--weather-primary-dark);

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ms-component[data-component="weather"]
  .ms-weather-header
  .ms-section-kicker[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-header .ms-section-title {
  margin: 0 0 1.25rem;

  color: var(--weather-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(2.3rem, 6vw, 4rem);

  font-weight: 500;
  line-height: 1.08;

  text-wrap: balance;
}

.ms-component[data-component="weather"]
  .ms-weather-header
  .ms-section-description {
  max-width: 710px;

  margin-inline: auto;

  color: var(--weather-muted);

  font-size: clamp(0.95rem, 1.7vw, 1.06rem);

  line-height: 1.85;

  text-wrap: balance;
}

/* =========================================================
   CONTENIDO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-content {
  display: grid;

  gap: clamp(2rem, 5vw, 3.5rem);

  width: min(100%, 1060px);
  max-width: 100%;

  margin-inline: auto;
}

.ms-component[data-component="weather"] .ms-weather-content[hidden] {
  display: none !important;
}

/* =========================================================
   TARJETA PRINCIPAL
========================================================= */

.ms-component[data-component="weather"] .ms-weather-current {
  position: relative;
  isolation: isolate;

  width: 100%;
  max-width: 100%;

  padding: clamp(1.3rem, 4vw, 2.3rem);

  overflow: hidden;

  border: 1px solid var(--weather-border);

  border-radius: var(--weather-radius);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.28)
  );

  box-shadow: var(--weather-shadow);

  backdrop-filter: blur(24px) saturate(1.08);

  -webkit-backdrop-filter: blur(24px) saturate(1.08);

  opacity: 0;

  transform: translateY(28px);

  transition:
    opacity 800ms ease,
    transform 850ms var(--ms-ease-luxury, ease);
}

.ms-component[data-component="weather"] .ms-weather-current.is-visible,
.ms-component[data-component="weather"]
  .ms-weather-visible
  .ms-weather-current {
  opacity: 1;

  transform: translateY(0);
}

.ms-component[data-component="weather"] .ms-weather-current[hidden] {
  display: none !important;
}

/* =========================================================
   FONDO INTERNO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-current-background {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    radial-gradient(
      circle at 84% 12%,
      rgba(143, 181, 200, 0.24),
      transparent 33%
    ),
    radial-gradient(
      circle at 8% 96%,
      rgba(200, 164, 107, 0.17),
      transparent 32%
    );

  pointer-events: none;
}

.ms-component[data-component="weather"] .ms-weather-current::before {
  content: "";

  position: absolute;
  top: -180px;
  right: -120px;
  z-index: -1;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5),
    transparent 68%
  );

  pointer-events: none;
}

.ms-component[data-component="weather"] .ms-weather-current::after {
  content: "";

  position: absolute;
  right: 2rem;
  bottom: 1.3rem;

  width: 90px;
  height: 1px;

  background: linear-gradient(90deg, transparent, rgba(200, 164, 107, 0.7));

  pointer-events: none;
}

/* =========================================================
   PARTE SUPERIOR
========================================================= */

.ms-component[data-component="weather"] .ms-weather-current-top {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 1.2rem;

  margin-bottom: clamp(1.8rem, 5vw, 3rem);
}

/* =========================================================
   UBICACIÓN
========================================================= */

.ms-component[data-component="weather"] .ms-weather-location {
  display: flex;
  align-items: center;

  gap: 0.9rem;

  min-width: 0;
}

.ms-component[data-component="weather"] .ms-weather-location-icon {
  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;

  flex: 0 0 auto;

  border: 1px solid rgba(200, 164, 107, 0.25);

  border-radius: 50%;

  color: var(--weather-primary-dark);

  background: rgba(255, 255, 255, 0.55);

  box-shadow: 0 10px 26px rgba(48, 36, 28, 0.08);
}

.ms-component[data-component="weather"] .ms-weather-location-icon svg {
  width: 24px;
  height: 24px;
}

.ms-component[data-component="weather"] .ms-weather-location-content {
  min-width: 0;
}

.ms-component[data-component="weather"] .ms-weather-location-label {
  display: inline-block;

  margin-bottom: 0.3rem;

  color: var(--weather-primary-dark);

  font-size: 0.62rem;
  font-weight: 750;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ms-component[data-component="weather"] .ms-weather-location-label[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-location-name {
  margin: 0 0 0.25rem;

  color: var(--weather-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(1.35rem, 3vw, 1.9rem);

  font-weight: 500;
  line-height: 1.2;
}

.ms-component[data-component="weather"] .ms-weather-event-date {
  margin: 0;

  color: var(--weather-muted);

  font-size: 0.77rem;
  line-height: 1.5;
}

.ms-component[data-component="weather"] .ms-weather-event-date[hidden] {
  display: none !important;
}

/* =========================================================
   ETIQUETA DE FUENTE
========================================================= */

.ms-component[data-component="weather"] .ms-weather-data-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;

  padding: 0.36rem 0.75rem;

  border: 1px solid rgba(111, 143, 166, 0.22);

  border-radius: 999px;

  color: var(--weather-blue);

  background: rgba(111, 143, 166, 0.08);

  font-size: 0.64rem;
  font-weight: 750;

  white-space: nowrap;

  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ms-component[data-component="weather"]
  .ms-weather-data-mode[data-weather-source-mode="dynamic"] {
  border-color: rgba(85, 116, 93, 0.23);

  color: var(--weather-success);

  background: var(--weather-success-soft);
}

.ms-component[data-component="weather"] .ms-weather-data-mode[hidden] {
  display: none !important;
}

/* =========================================================
   BLOQUE PRINCIPAL DEL CLIMA
========================================================= */

.ms-component[data-component="weather"] .ms-weather-current-main {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: clamp(1.2rem, 4vw, 2.5rem);

  padding: clamp(1rem, 3vw, 1.6rem) 0 clamp(1.5rem, 4vw, 2.2rem);
}

/* =========================================================
   ICONO PRINCIPAL
========================================================= */

.ms-component[data-component="weather"] .ms-weather-current-icon {
  display: grid;
  place-items: center;

  width: clamp(120px, 17vw, 180px);

  height: clamp(120px, 17vw, 180px);

  border: 1px solid rgba(143, 181, 200, 0.26);

  border-radius: 50%;

  color: var(--weather-blue);

  background: radial-gradient(
    circle at 40% 32%,
    rgba(255, 255, 255, 0.94),
    rgba(143, 181, 200, 0.11)
  );

  box-shadow:
    0 22px 56px rgba(69, 91, 104, 0.14),
    inset 0 0 0 10px rgba(255, 255, 255, 0.24);
}

.ms-component[data-component="weather"] .ms-weather-current-icon svg {
  display: block;

  width: 72%;
  height: 72%;
}

/* Condiciones */

.ms-component[data-component="weather"]
  .ms-weather-current-icon[data-weather-icon="sunny"] {
  color: #c8923e;

  background: radial-gradient(
    circle at 42% 35%,
    rgba(255, 250, 225, 0.96),
    rgba(230, 187, 112, 0.14)
  );
}

.ms-component[data-component="weather"]
  .ms-weather-current-icon[data-weather-icon="rain"],
.ms-component[data-component="weather"]
  .ms-weather-current-icon[data-weather-icon="storm"] {
  color: #637e92;

  background: radial-gradient(
    circle at 42% 35%,
    rgba(244, 249, 252, 0.95),
    rgba(99, 126, 146, 0.13)
  );
}

.ms-component[data-component="weather"]
  .ms-weather-current-icon[data-weather-icon="night"] {
  color: #727695;

  background: radial-gradient(
    circle at 42% 35%,
    rgba(247, 247, 252, 0.96),
    rgba(114, 118, 149, 0.13)
  );
}

/* =========================================================
   TEMPERATURA
========================================================= */

.ms-component[data-component="weather"] .ms-weather-temperature {
  min-width: 0;
}

.ms-component[data-component="weather"] .ms-weather-temperature-value {
  display: flex;
  align-items: flex-start;

  margin-bottom: 0.4rem;

  color: var(--weather-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(4.4rem, 11vw, 7.2rem);

  font-weight: 400;
  line-height: 0.9;

  letter-spacing: -0.055em;
}

.ms-component[data-component="weather"] .ms-weather-temperature-unit {
  margin: 0.4rem 0 0 0.2rem;

  color: var(--weather-primary-dark);

  font-family: inherit;

  font-size: clamp(1.2rem, 3vw, 1.9rem);

  font-weight: 500;

  letter-spacing: 0;
}

.ms-component[data-component="weather"] .ms-weather-condition {
  margin: 0 0 0.45rem;

  color: var(--weather-text);

  font-size: clamp(1rem, 2vw, 1.25rem);

  font-weight: 650;
  line-height: 1.4;
}

.ms-component[data-component="weather"] .ms-weather-feels-like {
  margin: 0;

  color: var(--weather-muted);

  font-size: 0.79rem;
  line-height: 1.5;
}

.ms-component[data-component="weather"] .ms-weather-feels-like[hidden] {
  display: none !important;
}

/* =========================================================
   MÁXIMA Y MÍNIMA
========================================================= */

.ms-component[data-component="weather"] .ms-weather-range {
  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  gap: 1rem;

  min-width: 190px;

  padding: 1rem 1.2rem;

  border: 1px solid rgba(200, 164, 107, 0.2);

  border-radius: var(--weather-card-radius);

  background: rgba(255, 255, 255, 0.42);

  box-shadow: 0 14px 34px rgba(48, 36, 28, 0.07);
}

.ms-component[data-component="weather"] .ms-weather-range-item {
  display: grid;

  gap: 0.3rem;

  text-align: center;
}

.ms-component[data-component="weather"] .ms-weather-range-label {
  color: var(--weather-soft-text);

  font-size: 0.64rem;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ms-component[data-component="weather"] .ms-weather-range-value {
  color: var(--weather-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
}

.ms-component[data-component="weather"] .ms-weather-range-divider {
  width: 1px;
  height: 38px;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(200, 164, 107, 0.4),
    transparent
  );
}

/* =========================================================
   DETALLES
========================================================= */

.ms-component[data-component="weather"] .ms-weather-details {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 0.8rem;

  padding-top: clamp(1.3rem, 4vw, 2rem);

  border-top: 1px solid rgba(200, 164, 107, 0.16);
}

.ms-component[data-component="weather"] .ms-weather-details[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-detail {
  display: flex;
  align-items: center;

  gap: 0.8rem;

  min-width: 0;

  padding: 0.9rem;

  border: 1px solid rgba(255, 255, 255, 0.55);

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.36);

  transition:
    border-color var(--weather-transition),
    background var(--weather-transition),
    transform var(--weather-transition);
}

.ms-component[data-component="weather"] .ms-weather-detail:hover {
  border-color: rgba(200, 164, 107, 0.28);

  background: rgba(255, 255, 255, 0.54);

  transform: translateY(-2px);
}

.ms-component[data-component="weather"] .ms-weather-detail[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-detail-icon {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  flex: 0 0 auto;

  border: 1px solid rgba(111, 143, 166, 0.18);

  border-radius: 50%;

  color: var(--weather-blue);

  background: rgba(111, 143, 166, 0.07);
}

.ms-component[data-component="weather"] .ms-weather-detail-icon svg {
  width: 23px;
  height: 23px;
}

.ms-component[data-component="weather"] .ms-weather-detail-content {
  display: grid;

  gap: 0.2rem;

  min-width: 0;
}

.ms-component[data-component="weather"] .ms-weather-detail-label {
  color: var(--weather-soft-text);

  font-size: 0.61rem;
  font-weight: 700;

  line-height: 1.35;

  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ms-component[data-component="weather"] .ms-weather-detail-value {
  overflow: hidden;

  color: var(--weather-text);

  font-size: 0.84rem;
  font-weight: 750;

  line-height: 1.35;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   INFORMACIÓN DE ACTUALIZACIÓN
========================================================= */

.ms-component[data-component="weather"] .ms-weather-update {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  margin-top: 1.1rem;

  color: var(--weather-soft-text);

  font-size: 0.68rem;
  line-height: 1.5;

  text-align: center;
}

.ms-component[data-component="weather"] .ms-weather-update[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-update-dot {
  width: 7px;
  height: 7px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--weather-success);

  box-shadow: 0 0 0 5px rgba(85, 116, 93, 0.09);
}

/* =========================================================
   ESTADO DE CARGA
========================================================= */

.ms-component[data-component="weather"]
  .ms-weather.is-loading
  .ms-weather-update-dot {
  animation: ms-weather-pulse 1.15s ease-in-out infinite;
}

.ms-component[data-component="weather"]
  .ms-weather.is-loading
  .ms-weather-current {
  pointer-events: none;
}

@keyframes ms-weather-pulse {
  0%,
  100% {
    opacity: 0.45;

    transform: scale(0.86);
  }

  50% {
    opacity: 1;

    transform: scale(1.08);
  }
}

/* =========================================================
   RECOMENDACIÓN
========================================================= */

.ms-component[data-component="weather"] .ms-weather-advice {
  position: relative;

  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr);

  align-items: center;

  gap: clamp(1rem, 3vw, 1.6rem);

  width: min(100%, 860px);

  margin-inline: auto;

  padding: clamp(1.2rem, 4vw, 1.8rem);

  overflow: hidden;

  border: 1px solid rgba(111, 143, 166, 0.22);

  border-radius: var(--weather-card-radius);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.62),
    rgba(111, 143, 166, 0.08)
  );

  box-shadow: var(--weather-item-shadow);

  opacity: 0;

  transform: translateY(22px);

  transition:
    opacity 720ms ease,
    transform 780ms var(--ms-ease-luxury, ease);
}

.ms-component[data-component="weather"] .ms-weather-advice::after {
  content: "";

  position: absolute;
  top: -80px;
  right: -70px;

  width: 190px;
  height: 190px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(111, 143, 166, 0.15),
    transparent 70%
  );

  pointer-events: none;
}

.ms-component[data-component="weather"] .ms-weather-advice.is-visible,
.ms-component[data-component="weather"] .ms-weather-visible .ms-weather-advice {
  opacity: 1;

  transform: translateY(0);
}

.ms-component[data-component="weather"] .ms-weather-advice[hidden] {
  display: none !important;
}

/* Variantes de recomendación */

.ms-component[data-component="weather"]
  .ms-weather-advice[data-weather-advice-variant="warning"] {
  border-color: rgba(154, 107, 59, 0.23);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.62),
    var(--weather-warning-soft)
  );
}

.ms-component[data-component="weather"]
  .ms-weather-advice[data-weather-advice-variant="success"] {
  border-color: rgba(85, 116, 93, 0.23);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.62),
    var(--weather-success-soft)
  );
}

.ms-component[data-component="weather"]
  .ms-weather-advice[data-weather-advice-variant="neutral"] {
  border-color: rgba(200, 164, 107, 0.2);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.62),
    rgba(200, 164, 107, 0.06)
  );
}

/* =========================================================
   ICONO DE RECOMENDACIÓN
========================================================= */

.ms-component[data-component="weather"] .ms-weather-advice-icon {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  width: 76px;
  height: 76px;

  border: 1px solid rgba(111, 143, 166, 0.22);

  border-radius: 50%;

  color: var(--weather-blue);

  background: rgba(255, 255, 255, 0.58);
}

.ms-component[data-component="weather"] .ms-weather-advice-icon svg {
  width: 48px;
  height: 48px;
}

/* =========================================================
   CONTENIDO DE RECOMENDACIÓN
========================================================= */

.ms-component[data-component="weather"] .ms-weather-advice-content {
  position: relative;
  z-index: 1;

  min-width: 0;
}

.ms-component[data-component="weather"] .ms-weather-advice-label {
  display: inline-block;

  margin-bottom: 0.35rem;

  color: var(--weather-blue);

  font-size: 0.63rem;
  font-weight: 750;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ms-component[data-component="weather"] .ms-weather-advice-label[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-advice-title {
  margin: 0 0 0.5rem;

  color: var(--weather-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(1.35rem, 3vw, 1.95rem);

  font-weight: 500;
  line-height: 1.2;
}

.ms-component[data-component="weather"] .ms-weather-advice-title[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-advice-description {
  margin: 0;

  color: var(--weather-muted);

  font-size: 0.84rem;
  line-height: 1.72;
}

.ms-component[data-component="weather"] .ms-weather-advice-description[hidden] {
  display: none !important;
}

/* =========================================================
   PRONÓSTICO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-forecast {
  width: 100%;
  max-width: 100%;

  opacity: 0;

  transform: translateY(24px);

  transition:
    opacity 720ms ease,
    transform 780ms var(--ms-ease-luxury, ease);
}

.ms-component[data-component="weather"] .ms-weather-forecast.is-visible,
.ms-component[data-component="weather"]
  .ms-weather-visible
  .ms-weather-forecast {
  opacity: 1;

  transform: translateY(0);
}

.ms-component[data-component="weather"] .ms-weather-forecast[hidden] {
  display: none !important;
}

/* =========================================================
   ENCABEZADO DEL PRONÓSTICO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-forecast-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 2rem;

  margin-bottom: clamp(1.4rem, 4vw, 2.2rem);
}

.ms-component[data-component="weather"] .ms-weather-forecast-kicker {
  display: inline-block;

  margin-bottom: 0.4rem;

  color: var(--weather-primary-dark);

  font-size: 0.64rem;
  font-weight: 750;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ms-component[data-component="weather"] .ms-weather-forecast-kicker[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-forecast-title {
  margin: 0;

  color: var(--weather-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(1.8rem, 4vw, 2.7rem);

  font-weight: 500;
  line-height: 1.15;
}

.ms-component[data-component="weather"] .ms-weather-forecast-description {
  width: min(100%, 440px);

  margin: 0;

  color: var(--weather-muted);

  font-size: 0.8rem;
  line-height: 1.65;

  text-align: right;
}

.ms-component[data-component="weather"]
  .ms-weather-forecast-description[hidden] {
  display: none !important;
}

/* =========================================================
   TRACK DEL PRONÓSTICO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-forecast-track {
  display: grid;

  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: clamp(0.75rem, 2vw, 1rem);

  width: 100%;
  max-width: 100%;
}

/* =========================================================
   TARJETA DEL PRONÓSTICO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-forecast-card {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 0;

  padding: 1.15rem 0.85rem;

  overflow: hidden;

  border: 1px solid var(--weather-border);

  border-radius: var(--weather-card-radius);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.27)
  );

  box-shadow: var(--weather-item-shadow);

  text-align: center;

  opacity: 0;

  transform: translateY(20px);

  transition:
    opacity 600ms ease,
    transform 680ms var(--ms-ease-luxury, ease),
    border-color var(--weather-transition),
    box-shadow var(--weather-transition);

  transition-delay: calc(var(--weather-forecast-index, 0) * 75ms);
}

.ms-component[data-component="weather"] .ms-weather-forecast-card.is-visible,
.ms-component[data-component="weather"]
  .ms-weather-visible
  .ms-weather-forecast-card {
  opacity: 1;

  transform: translateY(0);
}

.ms-component[data-component="weather"] .ms-weather-forecast-card:hover {
  border-color: rgba(200, 164, 107, 0.38);

  box-shadow: 0 24px 54px rgba(48, 36, 28, 0.12);

  transform: translateY(-4px);
}

/* Día del evento */

.ms-component[data-component="weather"] .ms-weather-forecast-card.is-event-day {
  border-color: rgba(200, 164, 107, 0.48);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.84),
    rgba(200, 164, 107, 0.11)
  );

  box-shadow: 0 22px 55px rgba(143, 109, 53, 0.14);
}

.ms-component[data-component="weather"]
  .ms-weather-forecast-card.is-event-day::before {
  content: "";

  position: absolute;
  top: -70px;
  right: -70px;

  width: 160px;
  height: 160px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(200, 164, 107, 0.18),
    transparent 70%
  );

  pointer-events: none;
}

/* =========================================================
   DÍA Y FECHA
========================================================= */

.ms-component[data-component="weather"] .ms-weather-forecast-day {
  position: relative;
  z-index: 1;

  margin-bottom: 0.2rem;

  color: var(--weather-text);

  font-size: 0.77rem;
  font-weight: 750;

  text-transform: capitalize;
}

.ms-component[data-component="weather"] .ms-weather-forecast-date {
  position: relative;
  z-index: 1;

  color: var(--weather-soft-text);

  font-size: 0.64rem;
  line-height: 1.4;

  text-transform: capitalize;
}

.ms-component[data-component="weather"] .ms-weather-forecast-date[hidden] {
  display: none !important;
}

/* =========================================================
   ICONO DEL PRONÓSTICO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-forecast-icon {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  width: 82px;
  height: 82px;

  margin: 0.8rem auto;

  border: 1px solid rgba(111, 143, 166, 0.17);

  border-radius: 50%;

  color: var(--weather-blue);

  background: rgba(255, 255, 255, 0.47);
}

.ms-component[data-component="weather"] .ms-weather-forecast-icon svg {
  width: 58px;
  height: 58px;
}

/* =========================================================
   CONDICIÓN DEL PRONÓSTICO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-forecast-condition {
  position: relative;
  z-index: 1;

  min-height: 2.7em;

  margin: 0 0 0.75rem;

  color: var(--weather-muted);

  font-size: 0.72rem;
  font-weight: 600;

  line-height: 1.35;
}

/* =========================================================
   TEMPERATURAS DEL PRONÓSTICO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-forecast-temperatures {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: baseline;
  justify-content: center;

  gap: 0.55rem;
}

.ms-component[data-component="weather"] .ms-weather-forecast-high {
  color: var(--weather-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: 1.55rem;
  font-weight: 500;
}

.ms-component[data-component="weather"] .ms-weather-forecast-low {
  color: var(--weather-soft-text);

  font-size: 0.91rem;
  font-weight: 650;
}

/* =========================================================
   LLUVIA DEL PRONÓSTICO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-forecast-rain {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.28rem;

  margin-top: 0.7rem;

  padding: 0.3rem 0.58rem;

  border: 1px solid rgba(111, 143, 166, 0.16);

  border-radius: 999px;

  color: var(--weather-blue);

  background: rgba(111, 143, 166, 0.07);

  font-size: 0.65rem;
  font-weight: 700;
}

.ms-component[data-component="weather"] .ms-weather-forecast-rain[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-forecast-rain svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   ETIQUETA DÍA DEL EVENTO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-forecast-event-badge {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 0.8rem;

  padding: 0.35rem 0.64rem;

  border: 1px solid rgba(200, 164, 107, 0.3);

  border-radius: 999px;

  color: var(--weather-primary-dark);

  background: rgba(200, 164, 107, 0.11);

  font-size: 0.59rem;
  font-weight: 800;

  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* =========================================================
   ESTADO VACÍO
========================================================= */

.ms-component[data-component="weather"] .ms-weather-empty {
  display: grid;
  justify-items: center;

  width: min(100%, 680px);

  margin-inline: auto;

  padding: clamp(2rem, 6vw, 3.5rem);

  border: 1px solid rgba(200, 164, 107, 0.24);

  border-radius: var(--weather-radius);

  color: var(--weather-muted);

  background: rgba(255, 255, 255, 0.39);

  box-shadow: var(--weather-item-shadow);

  text-align: center;
}

.ms-component[data-component="weather"] .ms-weather-empty[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-empty-icon {
  display: grid;
  place-items: center;

  width: 94px;
  height: 94px;

  margin-bottom: 1.2rem;

  border: 1px solid rgba(111, 143, 166, 0.22);

  border-radius: 50%;

  color: var(--weather-blue);

  background: var(--weather-blue-soft);
}

.ms-component[data-component="weather"] .ms-weather-empty-icon svg {
  width: 62px;
  height: 62px;
}

.ms-component[data-component="weather"] .ms-weather-empty-title {
  margin: 0 0 0.7rem;

  color: var(--weather-text);

  font-family: var(--ms-font-title, "Playfair Display", serif);

  font-size: clamp(1.6rem, 4vw, 2.2rem);

  font-weight: 500;
}

.ms-component[data-component="weather"] .ms-weather-empty-description {
  max-width: 520px;

  margin: 0;

  font-size: 0.88rem;
  line-height: 1.7;
}

/* =========================================================
   NOTA INFERIOR
========================================================= */

.ms-component[data-component="weather"] .ms-weather-footer-note {
  width: min(92%, 780px);

  margin: clamp(2rem, 5vw, 3.5rem) auto 0;

  color: rgba(52, 43, 37, 0.5);

  font-size: 0.75rem;
  line-height: 1.65;

  text-align: center;
}

.ms-component[data-component="weather"] .ms-weather-footer-note[hidden] {
  display: none !important;
}

/* =========================================================
   ESTADO GENERAL
========================================================= */

.ms-component[data-component="weather"] .ms-weather-status {
  width: min(90%, 720px);

  margin: 2rem auto 0;

  padding: 1rem 1.2rem;

  border: 1px solid rgba(111, 143, 166, 0.24);

  border-radius: var(--ms-radius-lg, 18px);

  color: var(--weather-info);

  background: rgba(111, 143, 166, 0.08);

  font-size: 0.84rem;
  font-weight: 550;
  line-height: 1.55;

  text-align: center;
}

.ms-component[data-component="weather"] .ms-weather-status[hidden] {
  display: none !important;
}

.ms-component[data-component="weather"] .ms-weather-status.is-error {
  border-color: rgba(163, 75, 75, 0.24);

  color: var(--weather-error);

  background: rgba(163, 75, 75, 0.08);
}

.ms-component[data-component="weather"] .ms-weather-status.is-success {
  border-color: rgba(85, 116, 93, 0.24);

  color: var(--weather-success);

  background: rgba(85, 116, 93, 0.08);
}

.ms-component[data-component="weather"] .ms-weather-status.is-info {
  border-color: rgba(107, 111, 134, 0.24);

  color: var(--weather-info);

  background: rgba(107, 111, 134, 0.08);
}

/* =========================================================
   VARIANTE PREMIUM
========================================================= */

.ms-component[data-component="weather"]
  .ms-weather--premium
  .ms-weather-current,
.ms-component[data-component="weather"]
  .ms-weather--premium
  .ms-weather-forecast-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.28)
  );
}

/* =========================================================
   VARIANTE GLASS
========================================================= */

.ms-component[data-component="weather"] .ms-weather--glass .ms-weather-current,
.ms-component[data-component="weather"]
  .ms-weather--glass
  .ms-weather-forecast-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.46),
    rgba(255, 255, 255, 0.16)
  );

  backdrop-filter: blur(30px) saturate(1.16);

  -webkit-backdrop-filter: blur(30px) saturate(1.16);
}

/* =========================================================
   VARIANTE MINIMAL
========================================================= */

.ms-component[data-component="weather"]
  .ms-weather--minimal
  .ms-weather-current,
.ms-component[data-component="weather"]
  .ms-weather--minimal
  .ms-weather-forecast-card {
  border-color: rgba(200, 164, 107, 0.18);

  background: rgba(255, 255, 255, 0.35);

  box-shadow: 0 18px 48px rgba(48, 36, 28, 0.08);

  backdrop-filter: blur(15px);

  -webkit-backdrop-filter: blur(15px);
}

/* =========================================================
   RESPONSIVE — ESCRITORIO MEDIO
========================================================= */

@media (max-width: 1050px) {
  .ms-component[data-component="weather"] .ms-weather-current-main {
    grid-template-columns:
      auto
      minmax(0, 1fr);
  }

  .ms-component[data-component="weather"] .ms-weather-range {
    grid-column: 1 / -1;

    width: min(100%, 360px);

    margin-inline: auto;
  }

  .ms-component[data-component="weather"] .ms-weather-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-component[data-component="weather"] .ms-weather-forecast-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 780px) {
  .ms-component[data-component="weather"] .ms-weather {
    padding: clamp(4.5rem, 9vw, 6rem) 0;
  }

  .ms-component[data-component="weather"] .ms-weather .ms-container {
    width: 92%;
  }

  .ms-component[data-component="weather"] .ms-weather-current-top {
    align-items: flex-start;
  }

  .ms-component[data-component="weather"] .ms-weather-current-main {
    grid-template-columns: 1fr;

    justify-items: center;

    text-align: center;
  }

  .ms-component[data-component="weather"] .ms-weather-temperature {
    display: grid;
    justify-items: center;
  }

  .ms-component[data-component="weather"] .ms-weather-temperature-value {
    justify-content: center;
  }

  .ms-component[data-component="weather"] .ms-weather-range {
    grid-column: auto;
  }

  .ms-component[data-component="weather"] .ms-weather-forecast-header {
    display: grid;

    gap: 0.8rem;
  }

  .ms-component[data-component="weather"] .ms-weather-forecast-description {
    width: 100%;

    text-align: left;
  }

  .ms-component[data-component="weather"] .ms-weather-forecast-track {
    display: flex;

    gap: 0.9rem;

    padding-bottom: 0.6rem;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-track::-webkit-scrollbar {
    display: none;
  }

  .ms-component[data-component="weather"] .ms-weather-forecast-card {
    flex: 0 0 min(220px, 72vw);

    scroll-snap-align: start;
  }
}

/* =========================================================
   RESPONSIVE — MÓVIL
========================================================= */

@media (max-width: 600px) {
  .ms-component[data-component="weather"] .ms-weather {
    padding: 4.5rem 0;
  }

  .ms-component[data-component="weather"] .ms-weather .ms-container {
    width: 90%;
  }

  .ms-component[data-component="weather"] .ms-weather-header {
    margin-bottom: 2.8rem;
  }

  .ms-component[data-component="weather"] .ms-weather-current {
    padding: 1.05rem;

    border-radius: 1.55rem;
  }

  .ms-component[data-component="weather"] .ms-weather-current-top {
    display: grid;

    grid-template-columns: 1fr;

    gap: 0.9rem;
  }

  .ms-component[data-component="weather"] .ms-weather-data-mode {
    justify-self: start;
  }

  .ms-component[data-component="weather"] .ms-weather-location-icon {
    width: 42px;
    height: 42px;
  }

  .ms-component[data-component="weather"] .ms-weather-current-icon {
    width: 132px;
    height: 132px;
  }

  .ms-component[data-component="weather"] .ms-weather-temperature-value {
    font-size: clamp(4.2rem, 23vw, 6rem);
  }

  .ms-component[data-component="weather"] .ms-weather-details {
    grid-template-columns: 1fr;

    gap: 0.65rem;
  }

  .ms-component[data-component="weather"] .ms-weather-detail {
    min-height: 64px;
  }

  .ms-component[data-component="weather"] .ms-weather-detail-value {
    white-space: normal;
  }

  .ms-component[data-component="weather"] .ms-weather-advice {
    grid-template-columns: 1fr;

    justify-items: center;

    padding: 1.15rem;

    text-align: center;
  }

  .ms-component[data-component="weather"] .ms-weather-advice-description {
    max-width: 520px;

    margin-inline: auto;
  }

  .ms-component[data-component="weather"] .ms-weather-forecast-card {
    flex-basis: min(205px, 76vw);
  }
}

/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 390px) {
  .ms-component[data-component="weather"] .ms-weather .ms-container {
    width: 92%;
  }

  .ms-component[data-component="weather"] .ms-weather-current {
    padding: 0.9rem;
  }

  .ms-component[data-component="weather"] .ms-weather-location-name {
    font-size: 1.25rem;
  }

  .ms-component[data-component="weather"] .ms-weather-current-icon {
    width: 118px;
    height: 118px;
  }

  .ms-component[data-component="weather"] .ms-weather-range {
    min-width: 0;

    padding: 0.85rem;
  }

  .ms-component[data-component="weather"] .ms-weather-detail {
    padding: 0.8rem;
  }

  .ms-component[data-component="weather"] .ms-weather-advice {
    padding: 1rem;
  }

  .ms-component[data-component="weather"] .ms-weather-forecast-card {
    flex-basis: min(195px, 80vw);
  }
}

/* =========================================================
   PROTECCIÓN FINAL
========================================================= */

.ms-component[data-component="weather"] {
  max-width: 100%;

  overflow-x: hidden;
  overflow-x: clip;

  filter: none !important;
  -webkit-filter: none !important;

  opacity: 1 !important;
  visibility: visible !important;
}

.ms-component[data-component="weather"] .ms-weather {
  max-width: 100%;

  filter: none !important;
  -webkit-filter: none !important;
}

.ms-component[data-component="weather"] .ms-weather-content,
.ms-component[data-component="weather"] .ms-weather-current,
.ms-component[data-component="weather"] .ms-weather-forecast {
  max-width: 100%;
}

/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .ms-component[data-component="weather"] .ms-weather-current,
  .ms-component[data-component="weather"] .ms-weather-advice,
  .ms-component[data-component="weather"] .ms-weather-forecast,
  .ms-component[data-component="weather"] .ms-weather-forecast-card,
  .ms-component[data-component="weather"] .ms-weather-detail,
  .ms-component[data-component="weather"] .ms-weather-update-dot {
    animation: none !important;

    transition: none !important;

    transform: none !important;
  }

  .ms-component[data-component="weather"] .ms-weather-current,
  .ms-component[data-component="weather"] .ms-weather-advice,
  .ms-component[data-component="weather"] .ms-weather-forecast,
  .ms-component[data-component="weather"] .ms-weather-forecast-card {
    opacity: 1 !important;
  }
}

/* =========================================================
   WEATHER
   CORRECCIÓN RESPONSIVE FINAL
   Version 1.1
========================================================= */

/* =========================================================
   MODELO DE CAJA SEGURO
========================================================= */

.ms-component[data-component="weather"],
.ms-component[data-component="weather"] *,
.ms-component[data-component="weather"] *::before,
.ms-component[data-component="weather"] *::after {
  box-sizing: border-box;
}

/* =========================================================
   PROTECCIÓN CONTRA DESBORDAMIENTO
========================================================= */

.ms-component[data-component="weather"],
.ms-component[data-component="weather"]
  .ms-weather,
.ms-component[data-component="weather"]
  .ms-weather
  > .ms-container,
.ms-component[data-component="weather"]
  .ms-weather-content,
.ms-component[data-component="weather"]
  .ms-weather-current,
.ms-component[data-component="weather"]
  .ms-weather-current-top,
.ms-component[data-component="weather"]
  .ms-weather-current-main,
.ms-component[data-component="weather"]
  .ms-weather-temperature,
.ms-component[data-component="weather"]
  .ms-weather-range,
.ms-component[data-component="weather"]
  .ms-weather-details,
.ms-component[data-component="weather"]
  .ms-weather-forecast {
  min-width: 0;
  max-width: 100%;
}

.ms-component[data-component="weather"],
.ms-component[data-component="weather"]
  .ms-weather {
  overflow-x: hidden;
  overflow-x: clip;
}

.ms-component[data-component="weather"]
  .ms-weather
  > .ms-container {
  display: block;

  width: min(
    calc(100% - 2rem),
    1160px
  );

  margin-right: auto;
  margin-left: auto;

  padding-right: 0;
  padding-left: 0;

  transform: none;
}

/* =========================================================
   TEXTOS LARGOS
========================================================= */

.ms-component[data-component="weather"]
  .ms-weather-location-name,
.ms-component[data-component="weather"]
  .ms-weather-event-date,
.ms-component[data-component="weather"]
  .ms-weather-condition,
.ms-component[data-component="weather"]
  .ms-weather-feels-like,
.ms-component[data-component="weather"]
  .ms-weather-advice-title,
.ms-component[data-component="weather"]
  .ms-weather-advice-description,
.ms-component[data-component="weather"]
  .ms-weather-forecast-description {
  max-width: 100%;

  overflow-wrap: anywhere;
  word-break: normal;
}

/* =========================================================
   TABLET Y PANTALLAS ESTRECHAS
========================================================= */

@media (max-width: 780px) {
  .ms-component[data-component="weather"]
    .ms-weather
    > .ms-container {
    width: calc(100% - 1.5rem);
  }

  /* PARTE SUPERIOR */

  .ms-component[data-component="weather"]
    .ms-weather-current-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;

    gap: 1rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-location {
    width: 100%;
    min-width: 0;
  }

  .ms-component[data-component="weather"]
    .ms-weather-location-content {
    width: 100%;
    min-width: 0;
  }

  .ms-component[data-component="weather"]
    .ms-weather-data-mode {
    align-self: flex-start;

    max-width: 100%;

    white-space: normal;

    text-align: left;
  }

  /* BLOQUE PRINCIPAL */

  .ms-component[data-component="weather"]
    .ms-weather-current-main {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;

    gap: 1.4rem;

    margin: 0;

    padding:
      0.5rem
      0
      1.6rem;

    text-align: center;
  }

  /* ICONO */

  .ms-component[data-component="weather"]
    .ms-weather-current-icon {
    flex: 0 0 auto;

    width: clamp(
      118px,
      32vw,
      150px
    );

    height: clamp(
      118px,
      32vw,
      150px
    );

    margin-right: auto;
    margin-left: auto;
  }

  /* TEMPERATURA */

  .ms-component[data-component="weather"]
    .ms-weather-temperature {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    min-width: 0;

    margin: 0;
  }

  .ms-component[data-component="weather"]
    .ms-weather-temperature-value {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    width: 100%;
    max-width: 100%;

    margin: 0 0 0.5rem;

    font-size: clamp(
      4rem,
      18vw,
      6rem
    );

    line-height: 0.92;
    letter-spacing: -0.035em;

    white-space: nowrap;
  }

  .ms-component[data-component="weather"]
    .ms-weather-temperature-unit {
    flex: 0 0 auto;

    margin-top: 0.25rem;

    font-size: clamp(
      1.15rem,
      4vw,
      1.6rem
    );
  }

  .ms-component[data-component="weather"]
    .ms-weather-condition,
  .ms-component[data-component="weather"]
    .ms-weather-feels-like {
    width: 100%;

    margin-right: auto;
    margin-left: auto;

    text-align: center;
  }

  /* MÁXIMA Y MÍNIMA */

  .ms-component[data-component="weather"]
    .ms-weather-range {
    display: grid;

    grid-template-columns:
      minmax(0, 1fr)
      auto
      minmax(0, 1fr);

    width: min(
      100%,
      360px
    );

    min-width: 0;
    max-width: 100%;

    margin-right: auto;
    margin-left: auto;

    padding:
      1rem
      0.85rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-range-item {
    min-width: 0;
  }

  .ms-component[data-component="weather"]
    .ms-weather-range-label {
    overflow-wrap: anywhere;
  }

  /* DETALLES */

  .ms-component[data-component="weather"]
    .ms-weather-details {
    width: 100%;
    min-width: 0;
  }

  .ms-component[data-component="weather"]
    .ms-weather-detail {
    width: 100%;
    min-width: 0;
  }

  .ms-component[data-component="weather"]
    .ms-weather-detail-content {
    width: 100%;
    min-width: 0;
  }

  .ms-component[data-component="weather"]
    .ms-weather-detail-value {
    max-width: 100%;

    overflow: visible;

    text-overflow: initial;
    white-space: normal;

    overflow-wrap: anywhere;
  }

  /* PRONÓSTICO */

  .ms-component[data-component="weather"]
    .ms-weather-forecast-track {
    width: 100%;
    max-width: 100%;

    padding-right: 0.2rem;
    padding-left: 0.2rem;

    overscroll-behavior-x: contain;
  }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {
  .ms-component[data-component="weather"]
    .ms-weather
    > .ms-container {
    width: calc(100% - 1.25rem);
  }

  .ms-component[data-component="weather"]
    .ms-weather-current {
    width: 100%;
    max-width: 100%;

    margin-right: auto;
    margin-left: auto;

    padding:
      1rem
      0.85rem;

    border-radius: 1.45rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-current::after {
    right: 1rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-location {
    align-items: flex-start;
  }

  .ms-component[data-component="weather"]
    .ms-weather-location-icon {
    width: 40px;
    height: 40px;
  }

  .ms-component[data-component="weather"]
    .ms-weather-location-name {
    font-size: clamp(
      1.15rem,
      6vw,
      1.45rem
    );
  }

  .ms-component[data-component="weather"]
    .ms-weather-temperature-value {
    font-size: clamp(
      3.8rem,
      20vw,
      5.3rem
    );
  }

  .ms-component[data-component="weather"]
    .ms-weather-range {
    width: 100%;
  }

  .ms-component[data-component="weather"]
    .ms-weather-details {
    display: grid;

    grid-template-columns: 1fr;

    width: 100%;

    gap: 0.7rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-detail {
    display: grid;

    grid-template-columns:
      auto
      minmax(0, 1fr);

    align-items: center;

    width: 100%;

    padding: 0.85rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-advice {
    width: 100%;
    max-width: 100%;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-header {
    width: 100%;
    max-width: 100%;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-description {
    text-align: left;
  }
}

/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 390px) {
  .ms-component[data-component="weather"]
    .ms-weather
    > .ms-container {
    width: calc(100% - 1rem);
  }

  .ms-component[data-component="weather"]
    .ms-weather-current {
    padding:
      0.85rem
      0.7rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-temperature-value {
    font-size: clamp(
      3.6rem,
      21vw,
      4.7rem
    );
  }

  .ms-component[data-component="weather"]
    .ms-weather-range {
    gap: 0.6rem;

    padding:
      0.85rem
      0.55rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-range-label {
    font-size: 0.57rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-range-value {
    font-size: 1.4rem;
  }
}

/* =========================================================
   WEATHER
   PRONÓSTICO RESPONSIVE EN FILAS
   Version 1.2
========================================================= */

/* =========================================================
   TABLET PEQUEÑA
========================================================= */

@media (max-width: 700px) {
  .ms-component[data-component="weather"]
    .ms-weather-forecast {
    width: 100%;
    max-width: 100%;

    overflow: visible;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-track {
    display: grid !important;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    align-items: stretch;

    width: 100%;
    max-width: 100%;

    gap: 1rem;

    margin: 0;
    padding: 0;

    overflow: visible;

    scroll-snap-type: none;

    scrollbar-width: auto;

    overscroll-behavior: auto;
    touch-action: auto;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    height: 100%;
    min-height: 340px;

    margin: 0;

    flex: none;

    scroll-snap-align: none;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-icon {
    width: 76px;
    height: 76px;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-icon svg {
    width: 54px;
    height: 54px;
  }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 480px) {
  .ms-component[data-component="weather"]
    .ms-weather-forecast-track {
    grid-template-columns: 1fr;

    gap: 1rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-card {
    width: 100%;
    max-width: 100%;
    min-height: 320px;

    padding:
      1.25rem
      1rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-day {
    font-size: 0.85rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-date {
    font-size: 0.7rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-condition {
    min-height: auto;

    margin-bottom: 0.85rem;

    font-size: 0.8rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-high {
    font-size: 1.7rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-low {
    font-size: 1rem;
  }
}

/* =========================================================
   MÓVIL MUY PEQUEÑO
========================================================= */

@media (max-width: 360px) {
  .ms-component[data-component="weather"]
    .ms-weather-forecast-card {
    min-height: 300px;

    padding:
      1.1rem
      0.85rem;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-icon {
    width: 70px;
    height: 70px;
  }

  .ms-component[data-component="weather"]
    .ms-weather-forecast-icon svg {
    width: 49px;
    height: 49px;
  }
}
