/* ============================================
   CAMBOTTRAFFIC - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;800;900&display=swap');

:root {
  --primary: #0a1d3d;
  --primary-light: #0e2a56;
  --accent: #1b8ef8;
  --accent-hover: #0070d8;
  --success: #00c875;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #00d4ff;
  --text: #e8f0fe;
  --text-muted: #7aa3c8;
  --text-light: #4a6d8c;
  --bg: #071428;
  --bg-card: rgba(10,29,61,.82);
  --border: rgba(56,139,253,.22);
  --shadow: 0 4px 20px rgba(0,0,0,.45);
  --shadow-md: 0 8px 32px rgba(0,0,0,.55);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.65);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Exo 2', 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);
  background-image: url('../img/fondo.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  background: rgba(5,13,26,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  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 16px rgba(0,0,0,.5);
  border-bottom: 1px solid rgba(56,139,253,.18);
}

.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(27,142,248,.18);
  border: 1px solid rgba(56,139,253,.35);
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  color: #00d4ff;
}

.membership-badge {
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.membership-trial   { background: rgba(100,116,139,.25); color: #94a3b8; border: 1px solid rgba(100,116,139,.3); }
.membership-general { background: rgba(27,142,248,.2); color: #00d4ff; border: 1px solid rgba(27,142,248,.35); }
.membership-vip     { background: linear-gradient(135deg,rgba(245,158,11,.25),rgba(217,119,6,.18)); color: #fbbf24; border: 1px solid rgba(245,158,11,.4); }

.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: rgba(10,29,61,.96);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  overflow: hidden;
  z-index: 200;
  border: 1px solid rgba(56,139,253,.25);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: .6rem 1rem;
  color: var(--text-muted) !important;
  font-size: .875rem;
  text-decoration: none;
  transition: background .12s;
}
.dropdown-menu a:hover { background: rgba(27,142,248,.15); color: #00d4ff !important; }

/* ── BANNERS ─────────────────────────────── */
.system-banner {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 2rem;
  font-size: .875rem;
}
.banner-info    { background: rgba(27,142,248,.12); color: #00d4ff; border-bottom: 1px solid rgba(27,142,248,.2); }
.banner-warning { background: rgba(245,158,11,.12); color: #fbbf24; border-bottom: 1px solid rgba(245,158,11,.2); }
.banner-danger  { background: rgba(239,68,68,.12);  color: #fca5a5; border-bottom: 1px solid rgba(239,68,68,.2); }
.banner-success { background: rgba(0,200,117,.12);  color: #34d399; border-bottom: 1px solid rgba(0,200,117,.2); }
.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: 900;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(27,142,248,.5);
}

/* ── CARDS ────────────────────────────────── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  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: #00d4ff;
}

/* ── 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: linear-gradient(135deg, var(--accent), #0060cc); color: white; border: 1px solid rgba(27,142,248,.4); box-shadow: 0 0 16px rgba(27,142,248,.3); }
.btn-primary:hover  { background: linear-gradient(135deg, #2a9fff, var(--accent)); box-shadow: 0 0 26px rgba(27,142,248,.5); transform: translateY(-1px); }
.btn-success  { background: linear-gradient(135deg, #009950, #006630); color: white; }
.btn-success:hover  { background: linear-gradient(135deg, #00c875, #009050); transform: translateY(-1px); }
.btn-danger   { background: linear-gradient(135deg, #c02020, #900f0f); color: white; }
.btn-danger:hover   { background: linear-gradient(135deg, #e03030, #b01818); }
.btn-warning  { background: var(--warning); color: white; }
.btn-secondary{ background: rgba(27,142,248,.08); color: var(--text-muted); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(27,142,248,.16); color: var(--text); border-color: var(--accent); }
.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: 1px solid rgba(56,139,253,.3);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: rgba(5,13,26,.65);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control::placeholder { color: var(--text-light); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27,142,248,.15);
}
.form-control.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}
.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: rgba(0,200,117,.1);  color: #34d399; border-color: var(--success); }
.alert-danger  { background: rgba(239,68,68,.1);  color: #fca5a5; border-color: var(--danger);  }
.alert-info    { background: rgba(27,142,248,.1);  color: #00d4ff; border-color: var(--accent);  }
.alert-warning { background: rgba(245,158,11,.1);  color: #fbbf24; border-color: var(--warning); }

/* ── TABLES ───────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
thead tr { background: rgba(27,142,248,.15); color: white; }
th {
  padding: .65rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #00d4ff;
}
td { padding: .6rem 1rem; border-bottom: 1px solid rgba(56,139,253,.12); color: var(--text); }
tbody tr:hover { background: rgba(27,142,248,.07); }
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: rgba(0,200,117,.15);  color: #34d399; border: 1px solid rgba(0,200,117,.3); }
.badge-expired { background: rgba(239,68,68,.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.badge-pending { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.badge-stopped { background: rgba(100,116,139,.12);color: #94a3b8; border: 1px solid rgba(100,116,139,.2); }
.badge-trial   { background: rgba(139,92,246,.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,.3); }
.badge-vip     { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.badge-general { background: rgba(27,142,248,.15);  color: #00d4ff; border: 1px solid rgba(27,142,248,.3); }
.badge-running  { background: rgba(27,142,248,.15); color: #00d4ff; border: 1px solid rgba(27,142,248,.3); }
.badge-success  { background: rgba(0,200,117,.15);  color: #34d399; border: 1px solid rgba(0,200,117,.3); }

/* ── 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);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  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 .2s, transform .2s, border-color .2s;
}
.platform-card:hover { box-shadow: var(--shadow-md), 0 0 24px rgba(27,142,248,.2); transform: translateY(-2px); }
.platform-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.days-selector { display: flex; gap: .4rem; margin-bottom: .75rem; justify-content: center; }
.days-btn {
  padding: .28rem .7rem;
  border: 1px solid rgba(56,139,253,.3);
  border-radius: var(--radius-sm);
  background: rgba(5,13,26,.5);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--text-muted);
  transition: all .12s;
}
.days-btn.active { border-color: var(--accent); background: rgba(27,142,248,.25); color: #00d4ff; box-shadow: 0 0 8px rgba(27,142,248,.25); }

.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: rgba(56,139,253,.2);
  outline: none;
  cursor: pointer;
}
.visitors-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, var(--accent));
  cursor: pointer;
  box-shadow: 0 0 10px rgba(27,142,248,.5);
}
.visitors-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, var(--accent));
  cursor: pointer;
  border: none;
}

.price-display {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin: .75rem 0 1rem;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(27,142,248,.5);
}

/* ── SERVICE CARDS ───────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  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 .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow-md), 0 0 20px rgba(27,142,248,.2); transform: translateY(-2px); }
.service-card h4 {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: .2rem;
  color: var(--text);
}
.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-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .15rem;
}
.service-field .field-value { font-weight: 700; font-size: .9rem; color: var(--text); }

/* ── AUTH ────────────────────────────────── */
.auth-wrapper {
  min-height: calc(100vh - 54px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: transparent;
}
.auth-card {
  background: rgba(10,29,61,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(27,142,248,.1);
  padding: 2.25rem;
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(56,139,253,.28);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo h1 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(27,142,248,.4);
}
.auth-logo p { color: var(--text-muted); font-size: .875rem; margin-top: .25rem; }

/* ── HERO ────────────────────────────────── */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  background: rgba(5,13,26,.45);
  backdrop-filter: blur(4px);
  color: white;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(56,139,253,.15);
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(27,142,248,.5);
}
.hero p { font-size: 1rem; color: var(--text-muted); 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);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 20px rgba(27,142,248,.15); }
.step-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(27,142,248,.3), rgba(0,212,255,.15));
  border: 1px solid rgba(56,139,253,.3);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .85rem;
  font-size: 1.4rem;
  box-shadow: 0 0 14px rgba(27,142,248,.2);
}
.step-card h3 { font-weight: 700; font-size: .95rem; margin-bottom: .4rem; color: #00d4ff; }
.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, rgba(14,38,80,.9), rgba(27,142,248,.25));
  color: white;
  border: 1px solid rgba(56,139,253,.35);
  border-radius: 10px;
  padding: .75rem 1.5rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow);
}
.recharge-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 0 20px rgba(27,142,248,.3); border-color: var(--accent); }

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(27,142,248,.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ── INFO BOX ────────────────────────────── */
.info-box {
  background: rgba(27,142,248,.08);
  border: 1px solid rgba(56,139,253,.25);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
}
.info-box h4 { font-weight: 700; color: #00d4ff; margin-bottom: .4rem; }
.info-box ul  { padding-left: 1.25rem; }
.info-box li  { margin-bottom: .3rem; color: var(--text-muted); }

/* ── FOOTER ───────────────────────────────── */
.footer {
  background: rgba(5,13,26,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  padding: 1rem 2rem;
  font-size: .82rem;
  margin-top: auto;
  border-top: 1px solid rgba(56,139,253,.15);
}
.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,.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: rgba(10,29,61,.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56,139,253,.28);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  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: #00d4ff; }
.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: rgba(5,13,26,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  max-height: calc(100vh - 54px);
  overflow-y: auto;
  border-top: 1px solid rgba(56,139,253,.18);
}
.nav-mobile.open { display: flex; }
.nav-mobile-user {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(56,139,253,.15);
}
.nav-mobile a {
  display: block;
  padding: .8rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(56,139,253,.08);
  transition: background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile a:hover,
.nav-mobile a:active { background: rgba(27,142,248,.12); color: #00d4ff; }

/* 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; }

/* ── OCULTAR ESTRELLA del fondo ───────────── */
/* El nuevo fondo fondos.png no tiene estrella, no se necesita */
