:root {
  --bg-page: #f4f5f7;
  --bg-surface: #ffffff;
  --bg-alt: #f0f2f5;
  --primary: #c8102e;
  --primary-dark: #9b0e24;
  --primary-soft: rgba(200, 16, 46, 0.08);
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --container-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0, #e5e7eb 55%);
  color: var(--text-main);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.18rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  color: #6b7280;
  margin-bottom: 0.8rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}

.section-description {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Header / nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 2.5rem;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6rem;
  text-decoration: none;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-abb {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 44px;
}

.logo-abb img {
  height: 44px;
  max-height: 44px;
  max-width: 44px;
  width: auto;
  object-fit: contain;
}

.logo-icon img {
  height: 34px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.logo-name {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
}

.logo-subtitle {
  font-size: 0.68rem;
  color: #fee2e2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav a {
  position: relative;
  padding: 0.25rem 0;
  color: #fef2f2;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.2s ease;
}

.nav a:hover {
  color: #ffffff;
}

.nav a:hover::after {
  width: 100%;
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0.35rem 1.25rem;
    gap: 1rem;
  }

  .logo {
    gap: 0.8rem;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
  }

  .logo-icon img {
    height: 26px;
  }

  .logo-name {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .logo-abb {
    height: 34px;
  }

  .logo-abb img {
    height: 34px;
    max-height: 34px;
    max-width: 34px;
  }

  .logo-subtitle {
    display: none;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.2rem;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.nav-open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle-open span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 13px 28px rgba(200, 16, 46, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(200, 16, 46, 0.65);
  background: linear-gradient(135deg, #f97373, var(--primary));
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

/* Versión especial del botón de contacto en la barra roja */
.header .btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.header .btn-outline:hover {
  background: #ffffff;
  color: var(--primary);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
}

/* Hero */
.hero {
  position: relative;
  color: #ffffff;
  min-height: 150vh;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.2),
    rgba(15, 23, 42, 0.65)
  );
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(2.00);
  transition: opacity 1s ease-in-out, transform 6s linear;
}

.hero-controls{
  position:absolute;
  top:50%;
  width:100%;
  display:flex;
  justify-content:space-between;
  padding:0 20px;
  z-index:3;
  }
  
  .hero-controls button{
  background:rgba(0,0,0,0.4);
  border:none;
  color:white;
  font-size:30px;
  cursor:pointer;
  padding:10px 16px;
  border-radius:50%;
  }

.hero-slide-active {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.12);
}

.hero-slide-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  padding: 4rem 1.5rem 4.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: #e5e7eb;
  margin-bottom: 0.8rem;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.hero-subtitle {
  margin: 0 0 1.6rem;
  font-size: 0.98rem;
  max-width: 32rem;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.7);
  background: rgba(15, 23, 42, 0.75);
}

.hero-panel {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), #020617);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-panel h2 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.hero-metrics {
  list-style: none;
  padding: 0.8rem 0.9rem;
  margin: 0 0 1rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #020617 0, #030712 70%);
  border: 1px solid rgba(55, 65, 81, 0.8);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.hero-metrics li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.metric-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

.metric-value {
  font-weight: 600;
  font-size: 0.98rem;
}

.hero-note {
  margin: 0;
  font-size: 0.78rem;
  color: #e5e7eb;
}

/* Hero banner decorativo */
.hero-banner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  height: 0;
  transform: translateY(130px);
}

.hero-diamonds {
  position: absolute;
  left: 14%;
  top: -120px;
  width: 220px;
  height: 220px;
}

.diamond {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 24px;
  transform: rotate(45deg);
  mix-blend-mode: screen;
}

.diamond-large {
  left: 0;
  top: 18px;
  background: radial-gradient(circle at 30% 30%, #ef4444, #991b1b);
}

.diamond-medium {
  left: 70px;
  top: -18px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 70% 70%, #dc2626, #7f1d1d);
}

.diamond-small {
  left: 120px;
  top: 42px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 30% 70%, #f97316, #b91c1c);
}

.hero-ribbon {
  position: relative;
  margin: 0 auto;
  margin-top: -30px;
  max-width: 780px;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.hero-ribbon-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-slogan {
  position: absolute;
  right: 2rem;
  bottom: 1.6rem;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
}

/* Cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.grid-3-info {
  gap: 1.75rem;
}

.info-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.info-card:hover {
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  transform: translateY(-4px);
}

.info-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}

.info-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.info-card:hover .info-card-image img {
  transform: scale(1.05);
}

.info-card-body {
  padding: 1.35rem 1.4rem 1.4rem;
  flex: 1;
}

.info-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: var(--text);
}

.info-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Destacados: carrusel */
.destacados-section .container {
  max-width: 2000px;
}

.highlight-carousel {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.highlight-slide-card {
  display: none;
}

.highlight-slide-card-active {
  display: block;
}

.highlight-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.highlight-item {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.highlight-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.highlight-item figcaption {
  padding: 1.1rem 1.2rem 1.3rem;
}

.highlight-tag {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.highlight-item h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.35;
}

.highlight-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.highlight-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, width 0.15s ease;
}

.highlight-dot-active {
  width: 20px;
  background: var(--primary);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .highlight-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .highlight-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Experiencia */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem 1.15rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.stat-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Soluciones */
#soluciones .container {
  max-width: 1300px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.solution-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
}

.solution-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.solution-body {
  padding: 1.50rem 1.8rem 1.8rem;
}

.solution-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.28rem;
}

.solution-body p {
  margin: 0;
  font-size: 0.99rem;
  color: var(--text-muted);
  line-height: 2.0;
}

/* Logos / alianzas */
.logos-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.50rem;
}

.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 72px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}

.logo-chip:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.6);
}

.logo-chip img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  transition: filter 0.25s ease;
}

.logo-chip:hover img {
  filter: grayscale(0);
}

/* Certificaciones */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.cert-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  padding: 1.2rem 1.35rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cert-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cert-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.cert-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Proyectos importantes: logo/imagen a la izquierda, año arriba a la derecha */
#proyectos .proyecto-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#proyectos .proyecto-card-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.4rem;
}

#proyectos .proyecto-card-year {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  line-height: 1;
}

.cert-body .proyecto-card-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cert-body .proyecto-card-list li + li {
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #111827;
  color: #e5e7eb;
  padding-top: 2.6rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}

.footer-logo .logo-mark {
  background: transparent;
}

.footer-logo .logo-mark img {
  filter: brightness(0) invert(1);
}

/* Ajustes del bloque de marca en el footer (ABB + Protecsa) */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.footer-logo .logo-abb img {
  height: 44px;
  max-height: 44px;
  max-width: 44px;
  width: auto;
  object-fit: contain;
}

/* Logo Protecsa del footer (mismo tamaño visual que el del header) */
.footer-logo-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-logo-mark img {
  height: 34px;
  max-height: 34px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.footer-logo-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-logo-subtitle {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f50b0b;
}

.footer-address {
  margin: 0.8rem 0 0;
  font-size: 0.86rem;
  color: #d1d5db;
}

.footer h3 {
  margin: 0 0 0.5rem;
  font-size: 0.96rem;
}

.footer p {
  margin: 0;
  font-size: 0.86rem;
  color: #d1d5db;
}

.footer a {
  color: #f9fafb;
}

.footer a:hover {
  color: #e5e7eb;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}

.footer-links li + li {
  margin-top: 0.25rem;
}

.footer-social {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.14s ease, box-shadow 0.14s ease,
    background 0.14s ease, border-color 0.14s ease;
}

.social-icon-letter {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: lowercase;
}

.social-icon:hover {
  transform: translateY(-1px);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(200, 16, 46, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.9rem 0 1.4rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.footer-bottom-inner p {
  margin: 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

.footer-small-logo {
  width: 50px;
  height: 50px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-small-logo img {
  height: 50px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.2fr);
    padding-top: 3.5rem;
  }

  .hero-panel {
    margin-top: 2rem;
  }

  .highlight-grid,
  .solutions-grid,
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .nav {
    position: fixed;
    inset: 56px 0 0;
    background: var(--primary);
    border-bottom: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.3rem 1rem;
    gap: 0.75rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  .nav a {
    color: #ffffff;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-inline: 1.25rem;
  }

  .grid-3,
  .highlight-grid,
  .solutions-grid,
  .cert-grid,
  .stats-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

