:root {
  --bg: #eef0f5;
  --bg-glow: radial-gradient(1200px 600px at 10% -10%, #dfe6ff 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #ffe9dc 0%, transparent 55%);
  --card: rgba(255, 255, 255, .78);
  --card-solid: #ffffff;
  --border: rgba(15, 23, 42, .06);
  --text: #0f172a;
  --muted: #64748b;
  --soft: #f1f4f9;
  --soft-2: #e7ebf3;
  --accent: #ff6a2b;
  --go: #16a34a;
  --stop: #e11d48;
  --blue: #3b82f6;
  --violet: #7c3aed;
  --hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #c026d3 100%);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .12);
  --radius: 26px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-glow: radial-gradient(1100px 600px at 0% -10%, rgba(79, 70, 229, .22) 0%, transparent 60%), radial-gradient(900px 500px at 110% 0%, rgba(255, 106, 43, .12) 0%, transparent 55%);
    --card: rgba(23, 26, 34, .72);
    --card-solid: #171a22;
    --border: rgba(255, 255, 255, .06);
    --text: #f1f5f9;
    --muted: #8a94a8;
    --soft: #1f2330;
    --soft-2: #272c3a;
    --hero: linear-gradient(135deg, #3730a3 0%, #6d28d9 55%, #a21caf 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg-glow), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.app { max-width: 1200px; margin: 0 auto; padding: 24px 16px 40px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-12 { grid-column: span 12; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
@media (max-width: 1020px) {
  .span-7, .span-5 { grid-column: span 12; }
  .span-4 { grid-column: span 6; }
  .card-auto { grid-column: span 12; }
}
@media (max-width: 680px) {
  .span-4 { grid-column: span 12; }
}

.card {
  background: var(--card);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.title b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.title small { display: block; color: var(--muted); font-size: 12.5px; }
.ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; flex: none; }
.ico-orange { background: rgba(255, 106, 43, .14); }
.ico-blue { background: rgba(59, 130, 246, .14); }
.ico-yellow { background: rgba(250, 204, 21, .18); }
.ico-teal { background: rgba(20, 184, 166, .15); }
.ico-green { background: rgba(22, 163, 74, .14); }

.chip { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--soft); border: 0; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.chip-btn.on { background: rgba(124, 58, 237, .16); color: var(--violet); }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero);
  color: #fff;
  border: 0;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  padding: 26px 28px;
  position: relative;
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 220px at 85% 0%, rgba(255, 255, 255, .18), transparent 70%); pointer-events: none; }
.hero-main { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; flex: 1 1 280px; }
.hero-top { display: flex; align-items: center; gap: 12px; }
.hero h1 { margin: 6px 0 0; font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-date { margin: 0; opacity: .85; font-size: 15px; }
.clock { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .9; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); font-size: 12.5px; font-weight: 600; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.pill-ok i { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.pill-bad i { background: #fb7185; }

.hero-weather { display: flex; flex-direction: column; gap: 14px; flex: 1 1 380px; min-width: 0; position: relative; z-index: 1; }
.weather-now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.w-icon { font-size: 48px; line-height: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .2)); }
.w-temp { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.w-cond { opacity: .85; font-size: 14px; }
.weather-meta { display: flex; flex-direction: column; gap: 2px; margin-left: auto; font-size: 13.5px; opacity: .9; }
.forecast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.forecast div { background: rgba(255, 255, 255, .13); border-radius: 16px; padding: 8px 4px; text-align: center; font-size: 13px; }
.forecast small { display: block; opacity: .8; text-transform: capitalize; }
.forecast span { display: block; font-size: 20px; margin: 2px 0; }
.forecast em { font-style: normal; opacity: .7; }

/* ---------- Freidora ---------- */
.fryer-body { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 560px) { .fryer-body { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.ring { position: relative; width: 200px; height: 200px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring-bg { stroke: var(--soft-2); }
.ring-fg { stroke: url(#ringGrad); stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .3s linear; }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-text small { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.card-fryer.active { background: linear-gradient(160deg, rgba(255, 106, 43, .12), transparent 55%), var(--card); }
.card-fryer.active #f-status { background: var(--accent); color: #fff; }
.card-fryer.paused .ring-num { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.card-fryer.active .ring svg { filter: drop-shadow(0 0 10px rgba(255, 106, 43, .35)); }

.fryer-controls { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--soft); border-radius: 18px; padding: 8px 8px 8px 16px; min-width: 0; }
.stepper-label { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper-row { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper-val { min-width: 74px; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.round { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--card-solid); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-size: 18px; font-weight: 600; display: grid; place-items: center; transition: transform .1s; }
.round:active { transform: scale(.92); }

.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.btn { border: 0; border-radius: 16px; padding: 13px 8px; background: var(--soft); font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .1s, filter .2s, box-shadow .2s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.97); }
.btn-go { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 163, 74, .7); }
.btn-stop { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; box-shadow: 0 8px 20px -8px rgba(225, 29, 72, .7); }
.fault { background: rgba(225, 29, 72, .12); color: var(--stop); border-radius: 14px; padding: 10px 14px; font-weight: 600; }

/* ---------- Echo ---------- */
.now-playing { display: flex; align-items: center; gap: 14px; min-width: 0; background: var(--soft); border-radius: 18px; padding: 10px; }
.play { width: 50px; height: 50px; border-radius: 14px; border: 0; flex: none; font-size: 18px; color: #fff; background: linear-gradient(135deg, #60a5fa, #3b82f6); box-shadow: 0 8px 18px -8px rgba(59, 130, 246, .8); }
.np-text { display: flex; flex-direction: column; min-width: 0; }
.np-text b, .np-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce { display: flex; gap: 8px; }
.announce input { flex: 1; min-width: 0; border: 1px solid transparent; background: var(--soft); border-radius: 16px; padding: 12px 16px; outline: none; transition: border-color .2s; }
.announce input:focus { border-color: var(--blue); }
.announce .btn { padding: 0 18px; font-size: 18px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { border: 1px solid var(--border); background: var(--soft); border-radius: 99px; padding: 7px 13px; font-size: 13px; font-weight: 500; transition: background .2s; }
.quick button:hover { background: var(--soft-2); }

/* ---------- Sliders ---------- */
.slider { display: flex; flex-direction: column; gap: 6px; }
.slider-head { display: flex; justify-content: space-between; font-size: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; background: var(--soft-2); outline: none; margin: 8px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; }
#e-vol { background: linear-gradient(90deg, #3b82f6 var(--fill, 30%), var(--soft-2) var(--fill, 30%)); }
#l-bri { background: linear-gradient(90deg, #facc15 var(--fill, 50%), var(--soft-2) var(--fill, 50%)); }

/* ---------- Luz ---------- */
.light-body { display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: center; }
.bulb { align-self: center; width: 112px; height: 112px; border-radius: 32px; border: 0; background: var(--soft); display: grid; place-items: center; transition: background .3s, box-shadow .3s; }
.bulb svg { width: 50px; height: 50px; fill: var(--muted); transition: fill .3s; }
.card-light.on .bulb { background: linear-gradient(135deg, #fde68a, #facc15); box-shadow: 0 0 0 8px rgba(250, 204, 21, .15), 0 18px 50px -10px rgba(250, 204, 21, .7); }
.card-light.on .bulb svg { fill: #713f12; }
.card-light.on #l-state { background: rgba(250, 204, 21, .2); }
.card-light.off-line .light-body { opacity: .5; }
.card-light.off-line .bulb { cursor: not-allowed; }

/* ---------- Temperatura ---------- */
.temp-now { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.temp-now small { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.spark { width: 100%; height: 90px; margin-top: auto; }
.spark path.line { fill: none; stroke: #14b8a6; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark path.area { fill: url(#sparkGrad); }

/* ---------- Automatización ---------- */
.auto-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px; }
.auto-row { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 18px; padding: 12px 14px; }
.auto-row > div { flex: 1; min-width: 0; }
.auto-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--card-solid); font-size: 18px; flex: none; }
.switch { width: 52px; height: 30px; border-radius: 99px; border: 0; background: var(--soft-2); position: relative; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: left .2s; }
.switch[aria-checked=true] { background: var(--go); }
.switch[aria-checked=true] i { left: 25px; }

/* ---------- Timbre ---------- */
.ico-violet { background: rgba(124, 58, 237, .14); }
.card-door #d-state { background: rgba(22, 163, 74, .14); color: var(--go); }
.card-door.asleep #d-state { background: var(--soft); color: var(--muted); }
.door-stats { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.door-stat { background: var(--soft); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.battery-row { display: flex; align-items: center; gap: 8px; }
.battery-row b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.battery-row small { color: var(--muted); font-weight: 600; }
.battery { position: relative; width: 44px; height: 22px; border: 2.5px solid var(--muted); border-radius: 6px; padding: 2px; flex: none; }
.battery::after { content: ""; position: absolute; right: -6px; top: 5px; width: 3px; height: 8px; border-radius: 0 2px 2px 0; background: var(--muted); }
.battery i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--go); transition: width .4s; }
.battery i.mid { background: #f59e0b; }
.battery i.low { background: var(--stop); }
.signal { display: flex; align-items: flex-end; gap: 4px; height: 26px; padding: 0 4px; }
.signal i { width: 7px; border-radius: 3px; background: var(--soft-2); }
.signal i:nth-child(1) { height: 25%; } .signal i:nth-child(2) { height: 50%; }
.signal i:nth-child(3) { height: 75%; } .signal i:nth-child(4) { height: 100%; }
.signal i.on { background: var(--violet); }
.toggles { display: flex; flex-direction: column; gap: 4px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 4px; font-size: 14px; font-weight: 500; }
.toggle-row + .toggle-row { border-top: 1px solid var(--border); }
.door-note { margin: 0; }
.card-door.asleep .toggles { opacity: .6; }
@media (max-width: 1020px) { .card-temp { grid-column: span 12; } }

/* ---------- Cámara ---------- */
.cam-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 18px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .8); transition: transform .1s, filter .2s; }
.cam-btn:hover { filter: brightness(1.08); }
.cam-btn:active { transform: scale(.98); }
.cam-btn-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); font-size: 20px; flex: none; }
.cam-btn b { display: block; font-size: 15px; }
.cam-btn small { display: block; opacity: .8; font-size: 12.5px; }
.cam-btn-go { margin-left: auto; font-size: 26px; opacity: .8; }
.cam-modal { position: fixed; inset: 0; z-index: 20; background: rgba(5, 6, 10, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.cam-modal[hidden] { display: none; }
.cam-box { width: min(960px, 100%); display: flex; flex-direction: column; gap: 12px; color: #fff; }
.cam-top { display: flex; justify-content: space-between; align-items: center; }
.cam-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 16px; }
.cam-view { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.cam-view img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.cam-view img.ok { opacity: 1; }
.cam-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; font-weight: 600; }
.cam-msg[hidden] { display: none; }
.cam-msg-text { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 420px; }
.cam-msg small { display: block; font-weight: 400; opacity: .75; }
.cam-retry { margin-top: 6px; padding: 10px 18px; }
.cam-hint { margin: 0; font-size: 13px; opacity: .65; text-align: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Grabaciones ---------- */
.ico-red { background: rgba(225, 29, 72, .13); }
.card-door.recording #d-state { background: rgba(225, 29, 72, .14); color: var(--stop); animation: blink 1.2s ease-in-out infinite; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
@media (max-width: 560px) { .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .rec-meta { padding: 14px 8px 6px; } }
.rec-grid:empty { display: none; }
.rec-item { position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--soft-2); display: block; transition: transform .15s; }
.rec-item:hover { transform: translateY(-2px); }
.rec-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-noimg { display: grid; place-items: center; height: 100%; font-size: 28px; }
.rec-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 14px; backdrop-filter: blur(4px); opacity: .9; }
.rec-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); display: flex; align-items: baseline; gap: 6px; }
.rec-meta b { font-size: 14px; }
.rec-meta small { font-size: 12px; opacity: .85; }
.rec-empty { margin: 0; }
.cam-view video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.rec-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rec-actions .btn { text-align: center; text-decoration: none; color: inherit; background: rgba(255, 255, 255, .12); }
.rec-actions .btn-stop { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; }
@media (max-width: 560px) { .rec-actions { grid-template-columns: 1fr 1fr; } }

/* ---------- Visitas y batería ---------- */
.bat-warn { background: rgba(225, 29, 72, .12); color: var(--stop); border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.visits { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 18px; padding: 8px 14px 8px 8px; background: var(--soft); transition: background .2s; }
.visits:hover { background: var(--soft-2); }
.visits img { width: 64px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--soft-2); }
.visits b { display: block; font-size: 14.5px; }
.visits small { display: block; color: var(--muted); font-size: 12.5px; }
.visits .cam-btn-go { color: var(--muted); }

/* ---------- Varios ---------- */
.banner { background: rgba(255, 106, 43, .1); border: 1px solid var(--accent); border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; }
.banner-error { border-color: var(--stop); background: rgba(225, 29, 72, .08); }
.banner code { background: var(--soft); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
footer { text-align: center; margin-top: 26px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 99px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); z-index: 10; max-width: calc(100% - 32px); }
button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 420px) {
  .card { padding: 18px; }
  .hero { padding: 22px 20px; }
  .ring { width: 170px; height: 170px; }
  .ring-num { font-size: 38px; }
  .stepper-val { min-width: 62px; font-size: 16px; }
  .round { width: 34px; height: 34px; }
}

/* ---------- Sesión ---------- */
.logout { margin-left: auto; color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); transition: background .2s; }
.logout:hover { background: rgba(255, 255, 255, .28); }

.login-page { display: grid; place-items: center; padding: 16px; }
.login-wrap { width: 100%; max-width: 400px; }
.login-card { padding: 32px 28px; gap: 14px; text-align: center; }
.login-card h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.login-card p { margin: -6px 0 6px; }
.login-logo { width: 72px; height: 72px; margin: 0 auto 4px; border-radius: 22px; display: grid; place-items: center; font-size: 36px; background: var(--hero); box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .6); }
.login-error { background: rgba(225, 29, 72, .1); color: var(--stop); border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 14px; font-weight: 600; }
.field input { border: 1px solid transparent; background: var(--soft); border-radius: 14px; padding: 13px 16px; font-size: 16px; outline: none; transition: border-color .2s; }
.field input:focus { border-color: var(--violet); }
.btn-block { width: 100%; padding: 14px; font-size: 16px; margin-top: 6px; }

/* ---------- Responsive ---------- */
.app { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); padding-bottom: max(40px, env(safe-area-inset-bottom)); }
@media (min-width: 1500px) {
  .app { max-width: 1400px; }
}
@media (max-width: 680px) {
  .app { padding-top: 12px; }
  .bento { gap: 12px; }
  .card { border-radius: 22px; }
  .hero { padding: 20px; gap: 18px; }
  .hero h1 { margin-top: 2px; }
  .hero-weather { flex-basis: 100%; }
  .w-icon { font-size: 40px; }
  .w-temp { font-size: 40px; }
  .forecast { gap: 6px; }
  .forecast div { padding: 6px 2px; border-radius: 12px; }
  .forecast span { font-size: 18px; }
  .announce input { font-size: 16px; } /* evita el zoom automático de iOS */
}
@media (max-width: 380px) {
  .forecast em { display: none; }
  .actions .btn { font-size: 13px; padding: 12px 4px; }
  .stepper { padding-left: 12px; }
  .stepper-label { font-size: 13px; }
}
@media (hover: none) {
  .btn:hover, .quick button:hover { filter: none; }
}
