/* ==========================================================================
   A&D CONSULTORÍA EN AVIACIÓN — 2026 DESIGN SYSTEM & STYLESHEET
   Aesthetics: Terminal Industries + Sofi Health + Architectural Minimalism
   Features: CSS Nesting, Container Queries, :has(), light-dark() CSS variables,
             WCAG 2.2 AA compliance, View Transitions support, High-INP performance
   ========================================================================== */

/* --- 1. CORE DESIGN TOKENS & COLOR SYSTEM --- */
:root {
  color-scheme: light dark;

  /* Typography scale */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spatial rhythm */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Brand Accents */
  --color-brand-magenta: #ec4899;
  --color-brand-magenta-dark: #be185d;
  --color-brand-magenta-light: #fbcfe8;
  --color-brand-cyan: #06b6d4;
  --color-brand-cyan-glow: rgba(6, 182, 212, 0.25);
  --color-brand-gold: #f59e0b;
  --color-brand-emerald: #10b981;
  --color-brand-aog: #ef4444;

  /* Container width */
  --max-w-site: 1320px;
  --max-w-prose: 740px;
}

/* --- THEME TOKENS: DARK (DEFAULT / AEROSPACE HIGH-TECH) --- */
:root,
[data-theme="dark"] {
  --bg-body: #070a11;
  --bg-surface: #0d121f;
  --bg-surface-elevated: #131b2e;
  --bg-surface-glass: rgba(13, 18, 31, 0.72);
  --bg-subtle: #172036;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverted: #070a11;

  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-highlight: rgba(236, 72, 153, 0.4);

  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 12px 36px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow-magenta: 0 0 32px rgba(236, 72, 153, 0.18);
  --shadow-glow-cyan: 0 0 32px rgba(6, 182, 212, 0.15);

  --grid-line-color: rgba(255, 255, 255, 0.03);
  --badge-bg: rgba(255, 255, 255, 0.06);
  --badge-border: rgba(255, 255, 255, 0.12);
  --badge-text: #e2e8f0;

  --hero-gradient: radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.12) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 70%);
}

/* --- THEME TOKENS: LIGHT (LUXURY EDITORIAL / SOFI HEALTH STYLE) --- */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-glass: rgba(255, 255, 255, 0.82);
  --bg-subtle: #e2e8f0;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverted: #ffffff;

  --border-hairline: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --border-highlight: rgba(219, 39, 119, 0.45);

  --shadow-subtle: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-elevated: 0 14px 34px -4px rgba(15, 23, 42, 0.08);
  --shadow-glow-magenta: 0 0 24px rgba(236, 72, 153, 0.12);
  --shadow-glow-cyan: 0 0 24px rgba(6, 182, 212, 0.12);

  --grid-line-color: rgba(15, 23, 42, 0.04);
  --badge-bg: rgba(15, 23, 42, 0.05);
  --badge-border: rgba(15, 23, 42, 0.12);
  --badge-text: #1e293b;

  --hero-gradient: radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.08) 0%, rgba(6, 182, 212, 0.05) 45%, transparent 75%);
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-body);
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Subtle architectural grid pattern background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Skip link for WCAG 2.2 AA Keyboard Accessibility */
.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  background: var(--color-brand-magenta);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
  &:focus {
    top: 24px;
    outline: 3px solid #ffffff;
  }
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Accessible focus styling */
:focus-visible {
  outline: 2px solid var(--color-brand-cyan);
  outline-offset: 3px;
}

/* View transitions */
@view-transition {
  navigation: auto;
}

/* --- 3. LAYOUT & CONTAINERS --- */
.container {
  width: 100%;
  max-width: var(--max-w-site);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.section-hero {
  padding-block: clamp(7.5rem, 12vw, 10rem) clamp(3rem, 6vw, 5rem);
  content-visibility: visible;
  contain-intrinsic-size: none;
}

/* --- 4. TYPOGRAPHY SYSTEM --- */
.text-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-brand-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.heading-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.heading-3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.text-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 68ch;
}

.text-muted {
  color: var(--text-muted);
}

.text-gradient-brand {
  background: linear-gradient(135deg, var(--color-brand-magenta) 0%, #f43f5e 50%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--color-brand-cyan) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- 5. BUTTONS & INTERACTIVE ELEMENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.625rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 48px; /* WCAG 2.2 touch target standard */
  text-decoration: none;
  position: relative;
  overflow: hidden;

  &:active {
    transform: scale(0.98);
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand-magenta) 0%, var(--color-brand-magenta-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);

  &:hover {
    background: linear-gradient(135deg, #f43f8e 0%, var(--color-brand-magenta) 100%);
    box-shadow: 0 6px 26px rgba(236, 72, 153, 0.45);
    transform: translateY(-2px);
  }
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);

  &:hover {
    background: var(--bg-subtle);
    border-color: var(--border-strong);
    color: var(--text-primary);
    transform: translateY(-2px);
  }
}

.btn-cyan {
  background: linear-gradient(135deg, #0891b2 0%, var(--color-brand-cyan) 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.3);

  &:hover {
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.45);
    transform: translateY(-2px);
  }
}

.btn-aog {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  font-weight: 700;

  &:hover {
    background: #ef4444;
    box-shadow: 0 6px 26px rgba(220, 38, 38, 0.55);
    transform: translateY(-2px);
  }
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  min-height: 38px;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);

  &:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--bg-surface-elevated);
  }
}

/* --- 6. NAVIGATION & HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--transition-smooth);
}

.site-header.is-scrolled {
  padding: 0.625rem 0;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-subtle);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.5rem;
  list-style: none;

  @media (min-width: 1024px) {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;

  &:hover,
  &.is-active {
    color: var(--text-primary);
    background: var(--badge-bg);
  }

  &.is-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--color-brand-magenta);
    border-radius: var(--radius-pill);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Live Operational Badge */
.status-pill {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;

  @media (min-width: 1200px) {
    display: flex;
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-emerald);
  position: relative;

  &::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--color-brand-emerald);
    opacity: 0.4;
    animation: radar-pulse 2s infinite ease-out;
  }
}

@keyframes radar-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  cursor: pointer;
  padding: 10px;

  @media (min-width: 1024px) {
    display: none;
  }

  span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    transition: all var(--transition-fast);
  }

  &.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  &.is-open span:nth-child(2) {
    opacity: 0;
  }
  &.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-body);
  z-index: 90;
  padding: 6rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-smooth);

  &.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;

  a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-hairline);
  }
}

/* --- 7. HERO SECTION --- */
.hero-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;

  @media (min-width: 1024px) {
    grid-template-columns: 1.15fr 0.95fr;
  }
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  max-height: 800px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-tag.accent-magenta {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.3);
  color: var(--color-brand-magenta);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Hero Showcase Visual with Reserved Video Frame */
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-elevated);
}

.hero-visual-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);

  &:hover {
    transform: scale(1.02);
  }
}

.hero-telemetry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 17, 0.2) 0%, rgba(7, 10, 17, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: #ffffff;
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.telemetry-pill {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-slot-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: rgba(13, 18, 31, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  .video-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-brand-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
  }

  span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
  }

  small {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: #94a3b8;
  }
}

.telemetry-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
}

.telemetry-stat {
  font-family: var(--font-mono);
  font-size: 0.6875rem;

  .stat-label {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 2px;
  }

  .stat-value {
    font-weight: 700;
    color: #38bdf8;
    font-size: 0.8125rem;
  }
}

/* --- 8. LIVE METRICS & COUNTERS BAR --- */
.metrics-strip {
  margin-top: 3.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  box-shadow: var(--shadow-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: 2px solid var(--color-brand-magenta);
  padding-left: 1.25rem;
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.metric-num-accent {
  color: var(--color-brand-magenta);
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- 9. INSTITUTIONAL AUTHORITY STRIP (LOGOS) --- */
.authority-strip {
  padding-block: 2.5rem;
  border-block: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  overflow: hidden;
}

.authority-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.authority-logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  opacity: 0.85;
}

.authority-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  transition: all var(--transition-fast);

  &:hover {
    opacity: 1;
    border-color: var(--border-strong);
    transform: translateY(-2px);
  }

  img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
  }

  span {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
  }
}

/* --- 10. STRATEGIC PILLARS (SOFI / TERMINAL GRID) --- */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;

  @media (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  &:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow-magenta);
    transform: translateY(-4px);
  }

  .pillar-number {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-brand-cyan);
    margin-bottom: 1.5rem;
  }

  .pillar-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-magenta);
    margin-bottom: 1.5rem;
  }

  .pillar-title {
    margin-bottom: 0.75rem;
  }

  .pillar-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }
}

/* --- 11. CONTAINER QUERY COMPONENT: SERVICE CARD --- */
.services-catalog {
  container-type: inline-size;
  container-name: services;
}

.services-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);

  &:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
  }

  &.is-active {
    background: var(--text-primary);
    color: var(--text-inverted);
    border-color: var(--text-primary);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;

  @media (min-width: 640px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Container Query on card */
.service-card {
  container-type: inline-size;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all var(--transition-smooth);
  position: relative;

  &:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-subtle);
    transform: translateY(-3px);
  }

  .card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-magenta);
  }

  .card-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-brand-cyan);
    background: var(--badge-bg);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-xs);
  }

  .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
  }

  .card-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-hairline);

    li {
      font-size: 0.8125rem;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 0.5rem;

      svg {
        color: var(--color-brand-emerald);
        flex-shrink: 0;
      }
    }
  }

  .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-hairline);
  }
}

/* Modern :has() conditional styling */
.service-card:has(.badge-aog) {
  border-left: 3px solid var(--color-brand-aog);
}

@container (min-width: 380px) {
  .service-card .card-footer {
    flex-direction: row;
  }
}

/* --- 12. INTERACTIVE CALCULATOR / DIAGNOSTIC TOOL --- */
.diagnostic-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand-magenta), var(--color-brand-cyan));
  }
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;

  @media (min-width: 1024px) {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.step-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.step-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.option-radio {
  display: none;
}

.option-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;

  strong {
    font-size: 0.875rem;
    color: var(--text-primary);
  }

  span {
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  &:hover {
    border-color: var(--border-strong);
  }
}

/* :has() to highlight selected radio cards without JavaScript */
.option-cards:has(.option-radio:checked) .option-radio:checked + .option-label {
  border-color: var(--color-brand-magenta);
  background: rgba(236, 72, 153, 0.08);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.15);
}

.diagnostic-result-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;

  .result-header {
    border-bottom: 1px solid var(--border-hairline);
    padding-bottom: 1rem;
  }

  .result-telemetry {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .telemetry-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    span:first-child {
      color: var(--text-muted);
    }
    span:last-child {
      font-weight: 700;
      color: var(--text-primary);
    }
  }
}

/* --- 13. OPERATIONAL PROFILES TABS --- */
.profile-showcase {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.profile-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-hairline);
}

.profile-tab {
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;

  &:hover {
    color: var(--text-primary);
    background: var(--badge-bg);
  }

  &.is-active {
    color: var(--color-brand-magenta);
    background: var(--bg-surface);

    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--color-brand-magenta);
    }
  }
}

.profile-content {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;

  @media (min-width: 900px) {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.profile-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-subtle);

  img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}

/* --- 14. EMERGENCY AOG HOTLINE BANNER --- */
.aog-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.04) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;

  @media (min-width: 900px) {
    flex-direction: row;
    align-items: center;
  }

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--color-brand-aog);
  }
}

/* --- 15. REGIONAL PRESENCE AIRPORT NETWORK --- */
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.airport-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition-fast);

  &:hover {
    border-color: var(--color-brand-cyan);
    transform: translateY(-2px);
  }

  .airport-code {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-brand-cyan);
  }

  .airport-city {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
  }

  .airport-role {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
}

/* --- 16. FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  padding-block: 5rem 2.5rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;

  @media (min-width: 768px) {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-brand-magenta);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;

  a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);

    &:hover {
      color: var(--text-primary);
    }
  }
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);

  @media (min-width: 768px) {
    flex-direction: row;
  }
}

/* Floating WhatsApp Emergency Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  background: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all var(--transition-fast);

  &:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
  }

  svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
}

/* Modal styles for quick diagnostics / contact */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);

  &.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-elevated);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  &:hover { color: var(--text-primary); }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   TERMINAL INDUSTRIES SIGNATURE AESTHETIC & SYSTEM EXTENSIONS
   Features: Corner Crosshairs (+), Telemetry Ticker, Sliding Underlines,
             Terminal Data Grids, News System & Admin Dashboard
   ========================================================================== */

/* --- 17. TERMINAL SIGNATURE: TELEMETRY TOP BAR --- */
.telemetry-ticker-bar {
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  white-space: nowrap;
  gap: 1.5rem;
  position: relative;
  z-index: 101;

  .ticker-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    strong {
      color: var(--text-secondary);
      font-weight: 600;
    }
    .accent {
      color: var(--color-brand-cyan);
    }
  }
}

/* --- 18. TERMINAL SIGNATURE: CORNER CROSSHAIRS (+) --- */
.has-crosses {
  position: relative;
}

.crosses-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;

  .cross {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1;
    color: var(--border-strong);
    opacity: 0.75;
    user-select: none;
  }

  .cross-tl { top: -6px; left: -5px; }
  .cross-tr { top: -6px; right: -5px; }
  .cross-bl { bottom: -6px; left: -5px; }
  .cross-br { bottom: -6px; right: -5px; }
}

/* Hairline Grid Card in Terminal Style */
.terminal-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: all var(--transition-fast);

  &:hover {
    border-color: var(--border-strong);
    background: var(--bg-surface-elevated);
  }

  &::before, &::after {
    content: '+';
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.6;
    pointer-events: none;
  }
  &::before { top: -5px; left: -4px; }
  &::after { bottom: -5px; right: -4px; }
}

/* Terminal link sliding underline effect */
.link-terminal {
  display: inline-block;
  position: relative;
  text-decoration: none;
  overflow: hidden;

  &::before, &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  &::before {
    transform: scaleX(1);
    transform-origin: 100% 50%;
  }

  &::after {
    transform: scaleX(0);
    transform-origin: 0 50%;
  }

  &:hover::before {
    transform: scaleX(0);
  }

  &:hover::after {
    transform: scaleX(1);
    transition-delay: 0.1s;
  }
}

/* --- 19. ÚLTIMAS NOTICIAS / BLOG SECTION --- */
.news-section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 2.5rem;

  @media (min-width: 768px) {
    flex-direction: row;
    align-items: flex-end;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;

  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);

  &:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-subtle);

    .news-card-img {
      transform: scale(1.04);
    }
  }

  .news-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-hairline);
  }

  .news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .news-telemetry-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-xs);
    background: rgba(7, 10, 17, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-brand-cyan);
    letter-spacing: 0.06em;
  }

  .news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
  }

  .news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
  }

  .news-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
  }

  .news-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-family: var(--font-mono);
  }
}

/* --- 20. BLOG ADMIN AREA STYLES (admin.html) --- */
.admin-shell {
  min-height: 100vh;
  background: var(--bg-body);
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-badge-terminal {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.admin-workspace {
  display: grid;
  grid-template-columns: 1fr;
  flex-grow: 1;

  @media (min-width: 1024px) {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-editor-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border-hairline);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-preview-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-surface-elevated);
  overflow-y: auto;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;

  label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);

    &:focus {
      border-color: var(--color-brand-cyan);
      box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
    }
  }
}

/* Image Upload Dropzone */
.image-dropzone {
  border: 2px dashed var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;

  &:hover, &.is-dragover {
    border-color: var(--color-brand-magenta);
    background: rgba(236, 72, 153, 0.05);
  }

  .dropzone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-magenta);
  }
}

.image-preview-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-hairline);
  margin-top: 0.75rem;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .remove-img-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* Quick Formatting Toolbar */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);

  button {
    padding: 0.25rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xs);
    cursor: pointer;

    &:hover {
      color: var(--text-primary);
      border-color: var(--border-strong);
    }
  }
}

/* Real-Time Live Preview Container */
.preview-sticky-wrap {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.preview-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-brand-emerald);
}

.preview-article-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-subtle);
  position: relative;
}

/* Admin Post Manager Table */
.admin-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;

  th, td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-hairline);
  }

  th {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-surface-elevated);
  }

  tr:last-child td {
    border-bottom: none;
  }
}

/* Toast alert */
.terminal-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--color-brand-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;

  &.is-visible {
    transform: translateX(-50%) translateY(0);
  }
}
