/* ============================================================
   MARIANO ACOSTA — Admin Panel CSS
   ============================================================ */

/* ─── Reset admin ────────────────────────────────────────── */
.admin-page { background: #f4f5f7; min-height: 100vh; }

/* ─── Login ──────────────────────────────────────────────── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1a0e 100%);
  padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.login-logo-wrap { text-align: center; margin-bottom: 32px; }
.login-logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  display: block;
  margin-bottom: 6px;
}
.login-logo span { color: #cd3c00; }
.login-sub { font-size: 13px; color: #888; letter-spacing: 0.04em; }
.login-error {
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  color: #c00;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.login-error.visible { display: block; }

/* ─── Layout principal ───────────────────────────────────── */
.adm-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.adm-sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #555;
  border-radius: 8px;
  display: none;
  transition: background .2s;
}
.adm-sidebar-toggle:hover { background: #f5f5f5; }
.adm-logo { display: flex; align-items: center; gap: 8px; }
.adm-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}
.adm-logo-text em { font-style: normal; color: #cd3c00; }
.adm-logo-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f9ede8;
  color: #cd3c00;
  padding: 3px 8px;
  border-radius: 999px;
}
.adm-header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.adm-ver-sitio {
  font-size: 12px;
  color: #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  transition: all .2s;
}
.adm-ver-sitio:hover { border-color: #cd3c00; color: #cd3c00; }
.adm-user-info { display: flex; align-items: center; gap: 8px; }
.adm-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #cd3c00;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-user-email { font-size: 13px; color: #555; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-logout {
  background: none;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 7px;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  transition: all .2s;
}
.adm-logout:hover { border-color: #c00; color: #c00; }

.adm-body { display: flex; padding-top: 100px; min-height: 100vh; }

/* ─── Sidebar ─────────────────────────────────────────────── */
.adm-sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  padding: 20px 0;
  flex-shrink: 0;
  position: fixed;
  top: 100px; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 50;
  transition: transform .25s ease;
}
.adm-nav { padding: 0 12px; }
.adm-nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #aaa;
  padding: 4px 8px 8px;
  text-transform: uppercase;
}
.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 2px;
  position: relative;
}
.adm-nav-item:hover { background: #f5f5f5; color: #1a1a1a; }
.adm-nav-item.activo { background: #f9ede8; color: #cd3c00; font-weight: 600; }
.adm-nav-count {
  margin-left: auto;
  font-size: 11px;
  background: #f0f0f0;
  color: #888;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}
.adm-nav-item.activo .adm-nav-count { background: rgba(205,60,0,0.15); color: #cd3c00; }

/* ─── Main ────────────────────────────────────────────────── */
.adm-main {
  flex: 1;
  margin-left: 220px;
  padding: 32px;
  min-height: calc(100vh - 100px);
  position: relative;
}
.adm-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.adm-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.adm-page-desc { font-size: 14px; color: #888; margin-top: 4px; }
.adm-btn-nuevo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 10px 20px !important;
  white-space: nowrap;
}

/* ─── Toolbar ─────────────────────────────────────────────── */
.adm-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.adm-search {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  position: relative;
  display: flex;
  align-items: center;
}
.adm-search svg {
  position: absolute;
  left: 12px;
  color: #aaa;
  pointer-events: none;
}
.adm-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid #e8e8e8;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  transition: border-color .2s;
}
.adm-search input:focus { outline: none; border-color: #cd3c00; }
.adm-select {
  padding: 9px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  transition: border-color .2s;
}
.adm-select:focus { outline: none; border-color: #cd3c00; }

/* ─── Card ────────────────────────────────────────────────── */
.adm-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}
.adm-card-header {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  letter-spacing: 0.02em;
}

/* ─── Tabla ───────────────────────────────────────────────── */
.adm-table-wrap { overflow-x: auto; }
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
}
.adm-table td {
  padding: 13px 16px;
  color: #1a1a1a;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td { background: #fafafa; }
.adm-table-loading {
  text-align: center;
  padding: 48px !important;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.adm-table-footer {
  padding: 12px 16px;
  font-size: 12px;
  color: #aaa;
  border-top: 1px solid #f0f0f0;
}

/* Imagen en tabla */
.adm-thumb {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
}
.adm-thumb-placeholder {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
}

/* Badges estado */
.adm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.adm-badge-activo    { background: #e8f9ee; color: #1a7a3a; }
.adm-badge-inactivo  { background: #f5f5f5; color: #999; }
.adm-badge-destacado { background: #f9ede8; color: #cd3c00; }

/* Acciones tabla */
.adm-actions { display: flex; gap: 6px; }
.adm-btn-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all .2s;
}
.adm-btn-icon:hover { border-color: #cd3c00; color: #cd3c00; background: #f9ede8; }
.adm-btn-icon.danger:hover { border-color: #c00; color: #c00; background: #fff0f0; }

/* ─── Modal ───────────────────────────────────────────────── */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.adm-modal-overlay.abierto {
  opacity: 1;
  pointer-events: all;
}
.adm-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform .22s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.adm-modal-overlay.abierto .adm-modal {
  transform: translateY(0) scale(1);
}
.adm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.adm-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}
.adm-modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #e8e8e8;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all .2s;
}
.adm-modal-close:hover { border-color: #cd3c00; color: #cd3c00; }
.adm-modal-body { padding: 24px; display: flex; flex-direction: column; gap: 0; }
.adm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  border-radius: 0 0 20px 20px;
}

/* ─── Upload de imagen ────────────────────────────────────── */
.adm-img-upload {
  position: relative;
  border: 2px dashed #e0e0e0;
  border-radius: 14px;
  height: 180px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.adm-img-upload:hover, .adm-img-upload.dragover {
  border-color: #cd3c00;
  background: #fdf5f2;
}
.adm-img-upload.tiene-imagen { border-style: solid; border-color: #e0e0e0; }
.adm-img-preview {
  text-align: center;
  color: #aaa;
  pointer-events: none;
}
.adm-img-preview p { font-size: 13px; margin-top: 10px; }
.adm-img-preview p span { color: #cd3c00; font-weight: 600; }
.adm-img-hint { font-size: 11px !important; margin-top: 4px !important; }
.adm-img-progress {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.adm-img-progress-bar {
  width: 60%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.adm-img-progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 40%;
  background: #cd3c00;
  border-radius: 999px;
  animation: progress-slide 1s ease-in-out infinite alternate;
}
@keyframes progress-slide {
  from { left: 0; } to { left: 60%; }
}
.adm-img-progress span { font-size: 13px; color: #555; }

/* ─── Formulario modal ────────────────────────────────────── */
.adm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.adm-col-1 { grid-column: span 1; }
.adm-col-2 { grid-column: span 2; }
.form-grupo { margin: 0; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  transition: border-color .2s;
}
.form-input:focus { outline: none; border-color: #cd3c00; }
.adm-input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.adm-input-prefix span {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #555;
  font-weight: 600;
  pointer-events: none;
}
.adm-input-prefix .form-input { padding-left: 26px; }

/* ─── Switches ────────────────────────────────────────────── */
.adm-switches { display: flex; flex-direction: column; gap: 12px; }
.adm-switch-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #1a1a1a;
}
.adm-switch-label small { color: #aaa; font-size: 12px; }
.adm-switch {
  width: 44px; height: 24px;
  background: #ddd;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
  cursor: pointer;
}
.adm-switch.activo { background: #cd3c00; }
.adm-switch-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: left .2s;
}
.adm-switch.activo .adm-switch-thumb { left: 23px; }

/* ─── Botones modal ───────────────────────────────────────── */
.btn-cancelar {
  padding: 10px 22px;
  border: 1.5px solid #e8e8e8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #555;
  background: #fff;
  font-family: inherit;
  transition: all .2s;
}
.btn-cancelar:hover { border-color: #1a1a1a; color: #1a1a1a; }
.btn-guardar {
  padding: 10px 28px;
  background: #cd3c00;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, transform .15s;
}
.btn-guardar:hover { background: #a83000; transform: translateY(-1px); }
.btn-guardar:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ─── Spinner ─────────────────────────────────────────────── */
.adm-spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.adm-spinner-sm { width: 16px; height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast ───────────────────────────────────────────────── */
.adm-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.adm-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.adm-toast.ok   { background: #1a7a3a; }
.adm-toast.err  { background: #c00; }

/* ─── Nombre en tabla ─────────────────────────────────────── */
.adm-prod-nombre { font-weight: 600; color: #1a1a1a; }
.adm-prod-meta   { font-size: 11px; color: #aaa; margin-top: 2px; }

/* ─── Empty state ─────────────────────────────────────────── */
.adm-empty {
  text-align: center;
  padding: 56px 24px;
  color: #aaa;
}
.adm-empty svg { margin: 0 auto 16px; display: block; opacity: 0.4; }
.adm-empty p { font-size: 15px; color: #888; }
.adm-empty small { font-size: 13px; }

/* ─── Responsive ──────────────────────────────────────────── */

/* ── Tablet (≤900px) ─────────────────────────────────────── */
@media (max-width: 900px) {
  .adm-sidebar-toggle { display: flex; }

  /* Sidebar deslizante con overlay */
  .adm-sidebar {
    transform: translateX(-100%);
    z-index: 80;
    box-shadow: none;
  }
  .adm-sidebar.abierto {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,0.18);
  }
  /* Overlay oscuro al abrir sidebar */
  .adm-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 79;
  }
  .adm-sidebar-overlay.visible { display: block; }

  .adm-main { margin-left: 0; padding: 20px 16px; }
  .adm-user-email { display: none; }
}

/* ── Mobile (≤600px) — optimizado para gestión táctil ─────── */
@media (max-width: 600px) {

  /* Header compacto */
  .adm-header { padding: 0 12px; gap: 8px; }
  .adm-logo img { height: 32px; }
  .adm-logo-badge { display: none; }
  .adm-ver-sitio span, .adm-ver-sitio svg + span { display: none; }
  .adm-ver-sitio { padding: 6px 10px; }
  .adm-user-avatar { width: 28px; height: 28px; font-size: 12px; }

  /* Main con más espacio */
  .adm-main { padding: 16px 12px; }

  /* Títulos de sección */
  .adm-page-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .adm-page-title { font-size: 22px; }
  .adm-page-desc { font-size: 13px; }
  .adm-btn-nuevo { justify-content: center; padding: 14px 20px !important; font-size: 14px !important; }

  /* Toolbar — búsqueda arriba, filtros abajo */
  .adm-toolbar {
    flex-direction: column;
    gap: 10px;
  }
  .adm-search { max-width: 100%; }
  .adm-search input {
    padding: 12px 14px 12px 40px;
    font-size: 15px;  /* Evita zoom en iOS */
    border-radius: 12px;
  }
  .adm-select {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 12px;
    width: 100%;
  }

  /* ── Tabla → Cards en mobile ────────────────────────────── */
  /* Ocultar la tabla estándar y mostrar cards */
  .adm-table-wrap { overflow: visible; }
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody { display: block; }
  .adm-table tr {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    margin-bottom: 10px;
    padding: 14px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  }
  .adm-table tr:hover td { background: transparent; }

  /* Imagen a la izquierda + nombre a la derecha */
  .adm-table td { border: none; padding: 2px 0; font-size: 13px; }
  .adm-table td:first-child {
    position: absolute;
    top: 14px; left: 14px;
    width: 48px; height: 48px;
  }
  .adm-thumb { width: 48px; height: 48px; border-radius: 10px; }
  .adm-thumb-placeholder { width: 48px; height: 48px; border-radius: 10px; }

  /* Nombre del producto — con indent para la imagen */
  .adm-table td:nth-child(2) { padding-left: 60px; min-height: 52px; }
  .adm-prod-nombre { font-size: 14px; }
  .adm-prod-meta { font-size: 12px; }

  /* Categoría: etiqueta inline */
  .adm-table td:nth-child(3)::before { content: "Categoría: "; color: #aaa; font-size: 11px; }
  .adm-table td:nth-child(3) { color: #555; font-size: 12px; }

  /* Precio */
  .adm-table td:nth-child(4) { font-size: 17px; font-weight: 700; color: #cd3c00; padding-top: 6px; }

  /* Estado — badges en fila */
  .adm-table td:nth-child(5) { padding-bottom: 8px; }

  /* Acciones — botones grandes táctiles */
  .adm-table td:last-child {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 6px;
  }
  .adm-actions { gap: 10px; }
  .adm-btn-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    flex: 1;
    max-width: 48px;
  }

  /* Tabla de categorías — misma transformación */
  #tbodyCategorias tr {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    margin-bottom: 10px;
    padding: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  }
  #tbodyCategorias td { border: none; padding: 3px 0; font-size: 13px; }
  #tbodyCategorias td:last-child {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 4px;
  }

  /* Footer de tabla */
  .adm-table-footer { padding: 8px 0; font-size: 12px; }

  /* ── Modal — bottom sheet táctil ───────────────────────── */
  .adm-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .adm-modal {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .adm-modal-header { padding: 16px 20px; }
  .adm-modal-title { font-size: 18px; }
  .adm-modal-body { padding: 16px 20px; gap: 0; }
  .adm-modal-footer { padding: 12px 20px; gap: 10px; }

  /* Campos del formulario — más grandes para dedos */
  .form-label { font-size: 12px; margin-bottom: 5px; }
  .form-input {
    padding: 13px 14px;
    font-size: 16px; /* Evita zoom en iOS */
    border-radius: 12px;
  }
  .adm-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .adm-col-1, .adm-col-2 { grid-column: span 1; }

  /* Input con prefijo $ */
  .adm-input-prefix span { font-size: 15px; }

  /* Zona de imagen upload */
  .adm-img-upload { height: 140px; }
  .adm-img-preview p { font-size: 12px; }
  .adm-img-hint { font-size: 10px !important; }

  /* Switches — más grandes */
  .adm-switch { width: 50px; height: 28px; }
  .adm-switch-thumb { width: 22px; height: 22px; top: 3px; }
  .adm-switch.activo .adm-switch-thumb { left: 25px; }
  .adm-switch-label { font-size: 14px; gap: 14px; }

  /* Botones del modal — full width */
  .adm-modal-footer { flex-direction: column-reverse; }
  .btn-cancelar, .btn-guardar {
    width: 100%;
    justify-content: center;
    padding: 14px !important;
    font-size: 15px;
    border-radius: 12px !important;
  }

  /* Login */
  .login-card { padding: 28px 20px; border-radius: 16px; }

  /* Ajustes */
  .adm-card { border-radius: 14px; }
}

/* ── Mobile chico (≤380px) ───────────────────────────────── */
@media (max-width: 380px) {
  .adm-header { height: 88px; }
  .adm-logo img { height: 28px; }
  .adm-main { padding: 12px 10px; }
}
