/* =========================================================
   1) DESIGN TOKENS
   ========================================================= */
:root{
  /* Tipografía */
  --font-ui: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  /* Paleta principal */
  --c-black: #0b0c0f;
  --c-white: #ffffff;
  --c-gray-100: #f4f6f8;
  --c-gray-200: #e7ebf0;
  --c-gray-700: #3a404a;
  --c-gray-900: #151922;

  /* Acento */
  --c-yellow: #FFD600;

  /* Secundarios */
  --c-violet: #B1A1FA;
  --c-sky: #96DEEC;
  --c-orange: #FFCE4D;
  --c-green: #009F76;

  /* Semánticos */
  --c-success: #009F76;
  --c-warning: #FFCE4D;
  --c-danger: #FF5C33;
  --c-info: #96DEEC;

  /* Superficies */
  --bg: var(--c-white);
  --surface: #ffffff;
  --surface-2: #fbfcfe;

  /* Texto */
  --text: var(--c-black);
  --muted: #606776;

  /* Bordes */
  --border: rgba(21, 25, 34, 0.18);
  --border-strong: rgba(21, 25, 34, 0.32);

  /* Sombra */
  --shadow-sm: 0 6px 18px rgba(11, 12, 15, 0.06);

  /* Radios */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Espaciado */
  --s-1: 6px;
  --s-2: 10px;
  --s-3: 14px;
  --s-4: 18px;
  --s-5: 24px;
  --s-6: 32px;

  /* Contenedor */
  --container: 1120px;

  /* Alturas (overlay sidebar) */
  --header-h: 60px;
  --topbar-h: 40px;

  /* Wide layout */
  --container-xl: 1440px;

  /* Docs/Overlays */
  --overlay-z: 120;
}

/* =========================================================
   2) RESET / BASE
   ========================================================= */
*{ box-sizing:border-box; min-width:0; }
html,body{ height:100%; max-width:100%; overflow-x:hidden; }
body{
  margin:0;
  font-family: var(--font-ui);
  color: var(--text);
  background: linear-gradient(180deg, var(--c-gray-100), #ffffff 55%);
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button, input, select, textarea{ font:inherit; }

/* =========================================================
   3) LAYOUT UTILITIES
   ========================================================= */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
.stack{ display:flex; flex-direction:column; }
.stack--xs{ gap: var(--s-2); }
.stack--sm{ gap: var(--s-3); }
.stack--md{ gap: var(--s-4); }
.stack--xl{ gap: var(--s-6); }

.row{ display:flex; align-items:center; gap: var(--s-3); }
.row--wrap{ flex-wrap: wrap; }

.grid{ display:grid; gap: var(--s-4); }
.grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--5{ grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1024px){
  .grid--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .container{ padding: 0 14px; }
  .row{ flex-wrap: wrap; }
  .grid--2, .grid--3{ grid-template-columns: 1fr; }
  .grid--5{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   4) TIPOGRAFÍA
   ========================================================= */
.h1,.h2,.h3{
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin:0;
}
.h1{ font-size: 34px; line-height: 1.12; }
.h2{ font-size: 27px; line-height: 1.2; }
.h3{ font-size: 18px; line-height: 1.25; }

.p{ margin:0; line-height:1.55; }
.lead{ margin:0; font-size: 16px; color: var(--muted); line-height:1.6; }
.small{ font-size: 12px; }
.muted{ color: var(--muted); }
.meta{ font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.link{
  color: var(--c-black);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover{ opacity: .85; }

.list{ margin:0; padding-left: 18px; }
.list li{ margin: 6px 0; }


.texto-mayuscula {text-transform: uppercase;}
.texto-minuscula {text-transform: lowercase;}
.texto-primera-mayuscula::first-letter {text-transform: uppercase;}
.texto-primeras-mayuscula {text-transform: capitalize;}

/* =========================================================
   5) TOPBAR + HEADER
   ========================================================= */
.topbar{
  background: var(--c-black);
  color: var(--c-white);
  font-size: 12px;
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px var(--s-4);
}
.topbar__link{ opacity: .9; text-decoration: underline; }
.topbar__link:hover{ opacity: 1; }

.header{
  position: relative;
  top: auto;
  z-index: 80;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 1024px){
  /*.header{ position: sticky; top: 0; }*/
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px var(--s-4);
}

.brand{
  display:flex; align-items:center; gap: 10px;
  font-family: var(--font-display);
}
.brand__mark{
  width: 30px; height: 30px;
  display:grid; place-items:center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.brand__name{ font-weight: 700; }

.header__actions{ display:flex; align-items:center; gap: var(--s-3); }

.icon-btn{
  position: relative;
  width: 40px; height: 40px;
  display:grid; place-items:center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.icon-btn:hover{ border-color: var(--border-strong); }
.icon-btn:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 212, 0, .35);
  border-color: rgba(255, 212, 0, .85);
}
.icon-btn svg{ width: 18px; height: 18px; }

/* Hamburguesa: solo tablet/mobile */
.header__hamburger{ display:none; }
@media (max-width: 1024px){
  .header__hamburger{ display:grid; }
}

/* =========================================================
   6) APP LAYOUT + SIDEBAR
   ========================================================= */
.app{
  display:grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 40px);
}
@media (max-width: 1024px){
  .app{ grid-template-columns: 1fr; }
}

.sidebar{
  border-right: 1px solid var(--border);
  background: rgba(255,255,255,.99);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: var(--s-4);
  overflow:auto;
}
.sidebar__title{
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--s-3);
}
.sidebar__section{ display:flex; flex-direction:column; gap: 8px; }

.navitem{
  display:flex; align-items:center; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--c-gray-900);
}
.navitem svg{ width: 18px; height: 18px; color: var(--c-gray-700); }
.navitem:hover{
  background: var(--surface);
  border-color: var(--border);
}
.navitem--active{ background: var(--c-yellow); }
.sidebar__collapse{ margin-top: 10px; justify-content:center; }

.main{ padding: var(--s-5) 0; }

/* Desktop collapsed */
body.sidebar-collapsed .app{ grid-template-columns: 72px 1fr; }
body.sidebar-collapsed .sidebar{ padding: 18px 10px 10px 10px; }
body.sidebar-collapsed .sidebar__title{ display:none; }
body.sidebar-collapsed .navitem{ justify-content:center; padding: 10px; }
body.sidebar-collapsed .navitem span{ display:none; }
body.sidebar-collapsed .sidebar__collapse{ justify-content:center; padding: 10px; }
body.sidebar-collapsed .sidebar__collapse span{ display:none; }

/* Backdrop */
.sidebar-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 15, 0.50);
  backdrop-filter: blur(2px);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
body.sidebar-open .sidebar-backdrop{
  opacity: 1;
  pointer-events: auto;
}

/* Mobile overlay sidebar */
@media (max-width: 1024px){
  .sidebar{
    position: fixed;
    left: 0;
    width: 280px;
    transform: translateX(-110%);
    transition: transform .18s ease;
    box-shadow: var(--shadow-sm);
    z-index: 75;

    top: calc(var(--topbar-h) + var(--header-h));
    height: calc(100vh - (var(--topbar-h) + var(--header-h)));
  }
  body.sidebar-open .sidebar{ transform: translateX(0); }

  .sidebar-backdrop{
    top: calc(var(--topbar-h) + var(--header-h));
    height: calc(100vh - (var(--topbar-h) + var(--header-h)));
  }

  /* En mobile: no usar collapsed */
  body.sidebar-collapsed .app{ grid-template-columns: 1fr !important; }
  body.sidebar-collapsed .sidebar{
    width: 280px !important;
    padding: var(--s-4) !important;
  }
  body.sidebar-collapsed .navitem{
    justify-content:flex-start !important;
    padding: 10px 12px !important;
  }
  body.sidebar-collapsed .navitem span{ display:inline !important; }
  body.sidebar-collapsed .sidebar__title{ display:block !important; }
  body.sidebar-collapsed .sidebar__collapse span{ display:inline !important; }
}

/* =========================================================
   7) COMPONENTES BASE
   ========================================================= */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--s-4);
  margin: 30px 0;
}
.grid > .card,
.grid > article.card{ margin: 0; }

.card__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s-3);
}
.card__row + .card__row{ margin-top: 14px; }
.card__stack{ display:flex; flex-direction:column; gap: 6px; }

.card--key .stat{
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer{
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

/* Swatches */
.swatch{ display:flex; flex-direction:column; gap: 10px; }
.swatch__box{
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.swatch__name{ font-size: 12px; color: var(--muted); }

/* Separadores */
.divider{
  width: 100%;
  height: 1px;
  background: var(--border);
  border-radius: 999px;
}
.divider--soft{ background: rgba(21, 25, 34, 0.14); }
.divider--strong{ background: rgba(21, 25, 34, 0.28); }

.spacer{ width: 100%; }
.spacer--sm{ height: 10px; }
.spacer--md{ height: 18px; }
.spacer--lg{ height: 28px; }

/* =========================================================
   8) BOTONES
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--c-black);
  cursor: pointer;
  transition: transform .05s ease, border-color .12s ease, opacity .12s ease, filter .12s ease;
  user-select:none;
}
.btn:hover{ border-color: var(--border-strong); }
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 212, 0, .35);
  border-color: rgba(255, 212, 0, .85);
}
.btn[disabled]{ opacity: .55; cursor: not-allowed; transform:none; }

.btn--sm{ padding: 8px 12px; font-size: 12px; }
.btn--lg{ padding: 14px 16px; font-size: 14px; }

.btn--ghost{
  background: var(--c-white);
  color: var(--c-black);
  border-color: rgba(11, 12, 15, .38);
}
.btn--ghost:hover{ border-color: rgba(11, 12, 15, .58); }

.btn--dark{
  background: var(--c-black);
  border-color: var(--c-black);
  color: var(--c-white);
}
.btn--dark:hover{ opacity: .92; }

.btn--accent{
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  color: var(--c-black);
}
.btn--accent:hover{ filter: brightness(0.98); }

/* Secundarios: agregamos hover visible + mantiene focus-visible del .btn */
.btn--secondary{
  border: 0;
  color: var(--c-white);
}
.btn--secondary:hover{ filter: brightness(0.98); }
.btn--secondary:active{ filter: brightness(0.96); }

.btn--violet{ background: var(--c-violet); }
.btn--sky{ background: var(--c-sky); color: var(--c-black); }
.btn--orange{ background: var(--c-orange); color: var(--c-black); }
.btn--green{ background: var(--c-green); color: var(--c-black); }

.menu-buttons{ display:flex; flex-direction:column; gap: 10px; }
.menu-btn{
  display:flex; align-items:center; gap: 10px;
  width:100%;
  padding: 12px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--c-gray-900);
  cursor:pointer;
  text-align:left;
}
.menu-btn svg{ width:18px; height:18px; color: var(--c-gray-700); }
.menu-btn:hover{ border-color: var(--border-strong); }

/* --- Simulación de estados (para demo ordenada por estado) --- */
.btn.is-hover{ border-color: var(--border-strong); }
.btn--ghost.is-hover{ border-color: rgba(11, 12, 15, .58); }
.btn--dark.is-hover{ opacity: .92; }
.btn--accent.is-hover{ filter: brightness(0.98); }
.btn--secondary.is-hover{ filter: brightness(0.98); }

.btn.is-active{ transform: translateY(1px); }
.btn--secondary.is-active{ filter: brightness(0.96); }

.btn.is-focus{
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 212, 0, .35);
  border-color: rgba(255, 212, 0, .85);
}

/* =========================================================
   9) BADGES
   ========================================================= */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0;
  color: var(--c-black);
  background: var(--c-gray-200);
}
.badge--sm{ padding: 4px 8px; font-size: 11px; }
.badge--lg{ padding: 8px 12px; font-size: 13px; }

.badge--neutral{ background: var(--c-gray-200); color: var(--c-black); }
.badge--accent{ background: var(--c-yellow); color: var(--c-black); }
.badge--violet{ background: var(--c-violet); color: var(--c-white); }
.badge--sky{ background: var(--c-sky); color: var(--c-black); }
.badge--orange{ background: var(--c-orange); color: var(--c-black); }
.badge--green{ background: var(--c-green); color: var(--c-black); }

.badge--success{ background: rgba(46, 204, 113, .18); color: #0d3b22; }
.badge--warning{ background: var(--c-orange); color: var(--c-black); }
.badge--danger{ background: rgba(255, 77, 79, .18); color: #5a0d10; }
.badge--info{ background: rgba(43, 183, 255, .22); color: #00364c; }

.icon-badge{
  position:absolute;
  top: -8px;
  right: -8px;
}

/* =========================================================
   10) AVATARS
   ========================================================= */
.avatar{
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow:hidden;
  display:grid;
  place-items:center;
  transition: border-color .12s ease, border-width .12s ease;
}
.avatar:hover{
  border-color: var(--c-black);
  border-width: 2px;
}
.avatar img{ width:100%; height:100%; object-fit:cover; }
.avatar__fallback svg{ width: 18px; height: 18px; color: var(--c-gray-700); }

.avatar--sm{ width: 34px; height: 34px; }
.avatar--md{ width: 42px; height: 42px; }
.avatar--lg{ width: 56px; height: 56px; }

/* =========================================================
   11) DROPDOWN
   ========================================================= */
.dropdown{ position:relative; }
.dropdown__menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 8px;
  display:none;
}
.dropdown.is-open .dropdown__menu{ display:block; }

.dropdown__item{
  display:flex; align-items:center; gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--c-gray-900);
}
.dropdown__item svg{ width: 18px; height: 18px; color: var(--c-gray-700); }
.dropdown__item:hover{ background: var(--c-gray-100); }
.dropdown__sep{
  height:1px;
  background: var(--border);
  margin: 6px 0;
}

/* =========================================================
   12) BREADCRUMBS
   ========================================================= */
.breadcrumbs{
  display:flex; align-items:center; flex-wrap:wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs__link{ text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs__current{ color: var(--c-gray-900); }
.breadcrumbs__sep{ opacity:.7; }

/* =========================================================
   13) FORMULARIOS
   ========================================================= */
.field{ display:flex; flex-direction:column; gap: 8px; }
.label{ font-size: 13px; font-weight: 600; }
.label-light{ font-size: 13px; font-weight: 400; }
.help{ font-size: 12px; color: var(--muted); }
.error{ font-size: 12px; color: #8a1f20; }

.input, .select, .textarea{
  width:100%;
  max-width:100%;
  background: var(--surface);
  border: 1px solid rgba(21, 25, 34, .38);
  border-radius: 16px;
  padding: 20px 15px;
  outline: none;
}
.textarea{ resize: vertical; }

.input:hover, .select:hover, .textarea:hover{ border-color: rgba(21, 25, 34, .52); }
.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(255, 212, 0, .95);
  box-shadow: 0 0 0 4px rgba(255, 212, 0, .30);
}
.is-invalid{
  border-color: rgba(255, 77, 79, .9) !important;
  box-shadow: 0 0 0 4px rgba(255, 77, 79, .18);
}

.input-group{
  display:flex;
  align-items:center;
  overflow:hidden;
  border-radius: 16px;
  border: 1px solid rgba(21, 25, 34, .38);
}
.input-group:focus-within{
  border-color: rgba(255, 212, 0, .95);
  box-shadow: 0 0 0 4px rgba(255, 212, 0, .30);
}
.input-addon{
  padding: 0 12px;
  color: var(--muted);
  border-right: 1px solid var(--border);
}
.input-group .input{
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.input-with-icon{ position:relative; }
.input-with-icon svg{
  position:absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--c-gray-700);
}
.input-with-icon .input{ padding-left: 40px; }

/* Check/Radio/Switch */
.check, .radio, .switch{
  display:flex; align-items:center; gap: 10px;
  cursor:pointer;
  user-select:none;
  font-size: 13px;
  color: var(--c-gray-900);
}
.check input, .radio input, .switch input{ display:none; }

/* Checkbox */
.check__box{
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(21, 25, 34, .48);
  background: var(--surface);
  display:inline-grid;
  place-items:center;
}
.check input:checked + .check__box{
  background: var(--c-yellow);
  border-color: var(--c-yellow);
}
.check input:checked + .check__box::after{
  content:"";
  width: 9px; height: 5px;
  border-left: 2px solid var(--c-black);
  border-bottom: 2px solid var(--c-black);
  transform: rotate(-45deg);
  margin-top: -1px;
}
/* =========================================================
   Checkbox variante gris
   ========================================================= */
.check--gray input:checked + .check__box {
  background: var(--c-gray-100);
  border-color: var(--c-gray-200);
}

.check--gray input:checked + .check__box::after {
  border-left-color: var(--c-gray-700);
  border-bottom-color: var(--c-gray-700);
}


/* Radio */
.radio__dot{
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(21, 25, 34, .48);
  background: var(--surface);
  display:inline-grid;
  place-items:center;
}
.radio input:checked + .radio__dot::after{
  content:"";
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--c-yellow);
}

/* Switch */
.switch__track{
  width: 40px; height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(21, 25, 34, .48);
  background: var(--surface);
  position:relative;
}
.switch__track::after{
  content:"";
  position:absolute;
  top: 1px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.switch input:checked + .switch__track{
  background: rgba(255, 212, 0, .30);
  border-color: rgba(255, 212, 0, .85);
}
.switch input:checked + .switch__track::after{
  transform: translateX(18px);
  background: var(--c-yellow);
  border-color: var(--c-yellow);
}
.switch__label{ margin-left: 6px; }

/* Tooltips */
.tooltip{ position:relative; display:inline-flex; }
.tooltip::after{
  content: attr(data-tooltip);
  position:absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: var(--c-black);
  color: var(--c-white);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events:none;
  transition: opacity .12s ease;
}
.tooltip:hover::after{ opacity: 1; }

/* Alerts */
.alert{
  display:flex; align-items:flex-start; gap: 10px;
  padding: 12px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.alert svg{ width: 18px; height: 18px; margin-top: 1px; }
.alert--success{ border-color: rgba(46,204,113,.35); background: rgba(46,204,113,.10); }
.alert--warning{ border-color: rgba(255,176,32,.35); background: rgba(255,176,32,.12); }
.alert--danger{ border-color: rgba(255,77,79,.35); background: rgba(255,77,79,.10); }
.alert--info{ border-color: rgba(43,183,255,.35); background: rgba(43,183,255,.10); }

/* =========================================================
   14) FILTERS
   ========================================================= */
.filters{
  display:grid;
  grid-template-columns: 1.2fr .8fr .7fr .7fr auto;
  gap: var(--s-3);
  align-items:end;
}
.filters__actions{ display:flex; gap: var(--s-2); justify-content:flex-end; }

@media (max-width: 1024px){
  .filters{ grid-template-columns: 1fr 1fr; }
  .filters__actions{ grid-column: 1 / -1; justify-content:flex-start; }
}
@media (max-width: 640px){
  .filters{ grid-template-columns: 1fr; }
  .filters__actions{ grid-column: auto; }
}

/* =========================================================
   15) TABLAS (scroll) + TABLA->CARDS
   ========================================================= */
.table-card{ padding: 0; }
.table-scroll{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.table{
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}
.table thead th{
  text-align:left;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 14px;
  background: var(--c-gray-100);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.table tbody tr:hover{ background: rgba(255, 212, 0, .08); }
.ta-right{ text-align:right; }

@media (max-width: 1024px){
  .table-scroll{
    padding-bottom: 12px;
    scroll-behavior: smooth;
    touch-action: pan-x;
  }
  .table-scroll::-webkit-scrollbar{ height: 14px; }
  .table-scroll::-webkit-scrollbar-track{
    background: var(--c-gray-200);
    border-radius: 999px;
  }
  .table-scroll::-webkit-scrollbar-thumb{
    background: var(--c-gray-700);
    border-radius: 999px;
  }
}

.table-cards{ display:none; }
@media (max-width: 720px){
  .js-table-cards .table-scroll{ display:none; }
  .js-table-cards .table-cards{
    display:flex;
    flex-direction:column;
    gap: 12px;
  }
  .table-card:not(.js-table-cards) .table-scroll{ display:block; }
}

.table-carditem{
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.table-carditem__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.table-carditem__title{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  font-size: 16px;
}
.table-carditem__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-top: 10px;
}
@media (max-width: 420px){
  .table-carditem__grid{ grid-template-columns: 1fr; }
}
.table-kv{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 0;
}
.table-kv__k{
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.table-kv__v{
  font-size: 14px;
  color: var(--c-gray-900);
  overflow-wrap: anywhere;
}
.table-carditem__actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* =========================================================
   16) PAGINACIÓN
   ========================================================= */
.pagination{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}
.page{
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(11,12,15,.38);
  background: var(--c-white);
  cursor:pointer;
}
.page:hover{ border-color: rgba(11,12,15,.58); }
.page:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 212, 0, .35);
  border-color: rgba(255, 212, 0, .85);
}
.page--active{
  background: var(--c-yellow);
  border-color: var(--c-yellow);
}
.pagination__dots{ color: var(--muted); padding: 0 4px; }

/* =========================================================
   17) STEPS + PROGRESS + QUOTE + ACCORDION
   ========================================================= */
.steps{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.steps__item{
  display:flex; align-items:center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.steps__dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--c-gray-700);
}
.steps__item.is-done{ border-color: rgba(46,204,113,.35); }
.steps__item.is-done .steps__dot{ background: var(--c-success); }
.steps__item.is-active{ border-color: rgba(255,212,0,.55); }
.steps__item.is-active .steps__dot{ background: var(--c-yellow); }

.progress{
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--c-gray-100);
  overflow:hidden;
}
.progress__bar{ height:100%; background: var(--c-yellow); }
.progress--sm{ height: 10px; }

.quote{ border-style: dashed; }
.quote__text{ margin:0; font-size: 16px; line-height: 1.55; }
.quote__by{ margin: 10px 0 0; }

.accordion{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow:hidden;
}
.accordion__trigger{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  padding: 14px 14px;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--border);
  cursor:pointer;
  text-align:left;
}
.accordion__trigger:hover{ background: var(--c-gray-100); }
.accordion__panel{
  padding: 14px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.accordion__trigger svg{ width: 18px; height: 18px; color: var(--c-gray-700); }

/* =========================================================
   WIDE LAYOUT + EXTRA SPACING (tu ajuste)
   ========================================================= */
@media (min-width: 1140px){
.container{ max-width: none; }
.container--wide{ max-width: none; }
.container--full{ max-width: none; }
}

.container,
.container--wide,
.container--full{
  padding-left: calc(var(--s-4) + 6px);
  padding-right: calc(var(--s-4) + 6px);
}
.main{
  padding-top: calc(var(--s-5) + 10px);
  padding-bottom: calc(var(--s-5) + 10px);
}
@media (max-width: 640px){
  .container,
  .container--wide,
  .container--full{
    padding-left: calc(14px + 6px);
    padding-right: calc(14px + 6px);
  }
}

/* =========================================================
   DOCS ON-DEMAND (no ensucia la UI)
   - Botón pequeño “?” al lado de títulos
   - Popover con tabs + copiar
   ========================================================= */
.ds-doc{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.ds-doc__actions{
  display:flex;
  align-items:center;
  gap: 10px;
}
.ds-docbtn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.ds-docbtn:hover{ border-color: var(--border-strong); }
.ds-docbtn:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 212, 0, .35);
  border-color: rgba(255, 212, 0, .85);
}
.ds-docbtn svg{ width: 18px; height: 18px; }

.ds-popover{
  position: fixed;
  z-index: var(--overlay-z);
  width: min(520px, calc(100vw - 28px));
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(11,12,15,.14);
  overflow:hidden;
  display:none;
}
.ds-popover.is-open{ display:block; }

.ds-popover__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(244,246,248,.65);
}
.ds-popover__title{
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ds-popover__close{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.ds-popover__close:hover{ border-color: var(--border-strong); }
.ds-popover__close svg{ width: 18px; height: 18px; }

.ds-popover__tabs{
  display:flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.ds-tab{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor:pointer;
  font-size: 12px;
}
.ds-tab.is-active{
  background: var(--c-yellow);
  border-color: var(--c-yellow);
}
.ds-popover__body{ padding: 12px; }
.ds-popover__p{ margin:0; line-height: 1.55; }
.ds-popover__list{ margin: 10px 0 0; padding-left: 18px; }
.ds-popover__list li{ margin: 6px 0; }

.ds-codebox{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fbfcfe;
  overflow:hidden;
}
.ds-codebox__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
}
.ds-codebox__label{ font-size: 12px; color: var(--muted); }
.ds-copy{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor:pointer;
  font-size: 12px;
}
.ds-copy:hover{ border-color: var(--border-strong); }
.ds-copy svg{ width: 16px; height: 16px; }
pre.ds-code{
  margin: 0;
  padding: 12px 12px;
  overflow:auto;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

/* Toast “copiado” mini */
.ds-toast{
  position: fixed;
  z-index: calc(var(--overlay-z) + 1);
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(11,12,15,.9);
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 12px;
  opacity: 0;
  pointer-events:none;
  transition: opacity .16s ease, transform .16s ease;
}
.ds-toast.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* =========================================================
   MODALES (variantes)
   - Base: .modal (hidden) + .is-open
   - Variantes: .modal--danger / .modal--wide / .modal--sheet
   ========================================================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: calc(var(--overlay-z) - 2);
  display:none;
}
.modal.is-open{ display:block; }

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 15, 0.55);
  backdrop-filter: blur(2px);
}

.modal__dialog{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 28px));
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(11,12,15,.18);
  overflow:hidden;
}

.modal--wide .modal__dialog{
  width: min(860px, calc(100vw - 28px));
}

.modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(244,246,248,.65);
}
.modal__title{
  margin:0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.modal__sub{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal__close{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.modal__close:hover{ border-color: var(--border-strong); }
.modal__close:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 212, 0, .35);
  border-color: rgba(255, 212, 0, .85);
}
.modal__close svg{ width: 18px; height: 18px; }

.modal__body{
  padding: 14px 14px;
}
.modal__foot{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  padding: 14px 14px;
  border-top: 1px solid var(--border);
  background: rgba(244,246,248,.45);
}

.modal--danger .modal__head{
  background: rgba(255, 77, 79, .08);
  border-bottom-color: rgba(255, 77, 79, .20);
}
.modal--danger .modal__dialog{
  border-color: rgba(255, 77, 79, .22);
}

/* Variante “sheet” (abajo, mobile-friendly) */
.modal--sheet .modal__dialog{
  top: auto;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(740px, 100vw);
  border-radius: 18px 18px 0 0;
}
@media (max-width: 640px){
  .modal--sheet .modal__dialog{
    width: 100vw;
    left: 0;
    transform: none;
  }
}

/* Pequeña animación */
@media (prefers-reduced-motion: no-preference){
  .modal__dialog{
    animation: modalIn .14s ease;
  }
  @keyframes modalIn{
    from{ transform: translate(-50%, -48%); opacity: .6; }
    to{ transform: translate(-50%, -50%); opacity: 1; }
  }
  .modal--sheet .modal__dialog{
    animation: sheetIn .16s ease;
  }
  @keyframes sheetIn{
    from{ transform: translateX(-50%) translateY(18px); opacity: .7; }
    to{ transform: translateX(-50%) translateY(0); opacity: 1; }
  }
}





/* ========================================================= UTILITIES ========================================================= */

/* =========================================================
   TEXTO
   Uso: títulos, párrafos, celdas, badges, etc.

   Ejemplos de uso

  <h2 class="h2 u-text-center">Título centrado</h2>
  <td class="u-text-right">$ 35.000</td>
  <p class="muted u-text-left">Texto normal</p>
   ========================================================= */
.u-text-left   { text-align: left; }
.u-text-center { text-align: center; }
.u-text-right  { text-align: right; }

/* =========================================================
   UTILITIES · FLEX ALIGN (horizontal)
   Requiere display:flex
   Para .row, .card__row, .filters__actions, etc.


   Ejemplos de uso

   <div class="row u-justify-end">
  <button class="btn btn--accent">Guardar</button>
</div>

<div class="card__row u-justify-between">
  <span>Total</span>
  <strong>$120.000</strong>
</div>
   ========================================================= */
.u-justify-start   { justify-content: flex-start; }
.u-justify-center  { justify-content: center; }
.u-justify-end     { justify-content: flex-end; }
.u-justify-between { justify-content: space-between; }
.u-justify-around  { justify-content: space-around; }

/* =========================================================
   UTILITIES · FLEX ALIGN (vertical)
   ========================================================= */
.u-items-start  { align-items: flex-start; }
.u-items-center { align-items: center; }
.u-items-end    { align-items: flex-end; }
.u-items-stretch{ align-items: stretch; }


/* =========================================================
   Centrado total (horizontal + vertical)

Muy útil para estados vacíos, loaders, modales, etc.

   Ejemplos de uso

<div class="card u-center" style="height:120px">
  <span class="muted">Sin resultados</span>
</div>
   ========================================================= */
.u-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   Auto-margin (alinear “a la derecha” sin flex)

Ideal para botones, badges o acciones.

Ejemplo real (MUY usado)

<div class="row">
  <span class="meta">Estado</span>
  <span class="badge badge--success u-ml-auto">OK</span>
</div>
   ========================================================= */
.u-ml-auto { margin-left: auto; }
.u-mr-auto { margin-right: auto; }




/* =========================================================
   UTILITIES · MAX WIDTH
   Uso: limitar ancho de cards, forms, paneles, etc.

   Las aplicás a cualquier cosa (card, form, tabla, etc.) sin crear nuevas clases por componente.

Pegá esto en tu CSS (ideal en la sección de utilities):

   ========================================================= */
.u-maxw-xs { max-width: 360px; }
.u-maxw-sm { max-width: 480px; }
.u-maxw-md { max-width: 640px; }
.u-maxw-lg { max-width: 840px; }
.u-maxw-xl { max-width: 1120px; width:100%; }
.u-maxw-100 { max-width: 100px; width:100%; }
.u-maxw-200 { max-width: 200px; width:100%; }
.u-maxw-300 { max-width: 300px; width:100%; }
.u-maxw-400 { max-width: 400px; width:100%; }
.u-maxw-500 { max-width: 500px; width:100%; }
.u-maxw-600 { max-width: 600px; width:100%; }
.u-maxw-700 { max-width: 700px; width:100%; }
.u-maxw-800 { max-width: 800px; width:100%; }
.u-maxw-900 { max-width: 900px; width:100%; }
.u-maxw-1000 { max-width: 1000px; width:100%; }
.u-maxw-1100 { max-width: 1100px; width:100%; }
.u-maxw-1200 { max-width: 1200px; width:100%; }
.u-maxw-1300 { max-width: 1300px; width:100%; }
.u-maxw-1400 { max-width: 1400px; width:100%; }
.u-maxw-1500 { max-width: 1500px; width:100%; }
.u-maxw-1600 { max-width: 1600px; width:100%; }
.u-maxw-1700 { max-width: 1700px; width:100%; }
.u-maxw-1800 { max-width: 1800px; width:100%; }
.u-maxw-1900 { max-width: 1900px; width:100%; }
.u-maxw-2000 { max-width: 2000px; width:100%; }
.u-maxw-2500 { max-width: 2500px; width:100%; }
.u-maxw-3000 { max-width: 3000px; width:100%; }

/* Si querés que “respete” el contenedor y no se pase nunca */
.u-maxw-100 { max-width: 100%; }





/* Asegura que el atributo hidden oculte SIEMPRE */
[hidden] {
  display: none !important;
}




/* =========================================================
   Hint / Tooltip inline
   ========================================================= */
.hint {
  background: var(--c-gray-100);
  border: 1px solid var(--c-gray-200);
  color: var(--c-gray-700);
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.4rem;
}

/* Opcional: pequeño ícono visual sin meter SVG */
.hint--icon::before {
  content: "ℹ";
  font-weight: 600;
  margin-right: 0.35rem;
  color: var(--c-gray-700);
}













/* =========================================================
   SIDEBAR: mantener alturas y espaciado iguales
   - La idea: que .navitem siempre mida lo mismo.
   - En colapsado ocultamos texto sin tocar padding/altura.
   ========================================================= */

/* 1) Definí tokens de medidas consistentes (ajustá si querés) */
:root{
  --sb-item-py: 10px;     /* padding vertical del botón */
  --sb-item-px: 12px;     /* padding horizontal */
  --sb-item-gap: 10px;    /* espacio entre ícono y texto */
  --sb-item-minh: 44px;   /* altura mínima del item (clave) */

  --sb-section-pt: 14px;  /* padding arriba dentro del sidebar */
  --sb-section-pb: 14px;  /* padding abajo dentro del sidebar */
}

/* 2) Mantener el “marco” del sidebar igual siempre */
.sidebar__section{
  padding-top: var(--sb-section-pt);
  padding-bottom: var(--sb-section-pb);
}

/* 3) Nav item: caja fija (esto evita que “se suban”) */
.sidebar .navitem{
  display: flex;
  align-items: center;
  gap: var(--sb-item-gap);

  padding: var(--sb-item-py) var(--sb-item-px);
  min-height: var(--sb-item-minh);

  /* si tu diseño usa border-radius / hover etc, se mantiene */
  box-sizing: border-box;
}

/* 4) El ícono NO debe achicarse ni mover la altura */
.sidebar .navitem > i,
.sidebar .navitem svg{
  flex: 0 0 auto;
}

/* 5) El texto: mantené line-height estable */
.sidebar .navitem > span{
  line-height: 1.2;
  /*white-space: nowrap;*/
}

/* 6) En colapsado: NO toques padding ni min-height.
      Ocultá solo el texto sin afectar layout vertical. */
body.sidebar-collapsed .sidebar .navitem{
  justify-content: center;       /* centra el ícono horizontalmente */
  gap: var(--sb-item-gap);       /* puede quedar, no afecta si el span no ocupa */
}

/* Opción A (recomendada): ocultar texto con opacity + width,
   sin cambiar la altura del item */
body.sidebar-collapsed .sidebar .navitem > span{
  opacity: 0;
  width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* 7) Botón "CERRAR/EXPANDIR BARRA": fijá altura igual que navitem */
.sidebar__collapse{
  min-height: var(--sb-item-minh);
  padding: var(--sb-item-py) var(--sb-item-px);
  box-sizing: border-box;
}

/* Si el botón tiene icono + texto adentro */
.sidebar__collapse{
  display: flex;
  align-items: center;
  gap: var(--sb-item-gap);
}

/* En colapsado, ocultá el texto del botón colapsar igual */
body.sidebar-collapsed .sidebar__collapse span{
  opacity: 0;
  width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* 8) Si tenés .spacer dentro del sidebar, que no cambie su tamaño */
.sidebar .spacer{
  flex: 0 0 auto;
}









/* =========================================================
   WIZARD / SLIDES POR PASOS
   ========================================================= */
.wizard{
  display:flex;
  flex-direction:column;
  gap: var(--s-4);
}

.wizard__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.wizard__meta{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.wizard__stepper{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap: wrap;
}

.wizard__pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 16px;
  /*color: var(--muted);*/
  color: var(--c-gray-700);
  border-color: rgba(43,183,255,.35);
  background: rgba(43,183,255,.10);

}



.progress__bar_celeste{ 
  height:100%; 
  /* border: 1px solid var(--border); */
  background: var(--surface);
  border-color: rgba(43,183,255,.35);
  background: rgba(43,183,255,.10);
}

.wizard__pill strong{ color: var(--c-gray-900); }

.wizard__stage{
 /*  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: var(--s-4); */
  padding: 1px;
}

.wizard__nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-4);
}

.wizard__nav-right{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wizard__slide[hidden]{ display:none !important; }





/* Barra con texto centrado */
.progress_18{
  position: relative; /* clave para el overlay */
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--c-gray-100);
  overflow: hidden;
}

.progress__center{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* no molesta clicks */
}

.progress__center-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;

  /* legible arriba de cualquier ancho de barra */
  /* background: rgba(255,255,255,.65);
  border: 1px solid rgba(21, 25, 34, 0.14); 

  font-size: 14px;
  font-weight: 600;*/
  color: var(--c-gray-900);

  backdrop-filter: blur(6px);
}

.progress__center-pill strong{
  font-weight: 800;
}

.data-wz-summary-css, .data-wz-summary-css .meta{
  font-size: 16px;
  color:var(--c-gray-700);
}
.data-wz-summary-css{
  margin: 20px;
}
.data-wz-summary-css ul{
  margin-top: 0px;
  margin-bottom: 5px;
  padding-left: 0px;
}
.data-wz-summary-css ul li::marker{
  color:var(--c-sky);
}

/* ========================================================= */






/* =========================================================
   TARJETAS COLORIDAS (variantes)
   Base: .card + modificador .card--*
   ========================================================= */

/* 1) Amarillo acento (fondo sólido) */
.card--accent-solid{
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  color: var(--c-black);
}

/* 2) Amarillo suave (ideal frases o CTA suaves) */
.card--accent-soft{
  background: rgba(255,212,0,.18);
  border-color: rgba(255,212,0,.35);
}

/* 3) Violeta sólido */
.card--violet-solid{
  background: var(--c-violet);
  border-color: var(--c-violet);
  color: var(--c-white);
}

/* 4) Violeta suave */
.card--violet-soft{
  background: rgba(177,161,250,.18);
  border-color: rgba(177,161,250,.35);
}

/* 5) Celeste sólido */
.card--sky-solid{
  background: var(--c-sky);
  border-color: var(--c-sky);
  color: var(--c-black);
}

/* 6) Celeste suave */
.card--sky-soft{
  background: rgba(150,222,236,.18);
  border-color: rgba(150,222,236,.35);
}

/* 7) Verde éxito */
.card--success{
  background: rgba(0,159,118,.12);
  border-color: rgba(0,159,118,.35);
}

/* 8) Naranja advertencia */
.card--warning{
  background: rgba(255,206,77,.18);
  border-color: rgba(255,206,77,.45);
}

/* 9) Negro elegante (modo oscuro local) */
.card--dark{
  background: var(--c-black);
  border-color: var(--c-black);
  color: var(--c-white);
}

/* 10) Gradiente premium */
.card--gradient{
  background: linear-gradient(135deg, var(--c-violet), var(--c-sky));
  border: 0;
  color: var(--c-white);
}

/* =========================================================
   TARJETAS INTERACTIVAS (selección tipo opción)
   ========================================================= */

.card--option{
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

.card--option:hover{
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.card--option.is-selected{
  border-color: var(--c-yellow);
  box-shadow: 0 0 0 4px rgba(255,212,0,.25);
}

/* =========================================================
   SELECTOR MÚLTIPLE EMULADO
   ========================================================= */

/* .input--multiple {
  min-height: 240px;
  padding: 0.35rem;
  border-radius: 0.75rem;
  background: var(--c-white);
  border: 1px solid var(--c-gray-300);
  overflow-y: auto;
}

.input--multiple:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.18);
}

.input--multiple option {
  padding: 0.7rem 0.8rem;
  border-radius: 0.55rem;
  margin: 0.1rem 0;
}

.input--multiple option:checked {
  background: var(--c-accent-soft);
  color: var(--c-black);
  font-weight: 600;
} */

.multi-check {
  position: relative;
}

.multi-check__trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.multi-check__trigger::after {
  content: "▾";
  font-size: 0.9rem;
  opacity: 0.8;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.multi-check__dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--c-gray-300, #d9d9d9);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 0.65rem;
  max-height: 320px;
  overflow-y: auto;
}

.multi-check__option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.6rem 0.55rem;
  border-radius: 0.65rem;
}

.multi-check__option:hover {
  background: var(--c-gray-100, #f5f5f5);
}


/* ------------------------------------------------- */
.multi-check__trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.multi-check__trigger-text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.multi-check__selected-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.6rem 0.55rem;
  border-radius: 0.65rem;
  background: var(--c-gray-100, #f5f5f5);
  line-height: 1.35;
}

.multi-check__selected-box {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  flex: 0 0 1rem;
  margin-top: 0.12rem;
  background: var(--c-accent, #ffd23f);
  border: 1px solid var(--c-accent, #ffd23f);
}

/* ********************************************************** */

.check, .radio, .switch{
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--c-gray-900);
}

.check__box{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(21, 25, 34, .48);
  background: var(--surface);
  display: inline-grid;
  place-items: center;
}

.radio__dot{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(21, 25, 34, .48);
  background: var(--surface);
  display: inline-grid;
  place-items: center;
}

.switch__track{
  width: 40px;
  height: 24px;
  flex: 0 0 40px;
  min-width: 40px;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(21, 25, 34, .48);
  background: var(--surface);
  position: relative;
}


.check__box,
.radio__dot,
.switch__track,
.multi-check__selected-box{
  flex-shrink: 0;
}

/* ********************************************************** */

/* ********************************************************** */

/* ********************************************************** */

/* ********************************************************** */

/* ********************************************************** */
