/* ══════════════════════════════════════
   SUMMIT COMMAND v6 — Mountain Palette
   ══════════════════════════════════════ */
:root {
  --black: #0b0f12;
  --surface: #141a1f;
  --surface-hover: #1a2228;
  --border: #243038;
  --border-glow: rgba(120, 180, 210, 0.2);
  --text: #e8eaed;
  --text-muted: #8a9aaa;
  --text-dim: #556575;
  --accent: #5ba4c9;
  --accent-light: #7ec4e0;
  --accent-pale: #a0d8ef;
  --accent-deep: #3a7a9c;
  --accent-glow: rgba(91, 164, 201, 0.12);
  --earth: #c49a6c;
  --earth-light: #d4b08a;
  --green: #6a9e7e;
  --green-muted: #4a7a5e;
  --snow: #dce4e8;
  --rock: #6b7580;
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 120px 0; }

/* ══════ REVEAL ANIMATIONS ══════ */
.reveal {
  opacity: 0; transform: translateY(60px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-80px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(80px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* ══════ SECTION LABELS & HEADINGS ══════ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
}
.section-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.section-heading span { color: var(--accent); }
.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
}

/* ══════ BUTTONS ══════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 60px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(91, 164, 201, 0.35);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 60px;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   UNIFIED SECTION FLOW SYSTEM
   All sections share --black background.
   Depth comes from ambient glows, not bg switches.
   ══════════════════════════════════════ */

/* Ambient glow — subtle radial light behind sections */
.ambient-glow {
  position: relative;
}
.ambient-glow::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80%; height: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ambient-glow > .container { position: relative; z-index: 1; }

.glow-orange::before {
  background: radial-gradient(ellipse at center, rgba(196, 154, 108, 0.03) 0%, transparent 70%);
}
.glow-blue::before {
  background: radial-gradient(ellipse at center, rgba(91, 164, 201, 0.04) 0%, transparent 70%);
}
.glow-mixed::before {
  background:
    radial-gradient(ellipse 60% 40% at 30% 40%, rgba(91, 164, 201, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(106, 158, 126, 0.03) 0%, transparent 70%);
}



/* ══════ NAVIGATION ══════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.5s var(--ease-out);
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 40px; width: auto; filter: brightness(1.1); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-portal {
  padding: 10px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s var(--ease-out);
}
.nav-portal:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 2px;
  transform-origin: center;
}
/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 360px;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right 0.5s var(--ease-out);
    border-left: 1px solid var(--border);
    z-index: 1001;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.125rem; }
}

/* ══════ HERO ══════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
}
.hero-video-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(180deg,
    #0a1018 0%,
    #101e2e 8%,
    #1a3550 18%,
    #2d5575 30%,
    #4a85a8 40%,
    #6aadcc 48%,
    #8ac5dc 54%,
    #aed8e8 60%,
    #d0e0e5 65%,
    #e0d5c0 70%,
    #d4b898 75%,
    #b08060 80%,
    #3a2820 88%,
    var(--black) 100%
  );
  position: relative;
}
.hero-video-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 30% at 50% 50%, rgba(200, 225, 240, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 15% at 25% 42%, rgba(220, 235, 245, 0.08) 0%, transparent 80%),
    radial-gradient(ellipse 35% 12% at 65% 38%, rgba(210, 230, 240, 0.06) 0%, transparent 80%),
    radial-gradient(ellipse 50% 10% at 80% 45%, rgba(200, 220, 235, 0.05) 0%, transparent 75%),
    radial-gradient(ellipse 30% 8% at 15% 48%, rgba(215, 230, 240, 0.04) 0%, transparent 80%);
}
.hero-video-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 75%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600'%3E%3Cdefs%3E%3ClinearGradient id='sky-mist' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23aed8e8' stop-opacity='0.15'/%3E%3Cstop offset='100%25' stop-color='%23aed8e8' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='far' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23354860'/%3E%3Cstop offset='40%25' stop-color='%232a3d52'/%3E%3Cstop offset='100%25' stop-color='%230b0f12'/%3E%3C/linearGradient%3E%3ClinearGradient id='mid1' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%232a3848'/%3E%3Cstop offset='30%25' stop-color='%23223040'/%3E%3Cstop offset='100%25' stop-color='%230b0f12'/%3E%3C/linearGradient%3E%3ClinearGradient id='mid2' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%231e2a38'/%3E%3Cstop offset='100%25' stop-color='%230b0f12'/%3E%3C/linearGradient%3E%3ClinearGradient id='near' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23161e28'/%3E%3Cstop offset='100%25' stop-color='%230b0f12'/%3E%3C/linearGradient%3E%3ClinearGradient id='front' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23101820'/%3E%3Cstop offset='100%25' stop-color='%230b0f12'/%3E%3C/linearGradient%3E%3ClinearGradient id='snow1' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23c8d8e0' stop-opacity='0.6'/%3E%3Cstop offset='100%25' stop-color='%23354860' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='snow2' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23b8ccd5' stop-opacity='0.4'/%3E%3Cstop offset='100%25' stop-color='%232a3848' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,600 L0,300 Q40,280 80,290 Q140,230 200,255 Q260,180 340,210 Q390,140 450,175 Q500,100 560,140 Q610,70 680,110 Q730,50 800,85 Q850,30 920,65 Q980,100 1040,75 Q1100,40 1180,70 Q1240,110 1300,80 Q1360,50 1440,90 L1440,600Z' fill='url(%23far)'/%3E%3Cpath d='M440,175 Q500,100 560,140 Q610,70 680,110 Q730,50 800,85 Q850,30 920,65 L920,105 Q850,70 800,120 Q730,85 680,145 Q610,105 560,175 Q500,135 440,200Z' fill='url(%23snow1)'/%3E%3Cpath d='M0,600 L0,360 Q80,320 180,340 Q300,270 420,300 Q500,230 600,265 Q700,190 800,230 Q880,180 970,210 Q1060,250 1150,220 Q1260,180 1360,215 Q1400,230 1440,220 L1440,600Z' fill='url(%23mid1)'/%3E%3Cpath d='M0,600 L0,400 Q120,360 260,380 Q380,320 500,350 Q600,290 720,320 Q840,280 960,310 Q1060,340 1160,310 Q1280,280 1400,300 L1440,290 L1440,600Z' fill='url(%23mid2)'/%3E%3Cpath d='M0,600 L0,440 Q160,410 320,425 Q460,380 600,400 Q740,360 880,385 Q1020,370 1160,390 Q1300,400 1440,385 L1440,600Z' fill='url(%23near)'/%3E%3Cpath d='M0,600 L0,475 Q200,455 400,465 Q600,445 800,458 Q1000,448 1200,460 Q1350,455 1440,452 L1440,600Z' fill='url(%23front)'/%3E%3Cpath d='M0,600 L0,510 Q300,495 600,502 Q900,492 1200,500 Q1350,496 1440,498 L1440,600Z' fill='%230b0f12'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,15,18,0.4) 0%, rgba(11,15,18,0.05) 25%, rgba(11,15,18,0.2) 55%, rgba(11,15,18,0.7) 80%, var(--black) 100%),
    linear-gradient(90deg, rgba(11,15,18,0.75) 0%, transparent 45%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 120px;
  padding-bottom: 120px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 32px;
  background: rgba(91, 164, 201, 0.05);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-top: 24px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}
.hero-actions {
  display: flex; gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}
.hero-stats {
  display: flex; gap: 48px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.1s forwards;
}
.hero-stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s var(--ease-out) 1.5s forwards;
  opacity: 0;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: var(--border);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}


/* ══════ PROBLEMA ══════ */
.problema { background: var(--black); }
.problema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.problema-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.problema-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.problema-quote {
  padding: 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 12px 12px 0;
  margin-top: 24px;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
}
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.pain-item:last-child { border-bottom: none; }
.pain-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}
.pain-text h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.pain-text p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 768px) {
  .problema-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ══════ SOBRE MÍ ══════ */
.sobre-mi { background: var(--black); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: stretch;
}
.sobre-photo {
  width: 100%;
  min-height: 400px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d1a24, var(--surface));
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sobre-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.sobre-photo-signature {
  position: absolute;
  bottom: 16px; left: 16px;
  width: 80px;
  opacity: 0.12;
  z-index: 3;
}
.sobre-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,11,0.6) 100%);
}
.sobre-text h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 20px; }
.sobre-text h3 em { color: var(--accent); font-style: normal; }
.sobre-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}
.sobre-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
}
.metric-box:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 30px rgba(91, 164, 201, 0.08);
}
.metric-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.metric-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 768px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .sobre-photo { min-height: 300px; max-height: 350px; }
  .sobre-metrics { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .metric-box { padding: 16px 12px; }
  .metric-num { font-size: 1.3rem; }
  .metric-label { font-size: 0.65rem; }
}

/* ══════ MATRIZ ETÉREA ══════ */
.matriz { background: var(--black); }
.matriz-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}
.matriz-intro p {
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  font-size: 1.05rem;
}
.matriz-zones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .matriz-zones {
    flex-direction: column;
    gap: 12px;
  }
  .zona-arrow {
    transform: rotate(90deg);
  }
}
.zona-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 40px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.zona-tormenta {
  background: rgba(91, 164, 201, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.zona-arrow { color: var(--text-dim); font-size: 1.5rem; }
.zona-ascenso {
  background: rgba(196, 154, 108, 0.12);
  border: 1px solid var(--earth);
  color: var(--earth);
}
.matriz-levels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nivel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}
.nivel.active {
  border-color: var(--border-glow);
  box-shadow: 0 0 40px rgba(91, 164, 201, 0.06);
}
.nivel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  cursor: pointer;
  transition: background 0.3s;
}
.nivel-header:hover { background: var(--surface-hover); }
.nivel-left { display: flex; align-items: center; gap: 20px; }
.nivel-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  width: 40px; height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nivel-title { font-size: 1.1rem; font-weight: 600; }
.nivel-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.nivel-chevron {
  color: var(--text-muted);
  transition: transform 0.4s var(--ease-out);
  font-size: 1.2rem;
}
.nivel.active .nivel-chevron { transform: rotate(180deg); color: var(--accent); }
.nivel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out);
}
.nivel.active .nivel-body { max-height: 400px; }
.nivel-content {
  padding: 0 32px 28px 92px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}
.nivel-content strong { color: var(--text); font-weight: 600; }

/* ══════ SERVICIOS ══════ */
.servicios { background: var(--black); }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.servicio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s;
}
.servicio-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  background: var(--surface);
  z-index: 1;
}
.servicio-card > * { position: relative; z-index: 2; }
.servicio-card:hover { transform: translateY(-8px); }
.servicio-card:hover::before { opacity: 1; }
.servicio-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 1.5rem;
  color: var(--accent);
}
.servicio-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 16px; }
.servicio-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .servicios-grid { grid-template-columns: 1fr; }
}

/* ══════ PROGRAMA ══════ */
.programa { background: var(--black); }
.etapas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.etapa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.etapa-header {
  padding: 32px;
  border-bottom: 1px solid var(--border);
}
.etapa-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.etapa-header h3 { font-size: 1.25rem; font-weight: 700; margin-top: 8px; }
.modulo { border-bottom: 1px solid var(--border); }
.modulo:last-child { border-bottom: none; }
.modulo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 0.9rem;
  font-weight: 500;
}
.modulo-header:hover { background: var(--surface-hover); }
.modulo-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-right: 12px;
}
.modulo-chevron {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: transform 0.3s var(--ease-out);
}
.modulo.active .modulo-chevron { transform: rotate(180deg); color: var(--accent); }
.modulo-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.modulo.active .modulo-body { max-height: 200px; }
.modulo-content {
  padding: 0 32px 16px 64px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.programa-cta {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
}
.programa-cta p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .etapas { grid-template-columns: 1fr; }
}

/* ══════ PRUEBA SOCIAL ══════ */
.social-proof {
  background: var(--black);
  overflow: hidden;
}
.logo-track-container {
  margin-top: 60px;
  overflow: hidden;
  position: relative;
}
.logo-track-container::before,
.logo-track-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logo-track-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--black) 0%, transparent 100%);
}
.logo-track-container::after {
  right: 0;
  background: linear-gradient(270deg, var(--black) 0%, transparent 100%);
}
.logo-track {
  display: flex;
  gap: 48px;
  animation: scrollLogos 50s linear infinite;
  width: max-content;
}
.logo-track:hover { animation-play-state: paused; }
.logo-item {
  flex-shrink: 0;
  width: 150px; height: 70px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  transition: all 0.3s;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}
.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0.7);
  opacity: 0.6;
  transition: all 0.3s;
}
.logo-item:hover img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}
.logo-item:hover {
  border-color: var(--border-glow);
  color: var(--text-muted);
}
@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-track-reverse { animation-direction: reverse; }

/* ══════ PROCESO ══════ */
.proceso { background: var(--black); }
.pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  position: relative;
}
.pasos::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}
.paso { text-align: center; }
.paso-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  position: relative; z-index: 1;
  transition: all 0.4s var(--ease-out);
}
.paso:hover .paso-number {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(91, 164, 201, 0.2);
}
.paso h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.paso p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; font-weight: 300; }
@media (max-width: 768px) {
  .pasos { grid-template-columns: 1fr 1fr; }
  .pasos::before { display: none; }
}

/* ══════ FAQ ══════ */
.faq { background: var(--black); }
.faq-list { max-width: 800px; margin: 60px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s;
  width: 100%;
  text-align: left;
  color: var(--text);
}
.faq-question:hover { color: var(--accent); }
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s var(--ease-out);
  font-size: 1.2rem;
  color: var(--text-muted);
}
.faq-item.active .faq-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding-bottom: 28px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

/* ══════ CTA FINAL ══════ */
.cta-final {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(91, 164, 201, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 80%, rgba(91, 164, 201, 0.06) 0%, transparent 70%);
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 700px;
  margin: 0 auto;
}
.cta-final h2 span { color: var(--accent); }
.cta-final .section-sub {
  max-width: 500px;
  margin: 24px auto 0;
  text-align: center;
}
.cta-actions {
  display: flex; gap: 16px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ══════ FOOTER ══════ */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--black);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo { height: 32px; opacity: 0.6; }
.footer-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }

/* ══════ WHATSAPP FLOAT ══════ */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.4s var(--ease-out);
  animation: fadeUp 1s var(--ease-out) 2s forwards;
  opacity: 0;
}
.wa-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}
.wa-float svg { width: 28px; height: 28px; fill: white; }
.wa-float::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: waPulse 2s infinite;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0; }
}


/* ══════ ORGANIC BORDERS — Natural feel ══════ */
.problema-card { border-radius: 20px 8px 16px 12px; }
.servicio-card { border-radius: 16px 24px 12px 20px; }
.servicio-card::before { border-radius: 16px 24px 12px 20px; }
.servicio-card::after { border-radius: 16px 24px 12px 20px; }
.etapa { border-radius: 12px 20px 16px 24px; }
.metric-box { border-radius: 16px 8px 14px 10px; }
.nivel { border-radius: 14px 20px 10px 16px; }
.programa-cta { border-radius: 20px 12px 18px 8px; }
.logo-item { border-radius: 14px 8px 12px 10px; }
.faq-toggle { border-radius: 50%; }
.hero-badge { border-radius: 30px 40px 35px 45px; }
.nav-portal { border-radius: 30px 40px 35px 45px; }
.btn-primary { border-radius: 40px 50px 45px 55px; }
.btn-secondary { border-radius: 45px 35px 50px 40px; }
.zona-badge { border-radius: 30px 40px 35px 45px; }

/* ══════ FX CANVAS ══════ */
.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.hero .fx-canvas { z-index: 2; }
.sobre-mi, .matriz, .cta-final { position: relative; }
.sobre-mi .fx-canvas,
.matriz .fx-canvas,
.cta-final .fx-canvas { z-index: 0; }
.sobre-mi > .container,
.matriz > .container,
.cta-final > .container { position: relative; z-index: 1; }

/* ══════ GRAIN ══════ */
.grain {
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ══════════════════════════════════════
   MOBILE OPTIMIZATIONS — 768px and below
   Does NOT affect desktop layout
   ══════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Reduce section padding globally ── */
  .section-pad { padding: 72px 0; }

  /* ── Hero: compact everything ── */
  .hero-content {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 0.95rem; margin-top: 16px; }
  .hero-actions { margin-top: 28px; gap: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    padding: 14px 28px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    margin-bottom: 20px;
  }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.7rem; }

  /* ── Section headings smaller on mobile ── */
  .section-heading { font-size: 1.75rem; margin-bottom: 16px; }
  .section-sub { font-size: 1rem; }

  /* ── Problema: tighter spacing ── */
  .problema-quote { padding: 18px; margin-top: 18px; font-size: 0.9rem; }
  .pain-item { padding: 14px 0; }
  .problema-card { padding: 24px; }

  /* ── Sobre mí: tighter ── */
  .sobre-text h3 { font-size: 1.4rem; }
  .sobre-metrics { margin-top: 28px; }

  /* ── Matriz: tighter ── */
  .matriz-intro { margin-bottom: 32px; }
  .matriz-intro p { font-size: 0.95rem; }
  .nivel-header { padding: 18px 20px; }
  .nivel-content { padding: 0 20px 20px 62px; font-size: 0.85rem; }
  .nivel-number { width: 34px; height: 34px; font-size: 0.65rem; }

  /* ── Servicios: tighter ── */
  .servicio-card { padding: 28px 24px; }
  .servicio-icon { width: 44px; height: 44px; margin-bottom: 20px; font-size: 1.2rem; }
  .servicio-card h3 { font-size: 1.15rem; }

  /* ── Programa: tighter ── */
  .etapa-header { padding: 24px; }
  .etapa-header h3 { font-size: 1.1rem; }
  .modulo-header { padding: 14px 20px; font-size: 0.85rem; }
  .modulo-content { padding: 0 20px 14px 48px; font-size: 0.8rem; }
  .programa-cta { padding: 24px; margin-top: 32px; }
  .programa-cta p { font-size: 0.8rem; }

  /* ── Proceso: 1 column on small screens ── */
  .pasos { grid-template-columns: 1fr 1fr; gap: 20px; }
  .paso-number { width: 52px; height: 52px; font-size: 0.95rem; }
  .paso h4 { font-size: 0.95rem; }
  .paso p { font-size: 0.8rem; }

  /* ── FAQ: tighter ── */
  .faq-question { font-size: 0.95rem; padding: 20px 0; }
  .faq-answer-inner { font-size: 0.9rem; padding-bottom: 20px; }

  /* ── CTA: tighter ── */
  .cta-final { padding: 80px 0; }
  .cta-final h2 { font-size: 2rem; }
  .cta-actions { margin-top: 32px; }
  .cta-actions .btn-primary,
  .cta-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  /* ── WhatsApp float: smaller + higher to not overlap content ── */
  .wa-float {
    width: 52px; height: 52px;
    bottom: 20px; right: 20px;
  }
  .wa-float svg { width: 24px; height: 24px; }

  /* ── Footer: tighter ── */
  .footer { padding: 40px 0 30px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .footer-logo { margin: 0 auto; }
  .footer-location { text-align: center; }

  /* ── Logo track: smaller items ── */
  .logo-item { width: 120px; height: 56px; font-size: 0.58rem; padding: 6px; }
}