@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.ws-app, .ws-card, .ws-tile, .ws-glass { font-family: var(--font-sans); color: var(--ink); font-size: 15px; line-height: 22px; }
.ws-app *, .ws-card *, .ws-tile *, .ws-glass * { box-sizing: border-box; }
.ws-app { max-width: 1040px; margin: 0 auto; padding: 12px 12px 28px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr);
  background: radial-gradient(900px 420px at 50% -80px, color-mix(in srgb, var(--accent) 14%, transparent), transparent), var(--surface-0); }
.ws-heading { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.ws-small { font-size: 13px; line-height: 18px; margin: 0; }
.ws-muted { color: var(--ink-muted); }
.ws-center { text-align: center; }
.ws-mono, .ws-v-xl, .ws-v-lg, .ws-v-hero, .ws-unit, .ws-readout, .ws-axis, .ws-hero-deg { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.ws-app, .ws-card, .ws-tile, .ws-glass { -webkit-font-smoothing: antialiased; letter-spacing: -0.011em; }
.ws-label { font-size: 11.5px; line-height: 16px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-muted); }
.ws-v-hero { font-size: 72px; line-height: 68px; font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ws-v-xl { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ws-v-lg { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.ws-unit { font-size: 13px; color: var(--ink-muted); }
.ws-ico { display: inline-flex; color: var(--c, var(--ink)); }

.ws-m-temp { --m: var(--temp); } .ws-m-hum { --m: var(--hum); } .ws-m-press { --m: var(--press); }
.ws-m-light { --m: var(--light); } .ws-m-wind { --m: var(--wind); }

/* ---------- Superficies con volumen ---------- */
.ws-card, .ws-tile { position: relative; display: grid; gap: 12px; align-content: start; min-width: 0; padding: 16px;
  background: linear-gradient(160deg, var(--surface-1), color-mix(in srgb, var(--surface-1) 78%, var(--surface-2)));
  border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-raise); }
.ws-card-head, .ws-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ws-tilt { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease, box-shadow .18s ease; will-change: transform; }
.ws-tile { gap: 6px; padding: 16px 16px 12px; overflow: hidden; border-radius: 28px;
  background: radial-gradient(130% 100% at 100% 0%, color-mix(in srgb, var(--m) 24%, transparent), transparent 62%), linear-gradient(165deg, color-mix(in srgb, var(--surface-1) 94%, white), var(--surface-1) 55%, color-mix(in srgb, var(--surface-1) 85%, var(--m)));
  border: 1px solid color-mix(in srgb, var(--m) 26%, var(--line));
  box-shadow: inset 0 1.5px 0 #ffffff2e, inset 0 -14px 26px -16px color-mix(in srgb, var(--m) 45%, transparent), 0 2px 3px #0000002e, 0 12px 20px -8px color-mix(in srgb, var(--m) 40%, #000000a0), 0 28px 36px -22px #000000a6; }
.ws-tile::after { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; border-radius: 999px; background: linear-gradient(90deg, transparent, #ffffff66, transparent); pointer-events: none; }
.ws-tile > * { position: relative; z-index: 1; }
.ws-tile:active { transform: perspective(700px) translateZ(-8px) scale(.975); }
.ws-tile > .ws-tile-bg { position: absolute; right: -6px; top: -8px; z-index: 0; color: var(--m); opacity: .2; pointer-events: none; }
.ws-tile-bg svg { display: block; stroke-width: 1.15; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--m) 55%, transparent)); }
/* termómetro: el mercurio sube y baja */
.a-merc { transform-box: fill-box; transform-origin: 50% 100%; animation: ws-merc 4.5s ease-in-out infinite; }
.a-bulb { fill: currentColor; stroke: none; animation: ws-glow 4.5s ease-in-out infinite; }
@keyframes ws-merc { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes ws-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* gota: flota y brilla */
.a-drop { animation: ws-float 5s ease-in-out infinite; }
.a-shine { animation: ws-glow 5s ease-in-out infinite; }
@keyframes ws-float { 0%, 100% { transform: translateY(1.2px); } 50% { transform: translateY(-1.4px); } }
/* manómetro: la aguja oscila */
.a-needle { transform-origin: 12px 14.2px; animation: ws-needle 6s ease-in-out infinite; }
@keyframes ws-needle { 0%, 100% { transform: rotate(-38deg); } 40% { transform: rotate(26deg); } 70% { transform: rotate(-12deg); } }
/* sol: rayos giran, núcleo late */
.a-rays { transform-origin: 12px 12px; animation: ws-spin 28s linear infinite; }
.a-core { transform-origin: 12px 12px; animation: ws-pulse 4s ease-in-out infinite; }
@keyframes ws-pulse { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.06); } }
/* lluvia: la nube flota y caen las gotas */
.a-cloud { animation: ws-float 5s ease-in-out infinite; }
.a-rd { animation: ws-fall 1.7s ease-in infinite; }
.a-rd2 { animation-delay: -.55s; } .a-rd3 { animation-delay: -1.1s; }
@keyframes ws-fall { 0% { transform: translateY(-2.5px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(3.5px); opacity: 0; } }
/* nieve: el copo gira despacio */
.a-flake { transform-origin: 12px 12px; animation: ws-spin 22s linear infinite; }
/* niebla: bandas que van y vienen */
.a-fg { animation: ws-drift 6s ease-in-out infinite; }
.a-fg2 { animation-delay: -1.5s; animation-direction: reverse; } .a-fg3 { animation-delay: -3s; } .a-fg4 { animation-delay: -4.5s; animation-direction: reverse; }
@keyframes ws-drift { 0%, 100% { transform: translateX(-2px); opacity: .5; } 50% { transform: translateX(2px); opacity: 1; } }
/* helada: destellos de hielo */
.a-tw { transform-box: fill-box; transform-origin: 50% 50%; animation: ws-twinkle 2.6s ease-in-out infinite; }
.a-tw2 { animation-delay: -1.3s; }
@keyframes ws-twinkle { 0%, 100% { transform: scale(.5); opacity: .2; } 50% { transform: scale(1.15); opacity: 1; } }
/* viento: las ráfagas fluyen */
.a-w { animation: ws-gust 3.2s ease-in-out infinite; }
.a-w2 { animation-duration: 4.1s; animation-delay: -1s; } .a-w3 { animation-duration: 2.6s; animation-delay: -.6s; }
@keyframes ws-gust { 0%, 100% { transform: translateX(-1.6px); opacity: .55; } 50% { transform: translateX(1.8px); opacity: 1; } }
.ws-tile-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.ws-tile .ws-v-xl { color: var(--m); text-shadow: 0 2px 0 color-mix(in srgb, var(--m) 22%, transparent), 0 8px 16px color-mix(in srgb, var(--m) 28%, transparent); }
.ws-spark { display: block; margin-top: 2px; overflow: visible; }
.ws-spark-line { stroke: var(--m); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 3px 3px color-mix(in srgb, var(--m) 45%, transparent)); }
.ws-glass { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }

/* ---------- Distribución móvil primero ---------- */
.ws-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws-updated { text-align: center; margin: -6px 0 0; }
@media (max-width: 520px) { .ws-tile .ws-v-xl { font-size: 26px; line-height: 30px; } .ws-tile .ws-small { font-size: 12px; } }
@media (min-width: 760px) {
  .ws-app { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 20px 36px; gap: 20px; }
  .ws-hero, .ws-updated, .ws-a-outlook, .ws-tiles, .ws-a-chart { grid-column: 1 / -1; }
  .ws-a-moon, .ws-a-garden { align-self: start; }
  .ws-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- Escena 3D ---------- */
.ws-hero { position: relative; height: 400px; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--sky-night-top); isolation: isolate; }
.ws-scene { position: absolute; inset: 0; z-index: 0; }
.ws-scene-canvas { display: block; width: 100%; height: 100%; }
.ws-hero-top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; z-index: 2; }
.ws-hero-name { padding: 6px 12px; }
.ws-hero-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-hero-badges .ws-badge { background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ws-hero-main { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 16px; z-index: 2; }
.ws-hero-temp { display: flex; align-items: flex-start; gap: 4px; color: var(--ink); }
.ws-hero-deg { font-size: 20px; line-height: 28px; color: var(--ink-muted); margin-top: 6px; }
.ws-hero-side { display: grid; gap: 2px; min-width: 0; }
@media (min-width: 760px) { .ws-hero { height: 460px; } .ws-hero-main { max-width: 480px; right: auto; } }

/* ---------- Insignias y pestañas ---------- */
.ws-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 600; padding: 4px 12px 4px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, currentColor 20%, var(--surface-1)), color-mix(in srgb, currentColor 8%, var(--surface-1)));
  box-shadow: inset 0 1px 0 #ffffff40, inset 0 -3px 6px -3px color-mix(in srgb, currentColor 40%, transparent), 0 1px 2px #00000026, 0 6px 10px -5px color-mix(in srgb, currentColor 55%, #000000aa); }
.ws-badge-ico { display: inline-flex; filter: drop-shadow(0 0 3px color-mix(in srgb, currentColor 70%, transparent)); }
.ws-badge--ok { color: var(--ok); } .ws-badge--warn { color: var(--warn); } .ws-badge--danger { color: var(--danger); }
.ws-badge--off { color: var(--ink-muted); } .ws-badge--info { color: var(--accent); }
.ws-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ws-scrollx { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding: 2px 2px 8px; }
.ws-scrollx::-webkit-scrollbar { display: none; }
.ws-tab { flex: none; font: inherit; font-size: 13px; line-height: 18px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--surface-1), var(--surface-2)); color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.ws-tab[aria-pressed="true"] { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, white), var(--accent)); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 55%, black), 0 8px 14px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.ws-tab:focus-visible, .ws-pcard:focus-visible, .ws-chart-svg:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .ws-tab { min-height: 40px; } }

/* ---------- Gráfico ---------- */
.ws-chart { display: grid; gap: 6px; color: var(--m, var(--accent)); }
.ws-chart-svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.ws-plot { fill: color-mix(in srgb, var(--m, var(--accent)) 6%, var(--surface-2)); }
.ws-grid { stroke: color-mix(in srgb, var(--ink) 9%, transparent); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 1 5; } .ws-grid--v { stroke: none; }
.ws-halo { fill: var(--m, var(--accent)); opacity: .2; }
.ws-axis { font-size: 11px; font-weight: 500; fill: var(--ink-muted); }
.ws-line { stroke: var(--m, var(--accent)); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ws-line--shadow { stroke-width: 7; opacity: .22; filter: blur(3px); transform: translateY(6px); }
.ws-dot { fill: var(--m, var(--accent)); stroke: var(--surface-1); stroke-width: 2.5; }
.ws-cursor { stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.ws-readout { font-size: 13px; line-height: 18px; color: var(--ink-muted); min-height: 18px; }
.ws-empty { margin: 0; color: var(--ink-muted); }
.ws-chart-card { gap: 10px; }

/* ---------- Perspectiva ---------- */
.ws-outlook { gap: 12px; }
.ws-headline { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.ws-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 6px 16px; margin: 0 -6px; scrollbar-width: none; }
.ws-rail::-webkit-scrollbar { display: none; }
.ws-rail-item { flex: 0 0 172px; scroll-snap-align: start; }
@media (min-width: 760px) { .ws-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; padding: 6px 6px 10px; } .ws-rail-item { flex: none; } }
.ws-pcard { position: relative; height: 196px; perspective: 900px; cursor: pointer; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease; border-radius: var(--radius-xl); -webkit-tap-highlight-color: transparent; }
.ws-pcard-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ws-pcard.is-flipped .ws-pcard-in { transform: rotateY(180deg); }
.ws-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--radius-xl); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 16%, var(--surface-1)), var(--surface-1) 62%);
  border: 1px solid color-mix(in srgb, var(--c) 38%, var(--line)); box-shadow: var(--shadow-raise), 0 5px 0 -2px color-mix(in srgb, var(--c) 35%, var(--surface-2)); }
.ws-front > .ws-card-bg, .ws-garden-panel > .ws-card-bg { position: absolute; right: -8px; top: -10px; z-index: 0; color: var(--c); opacity: .2; pointer-events: none; }
.ws-front > :not(.ws-card-bg), .ws-garden-panel > :not(.ws-card-bg) { position: relative; z-index: 1; }
.ws-card-bg svg { display: block; stroke-width: 1.15; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--c) 55%, transparent)); }
.ws-face { overflow: hidden; }
.ws-back { transform: rotateY(180deg); align-items: stretch; overflow: auto; }
.ws-face-head { display: flex; align-items: center; gap: 8px; align-self: flex-start; }
.ws-back .ws-face-head { justify-content: space-between; }
.ws-ring-wrap { position: relative; width: 84px; height: 84px; }
.ws-ring { position: absolute; inset: 0; display: block; overflow: visible; }
.ws-ring svg { overflow: visible; }
.ws-ring-track { fill: none; stroke: color-mix(in srgb, var(--c) 18%, var(--surface-2)); stroke-width: 10; stroke-linecap: round; }
.ws-ring-bar { fill: none; stroke: var(--c); stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 3px 4px color-mix(in srgb, var(--c) 55%, transparent)); }
.ws-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 500; }
.ws-ring-pct { font-size: 12px; margin-left: 1px; color: var(--ink-muted); }
.ws-level { font-weight: 600; font-size: 15px; }
.ws-drv { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 17px; }
.ws-drv li { display: grid; gap: 1px; }
.ws-drv-name { font-weight: 600; }
.ws-drv-eff { font-size: 12px; font-weight: 600; }

/* ---------- Barómetro ---------- */
.ws-dial { display: grid; place-items: center; }
.ws-dial-svg { width: min(260px, 100%); height: auto; filter: drop-shadow(0 14px 12px color-mix(in srgb, #000 28%, transparent)); }
.ws-bz1 { stop-color: var(--surface-1); } .ws-bz2 { stop-color: var(--line-strong); }
.ws-bezel-in { fill: var(--surface-2); stroke: var(--line); }
.ws-bf1 { stop-color: var(--surface-1); } .ws-bf2 { stop-color: var(--surface-2); }
.ws-bc1 { stop-color: var(--surface-1); } .ws-bc2 { stop-color: var(--line-strong); } .ws-wc2 { stop-color: color-mix(in srgb, var(--wind) 70%, black); }
.ws-tick { stroke: var(--ink-muted); stroke-width: 1.5; stroke-linecap: round; } .ws-tick-major { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.ws-dial-num { font: 600 10px var(--font-sans); fill: var(--ink); }
.ws-dial-unit { font: 400 9px var(--font-sans); fill: var(--ink-muted); }
.ws-dial-past { fill: var(--warn); stroke: var(--warn); stroke-width: 3; stroke-linejoin: round; }
.ws-needle { fill: var(--press); stroke: var(--press); stroke-width: 3; stroke-linejoin: round; }
.ws-cap { fill: var(--ink); }
.ws-gloss { fill: #fff; opacity: .1; }
.ws-dial-read { text-align: center; }

/* ---------- Viento ---------- */
.ws-wind-row { display: flex; align-items: center; gap: 16px; }
.ws-rotor { display: inline-block; width: 120px; height: 100px; perspective: 420px; flex: none; }
.ws-rotor-plane { display: block; transform: rotateX(58deg); transform-style: preserve-3d; filter: drop-shadow(0 18px 10px color-mix(in srgb, #000 35%, transparent)); }
.ws-rotor-svg { animation: ws-spin linear infinite; transform-origin: 50% 50%; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
.ws-arm { stroke: var(--ink-muted); stroke-width: 3; stroke-linecap: round; }
.ws-hub { fill: var(--ink); }
.ws-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; align-items: center; }
.ws-dl dt { color: var(--ink-muted); font-size: 13px; } .ws-dl dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }


/* ---------- Luna ---------- */
.ws-moon { overflow: hidden; --ink: #e6eeea; --ink-muted: #b4c2ba; --surface-1: #151e1b; --surface-2: #1d2824; --line: #33433d; --line-strong: #6c7f77; --accent: #5fd0c3; --on-accent: #06201c; --ok: #6fd08c; --warn: #f0c24d; --danger: #ff8a80;
  color: var(--ink); border-color: #2a3a5c; background: radial-gradient(120% 70% at 85% 0%, #243a66 0%, transparent 60%), linear-gradient(180deg, var(--sky-night-top), #0e1a36); }
.ws-moon > * { position: relative; z-index: 1; }
.ws-stars { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; }
.ws-star { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; animation: ws-star var(--d) ease-in-out var(--w) infinite; }
@keyframes ws-star { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: .7; transform: scale(1.15); } }
.ws-moon-main { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.ws-moon-orb { position: relative; width: 150px; height: 150px; flex: none; margin: 8px 14px; }
.ws-moon-ringwrap { position: absolute; inset: -22px -34px; transform: rotateX(74deg) rotateZ(-14deg); pointer-events: none; }
.ws-moon-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #ffffff2e; animation: ws-spin 46s linear infinite; }
.ws-moon-ring::after { content: ''; position: absolute; left: 50%; top: -3.5px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px #ffffffaa; }
.ws-moon-body { position: relative; animation: ws-moonfloat 8s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes ws-moonfloat { 0%, 100% { transform: translateY(3px) rotateY(-9deg); } 50% { transform: translateY(-5px) rotateY(9deg); } }
.ws-moon-svg { display: block; overflow: visible; }
.ws-mg1 { stop-color: var(--moon-light); } .ws-mg2 { stop-color: #d8d1b6; } .ws-mg3 { stop-color: #8f8a75; }
.ws-md1 { stop-color: #3a4766; } .ws-md2 { stop-color: var(--moon-dark); }
.ws-moon-dark { stroke: #ffffff1f; stroke-width: .8; }
.ws-mare ellipse { fill: #6f7686; opacity: .3; } .ws-crater circle { fill: #5d6474; opacity: .28; stroke: #ffffff33; stroke-width: .5; }
.ws-moon-info { display: grid; gap: 6px; flex: 1 1 200px; min-width: 0; }
.ws-moon-name { font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -0.03em; }
.ws-cycle-wrap { display: grid; gap: 4px; margin-top: 6px; }
.ws-cycle { position: relative; height: 10px; border-radius: 999px; background: #ffffff1c; box-shadow: inset 0 1px 2px #00000066; }
.ws-cycle-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #5fd0c355, var(--accent)); }
.ws-cycle-dot { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--moon-light) 60%, #bdb594); box-shadow: 0 0 14px 2px #fff3d0aa, 0 3px 6px #0008; }
.ws-cycle-lab { display: flex; justify-content: space-between; color: var(--ink-muted); }
.ws-moon-events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ws-moon-ev { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 22px; background: linear-gradient(160deg, #ffffff14, #ffffff08); border: 1px solid #ffffff1c; box-shadow: inset 0 1px 0 #ffffff1f, 0 10px 18px -12px #000; min-width: 0; }
.ws-moon-ev-t { display: grid; min-width: 0; } .ws-moon-ev-t strong { font-size: 14px; line-height: 20px; white-space: nowrap; }
.ws-moon-mini { display: inline-flex; flex: none; } .ws-moon-mini .ws-moon-svg { filter: drop-shadow(0 4px 6px #0008); }
.ws-phases { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.ws-phases::-webkit-scrollbar { display: none; }
.ws-phase { flex: 0 0 92px; scroll-snap-align: start; display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 22px; text-align: center; background: #ffffff0d; border: 1px solid #ffffff17; }
.ws-phase-n { font-size: 12px; line-height: 15px; font-weight: 600; }
.ws-phase.is-now { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 #ffffff26; }
@media (min-width: 760px) { .ws-phases { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); overflow: visible; } .ws-phase { flex: none; } }

/* ---------- Jardín ---------- */
.ws-garden { gap: 12px; }
.ws-sym { font-size: 10px; margin-right: 7px; }
.ws-garden-panel { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 16px; border-radius: 26px; border: 1px solid color-mix(in srgb, var(--c) 32%, var(--line));
  background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 62%), var(--surface-2); box-shadow: inset 0 1px 0 #ffffff1f; animation: ws-pop .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes ws-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.ws-g-head { display: flex; gap: 8px; flex-wrap: wrap; padding-right: 70px; }
.ws-g-block { display: grid; gap: 6px; }
.ws-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.ws-reasons li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.ws-fx { font-size: 11px; line-height: 20px; text-align: center; } .ws-fx--1 { color: var(--ok); } .ws-fx--\-1 { color: var(--warn); } .ws-fx--0 { color: var(--ink-muted); }
.ws-g-tip { padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--c) 12%, var(--surface-1)); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
/* animaciones de tarea */
.a-snip1 { transform-origin: 11px 12px; animation: ws-snip 2.4s ease-in-out infinite; } .a-snip2 { transform-origin: 11px 12px; animation: ws-snip2 2.4s ease-in-out infinite; }
@keyframes ws-snip { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(7deg); } } @keyframes ws-snip2 { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-7deg); } }
.a-can { transform-origin: 8px 17px; animation: ws-tilt 3.6s ease-in-out infinite; } @keyframes ws-tilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-11deg); } }
.a-sway { transform-origin: 12px 21px; animation: ws-sway 4.2s ease-in-out infinite; } @keyframes ws-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.a-leaf { transform-box: fill-box; transform-origin: 0% 100%; animation: ws-grow 4.2s ease-in-out infinite; } @keyframes ws-grow { 0%, 100% { transform: scale(.88); } 50% { transform: scale(1.06); } }
.a-hop { animation: ws-hop 2.8s ease-in-out infinite; } @keyframes ws-hop { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-3px); } }
.a-wob { transform-origin: 12px 6px; animation: ws-wob 3.6s ease-in-out infinite; } @keyframes ws-wob { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* ---------- Tablas y plegables ---------- */
.ws-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.ws-fold > summary::-webkit-details-marker { display: none; }
.ws-fold > summary::after { content: '▾'; color: var(--ink-muted); transition: transform .2s; }
.ws-fold[open] > summary::after { transform: rotate(180deg); }
.ws-table { width: 100%; border-collapse: collapse; }
.ws-table th, .ws-table td { text-align: left; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.ws-table th { font-weight: 500; }
.ws-table td.ws-mono { white-space: nowrap; }
@media (max-width: 520px) { .ws-table td:nth-child(3) { display: none; } }
.ws-sensors { list-style: none; margin: 0; padding: 0; display: grid; }
.ws-sensors li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ws-sensors li:first-child { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .ws-rotor-svg, .ws-tile-bg *, .ws-card-bg *, .ws-moon *, .ws-garden-panel { animation: none !important; }
  .ws-pcard-in, .ws-tilt, .ws-pcard { transition: none; }
}
