/* ============================================================
   AQUA WORLD — REDISEÑO
   Sistema: tinta profunda + verde-azulado de agua + oro cálido
   Tipografía: Fraunces (display) + Inter (UI / datos)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* ---- Marca (sobrescribible por tenant vía JS, ver config.js) ---- */
  --brand: #1C7C74;
  --brand-dark: #12534E;
  --brand-light: #E4F3F1;
  --brand-contrast: #FFFFFF;

  /* ---- Neutrales / superficies ---- */
  --ink-900: #0C1220;
  --ink-800: #151E31;
  --ink-700: #22304A;
  --ink-600: #3A4A68;
  --paper: #F6F7F4;
  --paper-alt: #EFF1EC;
  --card: #FFFFFF;
  --border: #E3E6E1;
  --border-strong: #CBD0C8;

  /* ---- Texto ---- */
  --text-900: #14201F;
  --text-600: #4B5B58;
  --text-400: #7C8A87;
  --text-on-ink: #E9EEEC;
  --text-on-ink-muted: #94A3A8;

  /* ---- Semántico ---- */
  --gold: #E8A33D;
  --gold-dark: #B9791E;
  --danger: #C74B4B;
  --danger-bg: #FBEAEA;
  --success: #2F9E6E;
  --success-bg: #E9F6EF;
  --info-bg: #EFF3FB;

  /* ---- Forma ---- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* ---- Sombra ---- */
  --shadow-sm: 0 1px 2px rgba(12,18,32,.05), 0 1px 1px rgba(12,18,32,.04);
  --shadow-md: 0 10px 30px -12px rgba(12,18,32,.18);
  --shadow-ink: 0 18px 40px -18px rgba(12,18,32,.45);

  /* ---- Tipografía ---- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --sidebar-w: 272px;
  --sidebar-w-collapsed: 84px;
  --topbar-h: 72px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text-900);
  background:
    radial-gradient(1100px 520px at 92% -8%, rgba(28,124,116,.10), transparent 60%),
    radial-gradient(700px 420px at -6% 18%, rgba(232,163,61,.09), transparent 55%),
    var(--paper);
  background-attachment:fixed;
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; color:var(--text-900); font-weight:600; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; font-size:14px; }
ul{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }

:focus-visible{ outline:2.5px solid var(--brand); outline-offset:2px; border-radius:4px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ============================== LAYOUT SHELL ============================== */
.shell{ display:flex; min-height:100vh; }

/* ---------- Sidebar ---------- */
.sidebar{
  width:var(--sidebar-w);
  flex-shrink:0;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800) 70%);
  color:var(--text-on-ink);
  display:flex;
  flex-direction:column;
  position:fixed;
  top:0; left:0; bottom:0;
  z-index:40;
  transition: width .22s ease, transform .25s ease;
}
.shell.is-collapsed .sidebar{ width:var(--sidebar-w-collapsed); }

.sidebar__brand{
  height:var(--topbar-h);
  display:flex; align-items:center; gap:12px;
  padding:0 20px;
  border-bottom:1px solid rgba(233,238,236,.08);
  flex-shrink:0;
}
.sidebar__logo{
  width:38px; height:38px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:16px;
  background:var(--brand); color:var(--brand-contrast);
  flex-shrink:0;
  overflow:hidden;
}
.sidebar__logo img{ width:100%; height:100%; object-fit:cover; }
.sidebar__name{ font-family:var(--font-display); font-size:16.5px; font-weight:600; letter-spacing:.2px; white-space:nowrap; overflow:hidden; }
.sidebar__tag{ font-size:11px; color:var(--text-on-ink-muted); white-space:nowrap; }
.shell.is-collapsed .sidebar__name,
.shell.is-collapsed .sidebar__tag{ display:none; }

.sidebar__scroll{ flex:1; overflow-y:auto; padding:18px 12px 18px; }
.sidebar__scroll::-webkit-scrollbar{ width:6px; }
.sidebar__scroll::-webkit-scrollbar-thumb{ background:rgba(233,238,236,.15); border-radius:99px; }

.navgroup{ margin-bottom:22px; }
.navgroup__label{
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--text-on-ink-muted); padding:0 12px 8px;
}
.shell.is-collapsed .navgroup__label{ opacity:0; height:0; padding:0; overflow:hidden; margin:0; }

.navlink{
  display:flex; align-items:center; gap:12px;
  padding:10px 12px;
  border-radius:var(--radius-sm);
  color:var(--text-on-ink-muted);
  font-size:13.6px; font-weight:500;
  margin-bottom:2px;
  position:relative;
  white-space:nowrap;
  transition:background .16s ease, color .16s ease, transform .12s ease;
}
.navlink svg{ width:19px; height:19px; flex-shrink:0; transition:transform .16s ease; }
.navlink:hover{ background:rgba(233,238,236,.07); color:var(--text-on-ink); }
.navlink:hover svg{ transform:translateX(1px); }
.navlink.is-active{ background:var(--brand); color:#fff; box-shadow:0 6px 16px -6px rgba(28,124,116,.7); }
.navlink.is-active svg{ color:#fff; }
.navlink.is-active::before{
  content:""; position:absolute; left:-12px; top:50%; transform:translateY(-50%);
  width:3px; height:18px; border-radius:0 3px 3px 0; background:var(--gold);
}
.navlink__badge{
  margin-left:auto; background:var(--gold); color:#2b1c05;
  font-size:10.5px; font-weight:700; border-radius:99px; padding:1px 7px;
}
.shell.is-collapsed .navlink span.navlink__text,
.shell.is-collapsed .navlink__badge{ display:none; }
.shell.is-collapsed .navlink{ justify-content:center; }

.sidebar__foot{
  padding:14px 18px 20px; border-top:1px solid rgba(233,238,236,.08);
  font-size:11.5px; color:var(--text-on-ink-muted);
}

/* ---------- overlay para móvil ---------- */
.sidebar__scrim{
  position:fixed; inset:0; background:rgba(12,18,32,.5);
  z-index:35; opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.shell.is-mobile-open .sidebar__scrim{ opacity:1; pointer-events:auto; }

/* ---------- Main column ---------- */
.main{
  flex:1;
  margin-left:var(--sidebar-w);
  min-width:0;
  transition: margin-left .22s ease;
}
.shell.is-collapsed .main{ margin-left:var(--sidebar-w-collapsed); }

.topbar{
  height:var(--topbar-h);
  display:flex; align-items:center; gap:14px;
  padding:0 26px;
  background:rgba(246,247,244,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:20;
}
.topbar__burger{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:var(--radius-xs);
  border:1px solid var(--border); background:var(--card);
}
.topbar__search{
  flex:1; max-width:380px; display:flex; align-items:center; gap:9px;
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius-pill); padding:8px 16px;
  color:var(--text-400);
}
.topbar__search input{ border:none; outline:none; background:none; width:100%; color:var(--text-900); }
.topbar__spacer{ flex:1; }
.topbar__icon-btn{
  width:38px; height:38px; border-radius:var(--radius-pill);
  border:1px solid var(--border); background:var(--card);
  display:flex; align-items:center; justify-content:center; position:relative;
}
.topbar__icon-btn .dot{
  position:absolute; top:7px; right:7px; width:7px; height:7px; border-radius:99px;
  background:var(--gold); border:1.5px solid var(--card);
}
.lang-switch{ display:flex; background:var(--paper-alt); border-radius:var(--radius-pill); padding:3px; gap:2px; }
.lang-btn{
  border:none; background:none; padding:6px 12px; border-radius:var(--radius-pill);
  font-size:11.5px; font-weight:700; letter-spacing:.03em; color:var(--text-400);
  transition:background .16s ease, color .16s ease;
}
.lang-btn.is-active{ background:var(--card); color:var(--brand-dark); box-shadow:var(--shadow-sm); }

.topbar__user{ display:flex; align-items:center; gap:10px; padding-left:6px; }
.topbar__avatar{
  width:36px; height:36px; border-radius:99px; background:var(--brand-light);
  color:var(--brand-dark); display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13px; font-family:var(--font-display);
}
.topbar__user-meta{ line-height:1.25; }
.topbar__user-name{ font-size:13.4px; font-weight:600; }
.topbar__user-role{ font-size:11.5px; color:var(--text-400); }

.view{ padding:28px 30px 60px; max-width:1280px; }
#app.view-anim{ animation:viewIn .32s cubic-bezier(.2,.7,.3,1); }
@keyframes viewIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:translateY(0); } }

.topbar.is-scrolled{ box-shadow:0 4px 18px -12px rgba(12,18,32,.25); }

.avatar-0{ background:var(--brand-light); color:var(--brand-dark); }
.avatar-1{ background:#FDEFDA; color:var(--gold-dark); }
.avatar-2{ background:#EAE6FB; color:#5B4BB8; }
.avatar-3{ background:#FBE7EA; color:#B84A5B; }
.avatar-4{ background:#E4F0FB; color:#2C6FA6; }
.avatar-5{ background:#E7F5E9; color:#2F8C4A; }

/* ============================== PAGE HEADER ============================== */
.pagehead{ margin-bottom:26px; }
.pagehead__eyebrow{ font-size:12.5px; font-weight:600; color:var(--brand-dark); margin-bottom:6px; }
.pagehead h1{ font-size:28px; }
.pagehead p{ color:var(--text-600); margin-top:6px; max-width:64ch; font-size:14px; }
.pagehead__actions{ display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }

/* ============================== BOTONES ============================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 18px; border-radius:var(--radius-sm);
  font-size:13.6px; font-weight:600; border:1px solid transparent;
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn:active{ transform:translateY(1px) scale(.98); }
.btn-primary{ background:var(--brand); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--brand-dark); box-shadow:0 8px 18px -6px rgba(28,124,116,.55); transform:translateY(-1px); }
.btn-ghost{ background:var(--card); color:var(--text-900); border-color:var(--border-strong); }
.btn-ghost:hover{ border-color:var(--brand); color:var(--brand-dark); }
.btn-ink{ background:var(--ink-900); color:#fff; }
.btn-danger{ background:var(--danger-bg); color:var(--danger); }
.btn-sm{ padding:7px 13px; font-size:12.6px; }
.btn svg{ width:16px; height:16px; }
.btn[disabled]{ opacity:.45; pointer-events:none; }

/* ============================== TARJETAS / GRID ============================== */
.grid{ display:grid; gap:18px; }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:1100px){ .grid-4{ grid-template-columns:repeat(2,1fr);} .grid-3{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .grid-4,.grid-3,.grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:22px;
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card--flush{ padding:0; overflow:hidden; }
.card:hover{ box-shadow:var(--shadow-md); border-color:var(--border-strong); }
.kpi:hover{ transform:translateY(-2px); }
.tile{ transition:box-shadow .18s ease, transform .18s ease; }
.tile:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); }
.tile__play{ transition:transform .18s ease, background .18s ease; }
.tile:hover .tile__play{ transform:scale(1.08); background:rgba(255,255,255,.26); }

/* Hero de dashboard */
.hero{
  display:grid; grid-template-columns:1.4fr 1fr; gap:20px; margin-bottom:24px;
}
@media (max-width:900px){ .hero{ grid-template-columns:1fr; } }
.hero__main{
  background:linear-gradient(135deg, var(--ink-900), var(--ink-700) 120%);
  color:var(--text-on-ink); border-radius:var(--radius-lg);
  padding:32px 34px; position:relative; overflow:hidden;
  box-shadow:var(--shadow-ink);
}
.hero__main::after{
  content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px;
  border-radius:50%; background:radial-gradient(circle, rgba(28,124,116,.55), transparent 70%);
}
.hero__waves{ position:absolute; left:0; right:0; bottom:0; height:76px; opacity:.5; }
.hero__waves svg{ width:120%; height:100%; }
.hero__waves .wave-a{ animation:driftWave 22s linear infinite; }
.hero__waves .wave-b{ animation:driftWave 34s linear infinite reverse; opacity:.6; }
@keyframes driftWave{ from{ transform:translateX(0); } to{ transform:translateX(-160px); } }
.hero__eyebrow{ font-size:12.5px; color:var(--text-on-ink-muted); margin-bottom:10px; position:relative; z-index:1; }
.hero__figure, .hero__sub, .hero__bars{ position:relative; z-index:1; }
.hero__figure{ font-family:var(--font-display); font-size:44px; font-weight:600; letter-spacing:-.5px; }
.hero__figure small{ font-size:16px; font-weight:500; color:var(--text-on-ink-muted); margin-left:8px; }
.hero__sub{ margin-top:10px; color:var(--text-on-ink-muted); font-size:13.6px; max-width:40ch; }
.hero__bars{ display:flex; align-items:flex-end; gap:6px; height:54px; margin-top:22px; }
.hero__bars i{ flex:1; background:linear-gradient(180deg, var(--brand), rgba(28,124,116,.35)); border-radius:5px 5px 2px 2px; }

.hero__podium{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:22px; display:flex; flex-direction:column;
}
.hero__podium h3{ font-size:15px; margin-bottom:4px; }
.hero__podium p{ font-size:12.5px; color:var(--text-400); margin-bottom:16px; }
.podium{ display:flex; align-items:flex-end; gap:10px; flex:1; }
.podium__col{ flex:1; text-align:center; }
.podium__bar{
  border-radius:10px 10px 4px 4px; display:flex; align-items:flex-start; justify-content:center;
  padding-top:8px; color:#fff; font-weight:700; font-family:var(--font-display);
}
.podium__col--1 .podium__bar{ height:96px; background:linear-gradient(180deg,var(--gold),var(--gold-dark)); }
.podium__col--2 .podium__bar{ height:72px; background:linear-gradient(180deg,#9AA6AE,#6D7A82); }
.podium__col--3 .podium__bar{ height:54px; background:linear-gradient(180deg,#C9895E,#A6673B); }
.podium__name{ font-size:11.5px; margin-top:8px; font-weight:600; }
.podium__amt{ font-size:10.8px; color:var(--text-400); }

/* KPI */
.kpi{ display:flex; flex-direction:column; gap:6px; }
.kpi__label{ font-size:12.4px; color:var(--text-600); display:flex; align-items:center; justify-content:space-between; }
.kpi__value{ font-family:var(--font-display); font-size:24px; }
.kpi__delta{ font-size:12px; font-weight:600; }
.kpi__delta.up{ color:var(--success); }
.kpi__delta.down{ color:var(--danger); }

/* Chips / status */
.chip{ display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:var(--radius-pill); font-size:11.8px; font-weight:600; }
.chip::before{ content:""; width:6px; height:6px; border-radius:99px; background:currentColor; }
.chip--success{ background:var(--success-bg); color:var(--success); }
.chip--pending{ background:#FDF3E3; color:var(--gold-dark); }
.chip--danger{ background:var(--danger-bg); color:var(--danger); }
.chip--muted{ background:var(--paper-alt); color:var(--text-600); }

/* ============================== TABLA -> LISTA RESPONSIVA ============================== */
.datatable{ width:100%; border-collapse:collapse; }
.datatable thead th{
  text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.05em;
  color:var(--text-400); font-weight:700; padding:14px 18px; border-bottom:1px solid var(--border);
}
.datatable tbody td{ padding:15px 18px; border-bottom:1px solid var(--border); font-size:13.6px; vertical-align:middle; }
.datatable tbody tr:hover{ background:var(--paper-alt); }
.cell-primary{ font-weight:600; }
.cell-muted{ color:var(--text-400); }
.table-toolbar{ display:flex; align-items:center; gap:12px; padding:18px 18px 0; flex-wrap:wrap; }
.table-toolbar__search{
  display:flex; align-items:center; gap:8px; background:var(--paper-alt); border-radius:var(--radius-pill);
  padding:8px 14px; flex:1; min-width:180px;
}
.table-toolbar__search svg{ width:16px; height:16px; flex-shrink:0; color:var(--text-400); }
.table-toolbar__search input{ background:none; border:none; outline:none; width:100%; }
.topbar__search svg{ width:17px; height:17px; flex-shrink:0; }

@media (max-width:820px){
  .datatable thead{ display:none; }
  .datatable, .datatable tbody, .datatable tr, .datatable td{ display:block; width:100%; }
  .datatable tr{ border-bottom:1px solid var(--border); padding:14px 4px; }
  .datatable td{ border:none; padding:5px 4px; display:flex; justify-content:space-between; gap:14px; }
  .datatable td::before{ content:attr(data-label); color:var(--text-400); font-size:11.8px; font-weight:600; }
}

/* ============================== FORM / WIZARD ============================== */
.wizard__steps{ display:flex; gap:6px; margin-bottom:26px; overflow-x:auto; padding-bottom:2px; }
.wizard__step{
  display:flex; align-items:center; gap:8px; padding:9px 15px; border-radius:var(--radius-pill);
  background:var(--card); border:1px solid var(--border); font-size:12.8px; font-weight:600;
  color:var(--text-400); white-space:nowrap; flex-shrink:0;
}
.wizard__step .num{
  width:20px; height:20px; border-radius:99px; background:var(--paper-alt);
  display:flex; align-items:center; justify-content:center; font-size:11px;
}
.wizard__step.is-active{ background:var(--ink-900); color:#fff; border-color:var(--ink-900); }
.wizard__step.is-active .num{ background:var(--brand); color:#fff; }
.wizard__step.is-done{ color:var(--brand-dark); }
.wizard__step.is-done .num{ background:var(--brand-light); color:var(--brand-dark); }

.formgrid{ display:grid; grid-template-columns:1fr 1fr; gap:18px 20px; }
.formgrid .span-2{ grid-column:span 2; }
@media (max-width:700px){ .formgrid{ grid-template-columns:1fr; } .formgrid .span-2{ grid-column:span 1; } }

.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:12.6px; font-weight:600; color:var(--text-600); }
.field label .req{ color:var(--danger); margin-left:2px; }
.field input, .field select, .field textarea{
  border:1px solid var(--border-strong); border-radius:var(--radius-xs);
  padding:10px 12px; background:var(--card); color:var(--text-900);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--brand); }
.field small.hint{ font-size:11.5px; color:var(--text-400); }
.field-invalid input{ border-color:var(--danger); background:var(--danger-bg); }
.field-invalid small.err{ color:var(--danger); font-size:11.5px; }

.mask-field{ position:relative; }
.mask-field .toggle-mask{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:var(--text-400); padding:4px;
}
.mask-field .toggle-mask svg{ width:17px; height:17px; display:block; }
.tile__play svg{ width:18px; height:18px; }
.datatable td svg{ width:16px; height:16px; color:var(--text-400); }
.success-banner svg{ width:22px; height:22px; }
.mask-field input{ padding-right:34px; letter-spacing:1px; }

.wizard__actions{ display:flex; justify-content:space-between; margin-top:26px; }

/* ============================== TRAINING / MENSAJES ============================== */
.tile{
  border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; background:var(--card);
}
.tile__media{
  aspect-ratio:16/9; background:linear-gradient(135deg,var(--ink-900),var(--brand-dark));
  display:flex; align-items:center; justify-content:center; position:relative;
}
.tile__play{
  width:46px; height:46px; border-radius:99px; background:rgba(255,255,255,.16);
  border:1.5px solid rgba(255,255,255,.5); display:flex; align-items:center; justify-content:center; color:#fff;
}
.tile__dur{ position:absolute; bottom:8px; right:10px; background:rgba(12,18,32,.7); color:#fff; font-size:10.8px; padding:2px 7px; border-radius:5px; }
.tile__body{ padding:14px 16px; }
.tile__body h4{ font-size:13.8px; margin-bottom:4px; }
.tile__body p{ font-size:12px; color:var(--text-400); }

.msg{ display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--border); }
.msg:last-child{ border-bottom:none; }
.msg__avatar{ width:38px; height:38px; border-radius:99px; background:var(--brand-light); color:var(--brand-dark); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12.5px; flex-shrink:0; }
.msg__head{ display:flex; justify-content:space-between; font-size:12.8px; margin-bottom:4px; }
.msg__from{ font-weight:700; }
.msg__time{ color:var(--text-400); }
.msg__body{ font-size:13.4px; color:var(--text-600); }

.faq__item{ border-bottom:1px solid var(--border); }
.faq__q{ padding:16px 4px; display:flex; justify-content:space-between; align-items:center; font-weight:600; font-size:14px; }
.faq__q svg{ width:16px; transition:transform .18s ease; flex-shrink:0; }
.faq__item.is-open .faq__q svg{ transform:rotate(45deg); }
.faq__a{ max-height:0; overflow:hidden; transition:max-height .22s ease; font-size:13.4px; color:var(--text-600); }
.faq__item.is-open .faq__a{ max-height:240px; padding-bottom:16px; }

/* ============================== BRANDING / SETTINGS ============================== */
.swatch{ width:36px; height:36px; border-radius:10px; border:1px solid var(--border); cursor:pointer; }
.branding-preview{
  border:1px solid var(--border); border-radius:var(--radius-md); padding:20px;
  background:var(--paper-alt);
}

/* ============================== TOAST ============================== */
.toast{
  position:fixed; bottom:24px; right:24px; background:var(--ink-900); color:#fff;
  padding:14px 20px; border-radius:var(--radius-sm); font-size:13.4px; box-shadow:var(--shadow-ink);
  display:flex; align-items:center; gap:10px; z-index:100; transform:translateY(12px); opacity:0;
  transition:transform .2s ease, opacity .2s ease; pointer-events:none;
}
.toast.is-visible{ transform:translateY(0); opacity:1; }
.toast strong{ color:var(--brand); }

/* ============================== UTILIDADES ============================== */
.text-muted{ color:var(--text-600); }
.mt-4{ margin-top:4px;} .mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;}
.flex{ display:flex; } .items-center{ align-items:center; } .justify-between{ justify-content:space-between; } .gap-8{gap:8px;} .gap-12{gap:12px;}
.hidden{ display:none !important; }

/* ============================== RESPONSIVE SHELL ============================== */
#btnBurger{ display:none; }
@media (max-width:980px){
  .sidebar{ transform:translateX(-100%); width:var(--sidebar-w) !important; }
  .shell.is-mobile-open .sidebar{ transform:translateX(0); }
  .main{ margin-left:0 !important; }
  .view{ padding:20px 16px 48px; }
  .topbar{ padding:0 14px; }
  #btnBurger{ display:flex; }
  #btnCollapse{ display:none; }
  .topbar__search{ max-width:none; }
}
@media (max-width:560px){
  .topbar__search{ display:none; }
  .topbar__user-meta{ display:none; }
}
