/* ═══════════════════════════════════════════════
   MiXa Mining Intelligence — Landing Page Styles
   ═══════════════════════════════════════════════ */

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

:root {
  --green-dark:   #1A4D3B;
  --green-bright: #4CAF50;
  --green-accent: #56C271;
  --gold:         #D4A017;
  --gold-light:   #E8C547;
  --teal:         #4A9B9B;
  --navy:         #1C2B4A;
  --cream:        #F0EDE8;
  --cream-dark:   #E4DFD7;
  --white:        #FFFFFF;
  --text-body:    #3D3D3D;
  --text-muted:   #6B7280;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(28,43,74,.08);
  --shadow-md: 0 6px 24px rgba(28,43,74,.12);
  --shadow-lg: 0 16px 48px rgba(28,43,74,.18);

  --transition: .35s cubic-bezier(.4,0,.2,1);
  --nav-h: 68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TOPOGRAPHIC BACKGROUND ─────────────────── */
.topo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: .18;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cg fill='none' stroke='%231A4D3B' stroke-width='1.2'%3E%3Cellipse cx='400' cy='400' rx='380' ry='200'/%3E%3Cellipse cx='400' cy='400' rx='340' ry='170'/%3E%3Cellipse cx='400' cy='400' rx='300' ry='140'/%3E%3Cellipse cx='400' cy='400' rx='260' ry='110'/%3E%3Cellipse cx='400' cy='400' rx='220' ry='85'/%3E%3Cellipse cx='400' cy='400' rx='180' ry='62'/%3E%3Cellipse cx='400' cy='400' rx='140' ry='44'/%3E%3Cellipse cx='400' cy='400' rx='100' ry='30'/%3E%3Cellipse cx='400' cy='400' rx='60' ry='18'/%3E%3Cellipse cx='200' cy='300' rx='160' ry='90'/%3E%3Cellipse cx='200' cy='300' rx='130' ry='68'/%3E%3Cellipse cx='200' cy='300' rx='100' ry='50'/%3E%3Cellipse cx='600' cy='500' rx='180' ry='100'/%3E%3Cellipse cx='600' cy='500' rx='140' ry='75'/%3E%3Cellipse cx='600' cy='500' rx='100' ry='52'/%3E%3Cellipse cx='150' cy='600' rx='120' ry='70'/%3E%3Cellipse cx='150' cy='600' rx='90' ry='50'/%3E%3Cellipse cx='650' cy='150' rx='140' ry='80'/%3E%3Cellipse cx='650' cy='150' rx='100' ry='55'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 900px 900px;
  background-repeat: repeat;
}

.topo-dark {
  opacity: .10;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.2'%3E%3Cellipse cx='400' cy='400' rx='380' ry='200'/%3E%3Cellipse cx='400' cy='400' rx='340' ry='170'/%3E%3Cellipse cx='400' cy='400' rx='300' ry='140'/%3E%3Cellipse cx='400' cy='400' rx='260' ry='110'/%3E%3Cellipse cx='400' cy='400' rx='220' ry='85'/%3E%3Cellipse cx='400' cy='400' rx='180' ry='62'/%3E%3Cellipse cx='400' cy='400' rx='140' ry='44'/%3E%3Cellipse cx='400' cy='400' rx='100' ry='30'/%3E%3Cellipse cx='200' cy='300' rx='160' ry='90'/%3E%3Cellipse cx='200' cy='300' rx='120' ry='65'/%3E%3Cellipse cx='600' cy='500' rx='180' ry='100'/%3E%3Cellipse cx='600' cy='500' rx='130' ry='70'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── NAVBAR ──────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(240, 237, 232, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover { color: var(--green-dark); background: rgba(26,77,59,.08); }

.nav-cta {
  background: var(--green-dark) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--green-bright) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── SECTIONS & CONTAINERS ──────────────────── */
.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: .02em;
}

.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76,175,80,.35);
}

/* ── ANIMATION CLASSES ───────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .8s var(--transition) forwards;
}

.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .30s; }
.delay-3 { animation-delay: .45s; }
.delay-4 { animation-delay: .60s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }
.reveal.delay-4 { transition-delay: .48s; }

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 32px 80px;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 20, 15, 0.45) 0%,
      rgba(15, 35, 25, 0.35) 50%,
      rgba(10, 20, 15, 0.55) 100%
    ),
    url('assets/hero-mining.jpg')
    center center / cover no-repeat;
}

/* Navbar transparente sobre la foto */
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.9); }
.navbar:not(.scrolled) .nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.navbar:not(.scrolled) .nav-toggle span { background: #fff; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.hero-tagline {
  font-size: .9375rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 40px;
  letter-spacing: .03em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { top: 6px; opacity: 1; }
  80%  { top: 18px; opacity: .3; }
  100% { top: 6px; opacity: 1; }
}

/* ── CHALLENGE CARDS ─────────────────────────── */
.problema { background: var(--cream); }

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.challenge-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26,77,59,.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.challenge-icon {
  width: 48px;
  height: 48px;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.challenge-icon svg { width: 100%; height: 100%; }

.challenge-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.challenge-card p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── QUOTE ───────────────────────────────────── */
.section-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--navy);
  text-align: center;
  border-left: none;
  padding: 32px 40px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  line-height: 1.5;
  font-style: italic;
  position: relative;
}

.section-quote::before {
  content: '"';
  position: absolute;
  top: 12px; left: 24px;
  font-size: 4rem;
  color: var(--green-bright);
  font-family: var(--font-serif);
  line-height: 1;
  opacity: .4;
}

/* ── COMPARISON TABLE ────────────────────────── */
.diferenciacion { background: var(--white); }

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}

.comparison-table thead {
  background: var(--navy);
  color: var(--white);
}

.comparison-table thead th {
  padding: 18px 24px;
  text-align: left;
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dim-col { width: 28%; }
.trad-col { width: 36%; }
.mixa-col { width: 36%; }

.comparison-table .mixa-col {
  background: rgba(26,77,59,.06);
  border-left: 3px solid var(--green-bright);
}

.comparison-table thead .mixa-col {
  background: var(--green-dark);
  border-left: 3px solid var(--green-bright);
}

.mixa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 700;
}

.mixa-badge::before {
  content: '✦';
  color: var(--gold-light);
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(26,77,59,.08);
  transition: background var(--transition);
}

.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: rgba(26,77,59,.03); }

.comparison-table tbody td {
  padding: 18px 24px;
  vertical-align: top;
  line-height: 1.5;
}

.comparison-table tbody .trad-col {
  color: var(--text-muted);
}

.comparison-table tbody .mixa-col {
  color: var(--navy);
  font-weight: 500;
}

/* ── ARCHITECTURE LAYERS ─────────────────────── */
.arquitectura { background: var(--cream); }

.layers-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}

.layer {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.layer:hover { box-shadow: var(--shadow-md); }

.layer-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 0;
}

.layer-badge {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--white);
}

.layer-title-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.layer-subtitle {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .75;
}

.layer-desc {
  padding: 12px 28px 20px;
  font-size: .9375rem;
  color: var(--text-muted);
}

.layer-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0,0,0,.06);
}

.service-group {
  padding: 20px 24px;
  border-right: 1px solid rgba(0,0,0,.06);
}

.service-group:last-child { border-right: none; }

.service-group h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
  opacity: .8;
}

.service-group ul { padding: 0; }

.service-group li {
  font-size: .875rem;
  color: var(--text-muted);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.service-group li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
  top: 2px;
}

/* Layer color themes */
.layer-1 { background: #F0F7F4; border-left: 4px solid var(--green-dark); }
.layer-1 .layer-badge-1 { background: var(--green-dark); }
.layer-1 .layer-subtitle { color: var(--green-dark); }
.layer-1 .service-group h4 { color: var(--green-dark); }
.layer-1 .service-group li::before { color: var(--green-bright); }

.layer-2 { background: #EFF7F7; border-left: 4px solid var(--teal); }
.layer-2 .layer-badge-2 { background: var(--teal); }
.layer-2 .layer-subtitle { color: var(--teal); }
.layer-2 .service-group h4 { color: var(--teal); }
.layer-2 .service-group li::before { color: var(--teal); }

.layer-3 { background: #FBF7EE; border-left: 4px solid var(--gold); }
.layer-3 .layer-badge-3 { background: var(--gold); }
.layer-3 .layer-subtitle { color: var(--gold); }
.layer-3 .service-group h4 { color: var(--gold); }
.layer-3 .service-group li::before { color: var(--gold-light); }

.layer-4 { background: #1C2B4A; border-left: 4px solid #4B5A72; color: rgba(255,255,255,.9); }
.layer-4 .layer-badge-4 { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.layer-4 .layer-title-wrap h3 { color: var(--white); }
.layer-4 .layer-subtitle { color: var(--gold-light); }
.layer-4 .layer-desc { color: rgba(255,255,255,.65); }
.layer-4 .layer-services { border-top-color: rgba(255,255,255,.1); }
.layer-4 .service-group { border-right-color: rgba(255,255,255,.1); }
.layer-4 .service-group h4 { color: var(--gold-light); }
.layer-4 .service-group li { color: rgba(255,255,255,.6); }
.layer-4 .service-group li::before { color: var(--gold-light); }

/* AI Flow */
.ai-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 24px;
  flex-wrap: wrap;
}

.ai-flow-step {
  flex: 1;
  min-width: 150px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
}

.ai-flow-center {
  border-color: var(--gold-light);
  background: rgba(232,197,71,.08);
}

.ai-flow-icon {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--gold-light);
}

.ai-flow-content h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.ai-flow-content p {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
}

.ai-flow-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── ECUACIÓN DE VALOR ───────────────────────── */
.ecuacion { background: var(--navy); }

.ecuacion .section-label { color: var(--gold-light); }
.ecuacion .section-header h2 { color: var(--white); }

.formula-wrap {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  margin-bottom: 40px;
}

.formula {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.formula-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.formula-term {
  display: flex;
  align-items: center;
  gap: 4px;
}

.formula-bracket {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

.formula-text {
  font-size: .9375rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  padding: 8px 16px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
}

.formula-op {
  font-size: 1.4rem;
  color: var(--gold-light);
  font-weight: 300;
}

.formula-multiplier {
  display: flex;
  align-items: center;
  gap: 12px;
}

.formula-op-big {
  font-size: 2rem;
  color: var(--gold-light);
}

.formula-ai .formula-text {
  background: rgba(212,160,23,.15);
  color: var(--gold-light);
  border: 1px solid rgba(212,160,23,.3);
}

.formula-result {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.formula-equals {
  font-size: 2rem;
  color: var(--gold-light);
}

.formula-output {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--white);
  background: var(--green-dark);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  letter-spacing: .04em;
}

.ecuacion-quote {
  text-align: center;
  font-size: 1.0625rem;
  color: rgba(255,255,255,.7);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

.ecuacion-quote strong { color: var(--gold-light); }

/* ── PARA QUIÉN ──────────────────────────────── */
.para-quien { background: var(--cream-dark); }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.client-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green-dark);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.client-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--green-bright);
  opacity: .25;
  line-height: 1;
  margin-bottom: 12px;
}

.client-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.client-card p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── INTERSECCIÓN INTELIGENTE ────────────────── */
.interseccion { background: var(--white); }

.convergence-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  padding: 40px;
  background: var(--cream);
  border-radius: var(--radius-lg);
}

.convergence-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.conv-input {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.conv-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.conv-input-1 .conv-dot { background: var(--green-bright); }
.conv-input-2 .conv-dot { background: var(--teal); }
.conv-input-3 .conv-dot { background: var(--gold); }

.convergence-arrows svg {
  width: 120px;
  height: auto;
}

.convergence-engine {
  flex-shrink: 0;
}

.engine-core {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(26,77,59,.15), var(--shadow-md);
}

.engine-label {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  line-height: 1;
}

.engine-sublabel {
  font-size: .65rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.convergence-output-arrow {
  font-size: 2rem;
  color: var(--gold);
  flex-shrink: 0;
}

.output-badge {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  text-align: center;
  max-width: 200px;
}

.output-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.output-badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.output-badge p {
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
  line-height: 1.4;
}

.interseccion-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── CONTACTO ────────────────────────────────── */
.contacto {
  background: var(--green-dark);
  padding: 100px 0;
}

.contacto-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #FFFFFF !important;
  text-align: center;
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto 56px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  backdrop-filter: blur(8px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: .04em;
}

.optional {
  font-weight: 400;
  opacity: .6;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .9375rem;
  padding: 12px 16px;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-bright);
  background: rgba(255,255,255,.12);
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 1rem;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.btn-submit:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 24px rgba(212,160,23,.45);
}

.hidden { display: none !important; }

/* ── CONTACT INFO ────────────────────────────── */
.contact-info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 56px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.contact-info-box h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: .03em;
}

.contact-info-box p {
  color: rgba(255,255,255,.85);
  line-height: 1.8;
  font-size: .95rem;
}

.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-phones li {
  margin: 0;
}

.contact-phones a {
  color: var(--green-bright);
  font-weight: 600;
  transition: color var(--transition);
  display: inline-block;
}

.contact-phones a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.contact-separator {
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  margin-bottom: 40px;
  margin-top: 24px;
  letter-spacing: .02em;
}

/* ── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: -.02em;
}

.footer-brand-x {
  color: var(--green-bright);
  font-weight: 700;
}

.footer-tagline {
  font-style: italic;
  color: rgba(255,255,255,.5);
  font-size: .9375rem;
}

.footer-copy {
  color: rgba(255,255,255,.3);
  font-size: .8125rem;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(240,237,232,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }

  .challenge-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .layer-services { grid-template-columns: 1fr; }
  .service-group { border-right: none; border-bottom: 1px solid rgba(0,0,0,.06); }
  .service-group:last-child { border-bottom: none; }
  .layer-4 .service-group { border-bottom-color: rgba(255,255,255,.08); }

  .convergence-diagram {
    flex-direction: column;
    gap: 24px;
  }

  .convergence-arrows { display: none; }
  .convergence-output-arrow { transform: rotate(90deg); }

  .ai-flow { flex-direction: column; }
  .ai-flow-arrow { transform: rotate(90deg); }

  .form-row { grid-template-columns: 1fr; }
  .form-row .form-group { margin-bottom: 20px; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }

  .challenge-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: .8125rem; }
  .comparison-table thead th, .comparison-table tbody td { padding: 12px 14px; }
  .contact-form { padding: 28px 20px; }
  .formula-inputs { gap: 8px; }
  .formula-text { font-size: .8125rem; padding: 6px 10px; }

  .whatsapp-btn { bottom: 24px !important; right: 24px !important; }
}

/* ── WHATSAPP BUTTON ─────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  z-index: 500;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #1ABC9C;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
  transform: scale(0.95);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
}
