/* Bienvenida tipo "historias": réplica web del onboarding sin sesión de la app
   móvil (apps/mobile/app/(auth)/welcome.tsx). Fondo oscuro con dos halos de la
   marca, barra de progreso, teléfono recortado con escenas que se animan solas
   y título/subtítulo por escena. Se monta en el hero (opción A) o en la
   sección "La app" (opción B). */

.wlc-dark {
  --wlc-bg: #14100e;
  --wlc-ink: #ffffff;
  --wlc-muted: rgba(255, 255, 255, 0.68);
  --wlc-faint: rgba(255, 255, 255, 0.16);
  --wlc-glass: rgba(255, 255, 255, 0.08);
  --app-bg: #f8f5ee;
  --app-card: #ffffff;
  --app-ink: #1f1f1f;
  --app-slate: #516f90;
  --app-line: #e5dfd3;
  --app-line-soft: #efe9dd;
  --app-primary: #ff4800;
  --app-primary-dark: #c93700;
  --app-primary-soft: #fff1e8;
  --app-success: #1e8e5a;
  --app-success-soft: #e4f5ec;
  --app-warning: #9a5b00;
  --app-warning-soft: #fff1d6;
  --wlc-slide: 5600ms;
  --wlc-device-w: 340px;
  --wlc-device-h: 500px;
  --wlc-caption-h: 150px;
  position: relative;
  overflow: hidden;
  color: var(--wlc-ink);
  background: var(--wlc-bg);
}

/* Halos de la marca que derivan lento detrás del contenido */
.wlc-glow {
  position: absolute;
  z-index: 0;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(255, 72, 0, 0.55), rgba(255, 72, 0, 0));
  animation: wlcDrift 9s ease-in-out infinite alternate;
}
.wlc-glow--a { left: -380px; top: -420px; }
.wlc-glow--b { right: -420px; bottom: -380px; opacity: 0.6; animation-direction: alternate-reverse; }
@keyframes wlcDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(120px, 70px); }
}
.wlc-dark > .container { position: relative; z-index: 1; }

/* ---------- Panel: progreso + teléfono + caption ---------- */
.wlc-panel {
  width: 100%;
  max-width: calc(var(--wlc-device-w) + 48px);
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.wlc-progress {
  display: flex;
  gap: 5px;
  margin: 0 24px 18px;
}
.wlc-seg {
  flex: 1;
  height: 3px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: var(--wlc-faint);
  cursor: pointer;
}
.wlc-seg i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--app-primary);
}
.wlc-seg.is-done i { width: 100%; }
.wlc-seg.is-active i { animation: wlcFill var(--wlc-slide) linear forwards; }
.wlc-panel.is-paused .wlc-seg.is-active i { animation-play-state: paused; }
@keyframes wlcFill { from { width: 0; } to { width: 100%; } }

.wlc-pages {
  position: relative;
  height: calc(var(--wlc-device-h) + var(--wlc-caption-h) + 18px);
}
.wlc-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateX(48px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wlc-page.is-prev { transform: translateX(-48px); }
.wlc-page.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* Teléfono recortado abajo, fundido con el fondo */
.wlc-device {
  position: relative;
  display: block;
  width: var(--wlc-device-w);
  max-width: 100%;
  height: var(--wlc-device-h);
  padding: 0;
  overflow: hidden;
  border: 7px solid #2b2622;
  border-bottom: 0;
  border-radius: 44px 44px 0 0;
  background: #2b2622;
  color: var(--app-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wlc-screen {
  height: 100%;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 37px 37px 0 0;
  background: var(--app-bg);
}
.wlc-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 14px;
}
.wlc-status .wlc-time { font-size: 13px; font-weight: 700; }
.wlc-island { width: 82px; height: 24px; border-radius: 12px; background: #000; }
.wlc-icons { display: flex; align-items: center; gap: 5px; }
.wlc-signal { width: 14px; height: 9px; border-radius: 2px; background: var(--app-ink); opacity: 0.85; }
.wlc-battery { position: relative; width: 22px; height: 11px; padding: 1.5px; border: 1.2px solid var(--app-ink); border-radius: 3px; }
.wlc-battery::after { position: absolute; inset: 1.5px; content: ""; border-radius: 1.5px; background: var(--app-ink); }
.wlc-screen-title {
  margin: 2px 0 10px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.wlc-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 16, 14, 0), var(--wlc-bg));
}

/* Caption por escena (título + subtítulo) */
.wlc-caption {
  width: 100%;
  height: var(--wlc-caption-h);
  margin-top: 18px;
  padding: 0 28px;
}
.wlc-title {
  margin: 0 0 8px;
  color: var(--wlc-ink);
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 32px;
}
.wlc-sub { margin: 0; color: var(--wlc-muted); font-size: 16px; line-height: 22px; }

/* ---------- Movimiento: "reveal" al activarse la página ---------- */
.rv { opacity: 0; }
.wlc-page.is-active .rv { animation: rvUp 0.52s cubic-bezier(0.33, 1, 0.68, 1) both; animation-delay: var(--d, 0ms); }
.wlc-page.is-active .rv.rv-down { animation-name: rvDown; }
.wlc-page.is-active .rv.rv-left { animation-name: rvLeft; }
.wlc-page.is-active .rv.rv-right { animation-name: rvRight; }
.wlc-page.is-active .rv.rv-pop { animation-name: rvPop; animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes rvUp { from { opacity: 0; transform: translateY(18px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes rvDown { from { opacity: 0; transform: translateY(-18px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes rvLeft { from { opacity: 0; transform: translateX(-25px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes rvRight { from { opacity: 0; transform: translateX(25px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes rvPop { from { opacity: 0; transform: scale(0.7); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ---------- Piezas de las maquetas ---------- */
.wlc-stack { display: grid; gap: 10px; }
.wlc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wlc-card { position: relative; padding: 14px; border-radius: 18px; background: var(--app-card); }
.wlc-label { display: block; color: var(--app-slate); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.wlc-kpi { display: block; margin-top: 4px; font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.wlc-kpi-sm { display: block; margin-top: 4px; font-size: 19px; font-weight: 700; letter-spacing: -0.4px; }
.wlc-pill { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: var(--app-success-soft); color: var(--app-success); font-size: 12px; font-weight: 700; }
.wlc-grow { flex: 1; min-width: 0; }
.wlc-avatar { display: grid; flex-shrink: 0; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--app-primary-soft); font-size: 18px; }
.wlc-card b { display: block; font-size: 14px; font-weight: 700; }
.wlc-card small { display: block; margin-top: 2px; color: var(--app-slate); font-size: 12px; line-height: 16px; }

/* Escena 1: ventas */
.wlc-chart { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.wlc-bar { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; }
.wlc-bar .track { display: flex; align-items: flex-end; width: 100%; height: 64px; }
.wlc-bar .track i { display: block; width: 100%; height: var(--h); border-radius: 6px; background: var(--app-line-soft); transform: scaleY(0.06); transform-origin: bottom; }
.wlc-bar.is-today .track i { background: var(--app-primary); }
.wlc-bar span { color: var(--app-slate); font-size: 10px; font-weight: 600; }
.wlc-bar.is-today span { color: var(--app-ink); }
.wlc-page.is-active .wlc-bar .track i { animation: wlcGrow 0.7s cubic-bezier(0.33, 1, 0.68, 1) both; animation-delay: var(--d, 0ms); }
@keyframes wlcGrow { from { transform: scaleY(0.06); } to { transform: scaleY(1); } }

/* Escena 2: chat */
.wlc-user { display: flex; justify-content: flex-end; }
.wlc-bubble { font-size: 14px; line-height: 20px; }
.wlc-bubble--user { max-width: 84%; padding: 10px 14px; border-radius: 20px 20px 6px 20px; background: var(--app-primary); color: #fff; }
.wlc-answer { position: relative; }
.wlc-bubble--bot { display: grid; gap: 10px; max-width: 94%; padding: 14px; border-radius: 20px 20px 20px 6px; background: var(--app-card); }
.wlc-bubble--bot p { margin: 0; }
.wlc-bubble--bot p b { display: inline; font-size: inherit; }
.wlc-typing { position: absolute; left: 0; top: 0; z-index: 1; display: flex; gap: 4px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--app-card); opacity: 0; }
.wlc-typing i { width: 7px; height: 7px; border-radius: 4px; background: var(--app-slate); opacity: 0.4; }
.wlc-page.is-active .wlc-typing { animation: wlcTyping 2200ms linear both; }
.wlc-page.is-active .wlc-typing i { animation: wlcDot 0.9s linear infinite; }
.wlc-typing i:nth-child(2) { animation-delay: -0.18s; }
.wlc-typing i:nth-child(3) { animation-delay: -0.36s; }
@keyframes wlcTyping { 0%, 41% { opacity: 0; transform: scale(0.9); } 50%, 91% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes wlcDot { 0% { opacity: 0.4; transform: none; } 25% { opacity: 1; transform: translateY(-3px); } 50%, 100% { opacity: 0.4; transform: none; } }
.wlc-rows { display: grid; gap: 8px; }
.wlc-arow { display: flex; align-items: center; gap: 8px; }
.wlc-arow span { width: 96px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlc-arow i { flex: 1; height: 8px; overflow: hidden; border-radius: 4px; background: var(--app-line-soft); }
.wlc-arow i b { display: block; height: 100%; border-radius: 4px; background: var(--app-slate); }
.wlc-arow:first-child i b { background: var(--app-primary); }
.wlc-arow em { width: 34px; font-size: 12px; font-style: normal; font-weight: 700; text-align: right; }
.wlc-chip { display: inline-block; justify-self: start; padding: 7px 12px; border-radius: 999px; background: var(--app-primary-soft); color: var(--app-primary-dark); font-size: 12px; font-weight: 700; }

/* Escena 3: compras */
.wlc-paper-card { padding: 12px 14px; }
.wlc-paper { position: relative; display: grid; gap: 10px; padding: 2px 0; overflow: hidden; }
.wlc-paper-head { display: grid; gap: 6px; margin-bottom: 2px; }
.wlc-paper-item { display: flex; justify-content: space-between; }
.wlc-paper i { display: block; height: 7px; border-radius: 4px; background: var(--app-slate); opacity: 0.35; }
.wlc-paper-head i:first-child { background: var(--app-ink); opacity: 0.75; }
.wlc-scan { position: absolute; left: 0; right: 0; top: -14px; height: 16px; opacity: 0; pointer-events: none; }
.wlc-scan::before { position: absolute; inset: 0 0 2px; content: ""; background: var(--app-primary); opacity: 0.18; }
.wlc-scan::after { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; content: ""; background: var(--app-primary); }
.wlc-page.is-active .wlc-scan { animation: wlcScan 1.1s ease-in-out 350ms both; }
@keyframes wlcScan { 0% { opacity: 0; transform: none; } 5%, 95% { opacity: 1; } 100% { opacity: 0; transform: translateY(72px); } }
.wlc-check { position: absolute; right: 12px; top: 10px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 14px; background: var(--app-success); color: #fff; font-size: 15px; font-weight: 700; }
.wlc-invoice, .wlc-note, .wlc-alert { display: flex; align-items: center; gap: 10px; }
.wlc-invoice { padding: 12px 14px; }
.wlc-invoice strong { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wlc-alert { padding: 12px 14px; background: var(--app-warning-soft); }
.wlc-alert .wlc-alert-emoji { font-size: 22px; }
.wlc-alert b, .wlc-alert small { color: var(--app-warning); }

/* Escena 4: agentes */
.wlc-note-head { display: flex; align-items: center; gap: 6px; }
.wlc-note-head small { margin: 0 0 0 auto; font-size: 11px; }
.wlc-proposal { display: grid; gap: 12px; border: 1.5px solid var(--app-primary); }
.wlc-tag { display: block; color: var(--app-primary-dark); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.wlc-actions { display: flex; gap: 8px; }
.wlc-ghost, .wlc-approve { display: grid; flex: 1; height: 36px; place-items: center; border-radius: 12px; font-size: 13px; font-weight: 700; }
.wlc-ghost { border: 1px solid var(--app-line); }
.wlc-approve { background: var(--app-primary); color: #fff; }
.wlc-page.is-active .wlc-approve { animation: wlcPulse 1.04s ease-in-out 2300ms infinite; }
@keyframes wlcPulse { 0%, 100% { transform: none; } 50% { transform: scale(1.06); } }

/* ---------- Botones de la bienvenida ---------- */
.wlc-cta { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.wlc-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  overflow: hidden;
  border-radius: 18px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.wlc-btn:active { transform: scale(0.98); }
.wlc-btn--primary { background: var(--app-primary); color: #fff; box-shadow: 0 8px 18px rgba(255, 72, 0, 0.45); }
.wlc-btn--primary:hover { filter: brightness(1.06); }
.wlc-btn--primary::after {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -90px;
  width: 60px;
  content: "";
  background: rgba(255, 255, 255, 0.28);
  transform: skewX(-20deg);
  animation: wlcShine 2.7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes wlcShine { 0%, 66% { left: -90px; } 100% { left: calc(100% + 90px); } }
.wlc-btn--glass { height: 52px; border: 1px solid var(--wlc-faint); background: var(--wlc-glass); color: var(--wlc-ink); font-size: 16px; }
.wlc-btn--glass:hover { background: rgba(255, 255, 255, 0.14); }
.wlc-footnote { margin: 2px 0 0; color: var(--wlc-muted); font-size: 12px; text-align: center; }

/* ---------- Opción A: hero ---------- */
.wlc-hero { padding: 64px 0 56px; }
.wlc-hero .wlc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  grid-template-areas: "copy panel" "actions panel";
  gap: 16px 64px;
  align-items: center;
}
.wlc-hero .wlc-copy { grid-area: copy; align-self: end; }
.wlc-hero .wlc-hero-actions { grid-area: actions; align-self: start; }
.wlc-hero .wlc-panel { grid-area: panel; }
.wlc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--wlc-faint);
  border-radius: 999px;
  background: var(--wlc-glass);
  color: var(--wlc-ink);
  font-size: 0.8rem;
  font-weight: 500;
}
.wlc-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); animation: ping 1.8s infinite; }
.wlc-hero h1 {
  margin-bottom: 18px;
  color: var(--wlc-ink);
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.wlc-hero h1 .grad {
  background: linear-gradient(92deg, #ff4800 0%, #ff7a3d 55%, #ffa263 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wlc-hero .lead { max-width: 520px; margin-bottom: 22px; color: var(--wlc-muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); }
.wlc-hero .plug { margin: 0 0 8px; }
.wlc-hero .plug span { border-color: var(--wlc-faint); background: var(--wlc-glass); color: var(--wlc-ink); }
.wlc-hero .plug .plug-k { background: #fff; border-color: #fff; color: var(--app-ink); }
.wlc-hero .wlc-cta { margin-top: 12px; }
.wlc-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wlc-cta-row .wlc-btn { flex: 1 1 180px; padding: 0 22px; }
.wlc-hero .store-row { margin-top: 18px; }
.wlc-hero .store-badge, .wlc-section .store-badge { border-color: var(--wlc-faint); background: var(--wlc-glass); }
.wlc-hero .store-badge:hover, .wlc-section .store-badge:hover { border-color: #fff; }

/* ---------- Opción B: sección "La app" ---------- */
.wlc-section { padding: 96px 0; }
.wlc-section .wlc-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  grid-template-areas: "copy panel" "actions panel";
  gap: 16px 64px;
  align-items: center;
}
.wlc-section .wlc-section-copy { grid-area: copy; align-self: end; }
.wlc-section .wlc-section-actions { grid-area: actions; align-self: start; }
.wlc-section .wlc-panel { grid-area: panel; }
.wlc-section .eyebrow { border-color: var(--wlc-faint); background: var(--wlc-glass); box-shadow: none; color: var(--wlc-ink); }
.wlc-section h2 { color: var(--wlc-ink); }
.wlc-section .wlc-section-copy > p { max-width: 520px; color: var(--wlc-muted); font-size: 1.08rem; line-height: 1.55; }
.wlc-section .wlc-cta { margin-top: 8px; }
.wlc-section .store-row { margin-top: 22px; }
.wlc-section .store-note { width: auto; margin: 0; color: var(--wlc-muted); text-align: left; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .wlc-hero { padding: 40px 0 44px; }
  .wlc-hero .wlc-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "panel" "actions";
    gap: 22px;
  }
  .wlc-hero .wlc-copy { text-align: center; }
  .wlc-hero .wlc-copy .lead, .wlc-hero .wlc-copy .plug { display: none; }
  .wlc-hero .wlc-hero-actions { justify-self: center; width: 100%; max-width: 420px; }
  .wlc-hero .store-row { justify-content: center; }
  .wlc-section { padding: 56px 0 64px; }
  .wlc-section .wlc-section-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "panel" "actions"; gap: 22px; }
  .wlc-section .wlc-section-copy { text-align: center; }
  .wlc-section .wlc-section-copy > p { margin: 0 auto; }
  .wlc-section .wlc-section-actions { justify-self: center; width: 100%; max-width: 420px; }
  .wlc-section .wlc-cta { margin: 0 auto; }
  .wlc-section .store-row { justify-content: center; }
  .wlc-section .store-note { width: 100%; text-align: center; }
  .wlc-caption { text-align: center; }
  .wlc-glow { width: 600px; height: 600px; }
  .wlc-glow--a { left: -260px; top: -300px; }
  .wlc-glow--b { right: -280px; bottom: -260px; }
}
@media (max-width: 420px) {
  .wlc-dark { --wlc-device-w: calc(100vw - 64px); --wlc-device-h: 460px; --wlc-caption-h: 140px; }
  .wlc-title { font-size: 24px; line-height: 28px; }
  .wlc-sub { font-size: 14px; line-height: 19px; }
  .wlc-caption { padding: 0 12px; }
  .wlc-progress { margin: 0 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wlc-glow, .wlc-btn--primary::after, .wlc-eyebrow i { animation: none; }
  .rv, .wlc-page .rv { opacity: 1; animation: none; }
  .wlc-bar .track i { transform: none; animation: none; }
  .wlc-page.is-active .wlc-typing, .wlc-page.is-active .wlc-scan, .wlc-page.is-active .wlc-approve, .wlc-page.is-active .wlc-bar .track i { animation: none; }
  .wlc-scan { display: none; }
  .wlc-seg.is-active i { animation: none; width: 100%; }
  .wlc-page { transition: none; }
}

/* ---------- Opción C: sección "La app" con el teléfono del tour ---------- */
.rest-app--tour {
  overflow: hidden;
  background:
    radial-gradient(720px 520px at 78% 50%, rgba(255, 120, 60, 0.34) 0%, rgba(255, 120, 60, 0) 62%),
    radial-gradient(520px 420px at 64% 90%, rgba(255, 196, 120, 0.42) 0%, rgba(255, 196, 120, 0) 60%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}
.rest-app--tour .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.rest-app--tour .tour-copy .body-copy { max-width: 520px; margin-bottom: 26px; color: var(--navy); font-size: 1.08rem; line-height: 1.55; }
.rest-app--tour .m-steps { margin-bottom: 26px; }
.rest-app--tour .store-row { margin-top: 0; }
.rest-app--tour .store-badge { color: #fff; }
.rest-app--tour .store-note { width: auto; margin: 0; color: var(--slate); text-align: left; }
@media (max-width: 980px) {
  .rest-app--tour .container { grid-template-columns: 1fr; gap: 24px; }
  .rest-app--tour .tour-copy { text-align: center; }
  .rest-app--tour .tour-copy .body-copy { margin-left: auto; margin-right: auto; }
  .rest-app--tour .m-steps { text-align: left; }
  .rest-app--tour .store-row { justify-content: center; }
  .rest-app--tour .store-note { width: 100%; text-align: center; }
}

/* ---------- "El cambio" minimalista: un diagrama, dos estados ---------- */
.shift-fig { margin: 0; }
.shift-toggle {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.shift-toggle button {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.shift-toggle button.is-on { background: var(--ink); color: #fff; }
.shift-svg { display: block; width: 100%; max-width: 960px; height: auto; margin: 0 auto; overflow: visible; }
.shift-svg--v { display: none; max-width: 420px; }
.shift-svg--v .src-label { font-size: 12px; }
.shift-svg text { font-family: var(--font-body); }
.shift-svg .p { fill: none; stroke-width: 1.5; stroke-linecap: round; transition: opacity 0.5s ease; }
.shift-svg .p-today { stroke: #cbd6e2; }
.shift-svg .p-in { stroke: rgba(255, 72, 0, 0.35); }
.shift-svg .p-out { stroke: var(--orange); stroke-width: 2; }
.shift-svg .dot { transition: opacity 0.4s ease; }
.shift-svg .d-today { fill: var(--slate); }
.shift-svg .d-in { fill: var(--orange); }
.shift-svg .d-out { fill: var(--orange); }
.shift-svg .src rect { fill: var(--white); stroke: var(--line); }
.shift-svg .src-emoji { font-size: 15px; }
.shift-svg .src-label { fill: var(--ink); font-size: 13px; font-weight: 500; }
.shift-svg .g-vectio { transition: opacity 0.5s ease, filter 0.5s ease; }
.shift-svg .v-circle { fill: var(--orange); }
.shift-svg .v-mark { fill: #fff; font-family: var(--font-display); font-size: 32px; font-weight: 600; text-anchor: middle; }
.shift-svg .vos-circle { fill: var(--peach-soft); stroke: var(--peach); }
.shift-svg .vos-icon { fill: var(--navy); }
.shift-svg .vos-mood { font-size: 18px; text-anchor: middle; transition: opacity 0.4s ease; }
.shift-svg .n-label { fill: var(--ink); font-size: 14px; font-weight: 600; text-anchor: middle; }
.shift-svg .n-sub { fill: var(--slate); font-size: 11px; text-anchor: middle; transition: opacity 0.4s ease; }
.shift-svg .badge circle { fill: var(--orange); transition: fill 0.4s ease; }
.shift-svg .badge text { fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; }
.shift-svg .badge { transition: opacity 0.4s ease; transform-box: fill-box; transform-origin: center; }
.shift-svg .b-today circle { fill: #d93025; }
.shift-svg .b-vectio circle { fill: #1e8e5a; }
/* Estado Hoy: todo va directo a vos; Vectio apagado */
.shift-fig[data-mode="today"] .p-in, .shift-fig[data-mode="today"] .p-out,
.shift-fig[data-mode="today"] .d-in, .shift-fig[data-mode="today"] .d-out,
.shift-fig[data-mode="today"] .m-vectio, .shift-fig[data-mode="today"] .b-vectio, .shift-fig[data-mode="today"] .s-vectio { opacity: 0; }
.shift-fig[data-mode="today"] .g-vectio { opacity: 0.22; filter: grayscale(1); }
.shift-fig[data-mode="today"] .b-today { animation: shiftBump 1.1s ease-in-out infinite; }
/* Estado Con Vectio: todo entra a Vectio, a vos te llega una cosa */
.shift-fig[data-mode="vectio"] .p-today, .shift-fig[data-mode="vectio"] .d-today,
.shift-fig[data-mode="vectio"] .m-today, .shift-fig[data-mode="vectio"] .b-today, .shift-fig[data-mode="vectio"] .s-today { opacity: 0; }
@keyframes shiftBump { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.shift-fig figcaption { position: relative; height: 1.6em; margin-top: 14px; color: var(--navy); font-size: 1rem; }
.shift-fig figcaption span { position: absolute; left: 0; right: 0; transition: opacity 0.4s ease; }
.shift-fig[data-mode="today"] .c-vectio, .shift-fig[data-mode="vectio"] .c-today { opacity: 0; }
.rest-shift--min .rest-shift-punch { margin-top: 36px; }
@media (max-width: 640px) {
  .shift-svg--h { display: none; }
  .shift-svg--v { display: block; }
  .shift-fig { text-align: center; }
  .shift-toggle { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .shift-svg .dot { display: none; }
  .shift-fig[data-mode="today"] .b-today { animation: none; }
}

