/* ============================================================
   Portal POS-CORE — Estilos compartidos
   Paleta: #0A0F1E (dark) | #2563EB (blue) | #7C3AED (purple) | #06B6D4 (cyan)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #2563EB;
  --secondary: #7C3AED;
  --accent:    #06B6D4;
  --dark:      #0A0F1E;
  --dark-card: #111827;
  --dark-border: #1F2937;
  --text:      #F9FAFB;
  --text-muted:#9CA3AF;
  --success:   #10B981;
  --warning:   #F59E0B;
  --danger:    #EF4444;
  --admin-accent: #F59E0B;

  --sidebar-w: 240px;
  --topbar-h:  60px;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,.35);
}

/* ── Tema claro ────────────────────────────────────────────── */
/* Sobrescribir variables CSS desde la raíz — afecta inline styles con var() */
html[data-theme="light"] {
  --dark:        #F1F5F9;
  --dark-card:   #FFFFFF;
  --dark-border: #E2E8F0;
  --text:        #0F172A;
  --text-muted:  #64748B;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
}
html[data-theme="light"],
html[data-theme="light"] body {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}
html[data-theme="light"] .sidebar,
html[data-theme="light"] .topbar       { background: #fff !important; border-color: #E2E8F0 !important; }
html[data-theme="light"] .card,
html[data-theme="light"] .cart-card,
html[data-theme="light"] .cart-summary-box,
html[data-theme="light"] .auth-box,
html[data-theme="light"] .pricing-card { background: #fff !important; border-color: #E2E8F0 !important; }
html[data-theme="light"] .nav-item     { color: #475569; }
html[data-theme="light"] .nav-item:hover { background: #F1F5F9 !important; color: #0F172A !important; }
html[data-theme="light"] .sidebar-brand .logo-sub,
html[data-theme="light"] .stat-label,
html[data-theme="light"] .plan-desc,
html[data-theme="light"] .form-label   { color: #64748B !important; }
html[data-theme="light"] .stat-card    { background: #fff !important; border-color: #E2E8F0 !important; }
html[data-theme="light"] .data-table td,
html[data-theme="light"] .data-table th { border-color: #E2E8F0 !important; }
html[data-theme="light"] .data-table tr:hover td { background: #F8FAFC !important; }
html[data-theme="light"] .form-control { background: #F8FAFC !important; color: #0F172A !important; border-color: #CBD5E1 !important; }
html[data-theme="light"] .btn-secondary { background: #E2E8F0 !important; color: #0F172A !important; }
html[data-theme="light"] .flash-success { background: rgba(16,185,129,.08) !important; }
html[data-theme="light"] .flash-error   { background: rgba(239,68,68,.08)  !important; }
html[data-theme="light"] .auth-page     { background: radial-gradient(ellipse at top left,#DBEAFE 0%,#F1F5F9 60%) !important; }
html[data-theme="light"] .auth-divider span { background: #fff !important; }
html[data-theme="light"] .sidebar-footer { border-color: #E2E8F0 !important; }
html[data-theme="light"] .cart-addon-hint { border-color: #CBD5E1 !important; color: #64748B !important; }
html[data-theme="light"] .dark-border        { border-color: #E2E8F0 !important; }
html[data-theme="light"] .license-card       { background: #fff !important; border-color: #E2E8F0 !important; color: #0F172A !important; }
html[data-theme="light"] .license-card.active  { border-left-color: #10B981 !important; }
html[data-theme="light"] .license-card.expired { border-left-color: #EF4444 !important; }
html[data-theme="light"] .license-card.pending { border-left-color: #F59E0B !important; }
html[data-theme="light"] .license-card.none    { border-left-color: #CBD5E1 !important; }
html[data-theme="light"] .nav-section-label  { color: #94A3B8 !important; }
html[data-theme="light"] .user-name          { color: #0F172A !important; }
html[data-theme="light"] .topbar-title       { color: #0F172A !important; }
html[data-theme="light"] .cart-summary-divider { border-color: #E2E8F0 !important; }
html[data-theme="light"] .plan-limits        { color: #64748B !important; }
html[data-theme="light"] table.data-table    { color: #0F172A !important; }

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utility ──────────────────────────────────────────────── */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-success  { background: rgba(16,185,129,.15); color: var(--success); }
.badge-warning  { background: rgba(245,158,11,.15);  color: var(--warning); }
.badge-danger   { background: rgba(239,68,68,.15);   color: var(--danger); }
.badge-muted    { background: rgba(156,163,175,.12); color: var(--text-muted); }
.badge-primary  { background: rgba(37,99,235,.15);   color: var(--primary); }
.badge-accent   { background: rgba(6,182,212,.15);   color: var(--accent); }

/* ── Flash messages ───────────────────────────────────────── */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash-success { background: rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.3); color:#6EE7B7; }
.flash-error   { background: rgba(239,68,68,.12);  border:1px solid rgba(239,68,68,.3);  color:#FCA5A5; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover  { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-secondary{ background: var(--dark-border); color: var(--text); }
.btn-danger   { background: rgba(239,68,68,.18); color: var(--danger); border:1px solid rgba(239,68,68,.3); }
.btn-success  { background: rgba(16,185,129,.18); color: var(--success); border:1px solid rgba(16,185,129,.3); }
.btn-warning  { background: rgba(245,158,11,.18); color: var(--warning); border:1px solid rgba(245,158,11,.3); }
.btn-sm       { padding: 6px 14px; font-size: .82rem; }
.btn-full     { width: 100%; justify-content: center; }
.btn-ghost    { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--dark-border); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* ── Stat cards ───────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.stat-value.blue   { color: var(--primary); }
.stat-value.green  { color: var(--success); }
.stat-value.yellow { color: var(--warning); }
.stat-value.red    { color: var(--danger);  }

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: .92rem;
  font-family: inherit;
  transition: border-color .15s;
  outline: none;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { min-height: 120px; resize: vertical; }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.data-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--dark-border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--dark-border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.025); }

/* ── Portal layout ────────────────────────────────────────── */
.portal-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--dark-card);
  border-right: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .25s;
}
.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--dark-border);
}
.sidebar-brand .logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-brand .logo-sub {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.sidebar-nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
}
.nav-section-label {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 12px 8px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--dark-border); color: var(--text); text-decoration: none; }
.nav-item.active { background: rgba(37,99,235,.15); color: var(--primary); }
.nav-item.active .nav-icon { color: var(--primary); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--dark-border);
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
}
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.user-name  { font-size: .85rem; font-weight: 600; line-height: 1.2; }
.user-role  { font-size: .7rem; color: var(--text-muted); }

/* Main area */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;        /* fix flexbox overflow */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
.topbar {
  height: var(--topbar-h);
  background: var(--dark-card);
  border-bottom: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
}
.page-content {
  flex: 1;
  padding: 28px;
  max-width: 1100px;
  width: 100%;
}

/* Admin accent override */
.admin-sidebar .nav-item.active { background: rgba(245,158,11,.12); color: var(--admin-accent); }
.admin-sidebar .nav-item.active .nav-icon { color: var(--admin-accent); }
.admin-sidebar .sidebar-brand .logo-text {
  background: linear-gradient(135deg, var(--admin-accent), #F97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Botón Google ─────────────────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  background: #fff;
  color: #1F2937;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  margin-bottom: 4px;
}
.btn-google:hover {
  background: #F9FAFB;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  text-decoration: none;
  color: #1F2937;
}

/* ── Auth layout ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at top left, #1E3A5F 0%, var(--dark) 60%);
}
.auth-box {
  width: 100%;
  max-width: 440px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.auth-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.auth-logo-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.auth-logo .logo-big {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-logo .logo-portal {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
  margin: 18px 0;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  border-top: 1px solid var(--dark-border);
}
.auth-divider span { background: var(--dark-card); padding: 0 10px; position: relative; }
.auth-footer-link {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 22px;
}

/* ── Pricing cards ────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.pricing-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.pricing-card:hover { border-color: rgba(37,99,235,.4); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(37,99,235,.07) 0%, var(--dark-card) 60%);
}
.pricing-card.current-plan { border-color: var(--success); }

.plan-badge-featured {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: 3px 14px; border-radius: 999px;
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.plan-name  { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.plan-desc  { font-size: .83rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }
.plan-price { margin-bottom: 20px; }
.plan-price .amount {
  font-family: 'Sora', sans-serif;
  font-size: 2.1rem; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.plan-price .period { font-size: .82rem; color: var(--text-muted); }

.plan-features { list-style: none; flex: 1; margin-bottom: 22px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .85rem; padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features .check { color: var(--success); flex-shrink: 0; margin-top: 1px; }

.plan-limits {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.plan-limits span { display: flex; align-items: center; gap: 4px; }

/* ── License status card ──────────────────────────────────── */
.license-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--dark-border);
}
.license-card.active   { border-left-color: var(--success); }
.license-card.expired  { border-left-color: var(--danger); }
.license-card.pending  { border-left-color: var(--warning); }
.license-card.none     { border-left-color: var(--text-muted); }

/* ── Cart layout ──────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 768px) {
  .cart-layout { grid-template-columns: 1fr 360px; }
}

.cart-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}
.cart-card:last-child { margin-bottom: 0; }

.cart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cart-card-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.cart-item-name  { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.cart-item-meta  { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.cart-item-price { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--accent); }
.cart-item-price span { font-size: .75rem; font-weight: 400; color: var(--text-muted); }

.btn-text-danger {
  background: none; border: none; color: var(--danger);
  font-size: .8rem; cursor: pointer; padding: 0;
  font-family: inherit; font-weight: 600;
}
.btn-text-danger:hover { text-decoration: underline; }

.cart-addon-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border: 1px dashed var(--dark-border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .87rem;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.cart-addon-hint:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.cart-summary-box {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 80px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  padding: 7px 0;
  color: var(--text-muted);
}
.cart-summary-row span:last-child { color: var(--text); font-weight: 500; }
.cart-summary-divider { border-top: 1px solid var(--dark-border); margin: 10px 0; }
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
}

/* Botón sticky móvil en checkout */
.checkout-sticky-btn {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 14px 16px;
  z-index: 200;
}
.checkout-btn-desktop { display: block; }

@media (max-width: 767px) {
  .checkout-sticky-btn   { display: block; }
  .checkout-btn-desktop  { display: none; }
  .page-content          { padding-bottom: 130px; }
}

/* ── Admin responsive grid utilities ──────────────────────── */
.admin-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.admin-2col-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.admin-2col-asym {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}
.col-span-2 { grid-column: 1 / -1; }

/* Ocultar columnas secundarias en móvil */
.hide-mobile  { }
.hide-tablet  { }

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

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

/* Laptop pequeño / tablet horizontal (< 1024px)
   - Ocultar columnas poco importantes en tablas                */
@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}

/* Tablet (< 960px): grids de 2 cols colapsan a 1 col          */
@media (max-width: 960px) {
  .admin-2col,
  .admin-2col-asym {
    grid-template-columns: 1fr;
  }
  .col-span-2 { grid-column: 1; }
  .page-content { max-width: 100%; }
}

/* Móvil (< 768px)                                             */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); }
  .main-area    { margin-left: 0; }

  .page-content {
    padding: 14px;
    max-width: 100%;
  }

  .stat-grid       { grid-template-columns: 1fr 1fr; }
  .pricing-grid    { grid-template-columns: 1fr; }
  .auth-box        { padding: 28px 20px; }
  .admin-2col-form { grid-template-columns: 1fr; }

  .hide-mobile { display: none !important; }

  .topbar { padding: 0 14px; }

  /* Modales: deslizar desde abajo en móvil */
  [id$="Modal"] > div,
  [id$="modal"] > div {
    max-width: 100% !important;
    margin: 0;
    border-radius: 12px 12px 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }
  [id$="Modal"],
  [id$="modal"] {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  /* Filtros: apilar en columna */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar .form-control,
  .filter-bar input,
  .filter-bar select {
    max-width: 100% !important;
    width: 100%;
  }
}

/* Móvil pequeño (< 480px)                                     */
@media (max-width: 480px) {
  .stat-grid    { grid-template-columns: 1fr; }
  .page-content { padding: 10px; }
}
