/* ==========================================
   AlfaSoft Project - CSS Principal
   ========================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --font: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px 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);
  --navbar-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- LUCIDE ICONS ---- */
[data-lucide] { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.navbar [data-lucide], .btn [data-lucide], label [data-lucide],
.form-hint [data-lucide], .confirm-sms-notice [data-lucide],
.footer ul li [data-lucide] { width: 16px; height: 16px; stroke-width: 2; }
.hero-badge [data-lucide] { width: 14px; height: 14px; }
.badge-item [data-lucide] { width: 20px; height: 20px; }
.service-icon [data-lucide] { width: 32px; height: 32px; color: var(--primary); }
.step-num [data-lucide] { width: 24px; height: 24px; color: var(--white); }
.stat-icon [data-lucide] { width: 28px; height: 28px; color: var(--primary); }
.brand-icon-svg { width: 22px; height: 22px; color: var(--accent); }
.footer-brand [data-lucide] { width: 20px; height: 20px; color: var(--accent); }
.sidebar-nav [data-lucide] { width: 18px; height: 18px; margin-right: 8px; }
.sidebar-brand [data-lucide] { width: 20px; height: 20px; color: var(--accent); }
.card-header [data-lucide] { width: 18px; height: 18px; color: var(--primary); }
.back-link [data-lucide] { width: 16px; height: 16px; }
.detail-label [data-lucide] { width: 14px; height: 14px; color: var(--gray-500); }
.success-icon [data-lucide] { width: 56px; height: 56px; color: var(--white); }
.status-icon-big [data-lucide] { width: 56px; height: 56px; color: var(--primary); }
.error-icon [data-lucide] { width: 72px; height: 72px; color: var(--gray-300); display: block; margin: 0 auto 1rem; }
.empty-state [data-lucide] { width: 40px; height: 40px; color: var(--gray-300); display: block; margin: 0 auto .75rem; }
.form-section h3 [data-lucide] { width: 18px; height: 18px; color: var(--primary); }
.alert [data-lucide] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.bg-light { background: var(--gray-100); }
.text-center { text-align: center; }
.text-accent { color: var(--primary); }
.mt-auto { margin-top: auto; }
.mt-2 { margin-top: 1.5rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: all .2s; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  height: var(--navbar-h);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 1.25rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.2rem; font-weight: 700; color: var(--white); text-decoration: none;
}
.brand-accent { color: var(--accent); }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.navbar-links a { color: var(--gray-300); font-weight: 500; font-size: .95rem; transition: color .2s; }
.navbar-links a:hover { color: var(--white); text-decoration: none; }

/* Hamburger button */
.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; color: var(--white); border-radius: 6px;
  transition: background .2s;
}
.navbar-toggle:hover { background: rgba(255,255,255,.1); }
.navbar-toggle [data-lucide] { width: 24px; height: 24px; color: var(--white); }

/* Mobile menu */
.navbar-mobile {
  display: none; position: fixed; top: var(--navbar-h); left: 0; right: 0;
  background: var(--dark); border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 1.25rem 1.5rem; z-index: 199;
  flex-direction: column; gap: .25rem;
  box-shadow: 0 8px 16px rgba(0,0,0,.3);
}
.navbar-mobile.open { display: flex; }
.navbar-mobile a {
  display: flex; align-items: center; gap: .75rem;
  color: var(--gray-300); font-weight: 500; padding: .85rem 1rem;
  border-radius: var(--radius-sm); transition: all .2s; text-decoration: none;
  font-size: 1rem;
}
.navbar-mobile a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.navbar-mobile .btn { margin-top: .5rem; width: 100%; justify-content: center; }

/* ==========================================
   HERO
   ========================================== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a8a 100%);
  color: var(--white); padding: 5rem 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.1); padding: .4rem 1rem;
  border-radius: 50px; font-size: .85rem; margin-bottom: 1.2rem;
}
.hero h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.2rem; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge-list { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.badge-item {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: .9rem 1rem; border-radius: var(--radius);
  font-weight: 500; font-size: .9rem;
  display: flex; align-items: center; gap: .6rem;
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header { background: var(--dark); color: var(--white); padding: 2.5rem 0; }
.page-header h1 { font-size: 2rem; margin-bottom: .4rem; }
.page-header p { color: rgba(255,255,255,.7); font-size: .95rem; }
.bg-success { background: linear-gradient(135deg, #065f46, #10b981); }
.success-icon { margin-bottom: 1rem; }

/* ==========================================
   SECTIONS
   ========================================== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.section-header p { color: var(--gray-500); font-size: 1rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: all .2s; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; cursor: pointer;
}
.service-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
  border-color: var(--primary); text-decoration: none;
}
.service-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .25rem;
}
.service-icon-wrap {
  width: 42px; height: 42px; background: var(--primary-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-icon-wrap [data-lucide] { width: 22px; height: 22px; color: var(--primary); }
.service-duration {
  font-size: .75rem; color: var(--gray-500); display: flex;
  align-items: center; gap: .25rem; white-space: nowrap;
}
.service-duration [data-lucide] { width: 12px; height: 12px; }
.service-card h3 { font-size: .95rem; font-weight: 600; color: var(--dark); }
.service-card p { color: var(--gray-500); font-size: .82rem; line-height: 1.5; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 1.5rem 1rem; }
.step-num {
  width: 3.5rem; height: 3.5rem; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { font-weight: 600; margin-bottom: .4rem; font-size: 1rem; }
.step p { color: var(--gray-500); font-size: .9rem; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}
.cta-section h2 { font-size: 1.9rem; margin-bottom: .75rem; }
.cta-section p { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.cta-section .btn-primary { background: var(--white); color: var(--primary); }
.cta-section .btn-primary:hover { background: var(--gray-100); }

/* ==========================================
   FORMS
   ========================================== */
.form-container { max-width: 800px; margin: 0 auto; }
.form-container-sm { max-width: 480px; margin: 0 auto; }
.form-section {
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem;
}
.form-section h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem;
  color: var(--dark); display: flex; align-items: center; gap: .5rem;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full-width { grid-column: 1 / -1; }
label {
  font-weight: 500; font-size: .88rem; color: var(--gray-700);
  display: flex; align-items: center; gap: .35rem;
}
input, select, textarea {
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  padding: .7rem 1rem; font-size: 1rem; font-family: var(--font);
  transition: border-color .2s, box-shadow .2s; background: var(--white); width: 100%;
  -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-hint { font-size: .8rem; color: var(--gray-500); display: flex; align-items: center; gap: .3rem; }
.form-actions { text-align: center; margin-top: 1.5rem; }
.form-notice {
  color: var(--gray-500); font-size: .88rem; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}

/* ==========================================
   ALERTS
   ========================================== */
.alert {
  padding: 1rem 1.2rem; border-radius: var(--radius);
  margin-bottom: 1.5rem; font-size: .9rem;
  display: flex; align-items: flex-start; gap: .6rem;
}
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.alert > div { flex: 1; }
.alert ul { margin-top: .4rem; padding-left: 1.2rem; }

/* ==========================================
   BADGES
   ========================================== */
.badge { display: inline-block; padding: .25rem .75rem; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.badge-lg { font-size: .95rem; padding: .5rem 1.2rem; }
.badge-pendiente { background: #fef3c7; color: #92400e; }
.badge-confirmada { background: #dbeafe; color: #1e40af; }
.badge-proceso, .badge-en-proceso { background: #e0e7ff; color: #3730a3; }
.badge-espera, .badge-esperando-piezas { background: #fce7f3; color: #9d174d; }
.badge-completada { background: #d1fae5; color: #065f46; }
.badge-cancelada { background: #fee2e2; color: #991b1b; }

/* ==========================================
   CONFIRM / STATUS CARDS
   ========================================== */
.confirm-card, .status-card {
  max-width: 680px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg);
}
.confirm-code {
  text-align: center; background: var(--gray-100);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.confirm-code span { display: block; font-size: .85rem; color: var(--gray-500); margin-bottom: .5rem; }
.confirm-code strong { display: block; font-size: 1.8rem; font-weight: 700; letter-spacing: 4px; color: var(--dark); }
.confirm-code small { display: block; font-size: .78rem; color: var(--gray-500); margin-top: .4rem; }
.confirm-details { display: flex; flex-direction: column; gap: 0; margin: 1.25rem 0; }
.detail-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: .65rem 0; border-bottom: 1px solid var(--gray-100);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  min-width: 140px; font-weight: 600; font-size: .85rem;
  color: var(--gray-500); display: flex; align-items: center; gap: .35rem;
  padding-top: .1rem;
}
.confirm-actions {
  display: flex; gap: .75rem; justify-content: center;
  margin-top: 1.5rem; flex-wrap: wrap;
}
.confirm-sms-notice {
  text-align: center; margin-top: 1.25rem; padding: .85rem;
  background: var(--gray-100); border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--gray-500);
  display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap;
}

/* Status */
.status-main { text-align: center; padding: 1.5rem 0 1rem; }
.status-icon-big { margin-bottom: .75rem; }
.status-label-big { margin-bottom: 1.25rem; }

/* Timeline */
.timeline { margin-top: 1.5rem; }
.timeline h3 { font-size: .95rem; font-weight: 600; margin-bottom: 1rem; color: var(--dark); }
.timeline-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.timeline-dot {
  width: 12px; height: 12px; min-width: 12px; border-radius: 50%;
  background: var(--primary); margin-top: 5px;
}
.timeline-content strong { display: block; font-size: .9rem; margin-bottom: .2rem; }
.timeline-content p { font-size: .88rem; color: var(--gray-500); margin: .25rem 0; }
.timeline-content small { font-size: .78rem; color: var(--gray-500); }

/* ==========================================
   FOOTER
   ========================================== */
.footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 3rem 0 1.5rem; }
.footer-brand {
  font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .4rem;
}
.footer-brand span { color: var(--accent); }
.footer p { font-size: .88rem; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: var(--white); font-size: .9rem; font-weight: 600; margin-bottom: .75rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.footer ul li { display: flex; align-items: center; gap: .4rem; }
.footer ul a { color: rgba(255,255,255,.65); }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem; text-align: center; font-size: .82rem;
}

/* ==========================================
   ADMIN STYLES
   ========================================== */
.admin-body { background: var(--gray-100); }
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 240px; min-width: 240px; background: var(--dark);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 100;
}
.sidebar-brand {
  padding: 1.25rem 1.2rem; font-size: 1rem; font-weight: 700;
  color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: .5rem;
}
.sidebar-brand span { color: var(--accent); }
.sidebar-nav { padding: .75rem 0; display: flex; flex-direction: column; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center;
  padding: .75rem 1.2rem; color: rgba(255,255,255,.65);
  font-size: .88rem; font-weight: 500; transition: all .2s; text-decoration: none;
  border-right: 3px solid transparent;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); text-decoration: none; }
.sidebar-nav a.active { background: rgba(255,255,255,.1); color: var(--white); border-right-color: var(--primary); }
.sidebar-nav hr { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: .5rem 0; }
.logout-link { color: rgba(255,255,255,.45) !important; }
.logout-link:hover { color: var(--danger) !important; background: rgba(239,68,68,.08) !important; }

/* Admin topbar */
.admin-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .4rem; color: var(--gray-700); border-radius: 6px;
}
.admin-mobile-toggle [data-lucide] { width: 22px; height: 22px; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-x: hidden; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--gray-300);
  padding: .85rem 1.5rem; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 50;
}
.admin-page-title { font-weight: 600; font-size: 1rem; }
.admin-user { font-size: .82rem; color: var(--gray-500); display: flex; align-items: center; gap: .4rem; }
.admin-content { padding: 1.25rem; flex: 1; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow);
}
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--dark); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--gray-500); margin-top: .2rem; }

/* Admin section */
.admin-section { background: var(--white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.section-title-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-title-bar h2 { font-size: 1rem; font-weight: 600; }

/* Tables */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 500px; }
.table th {
  text-align: left; padding: .7rem 1rem; background: var(--gray-100);
  font-weight: 600; font-size: .75rem; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafafa; }
.table code { background: var(--gray-100); padding: .2rem .5rem; border-radius: 4px; font-size: .82rem; font-weight: 600; letter-spacing: .5px; }

/* Filter bar */
.filter-bar { background: var(--white); padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.filter-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.filter-form input, .filter-form select { flex: 1; min-width: 140px; padding: .5rem .8rem; font-size: .88rem; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-100);
}
.card-header h3 { font-size: .95rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.card-danger { border: 1px solid #fecaca; }

/* Detail grid */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; margin-bottom: 1.25rem; align-items: start; }

/* Empty state */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--gray-500); font-size: .9rem; }
.empty-state p { margin-top: .5rem; }

/* Back link */
.back-link { margin-bottom: 1rem; }
.back-link a { color: var(--gray-500); font-size: .88rem; display: inline-flex; align-items: center; gap: .3rem; }
.back-link a:hover { color: var(--primary); }

/* Admin login */
.admin-login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; background: var(--gray-100); }
.admin-login-card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.admin-login-brand { text-align: center; margin-bottom: 2rem; }
.admin-login-brand h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-top: .5rem; }
.admin-login-brand h2 span { color: var(--accent); }
.admin-login-brand p { color: var(--gray-500); font-size: .88rem; margin-top: .3rem; }
.admin-login-card .form-group { margin-bottom: 1rem; }

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 99;
}
.sidebar-overlay.open { display: block; }

/* ==========================================
   RESPONSIVE - TABLET (max 1024px)
   ========================================== */
@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr 300px; }
  .hero h1 { font-size: 2.4rem; }
}

/* ==========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================== */
@media (max-width: 768px) {

  /* Navbar */
  .navbar-links { display: none; }
  .navbar-toggle { display: flex; }

  /* Hero */
  .hero { padding: 3rem 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-badge-list { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .badge-item { font-size: .82rem; padding: .7rem .8rem; }

  /* Sections */
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.6rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
  .service-card { padding: 1rem; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }

  /* Page header */
  .page-header { padding: 1.75rem 0; }
  .page-header h1 { font-size: 1.6rem; }

  /* Forms */
  .form-section { padding: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: 1; }
  .confirm-actions { flex-direction: column; }
  .confirm-actions .btn { width: 100%; }

  /* Confirm card */
  .confirm-card, .status-card { padding: 1.25rem; }
  .confirm-code strong { font-size: 1.5rem; letter-spacing: 3px; }
  .detail-row { flex-direction: column; gap: .2rem; }
  .detail-label { min-width: auto; }

  /* CTA */
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section .btn { width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* Admin */
  .admin-sidebar {
    position: fixed; left: -240px; top: 0; height: 100vh;
    transition: left .3s ease; z-index: 100;
  }
  .admin-sidebar.open { left: 0; }
  .admin-mobile-toggle { display: flex; }
  .admin-content { padding: 1rem; }
  .admin-topbar { padding: .75rem 1rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filter-form { flex-direction: column; }
  .filter-form input, .filter-form select { width: 100%; min-width: auto; }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ========================================== */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.7rem; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-badge-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .confirm-code strong { font-size: 1.3rem; letter-spacing: 2px; }
  .btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
  .table { font-size: .82rem; }
  .table th, .table td { padding: .6rem .75rem; }
}
