/* ================================================================
   ppf.com.ar V4 — Stylesheet global
   Stack: CSS vanilla. Mobile-first. Dark theme.
   ================================================================ */

/* ── 1. RESET + ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── 2. TOKENS ───────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:       #050508;
  --bg-surface:    #0A0A0F;
  --bg-surface-2:  #111118;
  --border:        rgba(255,255,255,0.06);
  --border-hover:  rgba(255,255,255,0.12);

  /* Texto */
  --text-primary:   #F2F0ED;
  --text-secondary: rgba(242,240,237,0.55);
  --text-muted:     rgba(242,240,237,0.35);

  /* Acentos */
  --accent-teal:    #0ABFB8;
  --accent-teal-10: rgba(10,191,184,0.1);
  --accent-teal-20: rgba(10,191,184,0.2);
  --accent-warm:    #E8A838;
  --accent-warm-10: rgba(232,168,56,0.1);
  --wa-green:       #25D366;
  --wa-green-hover: #1dbe5c;
  --error:          #E84B1A;
  --success:        #4ADE80;

  /* Tipografía */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Sombras */
  --shadow-card:     0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  --shadow-elevated: 0 8px 32px rgba(0,0,0,0.7);
  --shadow-glow-teal: 0 0 24px rgba(10,191,184,0.18);

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Layout */
  --container: 1200px;
  --nav-height: 64px;
}

/* ── 3. BASE ──────────────────────────────────────────────────── */
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── 4. TIPOGRAFÍA ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-secondary); line-height: 1.7; }
.text-primary   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-teal      { color: var(--accent-teal) !important; }
.text-warm      { color: var(--accent-warm) !important; }
.font-mono      { font-family: var(--font-mono); }

/* ── 5. LAYOUT ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 48px; } }

.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 100px 0; } }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── 6. BOTONES ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-teal);
  color: #050508;
}
.btn-primary:hover { box-shadow: var(--shadow-glow-teal); background: #0dd4cc; }

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
  font-weight: 700;
}
.btn-whatsapp:hover { background: var(--wa-green-hover); }

.btn-secondary {
  background: transparent;
  color: var(--accent-teal);
  border: 1.5px solid var(--accent-teal);
}
.btn-secondary:hover { background: var(--accent-teal-10); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-hover); }

.btn-sm  { padding: 8px 16px; font-size: 0.875rem; min-height: 36px; }
.btn-lg  { padding: 16px 32px; font-size: 1.05rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }

/* ── 7. CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-hover);
}
.card-elevated { background: var(--bg-surface-2); }

/* ── 8. BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
}
.badge-teal     { background: var(--accent-teal-10); color: var(--accent-teal); border: 1px solid rgba(10,191,184,0.25); }
.badge-warm     { background: var(--accent-warm-10); color: var(--accent-warm); border: 1px solid rgba(232,168,56,0.25); }
.badge-muted    { background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-success  { background: rgba(74,222,128,0.1); color: var(--success); border: 1px solid rgba(74,222,128,0.25); }
.badge-error    { background: rgba(232,75,26,0.1); color: var(--error); border: 1px solid rgba(232,75,26,0.25); }
.badge-centro-ppf    { background: var(--accent-warm-10); color: var(--accent-warm); border: 1px solid rgba(232,168,56,0.25); }
.badge-certificado   { background: var(--accent-teal-10); color: var(--accent-teal); border: 1px solid rgba(10,191,184,0.25); }
.badge-registrado    { background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border); }

/* ── 9. FORMULARIOS ──────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 11px 14px;
  font-size: 0.95rem;
  transition: border-color 150ms;
  min-height: 44px;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px var(--accent-teal-10);
}
.form-control::placeholder { color: var(--text-muted); }
.form-error { font-size: 0.8rem; color: var(--error); margin-top: 5px; }
.form-hint  { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(242,240,237,0.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ── 10. NAVBAR ──────────────────────────────────────────────── */
.navbar {
  min-height: 72px;
  padding: 14px 0;
  background: rgba(5,5,8,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 200ms, border-color 200ms;
}
.navbar.scrolled {
  background: rgba(5,5,8,0.97);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
  height: 100%;
}
.navbar-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.navbar-logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0ABFB8;
  letter-spacing: -0.02em;
}
.navbar-logo-main span { font-weight: 400; color: #f2f0ed; font-size: 1.5rem; }
.navbar-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(242,240,237,0.3);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2px;
}
.navbar-links {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 960px) { .navbar-links { display: flex; } }
.navbar-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(242,240,237,0.6);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}
.navbar-link:hover {
  color: #f2f0ed;
  background: rgba(255,255,255,0.05);
}
.navbar-link.active {
  color: #0ABFB8;
}
.navbar-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--accent-teal);
  border-radius: 2px;
}
.navbar-link-portal {
  font-size: 0.8rem;
  color: rgba(242,240,237,0.3);
  font-weight: 400;
  margin-left: 8px;
  opacity: 1;
}
.navbar-link-portal:hover {
  color: var(--accent-teal);
  background: var(--accent-teal-10);
  opacity: 1;
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-cta { display: none; }
@media (min-width: 960px) { .navbar-cta { display: inline-flex; } }
.btn-whatsapp.navbar-cta {
  background: #25D366;
  color: #000;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  flex-shrink: 0;
}
@media (min-width: 960px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 300ms cubic-bezier(0.23,1,0.32,1), opacity 300ms;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — fullscreen overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 990;
  padding: 80px 32px 40px;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 250ms cubic-bezier(0.23,1,0.32,1),
              transform 250ms cubic-bezier(0.23,1,0.32,1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color 150ms, padding-left 150ms;
}
.mobile-menu a:not(.btn):hover {
  color: var(--text-primary);
  padding-left: 8px;
}
.mobile-menu .mobile-menu-portal {
  font-size: 1rem !important;
  color: var(--accent-teal) !important;
  font-weight: 500 !important;
}
.mobile-menu .btn-whatsapp {
  margin-top: auto;
  padding-top: 32px;
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 16px 24px;
}

@media (min-width: 960px) {
  .mobile-menu { display: none !important; }
}


/* ── 11. FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand {}
.footer-logo-main {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}
.footer-logo-main span { color: var(--accent-teal); }
.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.6;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 5px 0;
  transition: color 150ms;
}
.footer-link:hover { color: var(--text-primary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: border-color 150ms, color 150ms;
}
.footer-social:hover { border-color: var(--accent-teal); color: var(--accent-teal); }

/* ── 12. WA FLOTANTE ─────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: wa-bounce 2.5s ease-in-out infinite;
  transition: transform 150ms;
}
.wa-float:hover { animation: none; transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── 13. HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5,5,8,0.82) 0%, rgba(5,5,8,0.55) 50%, rgba(5,5,8,0.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-height);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 680px;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(242,240,237,0.75);
  max-width: 500px;
  margin: 20px 0 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── 14. TRUST BAR ───────────────────────────────────────────── */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 20px 0;
  overflow-x: auto;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .trust-bar-inner { justify-content: center; padding: 0; }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.trust-item svg { width: 18px; height: 18px; color: var(--accent-teal); flex-shrink: 0; }
.trust-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }

/* ── 15. GRIDS ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ── 16. PRICE CARDS ─────────────────────────────────────────── */
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
  position: relative;
  overflow: hidden;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-hover);
}
.price-card.featured {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-glow-teal);
}
.price-card.featured::before {
  content: 'Más popular';
  position: absolute;
  top: 14px; right: -24px;
  background: var(--accent-teal);
  color: #050508;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 32px;
  transform: rotate(30deg);
  letter-spacing: 0.05em;
}
.price-from {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-warm);
  font-weight: 700;
  margin-bottom: 2px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.price-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.price-features { margin: 20px 0; }
.price-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.price-feature:last-child { border-bottom: none; }
.price-feature svg { width: 14px; height: 14px; color: var(--accent-teal); flex-shrink: 0; }

/* ── 17. ACCORDION ───────────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
  min-height: 44px;
}
.accordion-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 250ms, border-color 250ms;
  color: var(--text-muted);
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}
.accordion-body {
  display: none;
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.accordion-item.open .accordion-body { display: block; }

/* ── 18. GALERÍA HORIZONTAL ─────────────────────────────────── */
.gallery-strip {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 12px;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-track {
  display: flex;
  gap: 12px;
  padding: 0 20px;
}
@media (min-width: 768px) { .gallery-track { padding: 0 32px; } }
.gallery-item {
  flex-shrink: 0;
  width: 240px;
  height: 170px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.gallery-item:hover img { transform: scale(1.04); }
@media (min-width: 768px) { .gallery-item { width: 300px; height: 210px; } }

/* ── 19. TALLER CARD ─────────────────────────────────────────── */
.taller-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform 200ms, box-shadow 200ms;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.taller-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
.taller-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.taller-meta { font-size: 0.825rem; color: var(--text-muted); }

/* ── 20. ADMIN / PORTAL LAYOUT ───────────────────────────────── */
.portal-layout {
  display: flex;
  min-height: 100vh;
}
.portal-sidebar {
  width: 240px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  flex-shrink: 0;
  display: none;
  flex-direction: column;
}
@media (min-width: 768px) { .portal-sidebar { display: flex; } }
.portal-sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.portal-sidebar-logo span { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--text-primary); }
.portal-sidebar-logo span em { color: var(--accent-teal); font-style: normal; }
.portal-sidebar-section {
  padding: 8px 12px 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}
.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  margin: 2px 8px;
  transition: color 150ms, background 150ms;
}
.portal-nav-link:hover, .portal-nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.portal-nav-link.active { color: var(--accent-teal); }
.portal-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.portal-main { flex: 1; overflow-x: hidden; }
.portal-topbar {
  height: 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.portal-topbar-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.portal-content { padding: 24px 20px; }
@media (min-width: 768px) { .portal-content { padding: 32px; } }

/* Mobile sidebar toggle */
.portal-mobile-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) { .portal-mobile-toggle .hamburger { display: none !important; } }

.portal-sidebar-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,5,8,0.9);
  display: none;
}
.portal-sidebar-mobile.open { display: block; }
.portal-sidebar-mobile-inner {
  width: 260px;
  height: 100%;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px 0;
}

/* ── 21. TABLES ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── 22. STATS / KPI ─────────────────────────────────────────── */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-sub   { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

/* ── 23. LOGIN ───────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-base);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.login-logo-text span { color: var(--accent-teal); }
.login-logo-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.login-alert { background: rgba(232,75,26,0.1); border: 1px solid rgba(232,75,26,0.3); border-radius: var(--radius-md); padding: 12px 14px; font-size: 0.875rem; color: var(--error); margin-bottom: 20px; }
.login-btn { width: 100%; justify-content: center; }

/* ── 24. UTILS ───────────────────────────────────────────────── */
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-0  { margin-bottom: 0 !important; }
.mb-2  { margin-bottom: 8px; }
.mb-3  { margin-bottom: 12px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 25. PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--accent-teal); }
.breadcrumb-sep { color: var(--border); }

/* ── 26. LEAD FORM (home) ────────────────────────────────────── */
.lead-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
}
.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .lead-form-grid { grid-template-columns: 1fr 1fr; }
}
.lead-form-success {
  text-align: center;
  padding: 32px 20px;
}
.lead-form-success svg { color: var(--success); width: 48px; height: 48px; margin: 0 auto 16px; }

/* ── 27. SEGMENT CARDS ───────────────────────────────────────── */
.segment-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}
.segment-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.segment-card:hover img { transform: scale(1.04); }
.segment-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(5,5,8,0.95) 0%, rgba(5,5,8,0.4) 60%, transparent 100%);
  width: 100%;
  padding: 20px;
}
.segment-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }

/* ── 28. SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }