/* ============================================================
   Motaia HQ — MVP 0 (maqueta fiel a diseno.png)
   El lienzo de referencia mide 1672×941: 1rem = 10px del diseño
   y la raíz escala para que el tablero entero quepa en pantalla.
   ============================================================ */

:root {
  --bg: #0e0d0d;
  --text: #f3f0ee;
  --text-2: #c9c3c0;
  --text-3: #9d9795;
  --accent: #f4802f;
  --accent-2: #ff9a4a;
  --accent-soft: #f6a35a;
  --accent-pale: #ffc89c;
  --on-accent: #2a1408;
  --accent-rgb: 244, 118, 42;
  --accent-edge-rgb: 244, 138, 62;
  --accent-pale-rgb: 255, 200, 156;
  --tint: #ece7e3;
  --tint-2: #b3adaa;
  --veil-rgb: 16, 11, 10;
  --btn-1-rgb: 58, 46, 43;
  --btn-2-rgb: 32, 27, 27;
  --deep-1-rgb: 48, 22, 12;
  --deep-2-rgb: 28, 16, 12;
  --panel-1-rgb: 36, 33, 34;
  --panel-2-rgb: 22, 20, 21;
  --warm-1-rgb: 70, 46, 34;
  --warm-2-rgb: 34, 26, 23;
  --card-1-rgb: 28, 25, 26;
  --card-2-rgb: 20, 18, 19;
  --row-1-rgb: 40, 37, 38;
  --row-2-rgb: 28, 26, 27;
  --hot-1-rgb: 130, 66, 30;
  --hot-2-rgb: 70, 36, 20;
  --dock-hot-1-rgb: 150, 80, 42;
  --dock-hot-2-rgb: 78, 44, 28;
  --photo-veil-rgb: 20, 16, 16;
  --page-bg:
    radial-gradient(64rem 44rem at 6% -6%, rgba(130, 70, 48, 0.42), transparent 70%),
    radial-gradient(70rem 46rem at -6% 100%, rgba(150, 72, 36, 0.32), transparent 70%),
    radial-gradient(60rem 40rem at 104% 58%, rgba(90, 50, 36, 0.12), transparent 70%),
    radial-gradient(90rem 40rem at 50% 104%, rgba(60, 34, 24, 0.35), transparent 70%),
    var(--bg);
  --green: #3fdc85;
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.065);
  --font-sans: "Figtree", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  height: 100%;
  font-size: min(calc(100vw / 167.2), calc(100vh / 94.1));
}

body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: rgba(var(--accent-rgb), 0.35); }

.ic {
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===========================================================
   APP
   =========================================================== */
.body--app {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--page-bg);
}

/* --- Tema por momento del día (tarde = default) --- */
.body--app[data-moment="manana"] {
  --bg: #0d1013;
  --accent: #f6b73c;
  --accent-2: #ffc65e;
  --accent-soft: #ffd07a;
  --accent-pale: #ffdd9e;
  --accent-rgb: 246, 183, 60;
  --accent-edge-rgb: 250, 198, 94;
  --accent-pale-rgb: 255, 221, 158;
  --on-accent: #3a2a06;
  --tint: #e9edf2;
  --tint-2: #aeb6bf;
  --veil-rgb: 12, 13, 16;
  --btn-1-rgb: 46, 50, 58;
  --btn-2-rgb: 27, 29, 34;
  --deep-1-rgb: 62, 42, 12;
  --deep-2-rgb: 34, 24, 10;
  --panel-1-rgb: 30, 33, 38;
  --panel-2-rgb: 18, 20, 24;
  --warm-1-rgb: 64, 50, 38;
  --warm-2-rgb: 30, 28, 26;
  --card-1-rgb: 24, 26, 31;
  --card-2-rgb: 17, 18, 21;
  --row-1-rgb: 34, 37, 42;
  --row-2-rgb: 24, 26, 30;
  --hot-1-rgb: 156, 116, 50;
  --hot-2-rgb: 78, 58, 26;
  --dock-hot-1-rgb: 178, 132, 64;
  --dock-hot-2-rgb: 92, 68, 32;
  --photo-veil-rgb: 16, 17, 19;
  --page-bg:
    radial-gradient(64rem 44rem at 6% -6%, rgba(96, 128, 168, 0.34), transparent 70%),
    radial-gradient(70rem 46rem at -6% 100%, rgba(196, 156, 96, 0.26), transparent 70%),
    radial-gradient(60rem 40rem at 104% 58%, rgba(110, 140, 170, 0.12), transparent 70%),
    radial-gradient(90rem 40rem at 50% 104%, rgba(80, 100, 130, 0.3), transparent 70%),
    var(--bg);
}

.body--app[data-moment="noche"] {
  --bg: #0a0b11;
  --accent: #94a9ff;
  --accent-2: #b3c4ff;
  --accent-soft: #c3d0ff;
  --accent-pale: #d6e0ff;
  --accent-rgb: 148, 169, 255;
  --accent-edge-rgb: 172, 193, 255;
  --accent-pale-rgb: 214, 224, 255;
  --on-accent: #0d1738;
  --tint: #e3e7f2;
  --tint-2: #a4abc0;
  --veil-rgb: 8, 9, 14;
  --btn-1-rgb: 44, 46, 62;
  --btn-2-rgb: 26, 27, 36;
  --deep-1-rgb: 36, 40, 72;
  --deep-2-rgb: 22, 24, 42;
  --panel-1-rgb: 27, 28, 40;
  --panel-2-rgb: 16, 17, 24;
  --warm-1-rgb: 52, 54, 86;
  --warm-2-rgb: 26, 28, 44;
  --card-1-rgb: 22, 23, 33;
  --card-2-rgb: 15, 16, 22;
  --row-1-rgb: 32, 33, 45;
  --row-2-rgb: 22, 23, 31;
  --hot-1-rgb: 92, 100, 170;
  --hot-2-rgb: 46, 50, 92;
  --dock-hot-1-rgb: 108, 118, 196;
  --dock-hot-2-rgb: 56, 62, 108;
  --photo-veil-rgb: 14, 14, 20;
  --page-bg:
    radial-gradient(64rem 44rem at 6% -6%, rgba(72, 84, 148, 0.34), transparent 70%),
    radial-gradient(70rem 46rem at -6% 100%, rgba(160, 96, 48, 0.22), transparent 70%),
    radial-gradient(60rem 40rem at 104% 58%, rgba(60, 70, 120, 0.16), transparent 70%),
    radial-gradient(90rem 40rem at 50% 104%, rgba(44, 52, 100, 0.32), transparent 70%),
    var(--bg);
}

.app {
  width: 100%;
  min-width: 167.2rem;
  height: 100vh;
  min-height: 94.1rem;
  padding: 0 4.5rem 3rem;
  display: flex;
  flex-direction: column;
}

/* -----------------------------------------------------------
   Barra superior
   ----------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  height: 4rem;
  margin-top: 2rem;
  padding: 0 0.6rem 0 1.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
}

.brand__icon {
  display: block;
  width: 3.8rem;
  height: 3.8rem;
  margin-left: -0.7rem;
}

.brand__word {
  display: block;
  height: 2.5rem;
  width: auto;
}

.topbar__sep {
  width: 1px;
  height: 2.6rem;
  margin: 0 2.7rem 0 2.9rem;
  background: rgba(255, 255, 255, 0.16);
}

.topbar__tagline {
  font-size: 1.7rem;
  color: var(--text-2);
}

.topbar__right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.clock {
  font-size: 3.95rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.today {
  margin-left: 2rem;
  font-size: 1.6rem;
  color: var(--text-2);
}

.btn-ghost,
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4.2rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--btn-1-rgb), 0.55), rgba(var(--btn-2-rgb), 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-ghost:hover,
.btn-icon:hover { border-color: rgba(255, 255, 255, 0.2); }

.btn-ghost {
  gap: 1.2rem;
  width: 17.2rem;
  margin-left: 4.2rem;
  font-size: 1.65rem;
  font-weight: 500;
}

.btn-ghost .ic { width: 2.2rem; height: 2.2rem; }

.btn-icon {
  width: 4.6rem;
  margin-left: 1.9rem;
}

.btn-icon .ic { width: 2.2rem; height: 2.2rem; stroke-width: 1.9; }

/* -----------------------------------------------------------
   Hero
   ----------------------------------------------------------- */
.hero {
  position: relative;
  height: 27.3rem;
  margin-top: 2.7rem;
  padding: 3.7rem 0 0 6rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1a1414 center 52% / cover no-repeat;
  box-shadow: 0 2.4rem 5rem rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
}

.hero[data-moment="manana"] { background-image: url("hero/manana.jpg"); }
.hero[data-moment="tarde"] { background-image: url("hero/tarde.jpg"); }
.hero[data-moment="noche"] { background-image: url("hero/noche.jpg"); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(var(--veil-rgb), var(--veil, 0.72)) 0%,
    rgba(var(--veil-rgb), calc(var(--veil, 0.72) * 0.6)) 30%,
    rgba(var(--veil-rgb), 0) 58%);
}

.hero[data-moment="manana"] { --veil: 0.8; }
.hero[data-moment="noche"] { --veil: 0.55; }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__video.is-ready { opacity: 1; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tint);
}

.hero__eyebrow::before {
  content: "";
  width: 3.2rem;
  height: 0.3rem;
  border-radius: 1rem;
  background: var(--accent);
  box-shadow: 0 0 0.8rem rgba(var(--accent-rgb), 0.6);
}

.hero__title {
  margin-top: 1.1rem;
  font-size: 5.1rem;
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-shadow: 0 0.2rem 2rem rgba(0, 0, 0, 0.35);
}

.hero__sub {
  margin-top: 1.2rem;
  font-size: 1.8rem;
  color: var(--tint);
}

.listen {
  display: inline-flex;
  align-items: center;
  gap: 2.3rem;
  width: 29.4rem;
  height: 6rem;
  margin-top: 2.6rem;
  padding: 0 2.6rem;
  border-radius: 999px;
  border: 0.15rem solid rgb(var(--accent-edge-rgb));
  background: linear-gradient(90deg, rgba(var(--deep-1-rgb), 0.72), rgba(var(--deep-2-rgb), 0.6));
  box-shadow:
    0 0 3rem rgba(var(--accent-rgb), 0.5),
    inset 0 0 2rem rgba(var(--accent-rgb), 0.26);
  font-size: 1.65rem;
  font-weight: 500;
  white-space: nowrap;
  transition: box-shadow 0.2s ease;
}

.listen:hover {
  box-shadow:
    0 0 3.4rem rgba(var(--accent-rgb), 0.55),
    inset 0 0 2rem rgba(var(--accent-rgb), 0.28);
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 4rem;
}

.wave i {
  display: block;
  width: 0.4rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--accent-pale), #fff 50%, var(--accent-soft));
  box-shadow: 0 0 0.5rem rgb(var(--accent-rgb)), 0 0 1.2rem rgba(var(--accent-rgb), 0.85);
}

.wave i:nth-child(1) { height: 1.4rem; }
.wave i:nth-child(2) { height: 2.6rem; }
.wave i:nth-child(3) { height: 4rem; }
.wave i:nth-child(4) { height: 2.8rem; }
.wave i:nth-child(5) { height: 2rem; }
.wave i:nth-child(6) { height: 1.3rem; }

.listen.is-listening .wave i { animation: wave 1.1s ease-in-out infinite; }
.listen.is-listening .wave i:nth-child(2) { animation-delay: -0.15s; }
.listen.is-listening .wave i:nth-child(3) { animation-delay: -0.3s; }
.listen.is-listening .wave i:nth-child(4) { animation-delay: -0.45s; }
.listen.is-listening .wave i:nth-child(5) { animation-delay: -0.6s; }
.listen.is-listening .wave i:nth-child(6) { animation-delay: -0.75s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.72); }
}

/* -----------------------------------------------------------
   Dominios
   ----------------------------------------------------------- */
.modules {
  display: grid;
  grid-template-columns: 319fr 308fr 299fr 300fr 291fr;
  gap: 1.6rem;
  height: 6.8rem;
  margin-top: 2.5rem;
}

.module {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 1.4rem 0 2.4rem;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--panel-1-rgb), 0.82) 0%, rgba(var(--panel-2-rgb), 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.module:hover { border-color: rgba(var(--accent-rgb), 0.35); }

.module.is-active {
  border-color: rgba(var(--accent-edge-rgb), 0.78);
  background:
    radial-gradient(22rem 9rem at 8% 40%, rgba(var(--accent-rgb), 0.24), transparent 70%),
    linear-gradient(180deg, rgba(var(--warm-1-rgb), 0.88), rgba(var(--warm-2-rgb), 0.9));
  box-shadow: 0 0 2.2rem rgba(var(--accent-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.module__icon {
  width: 3.2rem;
  height: 3.2rem;
  color: var(--accent-2);
  stroke-width: 2;
}

.module__text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  margin-left: 2.1rem;
}

.module__text b {
  font-size: 1.75rem;
  font-weight: 600;
}

.module__text small {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--tint-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module__chev {
  width: 1.8rem;
  height: 1.8rem;
  margin-left: auto;
  color: var(--tint);
  stroke-width: 2;
}

/* -----------------------------------------------------------
   Tarjetas
   ----------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 401fr 367fr 375fr 387fr;
  flex: 1;
  gap: 1.8rem;
  min-height: 30.6rem;
  margin-top: 2.6rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(var(--card-1-rgb), 0.9) 0%, rgba(var(--card-2-rgb), 0.94) 100%);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.card__photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--photo-h);
  background-size: cover;
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.card__photo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6rem;
  background: linear-gradient(180deg, rgba(var(--photo-veil-rgb), 0.55), transparent);
}

.card--activity { --photo-h: 17.6rem; }
.card--agents { --photo-h: 13.6rem; }
.card--priorities { --photo-h: 12rem; }
.card--ideas { --photo-h: 13.6rem; }

.card__head {
  position: relative;
  display: flex;
  align-items: center;
  height: 5.4rem;
  padding: 0 2.2rem;
}

.card__icon {
  width: 2.7rem;
  height: 2.7rem;
  color: var(--tint);
  stroke-width: 1.9;
}

.card--agents .card__icon,
.card--priorities .card__icon,
.card--ideas .card__icon { color: var(--accent-2); }

.card__head h2 {
  margin-left: 1.6rem;
  font-size: 1.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--tint);
  white-space: nowrap;
}

.card__link .ic { width: 1.5rem; height: 1.5rem; stroke-width: 2; }
.card__link:hover { color: #fff; }
.card__link--muted { color: var(--text-2); }

/* Actividad reciente */
.activity {
  position: relative;
  margin: auto 1.6rem 1.3rem;
}

.activity li {
  display: flex;
  align-items: center;
  height: 3.6rem;
  padding: 0 0.6rem;
  font-size: 1.3rem;
  letter-spacing: -0.012em;
}

.activity li + li { border-top: 1px solid var(--line-soft); }

.activity .ic {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--tint);
  stroke-width: 1.7;
}

.activity span {
  flex: 1;
  min-width: 0;
  margin-left: 1.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity time {
  margin-left: 0.8rem;
  font-size: 1.15rem;
  color: var(--text-3);
  white-space: nowrap;
}

/* Agentes activos */
.agents {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: auto 1.5rem 1.6rem;
}

.agent {
  display: flex;
  align-items: center;
  height: 4.8rem;
  padding: 0 1.4rem 0 0.9rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: linear-gradient(180deg, rgba(var(--row-1-rgb), 0.85), rgba(var(--row-2-rgb), 0.85));
}

.agent__icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  background: linear-gradient(180deg, rgba(var(--hot-1-rgb), 0.55), rgba(var(--hot-2-rgb), 0.55));
  box-shadow: inset 0 0 1rem rgba(var(--accent-rgb), 0.18);
  color: var(--accent-2);
}

.agent__icon .ic { width: 2.2rem; height: 2.2rem; stroke-width: 2.1; }

.agent__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  margin-left: 1.9rem;
}

.agent__text b {
  font-size: 1.45rem;
  font-weight: 500;
}

.agent__text small {
  font-size: 1.2rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--tint);
}

.status::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0.8rem rgba(63, 220, 133, 0.55);
}

/* Prioridades de hoy */
.priorities {
  position: relative;
  margin: auto 1.8rem 2.8rem;
}

.priorities li {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 3.18rem;
  padding: 0 0.8rem;
  font-size: 1.32rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.priorities li + li { border-top: 1px solid var(--line-soft); }

.check {
  position: relative;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 0.15rem solid var(--tint);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.check[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
}

.check[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.22rem;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--on-accent);
  border-width: 0 0.18rem 0.18rem 0;
  transform: rotate(45deg);
}

.priorities li.is-done { color: var(--text-3); text-decoration: line-through; }

/* Ideas capturadas */
.ideas {
  position: relative;
  margin: auto 1.8rem 0;
}

.ideas li {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  height: 3.7rem;
  padding: 0 0.8rem;
  font-size: 1.35rem;
}

.ideas li + li { border-top: 1px solid var(--line-soft); }

.ideas .ic {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--accent-soft);
  stroke-width: 1.6;
}

.btn-capture {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 3.8rem;
  margin: 1.05rem 2.7rem 1.5rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(var(--accent-edge-rgb), 0.55);
  background: linear-gradient(180deg, rgba(var(--hot-1-rgb), 0.42), rgba(var(--hot-2-rgb), 0.42));
  box-shadow: 0 0 1.6rem rgba(var(--accent-rgb), 0.12), inset 0 1px 0 rgba(var(--accent-pale-rgb), 0.12);
  color: var(--accent-soft);
  font-size: 1.35rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn-capture:hover { background: linear-gradient(180deg, rgba(var(--hot-1-rgb), 0.5), rgba(var(--hot-2-rgb), 0.5)); }
.btn-capture .ic { width: 1.8rem; height: 1.8rem; stroke-width: 2; }

/* -----------------------------------------------------------
   Dock
   ----------------------------------------------------------- */
.dock {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: center;
  align-self: center;
  width: 100.5rem;
  height: 8.8rem;
  margin-top: 3.8rem;
  padding: 0 1.2rem 0 1.9rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--panel-1-rgb), 0.86), rgba(var(--panel-2-rgb), 0.9));
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dock__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  height: 6.9rem;
  margin: 0 0.6rem;
  border-radius: 1.3rem;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--tint);
  transition: color 0.15s ease, background 0.15s ease;
}

.dock__item .ic { width: 2.3rem; height: 2.3rem; stroke-width: 1.7; }
.dock__item:hover { color: #fff; background: rgba(255, 255, 255, 0.03); }

.dock__item.is-active {
  color: #fff;
  border: 1px solid rgba(var(--accent-edge-rgb), 0.38);
  background:
    radial-gradient(7rem 5rem at 50% 25%, rgba(var(--accent-edge-rgb), 0.38), transparent 75%),
    linear-gradient(180deg, rgba(var(--dock-hot-1-rgb), 0.7), rgba(var(--dock-hot-2-rgb), 0.62));
  box-shadow: 0 0 2rem rgba(var(--accent-rgb), 0.16);
}

.dock__item.is-active .ic { color: var(--accent-pale); }

.dock__item.is-active::after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  left: 50%;
  width: 5rem;
  height: 0.3rem;
  border-radius: 1rem;
  background: var(--accent);
  box-shadow: 0 0 0.8rem rgba(var(--accent-rgb), 0.7);
  transform: translateX(-50%);
}

.dock__badge {
  position: absolute;
  top: 0.4rem;
  left: calc(50% + 0.6rem);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgb(var(--accent-edge-rgb));
  color: var(--on-accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.dock__dot {
  position: absolute;
  top: 1.3rem;
  left: calc(50% + 1.6rem);
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.6rem rgba(var(--accent-rgb), 0.8);
}

/* -----------------------------------------------------------
   Pantallas angostas: el lienzo deja de escalar y se apila
   ----------------------------------------------------------- */
@media (max-width: 1000px), (max-aspect-ratio: 1/1) {
  html { font-size: 8.5px; }
  .body--app { display: block; place-items: normal; }
  .app { width: auto; min-width: 0; height: auto; min-height: 0; padding: 0 2.4rem 3rem; }
  .topbar { flex-wrap: wrap; height: auto; row-gap: 1.6rem; }
  .topbar__right { width: 100%; margin-left: 0; }
  .btn-ghost { margin-left: auto; }
  .hero { height: auto; padding: 3.6rem 3.6rem 4rem; }
  .hero__title { font-size: 4.4rem; }
  .modules { grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr)); height: auto; }
  .module { height: 6.8rem; }
  .cards { flex: none; grid-template-columns: repeat(auto-fill, minmax(36rem, 1fr)); min-height: 0; }
  .card { min-height: 30.6rem; }
  .dock {
    position: sticky;
    bottom: 1.6rem;
    width: 100%;
    overflow-x: auto;
    grid-template-columns: repeat(10, minmax(8rem, 1fr));
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  html { font-size: 9.5px; }
  .app { padding: 0 1.6rem 2rem; }
  .topbar { padding: 0; }
  .topbar__sep, .topbar__tagline, .today { display: none; }
  .clock { font-size: 3.2rem; }
  .btn-ghost { width: auto; padding: 0 1.4rem; }
  .hero { padding: 2.8rem 2.4rem 3rem; background-position: 70% center; }
  .hero__video { object-position: 70% 52%; }
  .hero__media::after { background: linear-gradient(90deg, rgba(var(--veil-rgb), 0.75), rgba(var(--veil-rgb), 0.3)); }
  .hero__title { font-size: 3.4rem; }
  .hero__sub { font-size: 1.6rem; }
  .listen { width: auto; }
  .modules, .cards { grid-template-columns: 1fr; }
}

/* ===========================================================
   LOGIN
   =========================================================== */
.body--login { font-size: 14px; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("hero.jpg") 70% center / cover no-repeat;
}

.bg--login::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.08) 0%, rgba(11, 11, 12, 0.02) 50%, rgba(11, 11, 12, 0.16) 100%);
}

.login {
  display: flex;
  min-height: 100vh;
}

.login__panel {
  margin-left: auto;
  width: min(440px, 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 52px 48px 44px;
  background: rgba(14, 14, 15, 0.82);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.login__logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login__logo img { display: block; }

.login__title {
  margin-top: 40px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-google {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #202023;
  color: #edeae6;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-google:hover { background: #262629; border-color: rgba(255, 255, 255, 0.14); }

.login__foot {
  margin-top: auto;
  font-size: 12px;
  color: #84817b;
  letter-spacing: 0.01em;
}

/* -----------------------------------------------------------
   Movimiento reducido
   ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .listen.is-listening .wave i { animation: none; }
  .hero__video { display: none; }
  * { transition-duration: 0.01ms !important; }
}
