/* Tipografía utilitaria */
.font-display { font-family: var(--font-display); font-weight: 400; letter-spacing: .005em; text-transform: uppercase; }
.font-mono { font-family: var(--font-mono); }

.text-bone { color: var(--bone); }
.text-ink { color: var(--ink); }
.text-muted { color: var(--muted); }
/* IMPORTANTE: el amarillo #FACC15 puro tiene contraste insuficiente sobre fondo blanco
   (1.7:1) y sobre fondo claro general. En light mode usamos #A16207 (amber-700) que da
   ratio ~5.0:1 sobre blanco. En dark mode mantenemos el amarillo brillante.
   Esto aplica a TODAS las variantes de amarillo usadas como texto: forest, forest-soft,
   forest-deep y accent (incluye casos sobre bg-moss, que en light es amarillo pálido). */
[data-theme="light"] .text-forest,
[data-theme="light"] .text-forest-soft,
[data-theme="light"] .text-forest-deep,
[data-theme="light"] .text-accent,
[data-theme="light"] .text-accent-deep { color: #A16207; }
/* Excepción: dentro de secciones invertidas bg-ink (que en light tienen fondo OSCURO)
   restaurar el amarillo brillante. */
[data-theme="light"] .bg-ink .text-forest,
[data-theme="light"] .bg-ink .text-forest-soft,
[data-theme="light"] .bg-ink .text-forest-deep,
[data-theme="light"] .bg-ink .text-accent,
[data-theme="light"] .bg-ink .text-accent-deep { color: var(--accent); }

/* Texto interactivo amarillo (chips, links de notif, links legales, step-num).
   En dark se ve bien con var(--accent)=amarillo brillante; en light usamos amber-700
   para garantizar contraste sobre fondos claros (bone, surface, surface-2). */
[data-theme="light"] .chip,
[data-theme="light"] .notif-action,
[data-theme="light"] .notif-foot a,
[data-theme="light"] .notif-toast-action,
[data-theme="light"] .legal a,
[data-theme="light"] .step-num { color: #A16207; }
[data-theme="light"] .legal a:hover,
[data-theme="light"] .notif-action:hover,
[data-theme="light"] .notif-foot a:hover,
[data-theme="light"] .notif-toast-action:hover { color: #854D0E; }

/* Chips de estado (warning/info/danger) — los tonos por defecto son demasiado claros
   sobre fondo casi blanco. Usamos tonos -700/-800 para legibilidad en light mode. */
[data-theme="light"] .chip-warning {
  color: #92400E; /* amber-800 */
  background: color-mix(in srgb, var(--warning) 22%, transparent);
}
[data-theme="light"] .chip-info {
  color: #1D4ED8; /* blue-700 */
  background: color-mix(in srgb, var(--info) 18%, transparent);
}
[data-theme="light"] .chip-danger {
  color: #B91C1C; /* red-700 */
  background: color-mix(in srgb, var(--danger) 16%, transparent);
}
.bg-bone { background: var(--bone); }
.bg-bone-2 { background: var(--bone-2); }
.bg-ink { background: var(--ink); color: var(--bone); }
/* Dentro de bg-ink el color de superficie está invertido vs la página: en dark mode
   el container tiene fondo claro y texto oscuro. Pero h1-h4 y .font-display traen
   forzado color: var(--text) desde tokens.css, que en dark = claro → invisible sobre
   el fondo claro de bg-ink. Esto fuerza que hereden el color invertido del container. */
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4,
.bg-ink .font-display, .bg-ink .display { color: inherit; }
.border-ink { border-color: var(--ink); }
.bg-forest { background: var(--forest); color: var(--accent-fg); }
.bg-moss { background: var(--moss); }
.border-line { border-color: var(--line); }
.border-line-2 { border-color: var(--line-2); }

/* Avatares con backgrounds personalizados oscuros (azul/rojo/grises) — siempre texto claro
   Necesario porque text-bone en light mode = #F9FAFB pero en dark = #111111;
   los avatares con styles inline coloreados quieren SIEMPRE texto blanco. */
.avatar-on-color { color: #F9FAFB !important; }

/* Italics en serif quedaban bien — en Bebas Neue no, las matamos */
.font-display em, em.italic { font-style: normal; color: var(--accent); font-weight: 400; }

/* Sidebar */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius);
  color: var(--text-soft); font-size: 13px; font-weight: 500;
  letter-spacing: .03em; text-transform: uppercase;
  transition: background .15s ease, color .15s ease, border-left-color .15s ease;
  border-left: 3px solid transparent;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-left-color: var(--accent);
  font-weight: 600;
}
.nav-link.active svg { color: var(--accent-fg); }

/* Brand mark — punchy en Bebas */
.brand-mark {
  font-family: var(--font-display); font-size: 24px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.brand-mark .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 999px; }

/* Topbar */
.topbar {
  height: 64px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* KPI card */
.kpi {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; background: var(--surface);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: 0; transition: opacity .2s ease;
}
.kpi:hover::before { opacity: 1; }
.kpi-value { font-family: var(--font-display); font-size: 56px; line-height: .95; letter-spacing: .005em; color: var(--text); }
.kpi-label { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.kpi-delta { font-size: 12px; font-weight: 600; }

/* Tabla */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; vertical-align: middle; }
.tbl th { font-size: 11px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .08em; background: var(--surface); }
.tbl tbody tr { transition: background .15s ease; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody td { border-bottom: 1px solid var(--border); font-size: 14px; }

/* Kanban */
.kanban-col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-width: 280px;
  flex: 1;
}
.kanban-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  cursor: grab;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.kanban-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.kanban-card:active { cursor: grabbing; }

/* Hero arrows */
.arrow-link { display: inline-flex; align-items: center; gap: 6px; }
.arrow-link svg { transition: transform .2s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

/* Marquee de logos (social proof) */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; animation: scroll 32s linear infinite; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Borders sutiles para listas largas */
.list-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: none; }

/* Auto card */
.auto-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bone); overflow: hidden;
  transition: border-color .15s ease, transform .2s ease, box-shadow .2s ease;
}
.auto-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.auto-card .photo {
  aspect-ratio: 16/10;
  background: var(--bone-2);
  position: relative;
  overflow: hidden;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { transition: transform .2s ease; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; color: var(--ink-soft); max-width: 70ch; }

/* Steps */
.step-num {
  font-family: var(--font-display);
  font-size: 56px; line-height: 1; color: var(--forest);
  letter-spacing: -0.03em;
}

/* Calendar grid */
.cal-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bone);
}
.cal-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 60px;
  padding: 4px;
  font-size: 12px;
  position: relative;
}
.cal-cell:last-child { border-right: none; }
.cal-event {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 6px 8px; border-radius: 4px;
  font-size: 12px; line-height: 1.3;
  cursor: pointer;
  font-weight: 500;
}
[data-theme="dark"] .cal-event { background: color-mix(in srgb, var(--accent) 28%, var(--surface-2)); }
.cal-event.busy { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--text); border-left-color: var(--warning); }
.cal-event.done { background: var(--surface-2); color: var(--muted); border-left-color: var(--muted); text-decoration: line-through; }

/* (definición de .brand-mark unificada arriba) */

/* Hero ASCII line */
.cnc {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
}

/* Print-clean barras horizontales */
.hr-thin { border: none; border-top: 1px solid var(--line); margin: 0; }

/* Scrollbar discreto */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 2px solid var(--bone); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Responsive helpers */
@media (max-width: 768px) {
  .kpi-value { font-size: 36px; }
  .step-num { font-size: 40px; }
}

/* === Shells reutilizables (extraídos de cada HTML) === */

/* Shell del CRM (sidebar + main) */
.crm-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
@media (max-width: 1023px) {
  .crm-shell { grid-template-columns: 1fr; }
  #sidebar { position: fixed; inset: 0; z-index: 50; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  #sidebar.open { transform: translateX(0); }
}

/* Tipografía de páginas legales */
.legal h2 { font-family: var(--font-display); font-size: 28px; margin-top: 56px; margin-bottom: 12px; color: var(--ink); letter-spacing: -0.02em; }
.legal h3 { font-weight: 600; font-size: 16px; margin-top: 28px; margin-bottom: 8px; color: var(--ink); }
.legal p { color: var(--ink-soft); margin: 12px 0; max-width: 70ch; }
.legal ul, .legal ol { color: var(--ink-soft); margin: 12px 0; padding-left: 22px; max-width: 70ch; }
.legal ul li, .legal ol li { margin: 6px 0; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--forest); border-bottom: 1px solid currentColor; }
.legal a:hover { color: var(--forest-deep); }
.legal table { width:100%; border-collapse: collapse; margin: 18px 0; max-width: 70ch; font-size: 14px; }
.legal th, .legal td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bone-2); font-weight: 500; }

/* Tabs verticales (configuración) */
.tab-link { display: block; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; color: var(--text-soft); cursor: pointer; letter-spacing: .02em; transition: background .15s ease, color .15s ease; }
.tab-link:hover { background: var(--surface-2); color: var(--text); }
.tab-link.active { background: var(--accent); color: var(--accent-fg); font-weight: 600; }

/* Switch on/off (configuración) */
.switch { width: 38px; height: 22px; background: var(--surface-3); border-radius: 999px; position: relative; cursor: pointer; transition: background .2s ease; }
.switch::after { content: ""; width: 18px; height: 18px; background: var(--bg); border-radius: 999px; position: absolute; top: 2px; left: 2px; transition: transform .2s ease; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(16px); background: var(--accent-fg); }

/* Calendario semanal (agenda) */
.week-grid { display: grid; grid-template-columns: 56px repeat(7, 1fr); }
.week-grid > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; min-height: 56px; position: relative; }
.week-grid > div:nth-child(8n) { border-right: none; }
.day-head { background: var(--bone); padding: 10px !important; border-bottom: 1px solid var(--line); }

/* Gradientes de fotos (inventario y vehículo-detalle) */
.photo-bg-1 { background: linear-gradient(135deg,#3A4A38 0%,#1a2218 100%); }
.photo-bg-2 { background: linear-gradient(135deg,#111111 0%,#2B2B2B 100%); }
.photo-bg-3 { background: linear-gradient(135deg,#F9FAFB 0%,#3A3A3A 100%); }
.photo-bg-4 { background: linear-gradient(135deg,#5C5C5C 0%,#2B2B2B 100%); }
.photo-bg-5 { background: linear-gradient(135deg,#7A2A1F 0%,#3a1410 100%); }
.photo-bg-6 { background: linear-gradient(135deg,#1D4C7A 0%,#0d2a45 100%); }
.photo-bg-7 { background: linear-gradient(135deg,#888 0%,#444 100%); }
.photo-bg-8 { background: linear-gradient(135deg,#C0C0C0 0%,#7a7a7a 100%); }
.photo-main { aspect-ratio: 16/10; background: linear-gradient(135deg,#3A4A38 0%,#1a2218 100%); border-radius: 14px; }
.photo-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg,#3A4A38,#1a2218); border-radius: 8px; cursor: pointer; }
.photo-thumb.alt-1 { background: linear-gradient(135deg,#4A5A48,#2a3228); }
.photo-thumb.alt-2 { background: linear-gradient(135deg,#2a3228,#0a1208); }
.photo-thumb.alt-3 { background: linear-gradient(135deg,#5A6A58,#3a4238); }

/* === Animaciones decorativas === */

/* Reveal on scroll — sólo se oculta si JS marca .js-reveal en <html>; sino, visible por defecto */
.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.js-reveal .reveal:not(.revealed) {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}
.reveal-delay-2 { transition-delay: .12s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .36s; }

/* Floating subtle motion (decorativo) */
@keyframes rd-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.float-anim { animation: rd-float 5s ease-in-out infinite; }

/* Card hover lift (genérico para tarjetas no-auto) */
.card-lift { transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease, border-color .2s ease; }
.card-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }

/* Glow amarillo detrás del hero — sutil, no interfiere con la lectura */
.hero-glow {
  position: absolute; pointer-events: none;
  width: 360px; height: 360px; border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%);
  z-index: -1;
}
[data-theme="light"] .hero-glow { display: none; }
/* Word cycle ya no se usa (causaba layout shift en Bebas Neue) */

/* 3D tilt — base style; el JS aplica el transform */
.tilt { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; transform-style: preserve-3d; }
.tilt:hover { box-shadow: 0 24px 50px -16px rgba(10,10,10,.18); }

/* Magnetic button — base */
.btn-magnetic { transition: transform .28s cubic-bezier(.3,.7,.2,1); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--forest) 0%, var(--forest-soft) 100%);
  z-index: 100;
  width: 0;
  transition: width .08s linear;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(15,76,58,0.4);
}

/* Pipeline bar fill */
.bar-fill { width: 0; transition: width 1.4s cubic-bezier(.4,0,.2,1); }

/* FAB attention bounce (cada 14s) */
@keyframes rd-attention {
  0%, 100% { transform: scale(1) translateY(0); }
  15%      { transform: scale(1.12) translateY(-6px) rotate(-6deg); }
  30%      { transform: scale(1) translateY(0) rotate(0); }
  45%      { transform: scale(1.06) translateY(-3px) rotate(4deg); }
  60%      { transform: scale(1) translateY(0); }
}
.rd-fab.rd-attention { animation: rd-attention 1s cubic-bezier(.36,.07,.19,.97); }

/* Speed lines decorativas durante scroll rápido */
.rd-fast-scroll::before, .rd-fast-scroll::after {
  content: "";
  position: fixed;
  width: 60px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--forest));
  z-index: 5; opacity: 0;
  animation: rd-streak .35s ease-out;
}
.rd-fast-scroll::before { top: 30%; right: 0; }
.rd-fast-scroll::after  { top: 65%; right: 0; animation-delay: .08s; }
@keyframes rd-streak {
  0%   { transform: translateX(40px); opacity: 0; }
  40%  { opacity: .8; }
  100% { transform: translateX(-100vw); opacity: 0; }
}

/* Shine on hover en botones primarios */
.btn-primary, .btn-forest { position: relative; overflow: hidden; }
.btn-primary::after, .btn-forest::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(250,250,247,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
  transition: transform .6s ease;
}
.btn-primary:hover::after, .btn-forest:hover::after { transform: translateX(100%); }

/* KPI tickle (pulse al cargar números) */
@keyframes rd-tickle {
  0%   { transform: scale(.9); opacity: 0; }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
.kpi-mockup { animation: rd-tickle .9s cubic-bezier(.2,.7,.2,1) backwards; }
.kpi-mockup-2 { animation-delay: .15s; }

/* Fade-in suave de página entera */
body { animation: rd-page-in .6s ease-out backwards; }
@keyframes rd-page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Step number underline animado en hover */
.step-num { display: inline-block; transition: color .3s ease; position: relative; }
.step-num::after {
  content: ""; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--forest); transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.step-num.revealed::after, article:hover .step-num::after { transform: scaleX(1); }

/* Smooth scroll global */
html { scroll-behavior: smooth; }

/* === Sistema de notificaciones === */
.notif-badge-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: var(--bone);
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bone);
  letter-spacing: -0.02em;
}

.notif-overlay {
  position: fixed; inset: 0; z-index: 70;
  pointer-events: none;
}
.notif-panel {
  pointer-events: auto;
  position: fixed;
  width: min(420px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 96px));
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(10,10,10,.32), 0 8px 16px -8px rgba(10,10,10,.16);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-8px) scale(.98);
  transition: opacity .2s ease, transform .2s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.notif-panel.show { opacity: 1; transform: translateY(0) scale(1); }

.notif-head {
  padding: 18px 18px 12px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.notif-h-title { font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.notif-h-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.notif-mark-all {
  background: transparent; border: 0; cursor: pointer;
  font-size: 12px; color: var(--ink-soft);
  padding: 4px 8px; border-radius: 6px;
}
.notif-mark-all:hover { background: var(--bone-2); color: var(--ink); }

.notif-tabs {
  display: flex; gap: 2px; padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bone-2);
}
.notif-tab {
  background: transparent; border: 0; cursor: pointer;
  padding: 7px 12px; border-radius: 8px;
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.notif-tab:hover { background: var(--bone); color: var(--ink); }
.notif-tab.is-active { background: var(--ink); color: var(--bone); }
.notif-badge-mini {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: rgba(10,10,10,.08); border-radius: 999px;
  font-size: 10px; font-weight: 600;
  color: inherit;
}
.notif-tab.is-active .notif-badge-mini { background: rgba(250,250,247,.14); }

.notif-list {
  flex: 1;
  overflow-y: auto;
  list-style: none; margin: 0; padding: 8px 0;
}
.notif-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  position: relative;
  transition: background .12s ease;
  align-items: start;
}
.notif-item:hover { background: var(--bone-2); }
.notif-item.is-unread { background: color-mix(in srgb, var(--moss) 50%, transparent); }
.notif-item.is-unread:hover { background: color-mix(in srgb, var(--moss) 80%, transparent); }
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-body { min-width: 0; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; line-height: 1.3; }
.notif-text { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.notif-text em { font-style: italic; color: var(--ink); }
.notif-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.notif-time { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.notif-action { font-size: 12px; color: var(--forest); font-weight: 500; text-decoration: none; }
.notif-action:hover { color: var(--forest-deep); }
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--forest);
  margin-top: 14px;
  flex-shrink: 0;
}
.notif-empty {
  padding: 60px 20px; text-align: center;
  color: var(--muted); font-size: 14px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.notif-empty span { font-size: 28px; }

.notif-foot {
  padding: 12px 18px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  background: var(--bone-2);
  font-size: 12px;
}
.notif-foot a { color: var(--forest); font-weight: 500; }
.notif-foot a:hover { color: var(--forest-deep); }
.notif-pulse { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.notif-pulse .dot {
  width: 6px; height: 6px; border-radius: 999px; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: notif-pulse-dot 2s ease-out infinite;
}
@keyframes notif-pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* === Toasts en vivo === */
.notif-toast-stack {
  position: fixed;
  bottom: 96px; right: 22px;
  z-index: 65;
  display: flex; flex-direction: column-reverse; gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 44px));
}
.notif-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 14px 14px 14px 14px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(10,10,10,.3), 0 4px 10px -4px rgba(10,10,10,.12);
  opacity: 0;
  transform: translateX(40px) scale(.96);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1);
  align-items: start;
}
.notif-toast.show { opacity: 1; transform: translateX(0) scale(1); }
.notif-toast.hide { opacity: 0; transform: translateX(40px) scale(.96); }
.notif-toast-body { min-width: 0; }
.notif-toast-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; line-height: 1.3; }
.notif-toast-text { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.notif-toast-action { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--forest); font-weight: 500; text-decoration: none; }
.notif-toast-action:hover { color: var(--forest-deep); }
.notif-toast-close {
  background: transparent; border: 0; cursor: pointer;
  width: 24px; height: 24px; border-radius: 6px;
  color: var(--muted); font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-toast-close:hover { background: var(--bone-2); color: var(--ink); }

/* === Permission card === */
.notif-perm-card {
  position: fixed;
  bottom: 22px; left: 22px;
  z-index: 64;
  width: min(380px, calc(100vw - 44px));
  background: var(--ink); color: var(--bone);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  box-shadow: 0 24px 60px -20px rgba(10,10,10,.4);
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.notif-perm-card.show { opacity: 1; transform: translateY(0); }
.notif-perm-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--forest);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-fg);
}
.notif-perm-body { font-size: 13px; line-height: 1.4; color: rgba(250,250,247,.78); }
.notif-perm-body strong { color: var(--bone); display: block; margin-bottom: 4px; font-size: 14px; }
.notif-perm-actions {
  grid-column: 1 / -1;
  display: flex; justify-content: flex-end; gap: 6px;
}
.notif-perm-actions .btn-ghost { background: rgba(250,250,247,.08); color: var(--bone); border-color: rgba(250,250,247,.2); }
.notif-perm-actions .btn-ghost:hover { background: rgba(250,250,247,.18); }

/* Reduced motion: desactivar todo */
@media (prefers-reduced-motion: reduce) {
  .float-anim, .hero-glow,
  .word-cycle, .scroll-progress, .rd-fab.rd-attention,
  body, .kpi-mockup { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Avatares circulares con iniciales (varios tamaños) */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--bone); font-weight: 500; background: var(--forest); }
.avatar-xs { width: 22px; height: 22px; font-size: 9px; }
.avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.avatar-md { width: 34px; height: 34px; font-size: 13px; }
.avatar-lg { width: 36px; height: 36px; font-size: 13px; }
.avatar-xl { width: 72px; height: 72px; font-size: 26px; }
.avatar-2xl { width: 88px; height: 88px; font-size: 32px; }
