:root {
  /* Paleta Grupo Monterrico — logo GM (coral, amarillo, verde, terracota) */
  --color-coral: #E25650;
  --color-coral-dark: #C94540;
  --color-yellow: #F0B82E;
  --color-yellow-dark: #D9A020;
  --color-green: #248848;
  --color-green-dark: #1A6B38;
  --color-green-light: #2FA85C;
  --color-terracotta: #D4632F;
  --color-terracotta-dark: #B85325;
  --color-black: #0A0A0A;

  --color-primary: var(--color-terracotta);
  --color-primary-dark: var(--color-terracotta-dark);
  --color-primary-light: #E07845;

  --color-secondary: var(--color-green);
  --color-secondary-dark: var(--color-green-dark);
  --color-secondary-light: var(--color-green-light);

  --color-accent: var(--color-coral);
  --color-accent-dark: var(--color-coral-dark);

  --color-dark: var(--color-black);
  --color-dark-soft: #1a1a1a;
  --color-gray-900: #1a1a1a;
  --color-gray-700: #4a4a4a;
  --color-gray-500: #737373;
  --color-gray-300: #d4d4d4;
  --color-gray-100: #f5f5f3;
  --color-white: #ffffff;
  --color-bg-alt: #f7f6f2;

  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', var(--font-family);
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.75rem;
  --font-size-5xl: 3.5rem;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  --header-height: 84px;
  --subnav-height: 3.25rem;
  --transition: 0.25s ease;
  --container-max: 1400px;
  --focus-ring: 0 0 0 3px rgba(212, 99, 47, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--subnav-height));
}

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

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-md);
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Focus styles — never remove outline without replacement */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(var(--space-lg), 4vw, var(--space-3xl));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 99, 47, 0.4);
}

.btn-secondary {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45, 90, 39, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}

.btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

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

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-xs);
}

/* ============================================
   HEADER & MEGA MENU
   ============================================ */

/* Reserva espacio en el flujo; el header real va fixed para no perder sticky al scroll */
#site-header {
  height: var(--header-height);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--theme-header-bg, var(--color-white));
  border-bottom: none;
  transition: box-shadow 0.35s ease, backdrop-filter 0.35s ease, background-color 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  background: var(--theme-header-bg-scrolled, rgba(255, 255, 255, 0.92));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(var(--space-lg), 4vw, var(--space-3xl));
  height: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease;
}

.site-header.is-scrolled .header-inner {
  border-bottom-color: var(--theme-border, var(--color-gray-300));
}

.logo {
  display: flex;
  align-items: center;
  color: var(--color-dark);
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: min(280px, 55vw);
  object-fit: contain;
  display: block;
}

.logo--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}

.logo-mark {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-black);
  line-height: 1;
  white-space: nowrap;
}

.logo--footer.logo--stacked .logo-name {
  color: var(--color-white);
}

.logo--footer .logo-mark {
  height: 52px;
}

.logo--footer .logo-img {
  height: 56px;
  max-width: 260px;
}

.logo-svg {
  width: 160px;
  height: 36px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-trigger,
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-gray-900);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.nav-trigger:hover,
.nav-link:hover,
.nav-trigger[aria-expanded="true"] {
  color: var(--color-terracotta);
}

.nav-chevron {
  width: 12px;
  height: 8px;
  transition: transform var(--transition);
}

.nav-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-gray-700);
  transition: background var(--transition), color var(--transition);
}

.search-btn:hover {
  background: var(--color-gray-100);
  color: var(--color-primary);
}

/* Mega Menu */
.nav-item {
  position: static;
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-height);
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-300);
  box-shadow: var(--shadow-lg);
  animation: megaSlideDown 0.25s ease;
}

.mega-menu[hidden] {
  display: none;
}

@keyframes megaSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-2xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.mega-menu-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.mega-heading {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-md);
}

.mega-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mega-column a {
  font-size: var(--font-size-sm);
  color: var(--color-gray-900);
  padding: 4px 0;
  transition: color var(--transition);
}

.mega-column a:hover {
  color: var(--color-primary);
}

.mega-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.mega-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.mega-card-body {
  padding: var(--space-lg);
}

.mega-card-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

.mega-card-body p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
  margin: var(--space-sm) 0;
  line-height: 1.5;
}

.mega-card-cta {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.mega-menu-overlay {
  position: fixed;
  inset: var(--header-height) 0 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.mega-menu-overlay[hidden] {
  display: none;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(10, 10, 10, 0.5) 48%,
    rgba(36, 136, 72, 0.28) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.hero-eyebrow {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-md);
}

.hero-lead {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.125rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-white);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-lg);
  text-transform: none;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  max-width: none;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 38rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: linear-gradient(160deg, var(--color-black) 0%, var(--color-green-dark) 55%, var(--color-green) 100%);
  color: var(--color-white);
}

.section--dark .section-eyebrow {
  color: var(--color-yellow);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.8);
}

.section-eyebrow {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-green);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-yellow), var(--color-green));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-title.is-revealed::after {
  width: 64px;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, var(--font-size-3xl));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.section-head {
  margin-bottom: var(--space-2xl);
}

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

.section-head--center .section-title {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.section-head--center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-head--center .section-eyebrow {
  display: block;
}

.section-head--center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  font-size: var(--font-size-lg);
  color: var(--color-gray-700);
  max-width: 52ch;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* Split layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-2xl), 5vw, var(--space-4xl));
  align-items: center;
}

.split-layout--reverse .split-content {
  order: 2;
}

.split-layout--reverse .split-media {
  order: 1;
}

.split-content p {
  color: var(--color-gray-700);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

.split-media-img--contain {
  object-fit: contain;
  background: var(--color-bg-alt);
  padding: var(--space-md);
}

.split-media--cert .cert-placeholder {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-bg-alt);
}

.split-media--cert .cert-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
}

.feature-list {
  margin-bottom: var(--space-xl);
}

.feature-list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-gray-700);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
}

.section--dark .feature-list li {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   CARDS
   ============================================ */

.card-grid {
  display: grid;
  gap: clamp(var(--space-lg), 2.5vw, var(--space-xl));
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.content-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.content-card-link {
  display: block;
}

.content-card-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.content-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.content-card:hover .content-card-image img {
  transform: scale(1.05);
}

.content-card-body {
  padding: var(--space-xl);
}

.content-card-body h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.content-card-body p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.card-cta {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-terracotta);
}

/* Product cards */
.product-card {
  padding: var(--space-xl);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  border-color: var(--color-green);
  box-shadow: var(--shadow-md);
}

.product-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 800;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.card-grid--4 .product-card:nth-child(1) .product-card-icon {
  background: linear-gradient(135deg, var(--color-coral), var(--color-yellow));
  color: var(--color-white);
}

.card-grid--4 .product-card:nth-child(2) .product-card-icon {
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
}

.card-grid--4 .product-card:nth-child(3) .product-card-icon {
  background: linear-gradient(135deg, var(--color-yellow), var(--color-terracotta));
  color: var(--color-black);
}

.card-grid--4 .product-card:nth-child(4) .product-card-icon {
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-coral));
}

.product-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.product-card p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
  line-height: 1.6;
}

/* Portal cards */
.portal-card {
  padding: var(--space-2xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-green);
  transition: background var(--transition);
}

.portal-card:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.portal-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.portal-card p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

/* ============================================
   STATS
   ============================================ */

.stats {
  background: linear-gradient(
    135deg,
    var(--color-green-dark) 0%,
    var(--color-green) 40%,
    var(--color-terracotta) 100%
  );
  color: var(--color-white);
  padding: var(--space-3xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: var(--font-size-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--theme-footer-bg, var(--color-dark));
  color: var(--theme-footer-text, rgba(255, 255, 255, 0.8));
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.logo--footer {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: var(--font-size-sm);
  transition: color var(--transition);
}

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

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-dark-soft);
  color: var(--color-white);
  transition: background var(--transition), transform var(--transition);
}

.social-links a:hover {
  background: var(--color-primary);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .mega-menu-inner {
    grid-template-columns: 1fr;
  }

  .mega-menu-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .split-layout--reverse .split-content,
  .split-layout--reverse .split-media {
    order: unset;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  html,
  body {
    overflow-x: clip;
  }

  /* backdrop-filter en el header rompe position:fixed del panel móvil al scroll */
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .container {
    min-width: 0;
    max-width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header .logo.logo--stacked {
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
    min-width: 0;
    max-width: calc(100% - 3.5rem);
  }

  .site-header .logo-mark {
    height: 42px;
    width: 42px;
    flex-shrink: 0;
  }

  .site-header .logo-name {
    font-size: clamp(0.5625rem, 2.6vw, 0.6875rem);
    letter-spacing: 0.1em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--theme-bg-elevated, var(--color-white));
    padding: var(--space-lg);
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1001;
    visibility: hidden;
    pointer-events: none;
  }

  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-trigger,
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-gray-100);
  }

  .mega-menu {
    position: static;
    box-shadow: none;
    border: none;
    animation: none;
  }

  .mega-menu-inner {
    padding: var(--space-md) 0;
    gap: var(--space-lg);
  }

  .mega-menu-links {
    grid-template-columns: 1fr;
  }

  .mega-card {
    display: none;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-gray-100);
  }

  .hero {
    min-height: 72vh;
  }

  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: var(--space-3xl);
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-tagline {
    max-width: 22rem;
  }

  .site-footer .logo--stacked {
    align-items: center;
  }

  .site-footer nav,
  .footer-social {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn {
    padding: 1rem 1.5rem;
    white-space: normal;
    line-height: 1.4;
  }

  .btn-sm {
    padding: 0.625rem 1.25rem;
  }

  .split-content > .btn {
    margin-top: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Mapa de cobertura — reglas críticas (no depender solo de animations.css) */
.operations-map__map-col,
.operations-map__frame,
.operations-map__viewport {
  min-height: 0;
}

.operations-map__viewport {
  isolation: isolate;
}

.operations-map__geo,
.operations-map__layers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.operations-map img.operations-map__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.operations-map img.operations-map__layer:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.operations-map img.operations-map__layer.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.operations-map__pin {
  --pin-x: 50%;
  --pin-y: 50%;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
