/* ============================================================
   ADMIN.CSS v3 — Panel de Administración Grupo Vastil
   Diseño SaaS profesional. Un solo archivo, sin conflictos.
   ============================================================ */

/* ── VARIABLES LOCALES ── */
:root {
  --adm-dark:    #07090e;
  --adm-panel:   #0b0e1a;
  --adm-sidebar: #080c15;
  --adm-card:    #0f1320;
  --adm-card-h:  #111828;
  --adm-border:  rgba(255,255,255,0.06);
  --adm-gold:    #c5a86d;
  --adm-gold-bg: rgba(197,168,109,0.1);
  --adm-text:    #e8e4dc;
  --adm-muted:   #4a6080;
  --adm-dim:     #2e3f55;
}

/* ── BOTÓN FLOTANTE ── */
.admin-floating-btn {
  position: fixed;
  bottom: 92px;
  right: 32px;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--adm-dark);
  border: 1.5px solid rgba(197,168,109,0.35);
  color: var(--adm-gold);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
}
body.admin-access .admin-floating-btn { display: flex; }
.admin-floating-btn:hover {
  background: var(--adm-gold);
  color: var(--adm-dark);
  transform: scale(1.08);
}

/* ── LOGIN OVERLAY ── */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(7,9,14,0.92);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.admin-overlay.visible { opacity: 1; }

.admin-login-box {
  background: linear-gradient(145deg, #0f1320, #0a0d17);
  border: 1px solid rgba(197,168,109,0.15);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.admin-login-header { text-align: center; margin-bottom: 32px; }
.admin-login-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--adm-gold-bg);
  border: 1px solid rgba(197,168,109,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-gold);
  margin-bottom: 16px;
}
.admin-login-header h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: #faf9f6;
  margin-bottom: 6px;
}
.admin-login-header h2 span { color: var(--adm-gold); }
.admin-login-header p { font-size: 13px; color: var(--adm-muted); }

.admin-login-error {
  background: rgba(220,53,69,0.1);
  border: 1px solid rgba(220,53,69,0.25);
  border-radius: 10px;
  color: #ff6b7a;
  font-size: 13px;
  padding: 11px 14px;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 8px;
}
.admin-login-error.visible { display: flex; }

.admin-field { margin-bottom: 16px; }
.admin-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--adm-muted);
  margin-bottom: 7px;
}
.admin-field input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 13px 16px;
  color: #faf9f6;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.admin-field input:focus { border-color: var(--adm-gold); background: rgba(197,168,109,0.04); }

.admin-pass-wrap { position: relative; }
.admin-pass-wrap input { padding-right: 46px; }
.admin-eye-btn {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; color: var(--adm-muted);
  cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; transition: color 0.2s;
}
.admin-eye-btn:hover { color: var(--adm-gold); }

.admin-login-submit {
  width: 100%; background: var(--adm-gold); color: var(--adm-dark);
  border: none; border-radius: 10px;
  padding: 14px; font-size: 14px; font-weight: 700;
  cursor: pointer; margin-top: 8px; transition: all 0.25s;
}
.admin-login-submit:hover {
  background: #dfc691;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(197,168,109,0.3);
}
.admin-login-cancel {
  width: 100%; background: transparent;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; padding: 12px;
  color: var(--adm-muted); font-size: 13px;
  cursor: pointer; margin-top: 8px; transition: all 0.2s;
}
.admin-login-cancel:hover { border-color: rgba(255,255,255,0.2); color: #faf9f6; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
.admin-login-box.shake { animation: shake 0.4s ease; }

/* ══════════════════════════════════════════
   PANEL PRINCIPAL
   ══════════════════════════════════════════ */
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.admin-panel.active {
  pointer-events: all;
  opacity: 1;
  transform: translateX(0);
}
.admin-panel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  background: var(--adm-panel);
  overflow: hidden;
}

/* ── SIDEBAR ── */
.admin-sidebar {
  width: 240px;
  min-width: 240px;
  flex-shrink: 0;
  background: var(--adm-sidebar);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 22px;
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}
.admin-brand-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--adm-gold-bg);
  border: 1px solid rgba(197,168,109,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
  font-size: 14px; font-weight: 700;
  color: var(--adm-gold);
  flex-shrink: 0;
}
.admin-brand-logo span { color: #faf9f6; }
.admin-brand-texts { min-width: 0; }
.admin-brand-name {
  font-size: 13.5px; font-weight: 700;
  color: #faf9f6; line-height: 1; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-brand-role {
  font-size: 10px; color: var(--adm-dim);
  text-transform: uppercase; letter-spacing: 0.8px;
}

.admin-nav {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.admin-nav::-webkit-scrollbar { width: 3px; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.admin-nav-section-label {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--adm-dim);
  padding: 14px 10px 6px;
}
.admin-nav-item {
  display: flex; align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  border: none; background: transparent;
  color: #6a7f9a;
  font-size: 13px; font-weight: 500;
  cursor: pointer; text-align: left;
  transition: all 0.15s;
  width: 100%;
}
.admin-nav-item svg { flex-shrink: 0; }
.admin-nav-item:hover { background: rgba(255,255,255,0.05); color: #c0cce0; }
.admin-nav-item.active { background: var(--adm-gold-bg); color: var(--adm-gold); }
.admin-nav-badge {
  margin-left: auto;
  background: var(--adm-gold-bg);
  color: var(--adm-gold);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}

.admin-sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--adm-border);
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  flex-shrink: 0;
}
.admin-session-info {
  display: flex; align-items: center;
  gap: 9px; flex: 1; min-width: 0;
}
.admin-session-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--adm-gold-bg);
  border: 1px solid rgba(197,168,109,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--adm-gold); flex-shrink: 0;
}
.admin-session-name { font-size: 12.5px; font-weight: 600; color: #c0cce0; line-height: 1; margin-bottom: 2px; }
.admin-session-status { font-size: 10px; color: var(--adm-dim); }
.admin-logout-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--adm-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  transition: all 0.2s; flex-shrink: 0;
}
.admin-logout-btn:hover { background: rgba(220,53,69,0.1); color: #ff6b7a; border-color: rgba(220,53,69,0.2); }

/* ── MAIN CONTENT ── */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--adm-panel);
  min-width: 0;
}

.admin-topbar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
  background: var(--adm-panel);
}
.admin-topbar-left { display: flex; flex-direction: column; }
.admin-page-title {
  font-family: Georgia, serif;
  font-size: 22px; font-weight: 500;
  color: #faf9f6; margin: 0; line-height: 1.2;
}
.admin-page-sub { font-size: 12px; color: var(--adm-muted); margin-top: 3px; }
.admin-topbar-right { display: flex; align-items: center; gap: 10px; }
.admin-close-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.07);
  background: transparent; color: #6a7f9a;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.2s;
}
.admin-close-btn:hover { background: rgba(255,255,255,0.06); color: #faf9f6; }

/* ── VIEWS ── */
.admin-view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 36px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.admin-view::-webkit-scrollbar { width: 6px; }
.admin-view::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.admin-view::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── STATS BAR ── */
.admin-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  flex-shrink: 0;
}
.admin-stat-card {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s;
}
.admin-stat-card:hover { border-color: rgba(197,168,109,0.2); }
.admin-stat-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-stat-icon--gold { background: rgba(197,168,109,0.1); color: var(--adm-gold); }
.admin-stat-icon--green { background: rgba(16,185,129,0.1); color: #6ee7b7; }
.admin-stat-icon--blue { background: rgba(99,102,241,0.1); color: #a5b4fc; }
.admin-stat-icon--amber { background: rgba(245,158,11,0.1); color: #fcd34d; }
.admin-stat-val { font-size: 26px; font-weight: 700; color: #faf9f6; line-height: 1; margin-bottom: 3px; }
.admin-stat-label { font-size: 11px; color: var(--adm-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── SEARCH ── */
.admin-list-header {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-shrink: 0;
}
.admin-search-wrap { position: relative; flex: 1; max-width: 400px; }
.admin-search-wrap svg {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--adm-muted); pointer-events: none;
}
.admin-search-input {
  width: 100%;
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 10px 14px 10px 40px;
  color: var(--adm-text);
  font-size: 13.5px;
  outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.admin-search-input::placeholder { color: var(--adm-dim); }
.admin-search-input:focus { border-color: rgba(197,168,109,0.4); }

/* ── TABLA DE PROPIEDADES ── */
.admin-prop-list {
  flex: 1;
  width: 100%;
  overflow-x: auto;
}
.admin-prop-list table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.admin-prop-list thead th {
  padding: 0 16px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--adm-dim);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--adm-border);
}
.admin-prop-list thead th:last-child { text-align: right; }

.admin-prop-item { cursor: pointer; }
.admin-prop-item td {
  padding: 14px 16px;
  background: var(--adm-card);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  font-size: 13.5px;
  color: var(--adm-text);
  transition: background 0.15s;
}
.admin-prop-item td:first-child {
  border-left: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px 0 0 10px;
}
.admin-prop-item td:last-child {
  border-right: 1px solid rgba(255,255,255,0.04);
  border-radius: 0 10px 10px 0;
  text-align: right;
}
.admin-prop-item:hover td {
  background: var(--adm-card-h);
  border-color: rgba(197,168,109,0.1);
}

/* Thumb */
.admin-prop-thumb {
  width: 68px; height: 50px;
  border-radius: 8px;
  background: #161c2d center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--adm-dim); overflow: hidden;
}

/* Nombre + ubicación */
.admin-prop-title {
  font-size: 14px; font-weight: 600;
  color: var(--adm-text); line-height: 1.3;
  margin-bottom: 3px;
}
.admin-prop-loc {
  font-size: 11.5px; color: var(--adm-muted);
  display: flex; align-items: center; gap: 4px;
}

/* Badges inline */
.adm-badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 6px;
  white-space: nowrap;
}
.adm-badge--city { background: rgba(99,102,241,0.12); color: #a5b4fc; }
.adm-badge--price { background: rgba(197,168,109,0.1); color: var(--adm-gold); }
.adm-badge--area { background: rgba(16,185,129,0.08); color: #6ee7b7; }
.adm-badge--beds { background: rgba(245,158,11,0.08); color: #fcd34d; }
.adm-badge--url { background: rgba(99,102,241,0.08); color: #818cf8; }

/* Botones acción */
.admin-prop-actions {
  display: flex; gap: 8px;
  align-items: center; justify-content: flex-end;
}
.admin-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.admin-action-edit {
  background: rgba(197,168,109,0.15);
  border-color: rgba(197,168,109,0.55);
  color: #f0d898;
  font-weight: 700;
}
.admin-action-edit:hover {
  background: rgba(197,168,109,0.28);
  border-color: var(--adm-gold);
  color: #fff8dc;
  box-shadow: 0 0 0 2px rgba(197,168,109,0.2);
}
.admin-action-edit:focus-visible {
  outline: 3px solid var(--adm-gold);
  outline-offset: 2px;
}
.admin-action-delete {
  background: rgba(220,53,69,0.15);
  border-color: rgba(220,53,69,0.55);
  color: #ff8a95;
  font-weight: 700;
}
.admin-action-delete:hover {
  background: rgba(220,53,69,0.28);
  border-color: #ff4555;
  color: #ffd0d5;
  box-shadow: 0 0 0 2px rgba(220,53,69,0.2);
}
.admin-action-delete:focus-visible {
  outline: 3px solid #ff4555;
  outline-offset: 2px;
}

/* Empty state */
.admin-empty-state {
  text-align: center; padding: 80px 40px; color: var(--adm-dim);
}
.admin-empty-state svg { opacity: 0.25; }
.admin-empty-state h3 { font-size: 20px; color: #6a7f9a; margin: 20px 0 8px; }
.admin-empty-state p { font-size: 13px; }

/* ── FORMULARIO ── */
.admin-form-container { max-width: 960px; width: 100%; padding-bottom: 40px; }

.admin-form-section {
  display: flex; align-items: center; gap: 10px;
  margin-top: 32px; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--adm-border);
}
.admin-form-section:first-child { margin-top: 0; }
.admin-form-section-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--adm-gold-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--adm-gold); flex-shrink: 0;
}
.admin-form-section-title {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.9px;
  color: #8fa0bc;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.admin-form-group { display: flex; flex-direction: column; gap: 7px; }
.admin-form-group--full { grid-column: 1 / -1; }
.admin-form-group--half { grid-column: span 2; }

.admin-form-group label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--adm-muted);
}
.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--adm-text);
  font-size: 13.5px;
  outline: none; transition: border-color 0.2s, background 0.2s;
  resize: vertical; box-sizing: border-box;
}
.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  border-color: rgba(197,168,109,0.45);
  background: rgba(197,168,109,0.03);
}
.admin-form-group input::placeholder,
.admin-form-group textarea::placeholder { color: var(--adm-dim); }
.admin-form-group select { cursor: pointer; }
.admin-form-group select option { background: #0f1320; color: var(--adm-text); }
.admin-field-hint { font-size: 11px; color: var(--adm-dim); margin-top: 3px; }

/* Imagen upload */
.admin-image-upload-wrap { display: flex; gap: 16px; align-items: flex-start; }
.admin-image-preview {
  width: 120px; height: 80px; flex-shrink: 0;
  border-radius: 10px; border: 1px dashed rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; color: var(--adm-dim); font-size: 11px;
  overflow: hidden; background-size: cover; background-position: center;
}
.admin-image-inputs { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.admin-image-upload-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-upload-file-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: #c0cce0; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.admin-upload-file-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.admin-image-clear-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 8px;
  background: rgba(220,53,69,0.07);
  border: 1px solid rgba(220,53,69,0.18);
  color: #e87a87; font-size: 12px; cursor: pointer; transition: all 0.2s;
}
.admin-image-clear-btn:hover { background: rgba(220,53,69,0.13); }

/* URL field */
.admin-url-field { position: relative; }
.admin-url-field input { padding-right: 80px; }
.admin-url-open-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 6px; color: #a5b4fc;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; cursor: pointer;
  display: flex; align-items: center; gap: 4px; transition: all 0.2s;
}
.admin-url-open-btn:hover { background: rgba(99,102,241,0.18); }

/* Checkbox */
.admin-checkbox-label {
  display: flex !important; align-items: center;
  gap: 12px; cursor: pointer;
  font-size: 13.5px !important; color: #c0cce0 !important;
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important;
}
.admin-checkbox-label input[type="checkbox"] { display: none; }
.admin-checkbox-custom {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.12);
  flex-shrink: 0; position: relative; transition: all 0.2s;
}
.admin-checkbox-label input:checked ~ .admin-checkbox-custom {
  background: var(--adm-gold); border-color: var(--adm-gold);
}
.admin-checkbox-label input:checked ~ .admin-checkbox-custom::after {
  content: ''; position: absolute;
  left: 5px; top: 2px; width: 7px; height: 11px;
  border: 2px solid #07090e; border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* Form actions */
.admin-form-actions {
  display: flex; gap: 12px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--adm-border);
  flex-shrink: 0;
}
.admin-btn-primary {
  display: flex; align-items: center; gap: 8px;
  background: var(--adm-gold); color: #07090e;
  border: none; border-radius: 10px;
  padding: 13px 28px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.admin-btn-primary:hover { background: #dfc691; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(197,168,109,0.25); }
.admin-btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 10px; padding: 13px 20px;
  color: #c8d8ee; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.admin-btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); color: #fff; }
.admin-btn-secondary:focus-visible { outline: 3px solid rgba(255,255,255,0.5); outline-offset: 2px; }
.admin-btn-danger {
  background: #c0212e; color: #fff;
  border: 1.5px solid #e03040;
  border-radius: 10px;
  padding: 12px 22px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.admin-btn-danger:hover { background: #dc3545; border-color: #ff5566; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(220,53,69,0.4); }
.admin-btn-danger:focus-visible { outline: 3px solid #ff5566; outline-offset: 2px; }

/* Botones específicos del modal de confirmación de eliminación */
.admin-btn-cancel-delete {
  display: flex; align-items: center; gap: 8px;
  background: rgba(100,180,100,0.15);
  border: 2px solid rgba(100,220,100,0.55);
  border-radius: 12px; padding: 14px 26px;
  color: #80ee80; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  flex: 1;
}
.admin-btn-cancel-delete:hover {
  background: rgba(100,200,100,0.28);
  border-color: #6be86b;
  color: #c0ffc0;
  box-shadow: 0 0 0 3px rgba(80,200,80,0.2);
}
.admin-btn-cancel-delete:focus-visible { outline: 3px solid #6be86b; outline-offset: 2px; }

.admin-btn-danger-confirm {
  display: flex; align-items: center; gap: 8px;
  background: rgba(180,30,45,0.2);
  border: 2px solid rgba(220,53,69,0.55);
  border-radius: 12px; padding: 14px 26px;
  color: #ff8a95; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  flex: 1;
}
.admin-btn-danger-confirm:hover {
  background: #c0212e;
  border-color: #ff4555;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.25);
}
.admin-btn-danger-confirm:focus-visible { outline: 3px solid #ff4555; outline-offset: 2px; }

/* ── TOAST ── */
.admin-toast {
  position: fixed; bottom: 100px; right: 32px; z-index: 11000;
  background: var(--adm-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 13px 18px;
  font-size: 13px; color: var(--adm-text);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  transform: translateY(24px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none; max-width: 300px;
  display: flex; align-items: center; gap: 10px;
}
.admin-toast svg { flex-shrink: 0; }
.admin-toast--visible { opacity: 1; transform: translateY(0); }
.admin-toast--success { border-left: 3px solid #6ee7b7; }
.admin-toast--success svg { color: #6ee7b7; }
.admin-toast--error { border-left: 3px solid #ff6b7a; }
.admin-toast--error svg { color: #ff6b7a; }
.admin-toast--info { border-left: 3px solid var(--adm-gold); }
.admin-toast--info svg { color: var(--adm-gold); }

/* ── CONFIRM MODAL ── */
.admin-confirm-overlay {
  display: none; position: fixed; inset: 0; z-index: 11000;
  background: rgba(7,9,14,0.9); backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
}
.admin-confirm-overlay.visible { display: flex; }
.admin-confirm-box {
  background: linear-gradient(145deg, #0f1320, #0a0d17);
  border: 1px solid rgba(197,168,109,0.12);
  border-radius: 18px; padding: 36px 40px;
  max-width: 420px; width: 100%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  text-align: center;
}
.admin-confirm-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(220,53,69,0.1);
  border: 1px solid rgba(220,53,69,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #ff6b7a; margin: 0 auto 20px;
}
.admin-confirm-box h3 { font-size: 21px; color: #faf9f6; margin-bottom: 12px; font-weight: 700; }
.admin-confirm-propname { font-size: 15px; color: #f0d898; font-weight: 700; margin-bottom: 12px; }
.admin-confirm-warning { font-size: 14px; color: #b0c4de; margin-bottom: 32px; line-height: 1.7; }
.admin-confirm-warning strong { color: #ff8a95; }
.admin-confirm-actions { display: flex; gap: 14px; justify-content: center; }
.admin-confirm-icon { color: #ffb347; border-color: rgba(255,179,71,0.35); background: rgba(255,179,71,0.1); }

/* ── ANIMACIONES ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.admin-stat-card { animation: fadeInUp 0.35s ease both; }
.admin-stat-card:nth-child(1) { animation-delay: 0s; }
.admin-stat-card:nth-child(2) { animation-delay: 0.05s; }
.admin-stat-card:nth-child(3) { animation-delay: 0.1s; }
.admin-stat-card:nth-child(4) { animation-delay: 0.15s; }
