/* ==========================================================================
   FORJA — panel de administración
   ========================================================================== */

:root {
  --volt: #ccff00;
  --black: #000;
  --carbon: #191919;
  --white: #fff;
  --paper: #f4f5f7;
  --line: #e4e7ec;
  --ink: #111214;
  --muted: #70737b;
  --soft: #f7f8fa;
  --danger: #c02626;
  --ok: #1c8a4b;
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--volt); color: var(--black); }
:focus-visible { outline: 2px solid #7a9900; outline-offset: 2px; border-radius: 6px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--volt);
  color: var(--black);
  flex: none;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand--light { color: var(--white); }

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--black);
  color: var(--volt);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.tag--light { background: rgba(204, 255, 0, 0.12); color: var(--volt); }

.muted { color: var(--muted); font-size: 13px; line-height: 1.55; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: #eef0f3; padding: 1px 5px; border-radius: 4px; }

/* ================================== botones =============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--volt { background: var(--volt); color: var(--black); }
.btn--volt:hover { background: #d7ff3d; }
.btn--ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #b9bec6; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #2a2a2a; }
.btn--danger { background: #fff2f2; color: var(--danger); border-color: #f3cccc; }
.btn--danger:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn--sm { padding: 9px 14px; font-size: 11.5px; }
.btn--block { width: 100%; padding: 14px 20px; font-size: 13px; }
.btn:disabled { opacity: 0.55; pointer-events: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--soft); border-color: #c8cdd4; }
.icon-btn--danger:hover { background: #fff2f2; border-color: #f0c4c4; color: var(--danger); }

/* =================================== login ================================ */

.login { display: grid; grid-template-columns: 1.02fr 0.98fr; min-height: 100vh; }
.login__visual { position: relative; overflow: hidden; background: #0a0a0a; }
.login__photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 80% at 30% 20%, #333 0%, #111 55%, #000 100%),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1600&q=80") center/cover;
  background-blend-mode: multiply;
  filter: grayscale(0.35) brightness(0.72);
  transform: scale(1.02);
}
.login__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.9) 100%);
}
.login__visualInner {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: var(--white);
}
.login__quote {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.login__caption { max-width: 300px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.62); }
.login__back { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); width: fit-content; }
.login__back:hover { color: var(--volt); }

.login__panel {
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--white);
}
.login__box { width: 100%; max-width: 380px; }
.login__box .tag { margin-bottom: 22px; }
.login__box h1 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 10px;
}
.login__box > .muted { margin-bottom: 26px; }
.login__hint {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.login__hint strong { color: var(--ink); }
.login__legal { margin-top: 28px; font-size: 11px; color: #9a9da4; }
.login__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ================================== campos ================================ */

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5f626a;
}
.field__hint { font-size: 11px; color: #8b8e95; line-height: 1.4; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #c9ced6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: #a9c400;
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.25);
}
.field input::placeholder, .field textarea::placeholder { color: #b3b6bc; }
.field--full { grid-column: 1 / -1; }
.field__wrap { position: relative; display: block; }
.field__wrap input { padding-right: 44px; }
.field__eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: #8b8e95;
}
.field__eye:hover { background: var(--soft); color: var(--ink); }
.field__eye svg { width: 18px; height: 18px; }

.form-error {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f1;
  color: #a11919;
  font-size: 12px;
  line-height: 1.4;
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form--plain { grid-template-columns: 1fr; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.check:hover { background: var(--soft); }
.check input { width: 16px; height: 16px; margin-top: 1px; accent-color: #111; flex: none; }
.check span { display: grid; gap: 2px; }
.check strong { font-size: 12.5px; font-weight: 600; }
.check small { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* =================================== modo ================================= */

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff8e1;
  border: 1px solid #f0dfa8;
  color: #7a5b00;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.mode-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d9a900; }
.mode-badge.is-live { background: #eef9f1; border-color: #bfe3ca; color: #166534; }
.mode-badge.is-live::before { background: #1c8a4b; }

/* ==================================== app ================================= */

.app { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  padding: 22px 16px 16px;
  z-index: 40;
}
.side__top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 22px; }
.side__role {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
  border: 1px solid rgba(204, 255, 0, 0.35);
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 2px;
}
.side__close { display: none; background: transparent; border: 0; color: var(--white); padding: 6px; cursor: pointer; }
.side__close svg { width: 20px; height: 20px; }

.side__nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.side__label {
  margin: 16px 10px 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6c6c6c;
}
.side__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #b9b9b9;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.side__link svg { width: 17px; height: 17px; flex: none; opacity: 0.8; }
.side__link:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.side__link.is-active { background: rgba(204, 255, 0, 0.13); color: var(--volt); }
.side__link.is-active svg { opacity: 1; }

.side__foot { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 14px; display: grid; gap: 8px; }
.mode-badge--side { margin: 0; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #cfcfcf; font-size: 9.5px; padding: 6px 8px; }
.mode-badge--side.is-live { background: rgba(28, 138, 75, 0.18); border-color: rgba(74, 222, 128, 0.3); color: #a7f3c3; }
.side__site, .side__logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: transparent;
  border: 0;
  color: #b9b9b9;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.side__site svg, .side__logout svg { width: 15px; height: 15px; }
.side__site:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.side__logout { justify-content: flex-start; gap: 9px; }
.side__logout:hover { background: rgba(255, 80, 80, 0.12); color: #ff9d9d; }
.side-backdrop { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  place-items: center;
}
.topbar__burger svg { width: 19px; height: 19px; }
.topbar__eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.topbar__title h1 { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: #22a06b; }
.status.is-saving i { background: #d9a900; animation: pulse 1s infinite; }
.status.is-error { color: var(--danger); }
.status.is-error i { background: var(--danger); }
@keyframes pulse { 50% { opacity: 0.3; } }

.content { padding: 28px 32px 80px; max-width: 1180px; width: 100%; margin-inline: auto; }

.page { display: none; animation: pageIn 0.35s var(--ease); }
.page.is-active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.page__head .muted { max-width: 560px; }

/* resumen */
.welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 20px;
  background: var(--black);
  color: var(--white);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}
.welcome::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.18), transparent 65%);
}
.welcome h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin: 14px 0 10px; }
.welcome .muted { color: #a5a5a5; max-width: 440px; }
.welcome__art { display: flex; align-items: baseline; gap: 10px; position: relative; z-index: 1; }
.welcome__num { font-size: 64px; font-weight: 500; letter-spacing: -0.06em; line-height: 1; color: var(--volt); }
.welcome__cap { font-size: 9px; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.1em; color: #9a9a9a; }

.mode-banner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #fffaf0;
  border: 1px solid #f1e1b8;
  color: #6d5600;
  font-size: 12px;
  line-height: 1.5;
}
.mode-banner strong { font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
.stat__n { font-size: 30px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat__label { margin-top: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stat__sub { margin-top: 8px; font-size: 11px; color: #979aa1; }

.cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.card > .muted { margin-bottom: 16px; }
.card--note { background: var(--soft); }
.card--danger { border-color: #f0d3d3; background: #fffafa; }

.quick { display: grid; gap: 8px; }
.quick__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.quick__item:hover { border-color: #c4c9d0; background: var(--soft); transform: translateX(2px); }
.quick__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--mist, #f3f5f9); flex: none; }
.quick__ico svg { width: 17px; height: 17px; }
.quick__item strong { display: block; font-size: 12.5px; font-weight: 600; }
.quick__item small { display: block; font-size: 11px; color: var(--muted); }
.quick__arrow { margin-left: auto; color: #a2a5ac; }

.howto { display: grid; gap: 14px; list-style: none; counter-reset: step; }
.howto li { display: flex; gap: 12px; }
.howto li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--volt);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  flex: none;
  margin-top: 1px;
}
.howto p { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.howto strong { color: var(--ink); font-weight: 600; }

/* listas */
.list { display: grid; gap: 10px; }
.list--grid { grid-template-columns: 1fr 1fr; }

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.row:hover { border-color: #cfd4db; box-shadow: 0 4px 14px rgba(20, 22, 26, 0.04); }
.row__main { min-width: 0; }
.row__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.row__name { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.row__tag {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
}
.row__tag--volt { background: #f3ffcc; border-color: #dff59a; color: #556600; }
.row__desc { font-size: 12px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 7px; font-size: 10.5px; color: #8b8e95; }
.row__meta i { font-style: normal; color: #b0b3b9; }
.row__price { text-align: right; white-space: nowrap; }
.row__amount { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.03em; }
.row__period { font-size: 10.5px; color: var(--muted); }
.row__actions { display: flex; gap: 6px; }

.hidden-pill {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: #fff3f3;
  color: #a12a2a;
}

/* horarios */
.daygroups { display: grid; gap: 12px; }
.daygroup { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.daygroup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.daygroup__day { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.daygroup__count { font-size: 10.5px; color: var(--muted); }
.classrow {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid #f0f1f4;
}
.classrow:last-child { border-bottom: 0; }
.classrow__time { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.classrow__name { font-size: 13px; font-weight: 600; }
.classrow__coach { font-size: 11px; color: var(--muted); }
.classrow__int { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.intbars { display: flex; gap: 2px; }
.intbars i { width: 4px; height: 10px; border-radius: 1px; background: #e2e5ea; }
.intbars i.on { background: #111; }
.classrow__actions { display: flex; gap: 4px; }
.mini {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  cursor: pointer;
  color: #6d7078;
  transition: all 0.2s;
}
.mini svg { width: 14px; height: 14px; }
.mini:hover { background: var(--soft); color: var(--ink); border-color: #c8cdd4; }

/* testimonios */
.tcard {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.tcard__quote { font-size: 13px; line-height: 1.55; color: #2c2e33; }
.tcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f1f4; }
.tcard__name { font-size: 12.5px; font-weight: 600; }
.tcard__detail { font-size: 10.5px; color: var(--muted); }
.tcard__actions { display: flex; gap: 4px; }

/* faq rows */
.faqrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.faqrow__q { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.faqrow__a { font-size: 12px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ajustes */
.group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 14px;
}
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #f0f1f4; }
.group__head h3 { font-size: 14px; font-weight: 600; }
.group__head p { font-size: 11.5px; color: var(--muted); }
.group .form { grid-template-columns: 1fr 1fr; }
.group .field { margin-bottom: 14px; }

.imgfield { display: flex; gap: 12px; align-items: flex-start; }
.imgfield__preview {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft) center/cover no-repeat;
  display: grid;
  place-items: center;
  color: #a8abb2;
  overflow: hidden;
}
.imgfield__preview svg { width: 22px; height: 22px; }
.imgfield__body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.imgfield__body input { font-size: 12px; }
.imgfield__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.imgfield__note { font-size: 10.5px; color: #8b8e95; }

#settingsForm { padding-bottom: 84px; }

.sticky-actions {
  position: fixed;
  left: 258px;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 32px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}
.sticky-actions .muted { margin-right: auto; color: #8a6d00; font-size: 12px; }
.sticky-actions .btn { padding: 10px 16px; }

/* datos */
.bullets { display: grid; gap: 10px; list-style: none; }
.bullets li { position: relative; padding-left: 16px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--volt); }

/* ================================== modal ================================= */

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 11, 13, 0.55); backdrop-filter: blur(3px); animation: fadeIn 0.2s ease; }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: min(90vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.28s var(--ease);
  overflow: hidden;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.modal__eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.modal__head h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.modal__body { padding: 20px 22px 4px; overflow-y: auto; }
.modal__body .form { grid-template-columns: 1fr 1fr; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

/* ================================== toast ================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  transform: translate(-50%, 16px);
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #8d1c1c; }

/* ================================ responsive ============================== */

@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 268px;
    transform: translateX(-102%);
    transition: transform 0.3s var(--ease);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.3);
  }
  .side.is-open { transform: none; }
  .side__close { display: block; }
  .side-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, 0.45); }
  .side-backdrop[hidden] { display: none; }
  .topbar__burger { display: grid; }
  .topbar { padding: 14px 20px; }
  .content { padding: 22px 20px 70px; }
  .sticky-actions { left: 0; padding-inline: 20px; }
  .list--grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .login { grid-template-columns: 1fr; }
  .login__visual { display: none; }
  .login__panel { min-height: 100vh; padding: 40px 22px; }
  .login__box h1 { font-size: 32px; }
  .welcome { padding: 24px; align-items: flex-start; }
  .welcome__art { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .page__head { flex-direction: column; gap: 14px; }
  .page__head .btn { width: 100%; }
}

@media (max-width: 640px) {
  .form, .modal__body .form, .group .form { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .row__price { grid-column: 1; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .row__actions { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; }
  .faqrow { grid-template-columns: 1fr; }
  .faqrow .row__actions { flex-direction: row; justify-content: flex-end; }
  .classrow { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .classrow__int { display: none; }
  .topbar__right .status { display: none; }
  .topbar__title h1 { font-size: 18px; }
  .content { padding: 18px 14px 70px; }
  .stats { gap: 8px; }
  .card, .group { padding: 16px; }
  .modal { padding: 0; }
  .modal__panel { max-height: 94vh; border-radius: 16px 16px 0 0; align-self: end; }
  .sticky-actions { left: 0; right: 0; bottom: 0; flex-wrap: wrap; }
  .sticky-actions .btn { flex: 1; }
  .sticky-actions .muted { width: 100%; margin: 0; }
  #settingsForm { padding-bottom: 150px; }
}
