
* { box-sizing: border-box; }
.ad-wrapper { font-family: system-ui, sans-serif; background: transparent; color: #1a2233; padding: 0; min-height: 100%; display:block; width: 100%; clear: both; }
.ad-wrapper .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.ad-wrapper .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.ad-wrapper .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.ad-wrapper .card { background: #fff; border: 0.5px solid #e2e6ed; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.ad-wrapper .kpi-card { background: #fff; border: 0.5px solid #e2e6ed; border-radius: 10px; padding: 16px; }
.ad-wrapper .kpi-label { font-size: 11px; color: #9aa3b8; margin-bottom: 6px; font-weight: 500; }
.ad-wrapper .kpi-val { font-size: 24px; font-weight: 600; color: #1a2233; }
.ad-wrapper .kpi-sub { font-size: 11px; margin-top: 4px; }
.ad-wrapper .kpi-up { color: #16a34a; }
.ad-wrapper .kpi-down { color: #dc2626; }
.ad-wrapper .section-title { font-size: 14px; font-weight: 600; color: #1a2233; margin-bottom: 16px; }
.ad-wrapper .badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.ad-wrapper .badge-green { background: #dcfce7; color: #15803d; }
.ad-wrapper .badge-amber { background: #fef3c7; color: #b45309; }
.ad-wrapper .badge-red { background: #fee2e2; color: #dc2626; }
.ad-wrapper .badge-blue { background: #dbeafe; color: #1d4ed8; }
.ad-wrapper .badge-gray { background: #f1f5f9; color: #475569; }
.ad-wrapper table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-wrapper th { text-align: left; padding: 8px 12px; color: #9aa3b8; font-weight: 500; font-size: 11px; border-bottom: 0.5px solid #e2e6ed; text-transform: uppercase; letter-spacing: .4px; }
.ad-wrapper td { padding: 10px 12px; border-bottom: 0.5px solid #f1f5f9; color: #1a2233; }
.ad-wrapper tr:hover td { background: #f9fafb; }
.ad-wrapper .btn { padding: 7px 16px; border-radius: 8px; font-size: 13px; cursor: pointer; border: 0.5px solid #c7d2e8; background: #fff; color: #1a3a6b; transition: all .15s; }
.ad-wrapper .btn:hover { background: #eef2ff; }
.ad-wrapper .btn-primary { background: #1a3a6b; color: #fff; border-color: #1a3a6b; }
.ad-wrapper .btn-primary:hover { background: #15306b; }
.ad-wrapper .btn-sm { padding: 5px 12px; font-size: 12px; }
.ad-wrapper .tag { background: #eef2ff; color: #3b6bda; font-size: 11px; padding: 2px 8px; border-radius: 6px; display: inline-block; }
.ad-wrapper .msg-thread { border: 0.5px solid #e2e6ed; border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.ad-wrapper .msg-header { padding: 12px 16px; background: #f8fafc; border-bottom: 0.5px solid #e2e6ed; display: flex; justify-content: space-between; align-items: center; }
.ad-wrapper .msg-body { padding: 16px; background: #fff; }
.ad-wrapper .msg-bubble { max-width: 70%; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 10px; line-height: 1.5; }
.ad-wrapper .msg-in { background: #eef2ff; color: #1a3a6b; border-radius: 10px 10px 10px 3px; }
.ad-wrapper .msg-out { background: #1a3a6b; color: #fff; border-radius: 10px 10px 3px 10px; margin-left: auto; }
.ad-wrapper .msg-meta { font-size: 10px; color: #9aa3b8; margin-top: 3px; }
.ad-wrapper .msg-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 0.5px solid #e2e6ed; background: #fff;}
.ad-wrapper .msg-input-row input { flex: 1; padding: 8px 12px; border: 0.5px solid #e2e6ed; border-radius: 8px; font-size: 13px; outline: none; }
.ad-wrapper .progress-bar { height: 6px; border-radius: 3px; background: #e2e6ed; margin-top: 6px; }
.ad-wrapper .progress-fill { height: 100%; border-radius: 3px; background: #3b6bda; }
.ad-wrapper .tramite-card { border: 0.5px solid #e2e6ed; border-radius: 10px; padding: 16px; cursor: pointer; transition: all .15s; background: #fff; }
.ad-wrapper .tramite-card:hover { border-color: #3b6bda; background: #f5f8ff; box-shadow: 0 4px 12px rgba(59,107,218,0.08); }
.ad-wrapper .tramite-icon { width: 40px; height: 40px; border-radius: 10px; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; }
.ad-wrapper .tramite-name { font-size: 13px; font-weight: 600; color: #1a2233; }
.ad-wrapper .tramite-desc { font-size: 11px; color: #9aa3b8; margin-top: 3px; }
.ad-wrapper .step-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ad-wrapper .step-dot { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.ad-wrapper .step-done { background: #dcfce7; color: #15803d; }
.ad-wrapper .step-active { background: #dbeafe; color: #1d4ed8; }
.ad-wrapper .step-pending { background: #f1f5f9; color: #94a3b8; }
.ad-wrapper .step-label { font-size: 12px; color: #4a5568; }
.ad-wrapper .operativo-tab { display: flex; gap: 8px; margin-bottom: 20px; }
.ad-wrapper .op-tab { padding: 8px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; border: 0.5px solid #e2e6ed; background: #fff; color: #4a5568; transition: all .15s; }
.ad-wrapper .op-tab.active { background: #1a3a6b; color: #fff; border-color: #1a3a6b; }
.ad-wrapper .cmd-input { width: 100%; padding: 12px 16px; border: 0.5px solid #c7d2e8; border-radius: 10px; font-size: 13px; outline: none; font-family: inherit; }
.ad-wrapper .cmd-input:focus { border-color: #3b6bda; box-shadow: 0 0 0 3px rgba(59,107,218,.08); }
.ad-wrapper .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0.5px solid #e2e6ed; border-radius: 20px; font-size: 12px; cursor: pointer; background: #fff; color: #4a5568; transition: all .15s; margin: 4px; }
.ad-wrapper .chip:hover { background: #eef2ff; border-color: #3b6bda; color: #1a3a6b; }
.ad-wrapper .divider { height: 0.5px; background: #e2e6ed; margin: 20px 0; }
.ad-wrapper input[type=text], .ad-wrapper input[type=email], .ad-wrapper input[type=number], .ad-wrapper select, .ad-wrapper textarea { width: 100%; padding: 9px 12px; border: 0.5px solid #e2e6ed; border-radius: 8px; font-size: 13px; outline: none; font-family: inherit; color: #1a2233; background: #fff; }
.ad-wrapper input:focus, .ad-wrapper select:focus, .ad-wrapper textarea:focus { border-color: #3b6bda; }
.ad-wrapper label { font-size: 12px; color: #6b7a99; display: block; margin-bottom: 4px; }
.ad-wrapper .form-row { margin-bottom: 14px; }
.ad-wrapper .alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.ad-wrapper .alert-info { background: #dbeafe; color: #1d4ed8; border: 0.5px solid #93c5fd; }

/* SUPER FORM CSS */
.ad-super-form { background: #fff; border: 0.5px solid #e2e6ed; border-radius: 16px; padding: 40px; box-shadow: 0 12px 32px rgba(26,58,107,0.06); position: relative; overflow: hidden; }
.ad-super-form .step-indicator { display: flex; justify-content: space-between; margin-bottom: 32px; position: relative; padding: 0 20px; }
.ad-super-form .step-indicator::before { content: ''; position: absolute; top: 16px; left: 30px; right: 30px; height: 2px; background: #e2e6ed; z-index: 1; }
.ad-super-form .step-indicator .progress { position: absolute; top: 16px; left: 30px; height: 2px; background: #3b6bda; z-index: 1; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.ad-super-form .step { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #e2e6ed; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #9aa3b8; z-index: 2; transition: all 0.4s ease; position: relative; }
.ad-super-form .step.active { border-color: #3b6bda; color: #3b6bda; box-shadow: 0 0 0 6px rgba(59,107,218,0.1); }
.ad-super-form .step.completed { background: #3b6bda; border-color: #3b6bda; color: #fff; }

.ad-form-group { position: relative; margin-bottom: 24px; }
.ad-form-control { width: 100%; padding: 16px 18px; border: 1.5px solid #e2e6ed; border-radius: 10px; font-size: 15px; color: #1a2233; background: #f8fafc; transition: all 0.2s; outline: none; }
.ad-form-control:focus { border-color: #3b6bda; background: #fff; box-shadow: 0 4px 12px rgba(59,107,218,0.08); }
.ad-floating-label { position: absolute; left: 16px; top: 18px; font-size: 15px; color: #6b7a99; transition: all 0.2s; pointer-events: none; background: transparent; padding: 0 4px; }
.ad-form-control:focus ~ .ad-floating-label, .ad-form-control:not(:placeholder-shown) ~ .ad-floating-label { top: -9px; left: 12px; font-size: 12px; font-weight: 600; color: #3b6bda; background: #fff; }

.ad-dropzone { border: 2px dashed #c7d2e8; border-radius: 12px; padding: 40px; text-align: center; background: #f8fafc; cursor: pointer; transition: all 0.2s; }
.ad-dropzone:hover { border-color: #3b6bda; background: #f0f4ff; }
.ad-dropzone-icon { font-size: 36px; color: #3b6bda; margin-bottom: 12px; }
.ad-dropzone-text { font-size: 14px; color: #4a5568; font-weight: 500; }
.ad-dropzone-sub { font-size: 12px; color: #9aa3b8; margin-top: 4px; }

.ad-form-step-content { display: none; animation: fadeIn 0.4s ease forwards; }
.ad-form-step-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* NEW WIDGETS CSS */
.ad-news-card { display: flex; gap: 16px; border-bottom: 0.5px solid #e2e6ed; padding-bottom: 16px; margin-bottom: 16px; }
.ad-news-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ad-news-date { min-width: 60px; text-align: center; background: #f1f5f9; border-radius: 8px; padding: 8px; }
.ad-news-day { font-size: 20px; font-weight: 700; color: #1a3a6b; line-height: 1; }
.ad-news-month { font-size: 11px; text-transform: uppercase; color: #6b7a99; font-weight: 600; margin-top: 4px; }
.ad-news-title { font-size: 14px; font-weight: 600; color: #1a2233; margin-bottom: 4px; cursor: pointer; transition: color 0.15s; }
.ad-news-title:hover { color: #3b6bda; }

.ad-directory-card { display: flex; align-items: center; gap: 16px; padding: 16px; border: 0.5px solid #e2e6ed; border-radius: 10px; transition: all 0.15s; }
.ad-directory-card:hover { border-color: #3b6bda; box-shadow: 0 4px 12px rgba(59,107,218,0.06); }
.ad-avatar-lrg { width: 48px; height: 48px; border-radius: 50%; background: #eef2ff; color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; }


/* ── Hamburger Menu Toggle ── */
.ad-mobile-menu-toggle {
    display: none;
    background: #1a3a6b;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ══════════════════════════════════
   HOME WIDGET — Portal de Accesos
══════════════════════════════════ */

/* Hero Banner */
.ad-home-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, #1a3a6b 0%, #2b56a4 60%, #3b6bda 100%);
  border-radius: 16px; padding: 32px 36px; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.ad-home-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 250px; height: 250px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.ad-home-hero::after {
  content: ''; position: absolute; bottom: -40px; right: 200px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.ad-home-hero-left { flex: 1; position: relative; z-index: 2; }
.ad-hero-greeting { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ad-hero-greeting strong { color: #93c5fd; }
.ad-hero-sub { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.ad-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ad-hero-btn-primary {
  display: inline-block; padding: 11px 24px; background: #fff; color: #1a3a6b;
  border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.ad-hero-btn-primary:hover { background: #f0f4ff; transform: translateY(-1px); }
.ad-hero-btn-outline {
  display: inline-block; padding: 11px 24px; background: rgba(255,255,255,0.12);
  color: #fff; border: 1.5px solid rgba(255,255,255,0.3); border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.ad-hero-btn-outline:hover { background: rgba(255,255,255,0.22); }

.ad-home-hero-right { position: relative; z-index: 2; }
.ad-kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-kpi-mini {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 12px 16px; min-width: 140px;
}
.ad-kpi-mini.ad-kpi-alert { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.3); }
.ad-kpi-ico { font-size: 22px; }
.ad-kpi-mini-val { font-size: 18px; font-weight: 700; color: #fff; line-height: 1; }
.ad-kpi-mini-lbl { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 3px; }

/* Section Labels */
.ad-home-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: #9aa3b8; margin-bottom: 12px; padding-left: 2px;
}
.ad-label-admin { color: #7c3aed; }

/* Access Card Grid */
.ad-access-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px;
}
.ad-access-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ad-access-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Access Cards */
.ad-access-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #e2e6ed; border-radius: 12px;
  padding: 16px 18px; text-decoration: none; color: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.ad-access-card:hover {
  border-color: #3b6bda; box-shadow: 0 6px 20px rgba(59,107,218,0.10);
  transform: translateY(-2px);
}
.ad-access-card--featured {
  border-color: #bbf7d0; background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}
.ad-access-card--featured:hover { border-color: #16a34a; box-shadow: 0 6px 20px rgba(22,163,74,0.12); }
.ad-access-card--admin {
  border-color: #e9d5ff; background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
}
.ad-access-card--admin:hover { border-color: #7c3aed; box-shadow: 0 6px 20px rgba(124,58,237,0.10); }

.ad-ac-icon {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ad-ic-blue    { background: #dbeafe; }
.ad-ic-indigo  { background: #e0e7ff; }
.ad-ic-green   { background: #dcfce7; }
.ad-ic-purple  { background: #f3e8ff; }
.ad-ic-emerald { background: #d1fae5; }
.ad-ic-sky     { background: #e0f2fe; }
.ad-ic-amber   { background: #fef3c7; }
.ad-ic-teal    { background: #ccfbf1; }
.ad-ic-rose    { background: #ffe4e6; }
.ad-ic-dark    { background: #1a3a6b; filter: grayscale(0); }

.ad-ac-body { flex: 1; min-width: 0; }
.ad-ac-title { font-size: 14px; font-weight: 600; color: #1a2233; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-ac-desc  { font-size: 12px; color: #6b7a99; line-height: 1.4; }
.ad-ac-arrow { font-size: 18px; color: #c7d2e8; transition: all 0.2s; margin-left: auto; flex-shrink: 0; }
.ad-access-card:hover .ad-ac-arrow { color: #3b6bda; transform: translateX(3px); }
.ad-access-card--admin:hover .ad-ac-arrow { color: #7c3aed; }

/* Footer */
.ad-home-footer {
  margin-top: 28px; padding: 16px 20px;
  background: #f8fafc; border: 0.5px solid #e2e6ed; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #9aa3b8;
}

/* Responsive */
@media (max-width: 900px) {
  .ad-home-hero       { flex-direction: column; }
  .ad-access-grid     { grid-template-columns: repeat(2, 1fr); }
  .ad-access-grid--4  { grid-template-columns: repeat(2, 1fr); }
  .ad-kpi-row         { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ad-access-grid, .ad-access-grid--3, .ad-access-grid--4 { grid-template-columns: 1fr; }
  .ad-kpi-row { grid-template-columns: 1fr 1fr; }
  .ad-hero-greeting { font-size: 20px; }
}



/* ── Hamburger Menu Toggle ── */
.ad-mobile-menu-toggle {
    display: none;
    background: #1a3a6b;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ══════════════════════════════════
   AUTH WIDGETS — Login & Registro
══════════════════════════════════ */
.ad-auth-card {
    background: #fff; border: 0.5px solid #e2e6ed; border-radius: 16px; 
    padding: 40px; margin: 0 auto; max-width: 420px;
    box-shadow: 0 12px 32px rgba(26,58,107,0.06);
}
.ad-auth-header { text-align: center; margin-bottom: 32px; }
.ad-auth-icon { font-size: 48px; margin-bottom: 16px; }
.ad-auth-title { font-size: 24px; font-weight: 700; color: #1a2233; margin-bottom: 8px; }
.ad-auth-subtitle { font-size: 14px; color: #6b7a99; }
.ad-btn-block { width: 100%; text-align: center; display: block; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.ad-btn-primary { background: #1a3a6b; color: #fff; }
.ad-btn-primary:hover { background: #15306b; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,58,107,0.2); }
.ad-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.ad-auth-divider { display: flex; align-items: center; text-align: center; margin: 24px 0; color: #9aa3b8; font-size: 12px; }
.ad-auth-divider::before, .ad-auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid #e2e6ed; }
.ad-auth-divider span { padding: 0 10px; }
.ad-link-accent { color: #3b6bda; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.ad-link-accent:hover { color: #1e40af; text-decoration: underline; }
.ad-form-label { font-size: 13px; font-weight: 600; color: #4a5568; margin-bottom: 6px; display: block; }
.ad-form-control { width: 100%; padding: 12px 16px; border: 1px solid #e2e6ed; border-radius: 8px; font-size: 14px; background: #f8fafc; transition: all 0.2s; outline: none; }
.ad-form-control:focus { border-color: #3b6bda; background: #fff; box-shadow: 0 0 0 3px rgba(59,107,218,0.1); }



/* ── Hamburger Menu Toggle ── */
.ad-mobile-menu-toggle {
    display: none;
    background: #1a3a6b;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ══════════════════════════════════
   SIDEBAR NAV WIDGET
══════════════════════════════════ */
.ad-sidebar {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e6ed;
    padding: 24px 16px;
    min-height: calc(100vh - 80px);
    box-shadow: 0 4px 20px rgba(26,58,107,0.03);
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
}
.ad-sidebar-header {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}
.ad-sidebar-logo {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a6b;
    letter-spacing: -0.5px;
}
.ad-sidebar-menu {
    margin-bottom: 24px;
}
.ad-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9aa3b8;
    margin-bottom: 12px;
    padding-left: 12px;
}
.ad-sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 4px;
}
.ad-sidebar-link:hover {
    background: #f8fafc;
    color: #1a3a6b;
}
.ad-sidebar-link.active {
    background: #eef2ff;
    color: #3b6bda;
    font-weight: 600;
}
.ad-sidebar-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}
.ad-sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}
.ad-logout {
    color: #dc2626;
}
.ad-logout:hover {
    background: #fee2e2;
    color: #b91c1c;
}



/* ── Hamburger Menu Toggle ── */
.ad-mobile-menu-toggle {
    display: none;
    background: #1a3a6b;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ══════════════════════════════════
   100% RESPONSIVE MOBILE OPTIMIZATION
══════════════════════════════════ */
@media (max-width: 1024px) {
    /* Stack elements into single columns on tablets/mobile */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* Elementor columns need to stack */
    .elementor-column {
        width: 100% !important;
    }
    
    /* Hamburger Menu Logic */
    .ad-mobile-menu-toggle {
        display: block;
    }
    .ad-sidebar {
        display: none; /* Hidden by default on mobile, toggled by JS */
        min-height: auto;
        position: static;
        margin-bottom: 24px;
        padding: 16px;
        animation: fadeIn 0.3s ease;
    }
    .ad-sidebar.mobile-open {
        display: block;
    }
    
    /* Ensure sidebar links look like a normal list, not a grid of boxes, much cleaner */
    .ad-sidebar-menu {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .ad-sidebar-link {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        font-size: 14px;
        padding: 12px 16px;
    }
    .ad-sidebar-icon {
        margin-right: 12px;
        margin-bottom: 0;
        font-size: 18px;
    }
    
    /* Hero Buttons Fix ("y pagar acomodalo") */
    .ad-hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    .ad-hero-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* KPI grids 2 columns on mobile */
    .ad-kpi-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* SuperForm Steps Indicator Fix */
    .step-indicator {
        flex-direction: row;
        align-items: center;
        gap: 0;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .step-indicator::before {
        display: block;
    }
    .progress {
        display: block;
    }
    .step {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        text-align: center;
        padding-left: 0;
        flex-shrink: 0;
    }
}

.ad-spa-tab { width: 100%; }


