:root {
  --navy: #0a1628;
  --navy-mid: #0f2744;
  --navy-light: #163a5c;
  --blue: #1a6fd4;
  --blue-dark: #1558ab;
  --steel: #eef2f6;
  --gray: #5d6875;
  --gray-light: #8a96a3;
  --white: #fff;
  --border: #e2e8f0;
  --shadow: 0 8px 30px rgba(10, 22, 40, 0.08);
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: #f4f7fb;
  color: #1a2332;
  line-height: 1.5;
}

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

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

/* ========== HEADER ========== */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo-icon {
  color: var(--blue);
  display: flex;
}

.site-logo-text {
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.site-logo-text strong {
  font-weight: 800;
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.header-search {
  color: var(--white);
  opacity: .9;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

.link-arrow {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}

.link-arrow:hover { text-decoration: underline; }

/* ========== HERO ========== */
.hero-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1600&q=80') center/cover no-repeat;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,22,40,.92) 0%, rgba(10,22,40,.75) 45%, rgba(10,22,40,.4) 100%);
}

.hero-banner-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
  max-width: 720px;
  padding-left: max(24px, calc((100% - 1280px) / 2 + 24px));
}

.hero-banner h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero-banner h1 span {
  color: #7eb8f7;
}

.hero-banner p {
  color: rgba(255,255,255,.85);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== STATS BAR ========== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 8px;
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

/* ========== HOME SECTIONS ========== */
.home-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.home-section-alt {
  background: var(--white);
  max-width: none;
  padding-left: max(24px, calc((100% - 1280px) / 2));
  padding-right: max(24px, calc((100% - 1280px) / 2));
}

.section-head {
  margin-bottom: 32px;
}

.section-head.center { text-align: center; }

.section-head.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

.section-cta { margin-top: 32px; }

.section-cta.center { text-align: center; }

/* Sectors */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.sector-card {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.sector-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.85) 0%, transparent 60%);
}

.sector-card-label {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}

.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.news-card-img {
  display: block;
  height: 140px;
  background-size: cover;
  background-position: center;
}

.news-card-body {
  padding: 14px;
}

.news-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
  color: var(--navy);
}

.news-card h3 a:hover { color: var(--blue); }

.news-date {
  font-size: 12px;
  color: var(--gray-light);
}

/* Logos */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.logo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: box-shadow .2s;
}

.logo-card:hover { box-shadow: var(--shadow); }

.logo-card img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
}

/* Engineering */
.engineering-section {
  background: var(--navy);
  padding: 56px max(24px, calc((100% - 1280px) / 2));
}

.engineering-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.engineering-text {
  color: var(--white);
  padding: 24px 0;
}

.engineering-text h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.25;
}

.engineering-text p {
  color: rgba(255,255,255,.8);
  margin: 0 0 24px;
  font-size: 15px;
}

.engineering-image {
  border-radius: var(--radius);
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.why-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--white);
}

.why-box h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 20px;
  color: #7eb8f7;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.why-list li:last-child { margin-bottom: 0; }

.why-icon { font-size: 20px; flex-shrink: 0; }

.why-list strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.why-list span {
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

/* Features bar */
.features-bar {
  background: var(--navy-mid);
  padding: 32px 24px;
}

.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--white);
}

.feature-icon { font-size: 24px; flex-shrink: 0; }

.feature-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.feature-item span {
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 40px 24px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand strong {
  color: var(--white);
  font-size: 18px;
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 14px;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* ========== INNER PAGES ========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
}

.page-hero p {
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 16px;
}

.page-card { max-width: 800px; margin: 0 auto; }

.card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.article-img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
}

.article-content {
  font-size: 16px;
  line-height: 1.7;
}

.section .btn-primary { margin-top: 8px; }

/* ========== LEGACY / INNER PAGES ========== */
.section { padding: 45px 6%; max-width: 1280px; margin: 0 auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card h3 { margin-top: 0; color: var(--navy); }

.muted { color: var(--gray); font-size: 14px; }

.search {
  padding: 12px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  font-family: var(--font);
}

.badge {
  display: inline-block;
  background: var(--steel);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #32465f;
}

.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-family: var(--font);
}

.form button {
  border: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}

.table th, .table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

/* ========== ADMIN PANEL ========== */
.admin-body {
  background: #f0f4f9;
  font-family: var(--font);
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-head {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.admin-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.admin-user {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin: 0;
}

.admin-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

.admin-nav-link:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}

.admin-nav-link.active {
  background: var(--blue);
  color: var(--white);
}

.admin-nav-icon { font-size: 16px; width: 22px; text-align: center; }

.admin-sidebar-foot {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.admin-nav-logout { color: #f87171; }

.admin-nav-logout:hover { background: rgba(248,113,113,.15); color: #fca5a5; }

.admin-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  background: var(--white);
}

.admin-topbar-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  flex: 1;
}

.admin-topbar-meta {
  font-size: 13px;
  color: var(--gray);
}

.admin-main {
  padding: 28px;
  flex: 1;
}

.admin-main > h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
}

.admin-main .card { margin-bottom: 24px; }

.admin-welcome {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.admin-welcome p { margin: 0; font-size: 15px; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  display: block;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10,22,40,.12);
}

.admin-stat-icon { font-size: 28px; margin-bottom: 8px; }

.admin-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.admin-stat-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

.admin-stat-blue { border-top: 3px solid var(--blue); }
.admin-stat-navy { border-top: 3px solid var(--navy); }
.admin-stat-orange { border-top: 3px solid #f59e0b; }
.admin-stat-green { border-top: 3px solid #10b981; }
.admin-stat-purple { border-top: 3px solid #8b5cf6; }
.admin-stat-teal { border-top: 3px solid #14b8a6; }

.admin-badge {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

.admin-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.admin-quick-actions { margin-bottom: 28px; }

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-admin-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  font-weight: 600;
}

.btn-admin-secondary:hover {
  background: var(--steel);
  border-color: #c5d0dc;
}

.btn-block { width: 100%; text-align: center; }

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-panel { padding: 0; overflow: hidden; }

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.admin-panel-head h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
}

.admin-panel-head a {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
}

.admin-panel .table,
.admin-panel .admin-list,
.admin-panel .muted {
  margin: 0;
}

.admin-table { border-radius: 0; }

.admin-table th {
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-list li {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-list li:last-child { border-bottom: none; }

.admin-list a {
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}

.admin-list a:hover { color: var(--blue); }

.admin-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray);
}

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: capitalize;
}

.status-published, .status-atendido {
  background: #d1fae5;
  color: #065f46;
}

.status-draft, .status-nuevo {
  background: #fef3c7;
  color: #92400e;
}

.status-pill:not(.status-published):not(.status-atendido):not(.status-draft):not(.status-nuevo) {
  background: var(--steel);
  color: var(--gray);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

/* Admin login */
.admin-login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #163a5c 50%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font);
}

.admin-login-wrap {
  width: 100%;
  max-width: 420px;
}

.admin-login-brand {
  text-align: center;
  color: var(--white);
  margin-bottom: 28px;
}

.admin-login-logo {
  width: 56px;
  height: 56px;
  background: var(--blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.admin-login-brand h1 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.admin-login-brand p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

.admin-login-card {
  padding: 28px;
}

.admin-login-card h2 {
  margin: 0 0 20px;
  font-size: 20px;
  color: var(--navy);
}

.admin-login-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
}

.admin-login-foot a { color: var(--blue); font-weight: 600; }

.admin-import-card { margin-bottom: 24px; }

.admin-import-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--navy);
}

.admin-import-card code {
  background: var(--steel);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.import-sample {
  margin: 12px 0 16px;
  font-size: 13px;
}

.import-sample summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
}

.import-sample pre {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  overflow-x: auto;
  max-height: 220px;
}

.admin-import-result { margin-bottom: 12px; }

.import-errors {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #b00020;
}

/* Legacy sidebar alias */
.sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 24px;
}

.sidebar a {
  display: block;
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.actions a { margin-right: 8px; color: var(--blue); font-weight: 600; }

.danger { color: #b00020; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.inline-form { display: inline; margin: 0; }

.inline-form button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.inline-form button.danger { color: #b00020; }

/* Legacy topbar (admin login) */
.topbar {
  background: var(--navy);
  color: var(--white);
  padding: 14px 6%;
}

.brand { font-weight: 800; font-size: 22px; }

.nav a { margin-left: 18px; color: var(--white); font-size: 14px; }

.footer {
  background: var(--navy);
  color: #cbd6e5;
  padding: 30px 6%;
  margin-top: 40px;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 901px) {
  .nav-toggle { display: none !important; }
  .main-nav {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }
  .main-nav a { width: auto !important; }
}

@media (max-width: 1100px) {
  .sectors-grid { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
  .engineering-grid { grid-template-columns: 1fr; }
  .engineering-image { min-height: 220px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px;
    gap: 0;
    display: none;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-menu-btn { display: block; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: 260px;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-banner { min-height: 440px; }
  .hero-banner-content { padding: 60px 20px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .features-inner { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .sector-card { height: 160px; }
  .news-grid { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr; }
}
