/* ==========================================================================
   MRII Capital Partners — Sitio Web
   Paleta oficial de marca aplicada
   ========================================================================== */

:root {
  /* Brand colors */
  --azul-marino: #384D63;
  --azul-marino-dark: #2A3B4D;
  --verde-teal: #478894;
  --verde-teal-dark: #36707A;
  --azul-cielo: #C3D9E2;
  --azul-cielo-light: #E4EEF3;
  --gris-claro: #DBDDDD;
  --gris-soft: #F5F6F7;
  --white: #FFFFFF;
  --black: #1A1F25;

  /* Typography */
  --font-display: 'Outfit', 'Calibri', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Calibri', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --section-pad: clamp(4rem, 8vw, 7rem);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--azul-marino);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================ Typography ============================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--azul-marino);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.05rem;
  color: #4A5A6E;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde-teal);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: #6B7A8C;
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

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

.btn-primary:hover {
  background: var(--verde-teal);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(56, 77, 99, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

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

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================ Header / Nav ============================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(56, 77, 99, 0.96);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

/* Hide mobile-only close button on desktop */
.nav-menu-close {
  display: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--azul-cielo);
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--azul-cielo);
}

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

.lang-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.lang-btn.active {
  background: var(--azul-cielo);
  color: var(--azul-marino);
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  background: var(--verde-teal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--white);
  color: var(--azul-marino);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* ============================ Hero ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--azul-marino) 0%, var(--azul-marino-dark) 50%, #1F2D3D 100%);
  color: var(--white);
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(71, 136, 148, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(195, 217, 226, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at top, rgba(195, 217, 226, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--azul-cielo);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(195, 217, 226, 0.4);
  border-radius: 2px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.75rem;
}

.hero h1 .accent {
  color: var(--azul-cielo);
  font-style: italic;
  font-weight: 400;
}

.hero p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 640px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Floating side tagline — follows scroll on right side of viewport */
.hero-tagline {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 50;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--verde-teal);
  opacity: 0;
  writing-mode: vertical-rl;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.5s var(--ease), color 0.4s var(--ease);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  display: none;
}

.hero-tagline.visible { opacity: 0.85; }

/* Color shifts based on background tone */
.hero-tagline.on-dark {
  color: var(--azul-cielo);
  text-shadow: 0 0 12px rgba(56, 77, 99, 0.5);
}

/* Decorative line accent above tagline */
.hero-tagline::before {
  content: '';
  display: block;
  width: 1px;
  height: 50px;
  background: currentColor;
  margin: 0 auto 1rem;
  opacity: 0.6;
}

@media (min-width: 1100px) {
  .hero-tagline { display: block; }
}

/* Hero stats strip */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(195, 217, 226, 0.15);
  padding: 1.5rem 0;
  z-index: 2;
}

.hero-stats-eyebrow {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--azul-cielo);
  opacity: 0.85;
  margin-bottom: 1.1rem;
  position: relative;
}

.hero-stats-eyebrow::before,
.hero-stats-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--azul-cielo);
  vertical-align: middle;
  margin: 0 0.8rem;
  opacity: 0.5;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--azul-cielo);
  line-height: 1;
}

.hero-stat .label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  /* Let hero grow naturally so stats sit below content (no overlap) */
  .hero {
    min-height: auto;
    padding: 7rem 0 0;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-content {
    margin-bottom: 2.5rem;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
    margin-bottom: 1.25rem;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  .hero-eyebrow {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
  }
  /* Stats flow below content instead of overlapping */
  .hero-stats {
    position: relative;
    margin-top: 1rem;
    padding: 1.75rem 0 1.75rem;
    background: rgba(0, 0, 0, 0.3);
  }
  .hero-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .hero-stats-eyebrow {
    font-size: 0.65rem;
  }
  .hero-stats-eyebrow::before,
  .hero-stats-eyebrow::after {
    width: 16px;
    margin: 0 0.5rem;
  }
  .hero-stat .num {
    font-size: 1.35rem;
  }
  .hero-stat .label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 6rem;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero-stats-grid {
    gap: 0.75rem;
  }
  .hero-stat .num {
    font-size: 1.15rem;
  }
  .hero-stat .label {
    font-size: 0.6rem;
  }
}

/* ============================ Section base ============================ */
section {
  padding: var(--section-pad) 0;
}

.section-light {
  background: var(--white);
}

.section-soft {
  background: var(--gris-soft);
}

.section-cielo {
  background: var(--azul-cielo-light);
}

.section-dark {
  background: var(--azul-marino);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

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

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

/* ============================ Approach (Differentiators) ============================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

.approach-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--azul-marino), var(--verde-teal));
}

.approach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  mix-blend-mode: luminosity;
}

.approach-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(56, 77, 99, 0.6));
}

.approach-image .frame-accent {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.diff-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diff-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.diff-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--verde-teal);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--azul-cielo-light);
  border-radius: 2px;
}

.diff-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.diff-text p {
  font-size: 1rem;
  margin: 0;
}

/* ============================ Sectors grid ============================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--gris-claro);
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--verde-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.sector-card:hover::before {
  transform: scaleX(1);
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(56, 77, 99, 0.08);
  border-color: transparent;
}

.sector-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--azul-cielo-light);
  border-radius: 50%;
  color: var(--verde-teal);
}

.sector-icon svg {
  width: 28px;
  height: 28px;
}

.sector-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul-marino);
  letter-spacing: 0.02em;
}

/* ============================ Stats banner ============================ */
.stats-banner {
  background: var(--azul-marino);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(71, 136, 148, 0.2), transparent 60%);
  pointer-events: none;
}

/* Light variant — for visual distinction from adjacent azul-marino sections */
.stats-banner-teal {
  background: var(--gris-soft);
  color: var(--azul-marino);
}

.stats-banner-teal::before {
  background: radial-gradient(circle, rgba(71, 136, 148, 0.08), transparent 60%);
}

.stats-banner-teal h2 {
  color: var(--azul-marino) !important;
}

.stats-banner-teal .eyebrow {
  color: var(--verde-teal) !important;
}

.stats-banner-teal .stat-big {
  color: var(--verde-teal);
}

.stats-banner-teal .stat-label {
  color: var(--azul-marino);
  opacity: 0.85;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--azul-cielo);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
  transition: transform 0.5s var(--ease);
  position: relative;
}

.stat-big.stat-animating {
  animation: stat-pop 1.8s var(--ease);
}

.stat-big.stat-animating::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
  transform: translateX(-50%);
  animation: stat-underline 1.8s var(--ease) forwards;
}

@keyframes stat-pop {
  0%   { transform: scale(0.9); opacity: 0.4; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes stat-underline {
  0%   { width: 0; }
  60%  { width: 0; }
  100% { width: 40px; }
}

/* Hero stats numbers — softer pop (smaller scale) */
.hero-stat .num {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}

.hero-stat .num.stat-animating {
  animation: stat-pop-soft 1.6s var(--ease);
}

@keyframes stat-pop-soft {
  0%   { transform: scale(0.95); opacity: 0.5; }
  60%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.stat-label {
  margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================ Projects ============================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.project-card {
  position: relative;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--gris-claro);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(56, 77, 99, 0.15);
}

.project-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--azul-marino), var(--verde-teal));
  position: relative;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(56, 77, 99, 0.4));
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.project-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: var(--azul-marino);
  padding: 0.3rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}

.project-body {
  padding: 1.75rem;
}

.project-body .location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--verde-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.project-body p {
  font-size: 0.95rem;
  color: #6B7A8C;
}

/* ============================ CTA ============================ */
.cta-section {
  background: linear-gradient(135deg, var(--azul-marino), var(--verde-teal-dark));
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 100%, rgba(195, 217, 226, 0.15), transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--azul-marino);
}

.cta-section .btn-primary:hover {
  background: var(--azul-cielo);
  color: var(--azul-marino);
}

/* ============================ Footer ============================ */
.site-footer {
  background: var(--azul-marino-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azul-cielo);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--azul-cielo);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--azul-cielo);
}

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ============================ Page header (interior pages) ============================ */
.page-hero {
  background: linear-gradient(135deg, var(--azul-marino), var(--azul-marino-dark));
  color: var(--white);
  padding: 11rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(71, 136, 148, 0.25), transparent 50%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 720px;
  margin-top: 1.25rem;
}

.breadcrumbs {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul-cielo);
  margin-bottom: 1.5rem;
}

.breadcrumbs span { opacity: 0.5; margin: 0 0.5rem; }

/* ============================ About specifics ============================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  padding: 2.5rem 2rem;
  background: var(--white);
  border-left: 4px solid var(--verde-teal);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 4px 20px rgba(56, 77, 99, 0.04);
  transition: transform 0.3s var(--ease);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(56, 77, 99, 0.08);
}

.value-card .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--verde-teal);
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* Capabilities */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--gris-claro);
}

@media (max-width: 768px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}

.capability {
  padding: 2rem;
  border-right: 1px solid var(--gris-claro);
  border-bottom: 1px solid var(--gris-claro);
  background: var(--white);
  transition: background 0.3s var(--ease);
}

.capability:nth-child(2n) { border-right: none; }
.capability:hover { background: var(--azul-cielo-light); }

.capability h4 {
  font-size: 1rem;
  color: var(--azul-marino);
  margin-bottom: 0.4rem;
}

.capability p {
  font-size: 0.9rem;
  margin: 0;
  color: #6B7A8C;
}

/* ============================ Investments specifics ============================ */
.featured-project {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(56, 77, 99, 0.08);
}

@media (max-width: 900px) {
  .featured-project { grid-template-columns: 1fr; }
}

.featured-project.reverse { direction: rtl; }
.featured-project.reverse > * { direction: ltr; }

.featured-image {
  aspect-ratio: 16/11;
  background: linear-gradient(135deg, var(--azul-marino), var(--verde-teal));
  position: relative;
  overflow: hidden;
}

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

.featured-body {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body .tag {
  display: inline-block;
  background: var(--azul-cielo-light);
  color: var(--verde-teal-dark);
  padding: 0.35rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 1rem;
  width: fit-content;
}

.featured-body h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.featured-body .meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--verde-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.featured-body p {
  font-size: 1rem;
  line-height: 1.7;
}

.featured-body .feature-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.featured-body .feature-list li {
  font-size: 0.95rem;
  color: var(--azul-marino);
  padding-left: 1.5rem;
  position: relative;
}

.featured-body .feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--verde-teal);
  border-radius: 50%;
}

/* ============================ Contact specifics ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-info-card {
  background: var(--azul-marino);
  color: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(71, 136, 148, 0.3), transparent 60%);
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.contact-info-card > p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(195, 217, 226, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul-cielo);
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--azul-cielo);
  margin-bottom: 0.25rem;
}

.contact-detail .value {
  font-size: 1rem;
  color: var(--white);
}

.contact-detail .value a:hover {
  color: var(--azul-cielo);
}

.contact-form {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  border: 1px solid var(--gris-claro);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul-marino);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gris-claro);
  background: var(--gris-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--azul-marino);
  border-radius: 2px;
  transition: all 0.2s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--verde-teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(71, 136, 148, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  justify-content: center;
}

/* Mobile nav */
@media (max-width: 1024px) {
  /* Remove backdrop-filter on mobile — it creates a containing block that
     breaks position:fixed for the nav menu (limits it to header area). */
  .site-header,
  .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--azul-marino);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    gap: 0.5rem;
    padding: 5.5rem 2rem 2rem;
    list-style: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(195, 217, 226, 0.12);
  }
  .nav-menu .nav-link {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    padding: 1rem 0;
    letter-spacing: 0.12em;
  }
  .nav-menu .nav-link::after { display: none; }
  .nav-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(195, 217, 226, 0.2);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    z-index: 2;
  }
  .nav-actions { gap: 0.5rem; }
  .nav-cta { display: none; }
}

@media (max-width: 480px) {
  .nav-menu {
    padding: 5rem 1.5rem 2rem;
  }
  .nav-menu .nav-link {
    font-size: 1rem;
    padding: 0.9rem 0;
  }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bilingual */
[lang="es"] .lang-en { display: none; }
[lang="en"] .lang-es { display: none; }

/* ============================ Inline scale stats ============================ */
.inline-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--azul-cielo-light) 0%, var(--white) 100%);
  border: 1px solid var(--gris-claro);
  border-left: 4px solid var(--verde-teal);
  border-radius: 4px;
  max-width: 920px;
  flex-wrap: wrap;
}

.inline-stat {
  flex: 1;
  min-width: 220px;
  text-align: center;
}

.inline-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--verde-teal);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.inline-stat .label {
  font-size: 0.85rem;
  color: var(--azul-marino);
  line-height: 1.4;
  opacity: 0.85;
  max-width: 260px;
  margin: 0 auto;
}

.inline-stat-divider {
  flex: 0 0 1px;
  min-width: 1px;
  max-width: 1px;
  height: 60px;
  background: var(--gris-claro);
  align-self: center;
}

@media (max-width: 700px) {
  .inline-stats {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.75rem;
  }
  .inline-stat-divider {
    width: 60px;
    max-width: 60px;
    height: 1px;
  }
}

/* ============================ Interactive Map ============================ */
.map-wrapper {
  margin-top: 3rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gris-claro);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(56, 77, 99, 0.08);
}

#mrii-map {
  width: 100%;
  height: 520px;
  z-index: 1;
}

@media (max-width: 768px) {
  #mrii-map { height: 400px; }
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: var(--gris-soft);
  border-top: 1px solid var(--gris-claro);
}

.region-pin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--azul-marino);
}

.region-pin::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--verde-teal);
  box-shadow: 0 0 0 4px rgba(71, 136, 148, 0.2);
}

.region-pin-soon::before,
.region-pin-infra::before {
  background: #B89A5E;
  box-shadow: 0 0 0 4px rgba(184, 154, 94, 0.22);
}

.region-pin-industrial::before {
  background: var(--verde-teal);
  box-shadow: 0 0 0 4px rgba(71, 136, 148, 0.22);
}

/* Custom Leaflet markers — MRII teal pin with pulse */
.mrii-marker {
  position: relative;
  width: 40px;
  height: 50px;
}

.mrii-marker-pin {
  position: absolute;
  inset: 0;
  background: var(--verde-teal);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(56, 77, 99, 0.3);
  border: 2px solid var(--white);
  width: 36px;
  height: 36px;
  margin: 4px;
}

/* Infrastructure markers — warm gold to differentiate from industrial teal */
.mrii-marker-soon .mrii-marker-pin,
.mrii-marker-infra .mrii-marker-pin {
  background: #B89A5E;
  box-shadow: 0 4px 12px rgba(132, 102, 48, 0.3);
}

.mrii-marker-soon .mrii-marker-pulse,
.mrii-marker-infra .mrii-marker-pulse {
  background: rgba(184, 154, 94, 0.45);
}

.mrii-marker-pin svg {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}

.mrii-marker-pulse {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(71, 136, 148, 0.4);
  animation: mrii-pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes mrii-pulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Leaflet popup — MRII branded */
.mrii-popup-wrapper .leaflet-popup-content-wrapper {
  background: var(--white);
  border-radius: 4px;
  border: 1px solid var(--gris-claro);
  box-shadow: 0 12px 32px rgba(56, 77, 99, 0.18);
  padding: 0;
}

.mrii-popup-wrapper .leaflet-popup-content {
  margin: 0;
  font-family: var(--font-body);
}

.mrii-popup-wrapper .leaflet-popup-tip {
  background: var(--white);
}

.mrii-popup {
  padding: 1.25rem 1.4rem;
}

.mrii-popup-tag,
.mrii-popup-tag-soon {
  display: inline-block;
  background: var(--azul-cielo-light);
  color: var(--verde-teal-dark);
  padding: 0.25rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.mrii-popup-tag-soon,
.mrii-popup-tag-infra {
  background: rgba(184, 154, 94, 0.15);
  color: #8E723C;
}

.mrii-popup h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--azul-marino);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.mrii-popup-loc {
  font-size: 0.78rem;
  color: var(--verde-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.mrii-popup p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4A5A6E;
  margin: 0;
}

/* Leaflet zoom control styling */
.leaflet-bar a {
  background-color: var(--white);
  color: var(--azul-marino);
  border-color: var(--gris-claro);
}

.leaflet-bar a:hover {
  background-color: var(--azul-cielo-light);
  color: var(--azul-marino);
}

/* Disclaimer */
.disclaimer {
  background: var(--gris-soft);
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: #6B7A8C;
  line-height: 1.6;
  text-align: center;
}

.disclaimer p {
  font-size: 0.75rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
