/* MOVILPOOL · Simulador "Tu piscina en tu mano" */
.mps {
  --mps-scale: 1;
  --mps-bg: #050b16;
  --mps-app: #08111f;
  --mps-card: #101b30;
  --mps-card2: #16233d;
  --mps-line: rgba(140, 170, 220, .16);
  --mps-text: #f2f5fb;
  --mps-muted: #a7b2c7;
  --mps-dim: #6f7c95;
  --mps-blue: #2b7de1;
  --mps-blue2: #61a5fa;
  --mps-ok: #34c77b;
  --mps-warn: #f5b544;
  --mps-bad: #f0525a;
  --mps-font: "TeX Gyre Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  color: var(--mps-text);
  font-family: var(--mps-font);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 420px;
}
.mps *, .mps *::before, .mps *::after { box-sizing: border-box; }
.mps [hidden] { display: none !important; }
.mps svg { display: block; }
.mps h3, .mps p { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: 0; text-transform: none; }
.mps img { max-width: none; border: 0; box-shadow: none; }
/* neutral button reset (beats theme resets without fighting components) */
.mps button {
  -webkit-appearance: none; appearance: none;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; background-color: transparent; box-shadow: none;
  font: inherit; color: inherit; line-height: inherit;
  text-transform: none; text-decoration: none; letter-spacing: inherit;
  cursor: pointer; white-space: normal;
}
.mps button:where(:hover, :focus, :active) { background-color: transparent; color: inherit; text-decoration: none; }
.mps button:focus-visible, .mps [tabindex]:focus-visible, .mps input:focus-visible { outline: 2px solid var(--mps-blue2); outline-offset: 2px; }
.mps button:disabled { cursor: default; opacity: .6; }

/* ------------------------------------------------ stage */
.mps-stage {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  align-items: center;
}
.mps-phonecol { width: calc(404px * var(--mps-scale)); height: calc(824px * var(--mps-scale)); }
.mps-phone {
  width: 404px; height: 824px; padding: 12px;
  transform: scale(var(--mps-scale)); transform-origin: 0 0;
  border-radius: 58px;
  background: linear-gradient(145deg, #2a303b, #0c0f14 40%, #1b2029);
  box-shadow: 0 0 0 1.5px #3a4353 inset, 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 90px -20px rgba(43, 125, 225, .35);
}
.mps-phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 46px; overflow: hidden;
  background: var(--mps-app);
  isolation: isolate;
}
.mps-phone__island {
  position: absolute; z-index: 30; top: 11px; left: 50%; width: 112px; height: 32px;
  transform: translateX(-50%); border-radius: 20px; background: #000;
}

/* phone <-> pool link (brand connection line) */
.mps-link { position: relative; height: 2px; align-self: center; }
.mps-link__line {
  position: absolute; left: -6px; right: -6px; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(97, 165, 250, .15), rgba(97, 165, 250, .55), rgba(97, 165, 250, .15));
}
.mps-link__line::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: #cfe4ff; box-shadow: 0 0 12px 3px var(--mps-blue2); opacity: 0;
}
.mps-link__node {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  display: grid; place-items: center; border-radius: 50%;
  background: #0d1a2e; border: 1.5px solid rgba(97, 165, 250, .5); color: var(--mps-blue2);
}
.mps-link__node svg { width: 18px; height: 18px; }
.mps-link.is-pulse .mps-link__line::after { animation: mps-travel .55s ease-out; }
.mps-link.is-pulse .mps-link__node { animation: mps-ping .6s ease-out; }
@keyframes mps-travel { 0% { left: 0; opacity: 1; } 100% { left: calc(100% - 8px); opacity: .2; } }
@keyframes mps-ping { 0% { box-shadow: 0 0 0 0 rgba(97, 165, 250, .7); } 100% { box-shadow: 0 0 0 14px rgba(97, 165, 250, 0); } }

/* ------------------------------------------------ pool */
.mps-poolcol { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.mps-pool {
  position: relative; width: 100%;
  max-width: calc(824px * var(--mps-scale) * 10 / 7);
  aspect-ratio: 10 / 7;
  border-radius: 22px; overflow: hidden;
  background: #070b12;
  box-shadow: 0 0 0 1px var(--mps-line), 0 40px 90px -40px rgba(0, 0, 0, .9);
  user-select: none;
}
.mps-pool__svg, .mps-pool__fx, .mps-pool__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mps-pool--3d { background: radial-gradient(120% 80% at 50% 0%, #10213b 0%, #070d18 55%, #04070c 100%); }
.mps-pool--3d .mps-pool__svg, .mps-pool--3d .mps-pool__fx { display: none; }
.mps-pool__gl { cursor: grab; }
.mps-pool__gl:active { cursor: grabbing; }
.mps-pool__fx { mix-blend-mode: screen; pointer-events: none; }
.mps-note { max-width: calc(824px * var(--mps-scale) * 10 / 7); margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--mps-dim); }

.mps-legend { position: absolute; left: 2.2%; top: 3%; display: flex; flex-wrap: wrap; gap: 6px; z-index: 3; }
.mps-lg {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 99px;
  background: rgba(6, 11, 22, .86); border: 1px solid var(--mps-line); color: #8190a8;
  font-size: 12px; transition: color .25s, border-color .25s, background .25s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mps-lg svg { width: 18px; height: 15px; }
.mps-lg em { font-style: normal; }
.mps-lg.is-on { color: #fff; border-color: rgba(97, 165, 250, .6); background: rgba(43, 125, 225, .28); }

.mps-tools { position: absolute; right: 2.2%; top: 3%; display: flex; gap: 6px; z-index: 6; }
.mps .mps-tool {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px;
  background: rgba(8, 14, 26, .78); border: 1px solid var(--mps-line); color: var(--mps-text); font-size: 12.5px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background .2s;
}
.mps .mps-tool:hover { border-color: rgba(97, 165, 250, .6); background: rgba(20, 34, 60, .9); }
.mps-tool svg { width: 15px; height: 15px; }
.mps-tool em { font-style: normal; }
.mps-dd { position: relative; }
.mps-dd__menu {
  position: absolute; right: 0; top: 38px; min-width: 190px; padding: 6px; border-radius: 14px;
  background: #0d1729; border: 1px solid var(--mps-line); box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.mps .mps-dd__menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; }
.mps .mps-dd__menu button:hover { background: var(--mps-card2); }

.mps-coord {
  position: absolute; left: 50%; bottom: 5%; z-index: 5; width: min(80%, 540px); transform: translateX(-50%);
  display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px;
  background: rgba(10, 30, 60, .88); border: 1px solid rgba(97, 165, 250, .65);
  box-shadow: 0 0 40px -6px rgba(43, 125, 225, .7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mps-coord span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mps-blue); color: #fff; }
.mps-coord span svg { width: 18px; height: 18px; }
.mps-coord p { font-size: 13.5px; line-height: 1.4; }
.mps-coord.is-in { animation: mps-drop .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes mps-drop { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.mps-callouts { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.mps-callout {
  position: absolute; transform: translate(-50%, calc(-100% - 22px)); white-space: nowrap;
  padding: 6px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  background: #fff; color: #0a1a30; box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
.mps-callout::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 16px; margin-left: -1px;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0));
}
.mps-callout.is-in { animation: mps-callout 2.6s ease forwards; }
@keyframes mps-callout {
  0% { opacity: 0; transform: translate(-50%, calc(-100% - 12px)); }
  10%, 80% { opacity: 1; transform: translate(-50%, calc(-100% - 22px)); }
  100% { opacity: 0; transform: translate(-50%, calc(-100% - 26px)); }
}

.mps-poolhint {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none;
  padding: 10px 16px; border-radius: 99px; font-size: 14px; color: #fff;
  background: rgba(8, 20, 40, .55); border: 1px dashed rgba(255, 255, 255, .45);
  animation: mps-breathe 2.4s ease-in-out infinite;
}
@keyframes mps-breathe { 50% { opacity: .55; } }

.mps-hud {
  position: absolute; left: 50%; bottom: 5.5%; transform: translate(-50%, 8px); z-index: 3;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 92%;
  opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none;
}
.mps-hud.is-on { opacity: 1; transform: translate(-50%, 0); }
.mps-hc {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px;
  font-size: 12.5px; color: #dfe8f7; background: rgba(4, 16, 36, .7); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .3s, background .3s;
}
.mps-hc { white-space: nowrap; }
.mps-hc b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.mps-hc i { width: 8px; height: 8px; border-radius: 50%; background: var(--mps-ok); }
.mps-hc[data-st="warn"] { border-color: var(--mps-warn); }
.mps-hc[data-st="warn"] i { background: var(--mps-warn); }
.mps-hc[data-st="bad"] { border-color: var(--mps-bad); background: rgba(70, 8, 16, .75); animation: mps-alarm 1.1s ease-in-out infinite; }
.mps-hc[data-st="bad"] i { background: var(--mps-bad); }
@keyframes mps-alarm { 50% { box-shadow: 0 0 0 4px rgba(240, 82, 90, .25); } }

.mps-heatchip {
  position: absolute; left: 50%; top: 27%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px;
  background: rgba(60, 20, 8, .7); border: 1px solid rgba(255, 150, 90, .6); color: #ffe6d6;
}
.mps-heatchip svg { width: 20px; height: 16px; }
.mps-heatchip b { color: #fff; font-variant-numeric: tabular-nums; }
.mps-heatchip[data-st="reached"], .mps-heatchip[data-st="off"] { background: rgba(8, 30, 20, .7); border-color: rgba(52, 199, 123, .6); color: #d8fbe8; }
.mps-heatchip[data-st="cooling"] { background: rgba(8, 24, 60, .7); border-color: rgba(97, 165, 250, .6); color: #dcebff; }

.mps-demo {
  position: absolute; left: 2.2%; bottom: 1.6%; z-index: 2; font-size: 10.5px; letter-spacing: .08em;
  color: rgba(255, 255, 255, .55); text-transform: uppercase;
}

.mps-modal { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(3, 7, 14, .55); }
.mps-modal__card {
  width: min(88%, 420px); padding: 22px; border-radius: 20px; background: #0e1a2f; border: 1px solid var(--mps-line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6); font-size: 14.5px; line-height: 1.5; color: var(--mps-muted);
}
.mps-modal__t { font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 8px !important; }
.mps-modal__b { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ------------------------------------------------ app (réplica de la app MOVILPOOL 2026) */
.mps-app.ma {
  --ma-bg: #091121; --ma-card: #151c32; --ma-in: #111829; --ma-line: rgba(255, 255, 255, .07); --ma-line2: rgba(255, 255, 255, .11);
  --ma-text: #eef0f6; --ma-mut: #a2a8ba; --ma-dim: #737a8e; --ma-blue: #4f8ef7; --ma-blue2: #6aa1ff; --ma-blued: #1d2c52;
  --ma-red: #e5393f; --ma-pink: #eeaeab; --ma-green: #31d07f; --ma-sheet: #2b2530; --ma-orange: #ffa53a;
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--ma-bg); color: var(--ma-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px; line-height: 1.3; letter-spacing: 0;
}
.ma h2, .ma h3, .ma h4, .ma h5, .ma p { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: 0; text-transform: none; line-height: 1.3; }
.ma b, .ma strong { font-weight: 600; }
.ma svg { display: block; }
.ma .ma-blue { color: var(--ma-blue); }
.ma .ma-mut { color: var(--ma-mut); font-size: 10.5px; line-height: 1.5; }
.ma .ma-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ma .ma-r { text-align: right; }

/* barra de estado + cabecera */
.ma-status { position: absolute; z-index: 31; left: 0; right: 0; top: 0; height: 50px; pointer-events: none; }
.ma-status b { position: absolute; left: 34px; top: 17px; font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.ma-status em { position: absolute; right: 62px; top: 20px; display: flex; gap: 5px; color: #fff; }
.ma-status em svg { height: 11px; width: auto; }
.ma-status i { position: absolute; right: 30px; top: 20px; width: 25px; height: 12px; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, .55); }
.ma-status i::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 60%; border-radius: 1.5px; background: #ffd60a; }
.ma-status i::before { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .55); }
.ma-head { flex: none; position: relative; z-index: 6; display: flex; align-items: center; gap: 10px; height: 106px; padding: 50px 14px 8px; background: var(--ma-card); }
.ma .ma-pill { display: flex; align-items: center; height: 42px; border-radius: 99px; background: rgba(205, 212, 230, .55); color: #fff; }
.ma .ma-pill--one { flex: none; width: 56px; justify-content: center; }
.ma-pill--one svg { width: 22px; height: 22px; }
.ma .ma-pill--two { margin-left: auto; width: 110px; justify-content: space-around; padding: 0 6px; }
.ma .ma-pill--two button { position: relative; width: 44px; height: 42px; display: grid; place-items: center; color: #fff; }
.ma-pill--two svg { width: 21px; height: 21px; }
.ma-badge { position: absolute; left: 22px; top: 21px; min-width: 19px; height: 15px; padding: 0 3px; border-radius: 99px; background: #c4282d; color: #ffd2cf; font-size: 9px; font-weight: 700; line-height: 15px; text-align: center; }
.ma img.ma-logo { width: 136px; height: auto; display: block; }
.ma-hcenter { flex: 1; display: flex; justify-content: center; }
.ma-pillspace { flex: none; width: 56px; }
.ma .ma-htitle { flex: 1; min-width: 0; font-size: 17px; font-weight: 400; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma .ma-htitle--c { text-align: center; }

/* cuerpo */
.ma-body { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 15px 128px; scrollbar-width: none; overscroll-behavior: contain; }
.ma-body::-webkit-scrollbar { display: none; }
.ma-screen.is-in { animation: ma-in .22s ease; }
@keyframes ma-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.ma-card { position: relative; margin-bottom: 16px; padding: 24px 32px; border-radius: 22px; background: var(--ma-card); border: 1px solid var(--ma-line); }
.ma-card h4 { font-size: 13px; font-weight: 600; }
.ma-card h3 { font-size: 16px; font-weight: 500; }
.ma-ico-t { display: flex; align-items: center; gap: 8px; }
.ma-ico-t i { width: 17px; height: 17px; flex: none; }
.ma-ico-t i svg { width: 100%; height: 100%; }

/* inicio */
.ma-weather { display: flex; align-items: center; justify-content: space-between; min-height: 140px; }
.ma-weather__loc { font-size: 13px; font-weight: 600; margin-bottom: 8px !important; }
.ma-weather__row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px !important; }
.ma-weather__row b { font-size: 22px; font-weight: 700; }
.ma-weather__row span { font-size: 11px; color: var(--ma-mut); }
.ma-okchip { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 6px; background: #0b3324; color: #2fd27e; font-size: 9.5px; font-weight: 500; letter-spacing: .02em; }
.ma-okchip--sm { height: 17px; font-size: 9px; padding: 0 7px; }
.ma-weather__ico { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: #3f3e5c; color: #e6e5f2; }
.ma-weather__ico svg { width: 38px; height: 38px; }
.ma-state { padding-bottom: 18px; }
.ma-state > .ma-row { min-height: 26px; margin-bottom: 8px; }
.ma-alertchip { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 6px; background: #5d1f29; color: #ff8f93; font-size: 10.5px; }
.ma-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ma-gauge { display: flex; flex-direction: column; align-items: center; padding: 6px 4px 4px; border-radius: 12px; background: var(--ma-in); border: 1px solid var(--ma-line2); }
.ma-gauge__label { font-size: 7.5px; color: #cfd3df; }
.ma-gauge__dial { position: relative; width: 60px; height: 58px; }
.ma-gauge__dial svg { width: 60px; height: 60px; }
.ma-gauge__track { fill: none; stroke: #cbc8d4; stroke-width: 6; stroke-linecap: round; }
.ma-gauge__val { fill: none; stroke: var(--ma-blue); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .5s ease, stroke .3s; }
.ma-gauge[data-st="warn"] .ma-gauge__val, .ma-gauge[data-st="warm"] .ma-gauge__val { stroke: var(--ma-orange); }
.ma-gauge[data-st="bad"] .ma-gauge__val { stroke: var(--ma-red); }
.ma-gauge__num { position: absolute; left: 0; right: 0; top: 18px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ma-gauge__num b { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ma-gauge__num small { font-size: 6.5px; color: #cfd3df; }
.ma .ma-link { display: flex; align-items: center; gap: 4px; margin: 12px 0 0 auto; color: var(--ma-blue); font-size: 10px; letter-spacing: .03em; }
.ma-link svg { width: 13px; height: 13px; }
.ma .ma-link--l { margin: 10px 0 16px 8px; font-size: 11px; gap: 8px; }
.ma-link--l svg { width: 14px; height: 14px; }
.ma-devhead { margin: 0 0 16px; }
.ma-devhead h4 { font-size: 13px; font-weight: 600; }
.ma-hint { position: relative; margin: -4px 0 12px; padding: 8px 12px; border-radius: 12px; font-size: 11.5px; text-align: center; background: var(--ma-blue); color: #fff; animation: mps-breathe 2.4s ease-in-out infinite; }
.ma-hint::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--ma-blue); transform: rotate(45deg); }
.ma-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ma .ma-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 170px; padding: 36px 20px 18px 34px; border-radius: 22px; background: var(--ma-card); border: 1px solid var(--ma-line); text-align: left; transition: border-color .25s; }
.ma .ma-tile:hover { border-color: rgba(79, 142, 247, .45); }
.ma-tile__ico { position: relative; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: #3a3f50; color: #c3c7d3; transition: background .25s, color .25s; }
.ma-tile__ico svg { width: 32px; height: 24px; }
.ma-tile--chlor .ma-tile__ico svg { width: 22px; height: 28px; }
.ma-tile--light .ma-tile__ico svg { width: 30px; height: 30px; }
.ma-tile--heat .ma-tile__ico svg { width: 34px; height: 24px; }
.ma-tile__ico i { position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: #31d07f; }
.ma-tile--pump.is-on .ma-tile__ico { background: #1d3a73; color: #5d9bff; }
.ma-tile--chlor.is-on .ma-tile__ico { background: #173e36; color: #3fd08e; }
.ma-tile--light.is-on .ma-tile__ico { background: #3c1a3c; color: #e3409e; }
.ma-tile--heat.is-on .ma-tile__ico { background: #4b4f5e; color: #fff; }
.ma-tile.is-alarm .ma-tile__ico i { background: var(--ma-red); }
.ma .ma-chip { position: absolute; left: 106px; top: 52px; height: 19px; padding: 0 8px; border-radius: 5px; font-style: normal; font-size: 9px; font-weight: 600; letter-spacing: .06em; line-height: 19px; background: #2a2f3e; color: #9ba1b3; }
.ma-tile.is-on .ma-chip { background: #0b3324; color: #2fd27e; }
.ma-tile b { font-size: 11.5px; font-weight: 600; }
.ma-tile small { margin-top: 3px; font-size: 9.5px; color: var(--ma-mut); }
.ma-fabrow { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; margin: 18px -2px 0; pointer-events: none; }
.ma-fabrow .ma-fab { pointer-events: auto; }
.ma .ma-fab { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 99px; background: var(--ma-blue); color: #fff; font-size: 11.5px; font-weight: 500; box-shadow: 0 10px 24px -8px rgba(79, 142, 247, .6); }
.ma-fab svg { width: 18px; height: 18px; }

/* tarjeta de encendido */
.ma-power { display: flex; align-items: center; gap: 12px; min-height: 142px; }
.ma-power__txt { flex: 1; min-width: 0; }
.ma-power__txt h4 { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.ma-power__txt p { font-size: 10px; color: var(--ma-mut); }
.ma .ma-gear { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ma-blue); }
.ma-gear svg { width: 22px; height: 22px; }
.ma .ma-power__btn { flex: none; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid #5d6273; color: #8a8f9f; transition: border-color .3s, color .3s, box-shadow .3s; }
.ma-power__btn svg { width: 28px; height: 28px; }
.ma .ma-power__btn.is-on { border-color: var(--ma-blue); color: var(--ma-blue); box-shadow: 0 0 22px -6px rgba(79, 142, 247, .7); }

/* deslizadores */
.ma-slider { padding-top: 26px; padding-bottom: 22px; }
.ma-slider h4 { font-size: 13px; font-weight: 500; }
.ma-slider .ma-row b { font-size: 13px; font-weight: 500; }
.ma .ma-range {
  --p: 50%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 24px; margin: 8px 0 4px; padding: 0;
  background: transparent; border: 0; box-shadow: none; cursor: pointer;
}
.ma .ma-range::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--ma-blue) var(--p), #3b3d4f var(--p)); }
.ma .ma-range::-moz-range-track { height: 3px; border-radius: 99px; background: #3b3d4f; }
.ma .ma-range::-moz-range-progress { height: 3px; border-radius: 99px; background: var(--ma-blue); }
.ma .ma-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: #f2f3f8; border: 1.5px solid var(--ma-blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.ma .ma-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #f2f3f8; border: 1.5px solid var(--ma-blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.ma-range__lim { display: flex; justify-content: space-between; font-size: 9px; color: var(--ma-dim); letter-spacing: .03em; }
.ma-bar { height: 8px; margin-top: 14px; border-radius: 99px; background: #474a5a; overflow: hidden; }
.ma-bar i { display: block; height: 100%; width: 0; background: var(--ma-blue); }

/* botones */
.ma .ma-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 99px; background: var(--ma-blue); color: #fff; font-size: 11.5px; font-weight: 500; transition: filter .2s, background .2s; }
.ma .ma-btn:hover { filter: brightness(1.07); }
.ma .ma-btn svg { width: 15px; height: 15px; }
.ma .ma-btn--ghost { background: transparent; border: 1px solid var(--ma-line2); color: var(--ma-blue); }
.ma .ma-btn--text { background: transparent; color: var(--ma-blue); }
.ma .ma-btn--red { color: #ff8a8a; }
.ma .ma-btn--pink { background: var(--ma-pink); color: #2d1517; }
.ma .ma-btn--block { display: flex; width: 100%; }
.ma .ma-btn--sm { min-height: 36px; font-size: 11px; padding: 0 14px; }
.ma .ma-btn:disabled { background: #4a4d5c; color: #9da1ae; filter: none; }
.ma .ma-btn--text:disabled { background: transparent; }
.ma-2btn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ma-2btn--sm .ma-btn { min-height: 40px; font-size: 10px; padding: 0 8px; }
.ma-2btn--sm .ma-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma .ma-outline { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 38px; margin-top: 12px; border-radius: 99px; border: 1px solid var(--ma-line2); color: var(--ma-blue); font-size: 11px; }
.ma-outline svg { width: 15px; height: 15px; }
.ma-spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -2px; animation: ma-spin .8s linear infinite; color: var(--ma-blue); }
@keyframes ma-spin { to { transform: rotate(360deg); } }

/* lavado + programaciones */
.ma-wash__h { display: flex; gap: 10px; margin-bottom: 16px; }
.ma-wash__h > i { flex: none; width: 22px; height: 18px; margin-top: 2px; }
.ma-wash__h > i svg { width: 100%; height: 100%; }
.ma-wash__h h4 { font-size: 12.5px; }
.ma-wash__h p { font-size: 9.5px; color: var(--ma-mut); line-height: 1.5; margin-top: 2px !important; }
.ma-sched h4 { font-size: 12px; margin-bottom: 8px; }
.ma-sched p { margin-top: 2px !important; }

/* clorador */
.ma-errs { padding-top: 34px; padding-bottom: 30px; }
.ma-errs h5 { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; margin-bottom: 14px !important; }
.ma-errs h5 i { width: 16px; height: 16px; color: #ffb2b2; }
.ma-err { display: flex; gap: 14px; }
.ma-err > span { flex: none; height: 18px; padding: 0 9px; border-radius: 4px; background: #8e1d22; color: #ffc7c7; font-size: 9.5px; font-weight: 600; line-height: 18px; }
.ma-err b { display: block; font-size: 11px; font-weight: 500; color: #ffb9b9; margin-bottom: 3px; }
.ma-err p { font-size: 9.5px; color: #cdd0dc; line-height: 1.5; }
.ma-bigg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.ma-gauge--big { padding: 14px 6px 10px; border-radius: 20px; background: var(--ma-card); border-color: var(--ma-line); }
.ma-gauge--big .ma-gauge__label { font-size: 11.5px; }
.ma-gauge--big .ma-gauge__dial { width: 92px; height: 82px; }
.ma-gauge--big .ma-gauge__dial svg { width: 92px; height: 92px; }
.ma-gauge--big .ma-gauge__track, .ma-gauge--big .ma-gauge__val { stroke-width: 5.4; }
.ma-gauge--big .ma-gauge__num { top: 28px; }
.ma-gauge--big .ma-gauge__num b { font-size: 14px; }
.ma-gauge--big .ma-gauge__num small { font-size: 11px; }
.ma-mode h4 { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 16px; }
.ma-seg { display: flex; gap: 6px; }
.ma .ma-seg__b { flex: 1 1 0; height: 40px; border-radius: 99px; border: 1px solid var(--ma-line2); color: var(--ma-blue); font-size: 10px; transition: background .2s, color .2s; }
.ma .ma-seg__b.is-on { background: var(--ma-blue); border-color: var(--ma-blue); color: #fff; }
.ma-seg.is-busy { opacity: .45; pointer-events: none; }
.ma-seg.is-busy .ma-seg__b.is-on { background: #6a6f7f; border-color: #6a6f7f; }
.ma-kv h4 { font-weight: 500; margin-bottom: 14px; }
.ma-kv .ma-row span { font-size: 10.5px; color: var(--ma-mut); }
.ma-kv .ma-row b { font-size: 10.5px; color: #ff9c9c; font-weight: 500; }
.ma-kv .ma-row b.ma-blue { color: var(--ma-blue); }

/* iluminación */
.ma-queue h4 { font-weight: 500; margin-bottom: 8px; }
.ma-queue .ma-mut { margin-bottom: 12px !important; }
.ma-qi { display: flex; align-items: center; gap: 12px; font-size: 11px; margin-bottom: 14px !important; }
.ma-qi i { width: 17px; height: 17px; border-radius: 50%; flex: none; }
.ma-wheel { position: relative; width: 240px; height: 240px; margin: 22px auto 6px; border-radius: 50%; touch-action: none; cursor: crosshair;
  background: radial-gradient(circle closest-side, #fff 0%, rgba(255, 255, 255, 0) 100%), conic-gradient(from 90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.ma-wheel.is-off { filter: brightness(.55) saturate(.7); }
.ma-wheel__knob { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #0d1222; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); pointer-events: none; }
.ma-wheel--form { width: 220px; height: 220px; margin-top: 12px; }

/* bomba de calor */
.ma-temp h4 { font-size: 13px; }
.ma-temp .ma-ico-t i { width: 21px; height: 21px; }
.ma-lock { width: 15px; height: 15px; color: #c9cbd4; }
.ma-lock svg { width: 100%; height: 100%; }
.ma-temp__row { margin: 18px 0 8px; align-items: flex-end; }
.ma-temp__row span { display: block; font-size: 8.5px; color: #cfd3df; margin-bottom: 4px; }
.ma-temp__row b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ma-arc { position: relative; margin: 0 -8px; }
.ma-arc svg { width: 100%; height: auto; touch-action: none; cursor: pointer; }
.ma-arc__track { fill: none; stroke: #232a40; stroke-width: 14; stroke-linecap: round; }
.ma-arc__val { fill: none; stroke: var(--ma-blue); stroke-width: 14; stroke-linecap: round; }
.ma-arc__hit { fill: transparent; }
.ma-temp.is-off .ma-arc__val { stroke: #cbc6d2; }
.ma-temp.is-off h4, .ma-temp.is-off .ma-blue { color: #9097a8; }
.ma-temp.is-off .ma-arc svg { cursor: not-allowed; }
.ma-arc__c { position: absolute; left: 0; right: 0; top: 40%; text-align: center; pointer-events: none; }
.ma-arc__c b { display: block; font-size: 34px; font-weight: 700; line-height: 1; }
.ma-arc__c span { font-size: 13px; font-weight: 600; }
.ma-arc__min, .ma-arc__max { position: absolute; bottom: -2px; font-size: 9px; color: #cfd3df; }
.ma-arc__min { left: 8px; }
.ma-arc__max { right: 8px; }
.ma-heatmode { padding: 14px 18px; }
.ma-heatmode .ma-seg__b { height: 38px; font-size: 10.5px; }

/* programaciones */
.ma-schedtop { margin: -2px -6px 16px; }
.ma-schedtop .ma-btn--ghost { color: var(--ma-blue); }
.ma-empty { padding: 26px 22px; }
.ma-empty h4 { font-size: 12px; margin-bottom: 6px; }
.ma-empty .ma-btn { margin-top: 14px; }
.ma-schedc { padding: 26px 22px 18px 34px; }
.ma-schedc h4 { font-size: 12px; margin-bottom: 4px; }
.ma-tag { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 6px; background: var(--ma-blued); color: #cfe0ff; font-size: 10.5px; }
.ma-tag.is-paused { background: #3a3d4b; color: #c3c6d1; }
.ma-ico-s { display: flex; align-items: center; gap: 6px; margin-top: 4px !important; }
.ma-ico-s svg { width: 12px; height: 12px; }
.ma .ma-line { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 36px; margin-top: 10px; border-radius: 99px; border: 1px solid var(--ma-line); color: var(--ma-blue); font-size: 11px; }
.ma-line svg { width: 14px; height: 14px; }
.ma .ma-line--red { color: #ff8f8f; }
.ma-line--red svg { color: #ff8f8f; }
.ma-form { padding: 30px 22px 24px 34px; }
.ma-form h4 { font-size: 12.5px; font-weight: 500; margin-bottom: 12px; }
.ma-field { position: relative; display: block; margin-bottom: 10px; padding: 6px 12px 8px; border: 1px solid var(--ma-line2); border-radius: 4px; }
.ma-field span { display: block; font-size: 8.5px; color: var(--ma-mut); margin-bottom: 4px; }
.ma .ma-field input { width: 100%; padding: 4px 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 12px; outline: none; box-shadow: none; color-scheme: dark; }
.ma-field input::-webkit-calendar-picker-indicator { opacity: 0; position: absolute; right: 8px; width: 24px; cursor: pointer; }
.ma-field > svg { position: absolute; right: 12px; bottom: 11px; width: 18px; height: 18px; color: #d7d9e1; pointer-events: none; }
.ma-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ma-sub { font-size: 10.5px; margin: 6px 0 10px !important; color: #e1e3ea; }
.ma-days { display: flex; gap: 6px; margin-top: 12px; }
.ma .ma-days button { flex: 1; aspect-ratio: 1; border-radius: 50%; background: #2a3150; color: #b4b9c8; font-size: 9px; font-weight: 600; }
.ma .ma-days button.is-on { background: var(--ma-blue); color: #fff; }
.ma-form .ma-row b { font-size: 11.5px; font-weight: 500; }
.ma-form .ma-tag { height: 24px; font-size: 9px; }
.ma-formsave { padding: 18px 22px; }

/* notificaciones */
.ma-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; border: 1px solid var(--ma-line2); overflow: hidden; }
.ma .ma-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; font-size: 11.5px; color: var(--ma-blue); }
.ma-tabs svg { width: 16px; height: 16px; }
.ma .ma-tabs button.is-on { background: var(--ma-blued); color: #fff; }
.ma .ma-notif { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 10px; padding: 20px 18px 16px 14px; border-radius: 18px; background: var(--ma-card); border: 1px solid var(--ma-line); border-left: 2px solid var(--ma-blue); text-align: left; }
.ma-notif__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ff9fb0; }
.ma-notif--sched .ma-notif__dot, .ma-notif--info .ma-notif__dot { background: var(--ma-blue); }
.ma-notif--ok .ma-notif__dot { background: var(--ma-green); }
.ma-notif > span { flex: 1; min-width: 0; }
.ma-notif b { display: block; font-size: 11px; font-weight: 600; }
.ma-notif small { display: block; margin-top: 4px; font-size: 9.5px; color: var(--ma-mut); line-height: 1.5; }
.ma-notif em { display: block; margin-top: 6px; font-size: 9px; font-style: normal; color: var(--ma-dim); }
.ma-notif > svg { flex: none; width: 20px; height: 20px; color: var(--ma-blue); }
.ma-emptyp { text-align: center; padding: 30px 0; font-size: 12px !important; }

/* mi cuenta y ajustes */
.ma-prof { text-align: center; padding: 26px 20px 22px; }
.ma-avatar { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--ma-blue); color: #0b1530; }
.ma-avatar svg { width: 30px; height: 30px; }
.ma-prof h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ma-fields h3 { font-size: 16px; font-weight: 500; }
.ma-fields > span { display: block; margin-top: 18px; font-size: 9px; color: var(--ma-mut); letter-spacing: .02em; }
.ma-fields > p { font-size: 12px; margin-top: 6px !important; }
.ma-fields .ma-btn { margin-top: 14px; }
.ma-list { padding: 20px 22px; }
.ma-list__t { font-size: 12px; font-weight: 500 !important; margin: 4px 0 4px 6px; }
.ma .ma-li { display: flex; align-items: center; gap: 14px; width: 100%; height: 50px; padding: 0 6px; border-bottom: 1px solid var(--ma-line); font-size: 12.5px; text-align: left; }
.ma .ma-li:last-of-type { border-bottom: 0; }
.ma-li > svg:first-child { flex: none; width: 20px; height: 20px; color: #e6e8ef; }
.ma-li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-li > svg:last-child { flex: none; width: 16px; height: 16px; color: #e6e8ef; }
.ma .ma-li--red { color: #ff9a9a; }
.ma-li--red > svg:first-child { color: #ff9a9a; }
.ma-ver { text-align: center; font-size: 9px; color: var(--ma-mut); margin: 12px 0 4px !important; letter-spacing: .03em; }
.ma-nset { padding: 26px 20px 18px 28px; }
.ma-nset h4 { font-size: 12px; font-weight: 500; margin-bottom: 14px; }
.ma-nset h5 { font-size: 11px; font-weight: 500; margin: 18px 0 8px !important; }
.ma-nitem { margin-bottom: 14px; }
.ma-nitem b, .ma-nset > .ma-row b, .ma-qrow b { display: block; font-size: 11px; font-weight: 500; }
.ma-nitem p, .ma-nset > .ma-row p, .ma-qrow p { font-size: 8.5px; color: var(--ma-mut); line-height: 1.45; margin-top: 2px !important; }
.ma .ma-toggle { position: relative; flex: none; width: 40px; height: 24px; border-radius: 99px; background: #3a3d4b; transition: background .2s; }
.ma-toggle i { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #6b6f7d; transition: transform .2s, background .2s; }
.ma .ma-toggle.is-on { background: var(--ma-blue); }
.ma-toggle.is-on i { transform: translateX(16px); background: #0d1630; }
.ma-chks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.ma .ma-chk { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 4px; background: #232b48; color: #dfe3ee; font-size: 10px; }
.ma-chk svg { width: 13px; height: 13px; color: var(--ma-blue2); }
.ma .ma-chk.is-on { background: #1c3466; }
.ma-rgk { font-size: 9.5px; font-weight: 600; margin: 8px 0 2px !important; }
.ma-rg { display: flex; align-items: center; gap: 10px; }
.ma-rg span { width: 26px; font-size: 8px; color: var(--ma-mut); }
.ma-rg .ma-range { margin: 2px 0; }
.ma-rgv { font-size: 8.5px !important; }
.ma-colrow { margin: 18px 0 14px; }
.ma-colrow span, .ma-introw span { font-size: 9.5px; }
.ma .ma-swatch { width: 38px; height: 38px; border-radius: 4px; }
.ma-introw { margin-bottom: -2px; }
.ma .ma-radio { display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 8px; padding: 14px 16px; border-radius: 8px; background: #463f4b; text-align: left; }
.ma-radio > svg { flex: none; width: 20px; height: 20px; color: #d5d7df; }
.ma-radio b { display: block; font-size: 10.5px; font-weight: 500; }
.ma-radio small { display: block; margin-top: 3px; font-size: 8.5px; color: #c9cbd4; }
.ma .ma-radio.is-on { background: #1c3466; }
.ma-radio.is-on > svg { color: var(--ma-blue2); }
.ma-qrow { margin: 18px 0 14px; align-items: center; }
.ma-step { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ma .ma-step button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ma-line2); display: grid; place-items: center; color: #dfe2ea; }
.ma-step svg { width: 14px; height: 14px; }
.ma-b { display: block; font-size: 11px; margin-bottom: 6px; }
.ma-p { font-size: 9.5px; color: var(--ma-mut); line-height: 1.5; margin: 8px 0 14px !important; }
.ma-inst { display: flex; align-items: center; gap: 14px; padding: 22px 20px; }
.ma-inst__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #1f3c78; color: #fff; }
.ma-inst__ico svg { width: 22px; height: 22px; }
.ma-inst > div { flex: 1; min-width: 0; }
.ma-inst span { display: block; font-size: 8.5px; color: var(--ma-mut); margin-bottom: 3px; }
.ma-inst b { font-size: 14px; }
.ma-inst > i { width: 18px; height: 18px; }
.ma-frost { margin-top: 16px; align-items: flex-start; }
.ma-frost b { display: block; font-size: 11px; font-weight: 400; }
.ma-frost p { font-size: 8.5px; color: var(--ma-mut); margin-top: 3px !important; }
.ma-linked { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: #1c3466; }
.ma-linked > span { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #23407a; color: #fff; }
.ma-linked > span svg { width: 18px; height: 18px; }
.ma-linked > div { flex: 1; }
.ma-linked b { display: block; font-size: 11px; }
.ma-linked em { display: inline-block; margin: 4px 0 2px; padding: 2px 6px; border-radius: 3px; background: var(--ma-blue); color: #fff; font-style: normal; font-size: 7.5px; letter-spacing: .06em; }
.ma-linked small { display: block; font-size: 8px; color: var(--ma-mut); }
.ma .ma-linked button { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; }
.ma-linked button svg { width: 18px; height: 18px; }

/* barra inferior */
.ma-nav {
  position: absolute; left: 15px; right: 15px; bottom: 24px; z-index: 15; display: grid; grid-template-columns: repeat(4, 1fr);
  height: 80px; padding: 12px 0 8px; border-radius: 22px; background: rgba(26, 27, 34, .9); border: 1px solid rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ma .ma-nav button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9.5px; color: #e9ebf1; letter-spacing: .02em; white-space: nowrap; }
.ma-nav span { display: grid; place-items: center; width: 40px; height: 32px; color: #e6e8ef; }
.ma-nav svg { width: 32px; height: 24px; }
.ma-nav button:nth-child(2) svg { width: 24px; height: 30px; }
.ma-nav button:nth-child(3) svg { width: 30px; height: 30px; }
.ma-nav button:nth-child(4) svg { width: 34px; height: 24px; }
.ma-nav button:first-child span { color: #d6cfe0; }
.ma .ma-nav button.is-active, .ma .ma-nav button.is-active span { color: var(--ma-blue); }

.ma--nonav .ma-nav { display: none; }
.ma--nonav .ma-body { padding-bottom: 40px; }
.ma--nonav .ma-toasts { bottom: 36px; }
.ma--nonav .ma-modal { padding-bottom: 30px; }

/* menú lateral */
.ma-drawer { position: absolute; inset: 0; z-index: 25; background: rgba(4, 8, 18, .45); }
.ma-drawer__p { width: 70%; height: 100%; padding: 64px 0 22px; display: flex; flex-direction: column; background: var(--ma-card); animation: ma-slide .25s ease; }
@keyframes ma-slide { from { transform: translateX(-100%); } to { transform: none; } }
.ma-drawer__p img.ma-logo { width: 150px; margin: 0 0 40px 14px; }
.ma .ma-drawer__p button { display: flex; align-items: center; gap: 18px; width: 100%; height: 51px; padding: 0 18px; font-size: 12.5px; color: #eef0f6; text-align: left; }
.ma-drawer__p button svg { width: 20px; height: 20px; color: #e3e5ec; }
.ma-drawer__p hr { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--ma-line2); }
.ma .ma-drawer__p .ma-drawer__out { margin: auto 14px 0; width: auto; height: 38px; justify-content: center; gap: 10px; border-radius: 99px; border: 1px solid var(--ma-line2); color: var(--ma-blue); font-size: 11.5px; }
.ma-drawer__out svg { width: 16px !important; height: 16px !important; color: var(--ma-blue) !important; }

/* ventanas: asistente de lavado, historial y diálogos */
.ma-modal { position: absolute; inset: 0; z-index: 22; display: flex; align-items: center; justify-content: center; padding: 108px 7px 100px; background: rgba(9, 17, 33, .45); animation: ma-fade .2s ease; }
@keyframes ma-fade { from { opacity: 0; } to { opacity: 1; } }
.ma-sheet { width: 100%; max-height: 100%; overflow-y: auto; scrollbar-width: none; padding: 26px 18px 22px; border-radius: 26px; background: var(--ma-sheet); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); text-align: center; }
.ma-sheet::-webkit-scrollbar { display: none; }
@keyframes ma-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.ma-sheet h3 { font-size: 17px; font-weight: 400; margin-bottom: 14px; }
.ma-sheet h2 { font-size: 16px; font-weight: 700; margin: 6px 0 12px; }
.ma-sheet > p { font-size: 10.5px; color: #e3e3ea; line-height: 1.55; margin-bottom: 18px !important; }
.ma-steps small { display: block; font-size: 8.5px; color: #e3e3ea; margin-bottom: 6px; }
.ma-steps div { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.ma-steps i { width: 6px; height: 6px; border-radius: 50%; background: #e7e5ee; }
.ma-steps i.is-done { background: var(--ma-blue); }
.ma-steps i.is-on { width: 10px; height: 10px; margin-top: -2px; background: var(--ma-blue); }
.ma-wiz__ico { display: block; width: 64px; height: 64px; margin: 0 auto 6px; }
.ma-wiz__ico svg { width: 100%; height: 100%; }
.ma-wiz__ok { width: 60px; height: 60px; }
.ma-wiz__spin { display: block; width: 26px; height: 26px; margin: 18px auto 18px; border-radius: 50%; border: 2.5px solid var(--ma-blue); border-color: var(--ma-blue) transparent transparent transparent; animation: ma-spin .9s linear infinite; }
.ma-box { margin: 0 14px 22px; padding: 22px 18px; border-radius: 18px; background: #131a2e; text-align: left; }
.ma-box p { font-size: 10px; color: #e3e3ea; text-align: center; line-height: 1.55; }
.ma-box .ma-row b { font-size: 11.5px; font-weight: 500; }
.ma-box--warn { margin: 0 4px 26px; padding: 26px 22px; }
.ma-box--warn b { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #ffb4ad; margin-bottom: 8px; }
.ma-box--warn b svg { width: 18px; height: 18px; color: #ffb4ad; }
.ma-box--warn p { text-align: left; font-size: 9.5px; }
.ma-sheet .ma-btn--block + .ma-btn--block { margin-top: 6px; }
.ma-clock { font-size: 26px !important; font-weight: 700; color: var(--ma-blue) !important; letter-spacing: .03em; font-variant-numeric: tabular-nums; margin: 0 0 6px !important; }
.ma-small { font-size: 8.5px !important; color: #e3e3ea; margin-bottom: 30px !important; }
.ma-warn { font-size: 8.5px !important; color: #ff9c9c !important; margin-bottom: 14px !important; }
.ma-q { font-size: 10px !important; margin: 0 0 10px !important; }
.ma-apply { text-align: left; padding: 0 6px; }
.ma-apply h5 { font-size: 10.5px; font-weight: 600; margin: 10px 0 8px !important; }
.ma-apply p { display: flex; align-items: center; gap: 10px; font-size: 10.5px; margin-bottom: 8px !important; color: #e3e3ea; }
.ma-apply p svg { width: 16px; height: 16px; flex: none; color: #d8d6de; }
.ma-apply p.is-done svg { color: var(--ma-blue); }
.ma-apply p.is-now { font-weight: 600; }
.ma-apply p.is-now .ma-spin { width: 14px; height: 14px; margin: 0 1px; }
.ma-confirm { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0 22px; background: rgba(9, 17, 33, .35); }
.ma-dialog { width: 100%; padding: 26px 24px 20px; border-radius: 26px; background: var(--ma-sheet); text-align: left; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: ma-pop .2s ease; }
.ma-dialog h3 { font-size: 17px; font-weight: 400; margin-bottom: 14px; }
.ma-dialog p { font-size: 10.5px; color: #e3e3ea; line-height: 1.6; }
.ma-dialog__b { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; }
.ma-dialog__b .ma-btn { min-height: 36px; padding: 0 14px; }
.ma-count { font-size: 8.5px !important; text-align: left; margin-bottom: 10px !important; }
.ma-log { max-height: 380px; overflow-y: auto; scrollbar-width: none; }
.ma-logi { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 22px 16px 22px 20px; border-radius: 16px; background: #151c32; text-align: left; }
.ma-logi > i { width: 18px; height: 18px; flex: none; color: #e3e3ea; }
.ma-logi > i svg { width: 100%; height: 100%; }
.ma-logi > div:first-of-type { flex: 1; }
.ma-logi b { display: block; font-size: 10.5px; }
.ma-logi small { display: block; font-size: 8.5px; color: #c9cbd4; margin-top: 2px; }
.ma-pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 6px 8px; font-size: 10.5px; color: #8b8e9a; }
.ma-pager b { color: #e3e3ea; font-weight: 400; }

/* avisos */
.ma-push { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 40; pointer-events: none; }
.ma-pushi { display: flex; gap: 10px; padding: 11px 12px; border-radius: 20px; background: rgba(58, 62, 74, .86); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: ma-push .35s cubic-bezier(.2, .9, .3, 1.15); transition: opacity .35s, transform .35s; }
.ma-pushi.is-out { opacity: 0; transform: translateY(-14px); }
@keyframes ma-push { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
.ma-pushi__ico { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: #0b1326; overflow: hidden; }
.ma-pushi__ico img { width: 32px !important; height: auto; }
.ma-pushi__t { position: relative; flex: 1; min-width: 0; font-size: 11px; line-height: 1.35; }
.ma-pushi__t b { font-size: 10px; letter-spacing: .04em; color: rgba(255, 255, 255, .7); font-weight: 600; }
.ma-pushi__t em { position: absolute; right: 2px; top: 0; font-style: normal; font-size: 10px; color: rgba(255, 255, 255, .6); }
.ma-pushi__t strong { display: block; font-size: 11.5px; }
.ma-pushi__t small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-toasts { position: absolute; left: 22px; right: 22px; bottom: 116px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.ma-toast { max-width: 100%; padding: 10px 14px; border-radius: 10px; font-size: 11px; line-height: 1.4; text-align: center; background: #e7eaf3; color: #121a2e; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); animation: ma-fade .25s ease; transition: opacity .35s, transform .35s; }
.ma-toast.is-out { opacity: 0; transform: translateY(6px); }

/* ------------------------------------------------ stacked (tablet / mobile) */
.mps--stack .mps-stage { grid-template-columns: 1fr; gap: 12px; }
.mps--stack .mps-poolcol { order: -1; }
.mps--stack .mps-link { display: none; }
.mps--stack .mps-pool { max-width: none; border-radius: 16px; }
.mps--stack .mps-note { max-width: none; }
.mps--stack .mps-phonecol { width: 100%; height: auto; display: flex; justify-content: center; }
.mps--stack .mps-phone {
  transform: none; width: 100%; max-width: 430px; padding: 7px; border-radius: 40px;
  height: clamp(540px, calc(100svh - var(--mps-top, 0px) - (min(100vw, 820px) - 32px) * .7 - 36px), 780px);
}
.mps--stack .mps-phone__screen { border-radius: 33px; }
.mps--stack .mps-phone__island { display: none; }
.mps--stack .ma-head { height: 96px; padding-top: 42px; }
.mps--stack .ma-status b { top: 12px; left: 26px; }
.mps--stack .ma-status i { top: 15px; right: 24px; }
.mps--stack .ma-status em { top: 15px; right: 56px; }
.mps--stack .mps-note { display: none; }
.mps-pool.has-coord .mps-hud { opacity: 0; }
@media (max-width: 560px) {
  .mps-tool em { display: none; }
  .mps .mps-tool { height: 28px; padding: 0 8px; }
  .mps-tool svg { width: 14px; height: 14px; }
  .mps-lg em { display: none; }
  .mps-lg { padding: 4px 6px; }
  .mps-lg svg { width: 16px; height: 13px; }
  .mps-hud { gap: 4px; bottom: 3.5%; flex-wrap: nowrap; width: 96%; }
  .mps-hc { font-size: 9.5px; padding: 3px 6px; gap: 4px; }
  .mps-hc i { width: 6px; height: 6px; }
  .mps-coord { top: auto; bottom: 3%; padding: 7px 10px; width: 94%; gap: 8px; border-radius: 12px; }
  .mps-coord p { font-size: 11px; line-height: 1.35; }
  .mps-coord span { width: 24px; height: 24px; }
  .mps-coord span svg { width: 14px; height: 14px; }
  .mps-callout { font-size: 10.5px; padding: 3px 8px; }
  .mps-demo { bottom: auto; top: 12%; font-size: 8.5px; }
  .mps-heatchip { font-size: 10.5px; top: 29%; padding: 4px 9px; }
  .mps-poolhint { font-size: 12px; padding: 7px 12px; }
  .mps-dd__menu { top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .mps *, .mps *::before, .mps *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------ pantalla completa: piscina a todo lo ancho, móvil flotando */
.mps.mps--full { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.mps--full .mps-stage { display: block; position: relative; height: var(--mps-h, 820px); }
.mps--full .mps-poolcol { position: absolute; inset: 0; display: block; }
.mps--full .mps-pool { max-width: none; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.mps--full .mps-pool::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(7,9,13,.55) 0%, rgba(7,9,13,0) 14%, rgba(7,9,13,0) 82%, rgba(7,9,13,.9) 100%),
              linear-gradient(90deg, rgba(7,9,13,.55) 0%, rgba(7,9,13,0) calc(var(--mps-safe, 0px) + 40px));
}
.mps--full .mps-phonecol { position: absolute; z-index: 8; left: var(--mps-left, 40px); top: 50%; transform: translateY(-50%); }
.mps--full .mps-phone { box-shadow: 0 0 0 1.5px #3a4353 inset, 0 50px 90px -20px rgba(0, 0, 0, .85), 0 0 120px -30px rgba(97, 165, 250, .45); }
.mps--full .mps-link { display: none; }
.mps--full .mps-legend { left: var(--mps-safe, 24px); top: 24px; z-index: 3; }
.mps--full .mps-tools { top: 24px; right: 24px; }
.mps--full .mps-hud, .mps--full .mps-coord, .mps--full .mps-poolhint { left: calc(var(--mps-safe, 0px) + (100% - var(--mps-safe, 0px)) / 2); }
.mps--full .mps-hud { bottom: 34px; width: auto; max-width: calc(100% - var(--mps-safe, 0px) - 40px); }
.mps--full .mps-coord { bottom: 90px; }
.mps--full .mps-demo { left: auto; right: 24px; bottom: 16px; z-index: 3; }
.mps.mps--full { padding-bottom: 76px; }
.mps--full .mps-note { position: absolute; top: calc(100% + 14px); left: 0; right: 0; max-width: 900px; margin: 0 auto; padding: 0 20px; text-align: center; }
.mps--full .mps-heatchip { left: calc(var(--mps-safe, 0px) + (100% - var(--mps-safe, 0px)) / 2); }

/* aviso: provocar una incidencia */
.mps-tip {
  position: absolute; right: 2.2%; top: calc(3% + 46px); z-index: 7; width: min(340px, 90%); padding: 16px 16px 14px; border-radius: 16px;
  background: rgba(10, 22, 44, .94); border: 1px solid rgba(97, 165, 250, .65); color: var(--mps-text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 40px -8px rgba(43, 125, 225, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mps-tip::before { content: ""; position: absolute; right: 120px; top: -7px; width: 12px; height: 12px; background: rgba(10, 22, 44, .94); border-left: 1px solid rgba(97, 165, 250, .65); border-top: 1px solid rgba(97, 165, 250, .65); transform: rotate(45deg); }
.mps-tip.is-in { animation: mps-tip .45s cubic-bezier(.2, .9, .3, 1.25); }
.mps-tip.is-out { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
@keyframes mps-tip { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
.mps-tip__t { display: flex; align-items: center; gap: 8px; padding-right: 22px; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px !important; }
.mps-tip__t svg { flex: none; width: 20px; height: 20px; color: var(--mps-warn); }
.mps-tip__p { font-size: 13px; line-height: 1.45; color: var(--mps-muted); }
.mps-tip__b { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.mps .mps-tip__no { height: 36px; padding: 0 14px; border-radius: 99px; font-size: 13px; color: var(--mps-blue2); }
.mps .mps-tip__go { height: 36px; padding: 0 16px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--mps-blue2); color: #06101f; }
.mps .mps-tip__go:hover { filter: brightness(1.08); }
.mps .mps-tip__x { position: absolute; right: 8px; top: 6px; width: 28px; height: 28px; border-radius: 50%; font-size: 20px; line-height: 28px; color: var(--mps-muted); }
.mps--full .mps-tip { right: 24px; top: 70px; }
.mps--full .mps-tip::before { right: 182px; }
.mps--stack .mps-tip { right: 8px; top: 44px; width: calc(100% - 16px); padding: 12px; }
.mps--stack .mps-tip::before { right: 52px; }
.mps--stack .mps-tip__t { font-size: 13.5px; }
.mps--stack .mps-tip__p { font-size: 12px; }

/* control de la cámara 3D */
.mps-view { position: absolute; right: 24px; bottom: 24px; z-index: 6; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.mps .mps-view__b {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 99px;
  background: rgba(8, 14, 26, .78); border: 1px solid var(--mps-line); color: var(--mps-text); font-size: 12.5px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background .2s;
}
.mps .mps-view__b:hover { border-color: rgba(97, 165, 250, .6); background: rgba(20, 34, 60, .9); }
.mps-view__b svg { width: 18px; height: 18px; }
.mps-view__b em { font-style: normal; }
.mps-viewhint {
  position: absolute; right: 74px; bottom: 30px; z-index: 5; max-width: 330px; padding: 7px 12px; border-radius: 12px; pointer-events: none;
  font-size: 12px; line-height: 1.35; color: #dfe8f7; background: rgba(4, 16, 36, .7); border: 1px solid rgba(255, 255, 255, .14);
}
.mps-pool__gl.is-active { cursor: grab; outline: 1.5px solid rgba(97, 165, 250, .45); outline-offset: -1.5px; }
.mps--full .mps-view { bottom: 30px; }
.mps--full .mps-demo { bottom: 8px; }
.mps--stack .mps-view { right: 10px; bottom: 10px; gap: 4px; }
.mps--stack .mps-view__b { min-width: 30px; height: 30px; padding: 0 8px; }
.mps--stack .mps-view__b em, .mps--stack .mps-viewhint { display: none; }

/* ------------------------------------------------ panel: simulador dentro de un bloque de la página */
.mps.mps--panel { width: 100%; max-width: none; margin: 0; padding-bottom: 0; }
.mps--panel .mps-stage { border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px rgba(128, 162, 214, .16); }
.mps--panel .mps-pool { border-radius: 0; }
.mps--panel .mps-legend { top: 18px; }
.mps--panel .mps-tools { top: 16px; right: 18px; }
.mps--panel .mps-tip { top: 62px; right: 18px; }
.mps--panel .mps-note { position: static; max-width: 640px; margin: 14px 0 0; padding: 0; text-align: left; }
.mps--panel .mps-demo { right: 18px; bottom: 12px; }
.mps--panel .mps-view { right: 18px; bottom: 36px; }
.mps--panel .mps-legend { top: 62px; }
.mps--panel .mps-poolhint { white-space: nowrap; font-size: 13px; top: 46%; }
.mps--panel .mps-hud { bottom: 34px; flex-wrap: nowrap; gap: 6px; width: auto; max-width: calc(100% - var(--mps-safe, 0px) - 84px); }
.mps--panel .mps-hc { font-size: 11px; padding: 5px 8px; gap: 5px; }
.mps--panel .mps-hud { transform: translate(calc(-50% - 26px), 8px); }
.mps--panel .mps-hud.is-on { transform: translate(calc(-50% - 26px), 0); }
.mps--panel .mps-viewhint { right: 66px; bottom: auto; top: 108px; max-width: 280px; }

/* pantalla de carga */
.mps-loader {
  position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(80% 70% at 60% 40%, #13274a 0%, #070d18 70%); color: #cfd9ea; font-size: 14px; letter-spacing: .04em;
  transition: opacity .7s ease;
}
.mps-loader img { width: 180px; height: auto; }
.mps-loader i { position: relative; width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.mps-loader i::after { content: ""; position: absolute; left: -40%; top: 0; width: 40%; height: 100%; background: var(--mps-blue2); animation: mps-load 1.1s ease-in-out infinite; }
.mps-loader.is-done { opacity: 0; pointer-events: none; }
@keyframes mps-load { to { left: 100%; } }
.mps--full .mps-loader { padding-left: var(--mps-safe, 0px); }

/* aviso luminoso: la leyenda de la piscina parpadea con la iluminación */
.mps--alarm .mps-lg[data-lg="light"] { color: #fff; border-color: var(--mps-bad); background: rgba(240, 82, 90, .35); animation: mps-alarm 0.5s steps(2) infinite; }

/* móvil apilado: sin solapes entre etiqueta de demo, leyenda, cámara y lecturas */
@media (max-width: 560px) {
  .mps--stack .mps-demo { top: auto; bottom: calc(3.5% + 30px); left: 10px; right: auto; }
  .mps--stack .mps-view { bottom: calc(3.5% + 30px); }
  .mps--stack .mps-hud { gap: 3px; width: calc(100% - 12px); }
  .mps--stack .mps-hc { font-size: 9px; padding: 3px 5px; gap: 3px; }
}
