/* i2home — estilos del sitio
   Colores del logo: azul marino (#131e3d), azul (#186ae0) y azul profundo (#10449f)
   sobre blanco. La casa 3D de noche aporta la luz cálida de las lámparas. */

:root {
  --navy: #131e3d;
  --navy-deep: #0b1330;
  --navy-2: #1a2850;
  --navy-line: rgba(190, 208, 245, 0.14);
  --on-navy: #f1f5fc;
  --on-navy-muted: #aab6cf;

  --white: #ffffff;
  --mist: #eef2f9;
  --card: #f6f8fc;
  --ink: #131e3d;
  --ink-muted: #55607a;
  --line: #dce3ee;

  --blue: #186ae0;
  --blue-deep: #10449f;
  --blue-hi: #5b9bff;
  --sky: #5fc4ff;
  --red: #ff6b6b;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  --font-display: "Poppins", "Avenir Next", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 72px;

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .hero :focus-visible { outline-color: var(--blue-hi); }

/* ---------- tipografía ---------- */
h1 {
  font-size: clamp(2.35rem, 1.4rem + 2.9vw, 3.9rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h1 em, h2 em { font-style: normal; color: var(--blue); }
.hero h1 em, .dark h2 em { color: var(--blue-hi); }

/* como la bajada del logo: mayúsculas espaciadas con un guion azul */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--blue); flex: none; }
.eyebrow-night { color: var(--on-navy); }
.eyebrow-night::before { background: var(--blue-hi); }

.lead { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem); color: var(--on-navy-muted); max-width: 34em; }
.section-lead { font-size: 1.1rem; color: var(--ink-muted); max-width: 38em; }
.dark .section-lead { color: var(--on-navy-muted); }
.section-lead a { color: var(--blue); font-weight: 600; }

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(95, 196, 255, 0.18);
  flex: none;
}
img.avatar { object-fit: cover; background: var(--line); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 30px -14px rgba(24, 106, 224, 0.85);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(241, 245, 252, 0.3);
  color: var(--on-navy);
}
.btn-ghost:hover { border-color: var(--on-navy); background: rgba(255, 255, 255, 0.1); }
.btn-ghost-ink { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost-ink:hover { border-color: var(--ink); }

/* ---------- encabezado ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(19, 30, 61, 0.5); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav .nav-cta { display: none; }
.header-cta { flex: none; }

.menu-btn {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .icon-close { display: none; }
.site-header.is-open .menu-btn .icon-open { display: none; }
.site-header.is-open .menu-btn .icon-close { display: block; }

/* ---------- inicio ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-navy);
  background: var(--navy-deep);
  padding-block: clamp(48px, 6vw, 88px) 36px;
  isolation: isolate;
}
.hero-sky {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 55% at 74% 50%, rgba(24, 106, 224, 0.32), transparent 70%),
    radial-gradient(90% 80% at 75% 40%, #1d2d5c 0%, var(--navy) 45%, var(--navy-deep) 100%);
}
.hero-sky::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(91, 155, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 155, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 70% 50%, #000 10%, transparent 75%);
}
.hero-sky::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-copy h1 { max-width: 13em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.95rem; color: var(--on-navy-muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--blue-hi); width: 18px; height: 18px; stroke-width: 2.2; }

.hero-stage { position: relative; min-width: 0; }
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 100%;
}
.stage-poster, .stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.stage-poster { object-fit: contain; transition: opacity 0.5s ease; }
.stage canvas { opacity: 0; transition: opacity 0.5s ease; }
.stage.is-live canvas { opacity: 1; }
.stage.is-live .stage-poster { opacity: 0; }
.stage-labels { position: absolute; inset: 0; pointer-events: none; }

.label {
  position: absolute;
  left: 0; top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: rgba(11, 19, 48, 0.86);
  border: 1px solid rgba(241, 245, 252, 0.16);
  color: var(--on-navy);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
}
.label::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 1px; height: 12px;
  background: rgba(241, 245, 252, 0.35);
}
.label i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 8px var(--blue-hi); }
.label[data-device="clima"] i,
.label[data-device="riego"] i { background: var(--sky); box-shadow: 0 0 8px var(--sky); }
.label[data-device="alarma"] i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.label.is-on { opacity: 1; }

.dock {
  position: relative;
  margin-top: -8px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(19, 30, 61, 0.74);
  border: 1px solid var(--navy-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.dock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 12px;
}
.dock-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.scenes { display: flex; flex-wrap: wrap; gap: 8px; }
.scene-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-navy);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.scene-btn .icon { width: 16px; height: 16px; color: var(--blue-hi); }
.scene-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(241, 245, 252, 0.3); }

.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tile {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-height: 92px;
  padding: 12px 10px 12px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.tile:hover { background: rgba(255, 255, 255, 0.08); }
.tile:active { transform: scale(0.98); }
.tile .icon { width: 22px; height: 22px; color: var(--on-navy-muted); margin-bottom: 6px; transition: color 0.25s ease; }
.tile-name { font-weight: 650; font-size: 0.95rem; line-height: 1.2; }
.tile-state { font-family: var(--font-mono); font-size: 0.74rem; color: var(--on-navy-muted); line-height: 1.2; }
.tile[aria-pressed="true"] { background: rgba(24, 106, 224, 0.28); border-color: rgba(91, 155, 255, 0.7); }
.tile[aria-pressed="true"] .icon,
.tile[aria-pressed="true"] .tile-state { color: #a9cbff; }
.tile[data-device="clima"][aria-pressed="true"],
.tile[data-device="riego"][aria-pressed="true"] { background: rgba(95, 196, 255, 0.14); border-color: rgba(95, 196, 255, 0.6); }
.tile[data-device="clima"][aria-pressed="true"] .icon,
.tile[data-device="clima"][aria-pressed="true"] .tile-state,
.tile[data-device="riego"][aria-pressed="true"] .icon,
.tile[data-device="riego"][aria-pressed="true"] .tile-state { color: var(--sky); }
.tile[data-device="alarma"][aria-pressed="true"] { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.5); }
.tile[data-device="alarma"][aria-pressed="true"] .icon,
.tile[data-device="alarma"][aria-pressed="true"] .tile-state { color: #ff9a9a; }

.protocols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--navy-line);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.protocols li { display: inline-flex; align-items: center; gap: 14px; }
.protocols li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue-hi); }

/* ---------- secciones ---------- */
.section { position: relative; padding-block: var(--section-y); }
.light { background: var(--white); color: var(--ink); }
.paper { background: var(--mist); color: var(--ink); }
.dark { background: var(--navy); color: var(--on-navy); color-scheme: dark; }

.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 780px; }
.section-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 48px;
}
.section-head-split > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* servicios */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(19, 30, 61, 0.45); }
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service:hover .service-media img { transform: scale(1.045); }
.chip {
  position: absolute;
  left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(11, 19, 48, 0.82);
  border: 1px solid rgba(241, 245, 252, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--on-navy);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 8px var(--blue-hi); }
.chip-dot-teal { background: var(--sky); box-shadow: 0 0 8px var(--sky); }
.chip-dot-red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.service-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.service-title { display: flex; align-items: center; gap: 10px; }
.service-title .icon { color: var(--blue); width: 22px; height: 22px; }
.service-body p { color: var(--ink-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tags li {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tags-night li { background: transparent; border-color: var(--navy-line); color: var(--on-navy-muted); }

/* un día con i2home */
.day-section { overflow: hidden; isolation: isolate; }
.plan-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background: url("../assets/img/plano.webp") 78% 50% / min(1100px, 120%) auto no-repeat;
  opacity: 0.3;
  -webkit-mask-image: radial-gradient(60% 70% at 78% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 78% 50%, #000 20%, transparent 75%);
}
.automations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.auto {
  padding: 22px 24px 24px;
  border-radius: var(--radius-lg);
  background: rgba(26, 40, 80, 0.8);
  border: 1px solid var(--navy-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.auto-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--navy-line); }
.auto-head h3 { flex: 1; }
.auto-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(24, 106, 224, 0.3);
  color: #a9cbff;
}
.auto-icon .icon { width: 22px; height: 22px; }
.switch {
  position: relative;
  width: 40px; height: 24px;
  border-radius: 999px;
  background: var(--blue);
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
}
.auto-flow { margin: 0; display: grid; gap: 14px; }
.auto-flow > div {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
}
.auto-flow > div:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px; top: 22px; bottom: -12px;
  width: 1px;
  background: var(--navy-line);
}
.auto-flow dt {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: start;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
}
.auto-flow dt::before {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex: none;
}
.auto-flow > div:last-child dt { color: var(--blue-hi); }
.auto-flow dd { margin: 0; color: var(--on-navy); }
.auto-flow dd ul { display: grid; gap: 6px; }
.auto-flow dd li { position: relative; padding-left: 16px; color: var(--on-navy); }
.auto-flow dd li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 2px; background: var(--blue-hi); }

/* cómo funciona */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.flow-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
}
.flow-node p { color: var(--ink-muted); }
.flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  left: 100%;
  width: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 5px, transparent 5px 10px);
  background-size: 20px 2px;
  animation: flow-dash 1.2s linear infinite;
}
@keyframes flow-dash { to { background-position: 20px 0; } }
.flow-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(24, 106, 224, 0.1);
  color: var(--blue);
}
.flow-icon .icon { width: 24px; height: 24px; }
.flow-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.flow-node .flow-meta { color: var(--ink); }
.flow-core { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.flow-core p { color: var(--on-navy-muted); }
.flow-core .flow-icon { background: rgba(24, 106, 224, 0.35); color: #a9cbff; }
.flow-core .flow-meta { color: var(--sky); border-top-color: var(--navy-line); }

/* marcas */
.brands-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brand-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.brand-card p:not(.brand-name):not(.brand-kicker) { color: var(--ink-muted); }
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.brand-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(24, 106, 224, 0.1);
  color: var(--blue);
}
.brand-icon .icon { width: 24px; height: 24px; }
.brand-cat { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.brand-core {
  justify-content: flex-end;
  min-height: 100%;
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.brand-core::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(80% 60% at 80% 10%, rgba(24, 106, 224, 0.45), transparent 70%);
}
.brand-core p:not(.brand-name):not(.brand-kicker) { color: var(--on-navy-muted); }
.brand-core .brand-icon { background: rgba(24, 106, 224, 0.35); color: #a9cbff; margin-bottom: auto; }
.brand-kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-top: 28px; }
.brand-core .brand-name { font-size: 2rem; }
.brand-core .tags { margin-top: 10px; }
.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 28px;
}
.also-title { font-weight: 600; margin-right: 6px; }
.also li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
}
.compat { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; font-weight: 600; }
.compat li { display: inline-flex; align-items: center; gap: 8px; }
.compat .icon { color: var(--blue); width: 18px; height: 18px; stroke-width: 2.2; }

/* por qué */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.why-media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 5 / 6; border: 1px solid var(--navy-line); }
.why-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.why-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.reasons { display: grid; gap: 4px; margin-top: 12px; width: 100%; }
.reasons li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--navy-line); }
.reasons li:last-child { border-bottom: 1px solid var(--navy-line); }
.reason-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(24, 106, 224, 0.3);
  color: #a9cbff;
  flex: none;
}
.reason-icon .icon { width: 22px; height: 22px; }
.reasons div { display: flex; flex-direction: column; gap: 4px; }
.reasons p { color: var(--on-navy-muted); }

/* proceso */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 22px; right: 22px; top: 22px;
  height: 1px;
  background: var(--line);
}
.steps li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.steps p { color: var(--ink-muted); font-size: 0.98rem; }
.step-n {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--white);
}

/* testimonios */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.quote blockquote { margin: 0; position: relative; padding-top: 34px; }
.quote blockquote::before {
  content: "“";
  position: absolute; top: -12px; left: -2px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--blue);
}
.quote blockquote p { font-size: 1.08rem; color: var(--ink-muted); font-style: italic; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption > span:last-child { display: flex; flex-direction: column; font-size: 0.92rem; color: var(--ink-muted); }
.quote figcaption b { color: var(--ink); font-weight: 650; }
.avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  flex: none;
}

/* preguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon {
  width: 34px; height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--blue);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--blue); color: var(--white); }
.faq details p { padding: 0 56px 24px 4px; color: var(--ink-muted); max-width: 40em; }

/* banda final */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(96px, 14vw, 170px);
}
.cta-bg {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 19, 48, 0.95) 0%, rgba(11, 19, 48, 0.8) 38%, rgba(11, 19, 48, 0.1) 75%);
}
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-inner h2 { max-width: 14ch; }
.cta-inner p { max-width: 30em; color: var(--on-navy-muted); font-size: 1.1rem; }

/* contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-list { display: grid; margin: 16px 0 0; width: 100%; }
.contact-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 18px 0; border-top: 1px solid var(--navy-line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--navy-line); }
.contact-list dt { display: inline-flex; align-items: center; gap: 12px; color: var(--on-navy-muted); }
.contact-list dt .icon { color: var(--blue-hi); }
.contact-list dd { margin: 0; font-family: var(--font-mono); font-size: 0.95rem; color: var(--on-navy); user-select: all; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--ink);
  color-scheme: light;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.form-title { font-size: 1.45rem; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 650; font-size: 0.95rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea, .form-result textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea, .form-result textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(24, 106, 224, 0.18); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 0.9rem; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.checks label {
  display: inline-flex; align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 550;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.checks label:hover { border-color: var(--ink-muted); }
.checks input:checked + label { background: var(--blue); border-color: var(--blue); color: var(--white); }
.checks input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

.form-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--mist);
  border: 1px solid var(--line);
}
.form-result-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.form-result-title .icon { color: #1d7a5f; stroke-width: 2.4; }
.form-result p:not(.form-result-title) { color: var(--ink-muted); font-size: 0.95rem; }
.form-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* pie */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 30em; }
.footer-brand .brand img { height: 46px; }
.footer-tagline {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-navy);
}
.footer-tagline::before, .footer-tagline::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--blue-hi); }
.footer-title { font-family: var(--font-display); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-navy); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-navy); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--navy-line); font-size: 0.9rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 16px 36px -14px rgba(11, 19, 48, 0.7);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); background: var(--blue-deep); }
.wa-float .icon { width: 24px; height: 24px; stroke-width: 2; }

/* ---------- simulador: un día con i2home ---------- */
.day {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.day-stage {
  --sky-top: #0b1330;
  --sky-bottom: #1d2d5c;
  --stars: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--navy-line);
  isolation: isolate;
}
.day-sky {
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
}
.day-stars {
  position: absolute; inset: 0 0 45% 0;
  opacity: var(--stars);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 53% 46%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 94% 52%, #fff 50%, transparent 51%);
}
.day-orb {
  position: absolute;
  left: 50%; top: 20%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fffaf0, #ffd98a 60%, #ffb15c);
  box-shadow: 0 0 40px 12px rgba(255, 201, 120, 0.45);
}
.day-orb.is-moon {
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  background: radial-gradient(circle at 35% 35%, #ffffff, #dfe7f7 65%, #b9c6e6);
  box-shadow: 0 0 30px 6px rgba(200, 215, 255, 0.35);
}
.day-stage { min-height: 560px; }
.stage-day { position: absolute; inset: 0; aspect-ratio: auto; }

.day-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(26, 40, 80, 0.78);
  border: 1px solid var(--navy-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  min-width: 0;
}
.day-clock { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; }
.day-time {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2rem + 2.4vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.day-phase { grid-column: 1; font-family: var(--font-display); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); }
.play-btn {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.play-btn:hover { background: var(--blue-deep); }
.play-btn .icon { width: 20px; height: 20px; fill: currentColor; stroke-width: 2.4; }
.play-btn .icon-pause { display: none; fill: none; }
.play-btn[aria-pressed="true"] .icon-play { display: none; }
.play-btn[aria-pressed="true"] .icon-pause { display: block; }

.day-range { display: grid; gap: 8px; }
.day-range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.day-range input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b1330 0%, #1d2d5c 22%, #f3a37a 28%, #7bb5ff 34%, #5aa2ff 60%, #7bb5ff 74%, #f59a6b 80%, #1b2455 86%, #0b1330 100%);
}
.day-range input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b1330 0%, #1d2d5c 22%, #f3a37a 28%, #7bb5ff 34%, #5aa2ff 60%, #7bb5ff 74%, #f59a6b 80%, #1b2455 86%, #0b1330 100%);
}
.day-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.day-range input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.day-range input[type="range"]:focus-visible { outline: none; }
.day-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(91, 155, 255, 0.5); }
.day-ticks { position: relative; height: 10px; margin: -6px 13px 0; }
.day-ticks span {
  position: absolute; top: 0;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--on-navy-muted);
  opacity: 0.6;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.day-ticks span.is-past { background: var(--blue-hi); opacity: 1; }
.day-hours { display: flex; justify-content: space-between; margin: 0 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--on-navy-muted); }

.logbook { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.logbook-title { font-family: var(--font-display); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-navy-muted); }
.logbook-list { display: grid; gap: 8px; }
.log {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--navy-line);
  transition: opacity 0.3s ease;
}
.log:nth-child(n + 2) { opacity: 0.72; }
.log:nth-child(n + 4) { opacity: 0.45; }
.log-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(24, 106, 224, 0.3); color: #a9cbff; }
.log-icon .icon { width: 20px; height: 20px; }
.log:first-child { background: rgba(24, 106, 224, 0.2); border-color: rgba(91, 155, 255, 0.55); }
.log-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.log-time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--sky); }
.log-title { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; }
.log-text { color: var(--on-navy-muted); font-size: 0.92rem; line-height: 1.45; margin-top: 2px; }
.logbook-empty { color: var(--on-navy-muted); font-size: 0.95rem; }

.auto { display: flex; flex-direction: column; }
.auto-flow { flex: 1; }
.auto-try {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(91, 155, 255, 0.5);
  background: transparent;
  color: #cfe0ff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.auto-try:hover { background: rgba(24, 106, 224, 0.25); }
.auto-try .icon { width: 16px; height: 16px; }

/* ---------- configurador: armá tu casa ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.builder-stage {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(90% 80% at 60% 40%, #1d2d5c 0%, var(--navy) 55%, var(--navy-deep) 100%);
  isolation: isolate;
}
.builder-reset { position: absolute; right: 16px; top: 16px; background: rgba(11, 19, 48, 0.7); }
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot {
  position: absolute;
  left: 0; top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(241, 245, 252, 0.25);
  background: rgba(11, 19, 48, 0.82);
  color: var(--on-navy);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
  will-change: transform;
}
.hotspot i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 0 4px rgba(91, 155, 255, 0.25); }
.hotspot b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--blue); font-size: 0.72rem; font-weight: 600; }
.hotspot:hover { border-color: var(--blue-hi); }
.hotspot[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.hotspot[aria-pressed="true"] i { background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.hotspot[aria-pressed="true"] b { background: var(--white); color: var(--blue); }
.hotspot.is-hidden { opacity: 0; pointer-events: none; }

.builder-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 0;
}
.builder-label { font-family: var(--font-display); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.preset-row, .room-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-btn, .room-tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.preset-btn .icon { width: 18px; height: 18px; color: var(--blue); }
.preset-btn:hover, .room-tab:hover { border-color: var(--blue); }
.preset-clear { color: var(--ink-muted); }
.room-tab b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--mist); font-size: 0.75rem; font-weight: 600; color: var(--blue-deep); }
.room-tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.room-tab[aria-pressed="true"] b { background: var(--blue); color: var(--white); }

.options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt label {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.opt label:hover { border-color: var(--blue-hi); }
.opt-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--blue); }
.opt-icon .icon { width: 22px; height: 22px; }
.opt-text { display: flex; flex-direction: column; min-width: 0; }
.opt-name { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; line-height: 1.3; }
.opt-desc { color: var(--ink-muted); font-size: 0.9rem; line-height: 1.4; }
.opt-check {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 2px solid var(--line);
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.opt-check .icon { width: 16px; height: 16px; stroke-width: 3; }
.opt input:checked + label { border-color: var(--blue); background: rgba(24, 106, 224, 0.06); box-shadow: 0 0 0 1px var(--blue) inset; }
.opt input:checked + label .opt-icon { background: var(--blue); color: var(--white); }
.opt input:checked + label .opt-check { background: var(--blue); border-color: var(--blue); color: var(--white); }
.opt input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

.builder-summary { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.summary-count { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.summary-list { display: grid; gap: 6px; }
.summary-list li { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--mist); font-size: 0.9rem; line-height: 1.45; color: var(--ink-muted); }
.summary-list li b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 500; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.summary-actions .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

@media (max-width: 960px) {
  .day { grid-template-columns: minmax(0, 1fr); }
  .day-stage { min-height: 0; aspect-ratio: 1 / 1; }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .builder-stage { position: relative; top: 0; }
}
@media (max-width: 640px) {
  .day-panel { padding: 18px; }
  .log:nth-child(n + 4) { display: none; }
  .hotspot { min-height: 32px; font-size: 0.78rem; padding: 0 11px 0 9px; }
  .hotspot:not([aria-pressed="true"]) .hs-name { display: none; }
  .hotspot:not([aria-pressed="true"]) { padding: 0 8px; gap: 6px; }
  .builder-reset { right: 10px; top: 10px; }
  .opt label { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 12px; }
  .opt-icon { width: 40px; height: 40px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-node:nth-child(2)::after { display: none; }
  .brands-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-core { min-height: 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
}

@media (max-width: 960px) {
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -30px rgba(19, 30, 61, 0.6);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; color: var(--ink); }
  .nav .nav-cta { display: block; margin-top: 8px; background: var(--blue); color: var(--white); text-align: center; }
  .nav .nav-cta:hover { background: var(--blue-deep); color: var(--white); }
  .header-cta { display: none; }
  .menu-btn { display: grid; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automations { grid-template-columns: minmax(0, 1fr); }
  .section-head-split { grid-template-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-media { aspect-ratio: 4 / 3; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band::before { background: linear-gradient(180deg, rgba(11, 19, 48, 0.9) 0%, rgba(11, 19, 48, 0.72) 60%, rgba(11, 19, 48, 0.5) 100%); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { height: 34px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .flow-node::after {
    top: 100% !important; left: 46px !important;
    width: 2px !important; height: 20px !important;
    display: block !important;
    background: repeating-linear-gradient(180deg, var(--blue) 0 5px, transparent 5px 10px) !important;
    animation: none !important;
  }
  .flow-node:last-child::after { display: none !important; }
  .brands { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
  .steps .step-n { grid-row: span 2; margin-bottom: 0; }
  .auto-flow > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .auto-flow > div::after { display: none; }
  .dock { padding: 12px; }
  .tile { min-height: 84px; padding: 10px; }
  .tile-name { font-size: 0.9rem; }
  .scene-btn { font-size: 0.84rem; padding: 0 12px; }
  .label { font-size: 0.68rem; padding: 4px 9px 4px 8px; }
  .faq details p { padding-right: 4px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-tagline { letter-spacing: 0.14em; font-size: 0.68rem; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
.also li.also-title { padding: 0; border: 0; background: none; font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
