/* ============================================
   TRAFICO WEBCAM - Main Stylesheet (Arial clean)
   ============================================ */

:root {
  --primary: #1a3a6b;
  --primary-light: #1e4d9b;
  --accent: #2e7de0;
  --accent-hover: #1a65cc;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius: 10px;
  --radius-sm: 6px;
  --font: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  background: var(--primary);
  color: white;
  padding: 0 2rem;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  color: white;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar-brand svg { width: 26px; height: 26px; flex-shrink: 0; }

.navbar-info {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.balance-badge {
  background: rgba(255,255,255,.15);
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
}

.membership-badge {
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.membership-trial   { background: #64748b; color: white; }
.membership-general { background: #2563eb; color: white; }
.membership-vip     { background: linear-gradient(135deg,#f59e0b,#d97706); color: #1a1a1a; }

.navbar-links {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.navbar-info + .navbar-links { margin-left: .5rem; }

.navbar-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 0 .85rem;
  font-size: .875rem;
  font-weight: 600;
  transition: color .15s;
  height: 54px;
  display: inline-flex;
  align-items: center;
}
.navbar-links a:hover,
.navbar-links a.active-page { color: white; }
.navbar-links a.active-page { border-bottom: 2px solid rgba(255,255,255,.5); }

.btn-primary-sm {
  background: var(--accent) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
  padding: .35rem .9rem !important;
  font-weight: 700 !important;
  font-size: .82rem !important;
  margin-left: .25rem;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: background .15s !important;
}
.btn-primary-sm:hover { background: var(--accent-hover) !important; }

/* Dropdown */
.dropdown { position: relative; display: flex; align-items: center; }
.dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  padding: 0 .85rem;
  font-size: .875rem;
  font-family: var(--font);
  font-weight: 600;
  height: 54px;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.dropdown-toggle:hover { color: white; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  overflow: hidden;
  z-index: 200;
  border: 1px solid var(--border);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: .6rem 1rem;
  color: var(--text) !important;
  font-size: .875rem;
  text-decoration: none;
  transition: background .12s;
}
.dropdown-menu a:hover { background: var(--bg); }

/* ── BANNERS ─────────────────────────────── */
.system-banner {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 2rem;
  font-size: .875rem;
}
.banner-info    { background: #dbeafe; color: #1e40af; }
.banner-warning { background: #fef3c7; color: #92400e; }
.banner-danger  { background: #fee2e2; color: #991b1b; }
.banner-success { background: #dcfce7; color: #166534; }
.banner-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: .5;
  line-height: 1;
}
.banner-close:hover { opacity: 1; }

/* ── MAIN CONTENT ────────────────────────── */
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ── PAGE TITLE ──────────────────────────── */
.page-title {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: .03em;
}

/* ── CARDS ────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.3rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary  { background: var(--accent); color: white; }
.btn-primary:hover  { background: var(--accent-hover); }
.btn-success  { background: var(--success); color: white; }
.btn-success:hover  { background: #15803d; }
.btn-danger   { background: var(--danger);  color: white; }
.btn-danger:hover   { background: #b91c1c; }
.btn-warning  { background: var(--warning); color: white; }
.btn-secondary{ background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-full { width: 100%; }
.btn-sm   { padding: .3rem .8rem; font-size: .8rem; }

/* ── FORMS ────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-control {
  width: 100%;
  padding: .55rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: white;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,125,224,.12);
}
.form-control.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.form-hint  { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }
.form-error { font-size: .78rem; color: var(--danger);     margin-top: .2rem; }

/* ── ALERTS ───────────────────────────────── */
.alert {
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: var(--success); }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: var(--danger);  }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: var(--accent);  }
.alert-warning { background: #fffbeb; color: #92400e; border-color: var(--warning); }

/* ── TABLES ───────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
thead tr { background: var(--primary); color: white; }
th {
  padding: .65rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
td { padding: .6rem 1rem; border-bottom: 1px solid var(--border); }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: none; }

/* ── BADGES ───────────────────────────────── */
.badge {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-active  { background: #dcfce7; color: #166534; }
.badge-expired { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-stopped { background: #f1f5f9; color: #64748b; }
.badge-trial   { background: #ede9fe; color: #5b21b6; }
.badge-vip     { background: #fef3c7; color: #92400e; }
.badge-general { background: #dbeafe; color: #1e40af; }
.badge-running  { background: #fef3c7; color: #92400e; }
.badge-success  { background: #dcfce7; color: #166534; }

/* ── GRIDS ────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }

@media (max-width: 900px) {
  .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .main-content { padding: 1rem; }
  .navbar { padding: 0 1rem; }
}
@media (max-width: 700px) {
  th, td { padding: .4rem .5rem; }
  table { font-size: .78rem; }
}

/* ── PLATFORM CARDS ──────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1.25rem;
}
.platform-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  transition: box-shadow .15s;
}
.platform-card:hover { box-shadow: var(--shadow-md); }
.platform-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.days-selector { display: flex; gap: .4rem; margin-bottom: .75rem; justify-content: center; }
.days-btn {
  padding: .28rem .7rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font);
  transition: all .12s;
}
.days-btn.active { border-color: var(--accent); background: var(--accent); color: white; }

.slider-wrap { margin: .85rem 0; }
.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

.visitors-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.visitors-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.visitors-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.price-display {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin: .75rem 0 1rem;
  line-height: 1.2;
}

/* ── SERVICE CARDS ───────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  transition: box-shadow .15s;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .2rem;
}
.service-expires { font-size: .78rem; color: var(--text-muted); margin-bottom: .7rem; }
.service-field { margin-bottom: .55rem; }
.service-field label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .15rem;
}
.service-field .field-value { font-weight: 700; font-size: .9rem; }

/* ── AUTH ────────────────────────────────── */
.auth-wrapper {
  min-height: calc(100vh - 54px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #e8f0fe 0%, #f1f5f9 100%);
}
.auth-card {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 440px;
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .01em;
}
.auth-logo p { color: var(--text-muted); font-size: .875rem; margin-top: .25rem; }

/* ── HERO ────────────────────────────────── */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: .75rem;
  letter-spacing: .04em;
}
.hero p { font-size: 1rem; opacity: .9; max-width: 580px; margin: 0 auto 1.5rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.step-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .85rem;
  font-size: 1.4rem;
}
.step-card h3 { font-weight: 700; font-size: .95rem; margin-bottom: .4rem; color: var(--primary); }
.step-card p  { font-size: .84rem; color: var(--text-muted); }

/* ── RECHARGE ────────────────────────────── */
.recharge-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.recharge-btn {
  background: linear-gradient(135deg, #1a3a7a, #2563eb);
  color: white;
  border: none;
  border-radius: 10px;
  padding: .75rem 1.5rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  box-shadow: var(--shadow-md);
}
.recharge-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

/* ── INFO BOX ────────────────────────────── */
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
}
.info-box h4 { font-weight: 700; color: #1e40af; margin-bottom: .4rem; }
.info-box ul  { padding-left: 1.25rem; }
.info-box li  { margin-bottom: .3rem; color: var(--text); }

/* ── FOOTER ───────────────────────────────── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 1rem 2rem;
  font-size: .82rem;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-social { display: flex; align-items: center; gap: .5rem; }
.social-link { color: rgba(255,255,255,.75); transition: color .15s; }
.social-link:hover { color: white; }

/* ── WHATSAPP ────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #25d366;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,.45);
  z-index: 999;
  transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ── ADMIN ───────────────────────────────── */
.admin-body { font-family: var(--font); background: #0f172a; color: var(--text); min-height: 100vh; }

.admin-sidebar {
  width: 220px;
  background: #1e293b;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 50;
  padding: 1.25rem 0;
}
.admin-sidebar .brand {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-weight: 700;
  font-size: .95rem;
  color: white;
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: .01em;
}
.admin-nav { padding: .75rem 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.25rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: all .12s;
}
.admin-nav a:hover,
.admin-nav a.active { background: rgba(255,255,255,.07); color: white; }
.admin-nav a.active  { border-left: 3px solid var(--accent); padding-left: calc(1.25rem - 3px); }

.admin-main { margin-left: 220px; min-height: 100vh; background: var(--bg); }
.admin-topbar {
  background: white;
  padding: .75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
}
.admin-topbar h2 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.admin-content { padding: 1.75rem; }

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: transform .12s, box-shadow .12s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: .73rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* ── MODAL ───────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: fadeUp .18s ease;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:none; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}
.modal-header h3 { font-weight: 700; color: var(--primary); }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); }

/* ── COUNTDOWN ───────────────────────────── */
[data-expires] { font-variant-numeric: tabular-nums; }

/* ── MISC ────────────────────────────────── */
.text-center    { text-align: center; }
.text-muted     { color: var(--text-muted); }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.flex           { display: flex; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.fw-bold        { font-weight: 700; }
.w-full         { width: 100%; }

/* ── ADMIN HAMBURGER MENU ─────────────────── */
.admin-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  color: var(--primary);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.admin-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all .2s;
}
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 49;
}
.admin-overlay.open { display: block; }

/* ── NAVBAR HAMBURGER (USUARIO) ──────────── */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem .5rem;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.navbar-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: all .2s;
}
.navbar-collapse {
  display: flex;
  align-items: center;
  flex: 1;
  gap: .5rem;
}


/* ══════════════════════════════════════════
   MENÚ MÓVIL (panel fixed separado del navbar)
══════════════════════════════════════════ */
.nav-mobile {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 54px; left: 0; right: 0;
  z-index: 150;
  background: var(--primary);
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  max-height: calc(100vh - 54px);
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,.1);
}
.nav-mobile.open { display: flex; }
.nav-mobile-user {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.nav-mobile a {
  display: block;
  padding: .8rem 1.25rem;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile a:hover,
.nav-mobile a:active { background: rgba(255,255,255,.1); color: white; }

/* Overlay para cerrar al tocar fuera */
.nav-mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 149;
  background: transparent;
}
.nav-mobile-overlay.open { display: block; }

/* ── RESPONSIVE TABLET (max 900px) ──────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }

  /* Admin sidebar más estrecha */
  .admin-sidebar { width: 200px; }
  .admin-main    { margin-left: 200px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE MÓVIL ≤768px
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ─ NAVBAR: ocultar links, mostrar toggler ─ */
  .navbar { height: 54px; padding: 0 1rem; position: sticky; }
  .navbar-info  { display: none; }
  .navbar-links { display: none; }
  .navbar-toggler { display: flex; margin-left: auto; }

  /* ─ MENÚ MÓVIL ─ */
  /* Admin settings: una columna */
  .admin-content .grid-2 { grid-template-columns: 1fr !important; }

  /* ─ CONTENIDO ─ */
  .main-content { padding: 1rem; }
  .hero { padding: 1.75rem 1rem 1.5rem; margin-bottom: 1.25rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero p  { font-size: .875rem; margin-bottom: 1rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr) !important; }
  .platform-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr !important; }

  .auth-wrapper { padding: 1rem; }
  .auth-card { padding: 1.5rem 1.25rem; }

  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { padding: .45rem .6rem; font-size: .8rem; white-space: nowrap; }

  /* ─ ADMIN SIDEBAR ─ */
  .admin-menu-btn { display: flex; }
  .admin-sidebar { width: 240px; transform: translateX(-100%); transition: transform .25s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-topbar { padding: .6rem 1rem; gap: .5rem; }
  .admin-content { padding: 1rem; }
  .monitor-stats { grid-template-columns: repeat(2,1fr) !important; }

  .page-title { font-size: 1.3rem; }
  .system-banner { padding: .6rem 1rem; font-size: .82rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* ── RESPONSIVE MÓVIL PEQUEÑO (max 480px) ─ */
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2,1fr) !important; }
  .monitor-stats { grid-template-columns: repeat(2,1fr) !important; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .hero h1 { font-size: 1.3rem; }
  th, td { padding: .35rem .45rem; font-size: .75rem; }
  .page-title { font-size: 1.15rem; }
  .card { padding: 1rem; }
  .platform-card, .service-card { padding: 1rem; }
}

/* ── VISITORS LIST ────────────────────────── */
.visitors-list { max-height: 120px; overflow-y: auto; }
