/* ═══════════════════════════════════════════════════════════════
   Dot — Design tokens núcleo (v4)
   Versión "brand book completo": paleta POP real, logo vectorial
   real (extraído del DOT_COLOR_LOGO.ps oficial con Ghostscript +
   mutool, colores normalizados a los del brand book -- el .ps traía
   un ligero corrimiento de color por perfil de pantalla) y las
   tipografías reales entregadas por el cliente 2026-09-05 (Avenir
   LT 45 Book, Monument Extended Regular/Ultrabold; el brand book
   pide Avenir "35 Light"/"55 Roman" pero el archivo entregado es
   "45 Book" -- se usa tal cual, es el único que se tiene).
   Solo existen dos versiones activas de este sistema: esta (v4,
   guidebook completo) y v3 (paleta placeholder heredada, para las
   apps que aún no migran de color, pero YA con estas mismas
   tipografías y el mismo logo real). v1/v2 (paleta inventada sin
   fuentes reales) se retiraron -- ninguna app los consumía ya.
   Contiene SOLO lo universal de marca: colores, vidrio, fondo,
   tipografía. Componentes de UI específicos de cada app (botones,
   tabs, tarjetas de producto, etc.) NO viven aquí -- cada app los
   define en su propia hoja de estilos.
   ═══════════════════════════════════════════════════════════════ */

@font-face{
  font-family:"Monument Extended";
  src:url("/v4/fonts/MonumentExtended-Regular.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Monument Extended";
  src:url("/v4/fonts/MonumentExtended-Ultrabold.woff2") format("woff2");
  font-weight:800; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Avenir";
  src:url("/v4/fonts/AvenirLT45Book.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}

:root {
  --dot-pink: #e0629e;
  --dot-pink-soft: #f3819a;
  --dot-pink-deep: #bc256d;
  --dot-black: #181818;
  --dot-white: #ffffff;
  --dot-cream: #f5efef;
  --dot-green: #64e066;
  --dot-yellow: #fef16c;
  --dot-orange: #ff4900;

  --sem-verde: #34c759;
  --sem-ambar: #ffb020;
  --sem-rojo: #ff3b30;

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-heavy: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow:
    0 8px 32px rgba(188, 37, 109, 0.1),
    0 2px 8px rgba(24, 24, 24, 0.05);

  --radio: 24px;
  --radio-lg: 32px;

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --suave: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── Tipografía base ── */
body {
  font-family: "Avenir", -apple-system, sans-serif;
  color: var(--dot-black);
}
h1,
h2,
h3,
.display {
  font-family: "Monument Extended", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* ── Logo ── */
.logo-dot {
  display: inline-block;
  vertical-align: middle;
}

/* ── Fondo: gradiente crema→rosa con perlas desenfocadas flotando ── */
.fondo {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, #f5efef 0%, #f8e4ee 45%, #f9d9ea 100%);
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob-1 {
  width: 44vmax;
  height: 44vmax;
  background: #f3c2d8;
  top: -18vmax;
  right: -12vmax;
}
.blob-2 {
  width: 36vmax;
  height: 36vmax;
  background: #f8e0ee;
  bottom: -14vmax;
  left: -10vmax;
}
.blob-3 {
  width: 22vmax;
  height: 22vmax;
  background: #f3819a;
  top: 38%;
  left: 52%;
  opacity: 0.4;
}
.perla-flota {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #f3c2d8 55%, #e0629e 100%);
  box-shadow:
    0 12px 30px rgba(188, 37, 109, 0.18),
    inset 0 -6px 14px rgba(188, 37, 109, 0.15);
  animation: flotar 9s ease-in-out infinite;
}
.perla-flota.oscura {
  background: radial-gradient(circle at 32% 28%, #6b6b6b 0%, #2a2a2a 60%, #181818 100%);
  box-shadow:
    0 12px 30px rgba(24, 24, 24, 0.25),
    inset 0 -6px 14px rgba(0, 0, 0, 0.4);
  opacity: 0.16;
}
@keyframes flotar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-22px);
  }
}

/* ── Vidrio ── */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.46));
  -webkit-backdrop-filter: blur(34px) saturate(1.85);
  backdrop-filter: blur(34px) saturate(1.85);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 12px 44px rgba(188, 37, 109, 0.09),
    0 2px 10px rgba(24, 24, 24, 0.04),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(188, 37, 109, 0.04);
  border-radius: var(--radio);
}
.glass-heavy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62));
  -webkit-backdrop-filter: blur(48px) saturate(1.9);
  backdrop-filter: blur(48px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 30px 80px rgba(188, 37, 109, 0.18),
    0 6px 20px rgba(24, 24, 24, 0.06),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
  border-radius: var(--radio-lg);
}

/* ── Header de apps ── */
.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-radius: 22px;
}
.app-header-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.app-header-title {
  font-family: "Monument Extended", sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--dot-black);
}
.app-header-subtitle {
  color: var(--dot-pink);
}
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.app-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-header-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dot-pink-soft);
  color: var(--dot-pink-deep);
  font-family: "Monument Extended", sans-serif;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.app-header-username {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dot-black);
  white-space: nowrap;
}
.app-header-logout {
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(24, 24, 24, 0.06);
  color: var(--dot-black);
  border: 1px solid rgba(24, 24, 24, 0.08);
  transition: background 0.15s;
  white-space: nowrap;
}
.app-header-logout:hover {
  background: rgba(24, 24, 24, 0.12);
}

/* ── Menú lateral en cajón (drawer) ── */
.app-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(24, 24, 24, 0.06);
  border: 1px solid rgba(24, 24, 24, 0.08);
  color: var(--dot-black);
  flex-shrink: 0;
  transition: background 0.15s;
}
.app-hamburger:hover {
  background: rgba(24, 24, 24, 0.12);
}
.app-hamburger svg {
  width: 20px;
  height: 20px;
}

.app-drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(24, 24, 24, 0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: dot-scrim-in 0.18s ease;
}
@keyframes dot-scrim-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.app-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s var(--spring);
}
.app-drawer.is-open {
  transform: translateX(0);
}
