/* ============================================================
   APRENDIZAJE SUPERVISADO — DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ── */
:root {
  color-scheme: dark;
  /* Backgrounds */
  --bg:         #06080f;
  --bg-soft:    #0b0f1c;
  --bg-mid:     #0e1425;
  /* Panels */
  --panel:      rgba(255,255,255,0.055);
  --panel-md:   rgba(255,255,255,0.09);
  --panel-hi:   rgba(255,255,255,0.14);
  /* Text */
  --text:       #f0f4ff;
  --muted:      #8a97b4;
  --muted-2:    #b8c4d8;
  /* Brand */
  --blue:       #18bfff;
  --blue-2:     #1255e8;
  --blue-glow:  rgba(24,191,255,0.35);
  --orange:     #ff8c1a;
  --orange-2:   #ffb347;
  --orange-glow:rgba(255,140,26,0.35);
  /* Lines */
  --line:       rgba(255,255,255,0.1);
  --line-md:    rgba(255,255,255,0.16);
  /* Shadows */
  --shadow:     0 24px 80px rgba(0,0,0,0.6);
  --shadow-sm:  0 4px 24px rgba(0,0,0,0.4);
  /* Premium Cards */
  --card-bg:    #0a0f1d;
  --card-border:rgba(255,255,255,0.06);
  --input-bg:   rgba(255,255,255,0.03);
  --input-border:rgba(255,255,255,0.12);
  /* Shape */
  --radius:     10px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  /* Layout */
  --max:        1200px;
  --header-h:   70px;
}

:root.light {
  color-scheme: light;
  --bg:         #f4f6fb;
  --bg-soft:    #ffffff;
  --bg-mid:     #edf0f8;
  --panel:      rgba(10,20,50,0.05);
  --panel-md:   rgba(10,20,50,0.08);
  --panel-hi:   rgba(10,20,50,0.13);
  --text:       #071226;
  --muted:      #5a6880;
  --muted-2:    #3d4f6a;
  --line:       rgba(10,20,50,0.1);
  --line-md:    rgba(10,20,50,0.18);
  --shadow:     0 24px 70px rgba(24,47,85,0.12);
  --shadow-sm:  0 4px 20px rgba(24,47,85,0.08);
  /* Premium Cards Light */
  --card-bg:    #ffffff;
  --card-border:rgba(10,20,50,0.08);
  --input-bg:   #f8fafc;
  --input-border:rgba(10,20,50,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
p { color: var(--muted); margin-bottom: 0; }

/* ── Typography ── */
h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  color: var(--text);
}
h2 {
  font-size: clamp(2rem, 3.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* ── Accents ── */
.accent-blue {
  color: var(--blue);
  text-shadow: 0 0 40px rgba(24,191,255,0.55), 0 0 80px rgba(24,191,255,0.2);
}
.accent-orange {
  color: var(--orange);
  text-shadow: 0 0 36px rgba(255,140,26,0.55), 0 0 70px rgba(255,140,26,0.2);
}
:root.light .accent-blue, 
:root.light .accent-orange {
  text-shadow: none;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.eyebrow-accent { color: var(--orange); }
.eyebrow-sm {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

/* ── Buttons ── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-2), #0e40c0);
  color: #fff;
  border-color: rgba(24,191,255,0.4);
  box-shadow: 0 0 30px rgba(18,85,232,0.55), 0 4px 20px rgba(0,0,0,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1a6fff, var(--blue-2));
  box-shadow: 0 0 45px rgba(18,85,232,0.7), 0 6px 28px rgba(0,0,0,0.4);
}
.btn-ghost {
  background: rgba(255,140,26,0.06);
  color: var(--text);
  border-color: rgba(255,140,26,0.6);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 35px rgba(255,140,26,0.5), 0 4px 15px rgba(0,0,0,0.2);
}

.btn-orange {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 140, 26, 0.5);
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.15);
}

.btn-orange:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 30px rgba(255, 140, 26, 0.4);
  transform: translateY(-2px);
}
:root.light .btn-ghost {
  background: rgba(255,140,26,0.04);
  border-color: rgba(255,140,26,0.6);
}
:root.light .btn-ghost:hover {
  background: var(--orange);
  color: #fff;
}

/* ── HEADER (nav pill) ── */
.site-header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.6rem 2rem;
  background: rgba(6,8,15,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.3s ease, border-color 0.3s ease;
}
:root.light .site-header {
  background: rgba(244,246,251,0.82);
  border-color: rgba(10,20,50,0.14);
  box-shadow: 0 4px 32px rgba(24,47,85,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}
.site-header.scrolled {
  background: rgba(6,8,15,0.92);
  border-color: rgba(255,255,255,0.14);
}
:root.light .site-header.scrolled {
  background: rgba(244,246,251,0.95);
}

/* ── LOGO (esquina superior izquierda, se desplaza con el scroll) ── */
.brand-header {
  position: absolute;
  top: 1.5rem;
  left: 2.5rem; /* Increased to prevent clipping */
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: fit-content;
}

@media (min-width: 769px) {
  .brand-header {
    top: 1.5rem;
    left: 2rem;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start; /* Mantener a la izquierda */
    width: auto;
  }
}

.brand-logo {
  width: auto;
  height: 80px;
  max-width: 220px;
  object-fit: contain;
}

.brand-text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  opacity: 0.85;
}

.logo-light-only { display: none; }
:root.light .logo-dark-only { display: none; }
:root.light .logo-light-only { display: block; }

/* Oculto en desktop, visible solo en móvil */
.brand-mobile { 
  display: none !important; 
}

/* Removido el bloque que centraba el logo en pantallas medianas */

/* ── MÓVIL: header unificado con logo integrado ── */
@media (max-width: 768px) {
  /* Ocultar el logo flotante de escritorio con fuerza */
  .brand-header {
    display: none !important;
  }

  /* Header ocupa todo el ancho y alinea en fila */
  .site-header {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 0.6rem 1rem;
    justify-content: space-between;
  }

  /* Logo dentro del header, visible solo en móvil */
  .brand-mobile {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-decoration: none;
    order: 2; /* Centro */
    flex: 1;
    justify-content: center;
  }

  .brand-mobile .brand-logo {
    height: 36px;
  }

  .brand-mobile .brand-text {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  /* Hamburguesa a la izquierda */
  .nav-toggle {
    display: flex;
    order: 1;
  }

  /* Toggle de tema a la derecha */
  .theme-toggle {
    order: 3;
  }

  /* Ocultar nav en móvil (se abre con hamburguesa) */
  .main-nav {
    display: none;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 1.2rem; /* Even more space to fill the 1000px width elegantly */
}
.main-nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}
.main-nav a:hover {
  color: var(--text);
  background: var(--panel-md);
}
.main-nav a[aria-current="page"],
.main-nav a.active {
  color: var(--text);
  font-weight: 600;
  background: transparent;
}
.main-nav a[aria-current="page"]::after,
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: var(--orange);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--orange-glow);
  animation: navReveal 0.3s ease-out forwards;
}

@keyframes navReveal {
  from { width: 0; opacity: 0; }
  to { width: 14px; opacity: 1; }
}

/* Theme toggle */
.theme-toggle {
  background: var(--bg-soft);
  border: 1px solid var(--line-md);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
  border-radius: 999px;
  cursor: pointer;
  padding: 3px;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}
.theme-toggle:hover {
  border-color: var(--muted);
  transform: scale(1.05);
}

:root.light .theme-toggle {
  background: #ffffff;
  border-color: rgba(0,0,0,0.12);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.toggle-track {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.toggle-thumb {
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--muted-2);
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
:root.light .toggle-thumb {
  transform: translateX(23px) translateY(-50%);
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(255,140,26,0.4);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── HOME HERO ── */
.home-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
  isolation: isolate;
  background: radial-gradient(ellipse 140% 80% at 50% 100%, rgba(6,15,40,0.9), transparent),
              var(--bg);
}

/* Canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Auras */
.hero-aura {
  position: absolute;
  top: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.aura-left {
  left: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 55%, rgba(24,191,255,0.28), transparent 60%),
    repeating-linear-gradient(16deg, rgba(24,191,255,0.22) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, transparent 85%);
}
.aura-right {
  right: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 55%, rgba(255,140,26,0.28), transparent 60%),
    repeating-linear-gradient(-16deg, rgba(255,140,26,0.22) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(270deg, rgba(0,0,0,0.9) 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,0.9) 0%, transparent 85%);
}

/* Founders */
.founder-wrap {
  position: absolute;
  bottom: 0;
  z-index: 3;
  width: clamp(300px, 32vw, 500px);
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
}
.founder-wrap.founder-left  { left: -2vw; }
.founder-wrap.founder-right { right: -2vw; }

.founder-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 80%;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}
.glow-blue   { background: radial-gradient(circle, rgba(24,191,255,0.6), transparent 70%); }
.glow-orange { background: radial-gradient(circle, rgba(255,140,26,0.6),  transparent 70%); }

.founder-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  max-height: 100vh;
  display: block;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(1) contrast(1);
}

.founder-wrap:hover .founder-glow {
  opacity: 0.85;
  transform: translateX(-50%) scale(1.2);
}

.founder-wrap:hover .founder-img {
  transform: scale(1.03) translateY(-5px);
  filter: brightness(1.1) contrast(1.05); /* Very subtle brightness boost */
}

/* Founder Cards */
.founder-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 280px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.founder-wrap:hover .founder-card {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -70px);
}

.founder-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #bbb);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-skills {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-2);
  line-height: 1.4;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: #fff;
  opacity: 0.9;
  border-left: 2px solid var(--blue);
  padding-left: 0.8rem;
}

.card-right .card-quote {
  border-left-color: var(--orange);
}

/* Light mode overrides for founder cards */
:root.light .founder-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

:root.light .founder-card h3 {
  background: linear-gradient(to right, #071226, #3d4f6a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root.light .card-quote {
  color: #3d4f6a;
}

:root.light .card-skills {
  color: #5a6880;
}

/* Light mode overrides for buttons */
:root.light .btn-primary {
  background: linear-gradient(135deg, #1255e8, #0e40c0);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(18, 85, 232, 0.25);
}

:root.light .btn-primary:hover {
  background: linear-gradient(135deg, #0e40c0, #0a31a0);
  box-shadow: 0 6px 28px rgba(18, 85, 232, 0.35);
}

:root.light .btn-ghost {
  background: rgba(255, 140, 26, 0.08); /* Slightly more visible background */
  color: #ff8c1a; /* Orange text for better legibility */
}

:root.light .btn-ghost:hover {
  color: #fff;
}

/* Hero copy */
.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 780px;
  padding: 3rem 1rem;
}
.hero-copy .eyebrow {
  color: var(--accent-orange);
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.hero-copy h1 { 
  margin-bottom: 1.5rem; 
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1.05;
}
.hero-copy .lead {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--muted-2);
  line-height: 1.6;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.hero-copy .actions { 
  display: flex;
  justify-content: center; 
  gap: 1.2rem;
}

/* New Hero Features */
.hero-features {
  display: none;
}

.mobile-only { display: none; }

/* New Hero Features - Desktop */
.hero-features {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only { display: block; }
  
  .hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    width: 100%;
  }
  .h-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
  }
  .h-feature h4 { font-size: 0.6rem; margin: 0; }
  .h-feature p { font-size: 0.5rem; line-height: 1.2; opacity: 0.7; margin: 0; }
  .hf-icon svg { width: 18px; height: 18px; color: var(--accent-blue); }
  
  .nav-toggle {
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  :root.light .nav-toggle { background: rgba(0,0,0,0.05); }
}

.btn-primary {
  background: var(--accent-orange);
  box-shadow: 0 0 25px rgba(232, 169, 126, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(232, 169, 126, 0.5);
  transform: translateY(-2px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.br-desk { display: block; }

/* Responsive tweaks */
@media (max-width: 768px) {
  /* Logo outside but looks inside on mobile */
  .brand-header { 
    position: absolute; 
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 200;
    display: flex;
    flex-direction: row !important; /* Keep horizontal on mobile */
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
  }
  .brand-logo { height: 40px !important; margin: 0; }
  .brand-text { 
    display: block; 
    font-size: 0.45rem; 
    margin: 0;
    font-weight: 900; 
    letter-spacing: 0.12em;
    opacity: 0.85;
    line-height: 1;
  }

  .site-header { 
    top: 0.7rem; 
    width: calc(100% - 1.2rem); 
    min-width: 0 !important; /* Reset desktop min-width */
    padding: 0.4rem 0.7rem;
    gap: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-toggle { display: flex; order: 1; }
  .theme-toggle { order: 3; }
  
  .main-nav {
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: rgba(11, 15, 28, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--line-md);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1rem;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 10000;
  }
  
  :root.light .main-nav {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0,0,0,0.15);
  }
  
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .main-nav a {
    width: 100%;
    padding: 0.9rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a:last-child { border-bottom: none; }
  
  /* Global hero lift - ULTRA AGGRESSIVE reduction */
  .hero { 
    align-items: flex-start !important; 
    padding-top: 0 !important; 
    min-height: auto !important; 
    height: auto !important;
  }
  
  .hero-copy { 
    padding: 0rem 1rem 2rem !important; 
    margin-top: -5.5rem !important; /* Force pull-up */
    position: relative;
    z-index: 10;
  }
  .hero-copy .eyebrow { 
    font-size: 0.6rem; 
    margin-bottom: 0.2rem; 
    margin-top: 0 !important; /* Remove offset */
    letter-spacing: 0.1em;
  }
  .hero-copy h1 { 
    font-size: clamp(1.8rem, 10vw, 2.3rem); 
    margin-bottom: 0.6rem; 
    letter-spacing: -0.04em; 
    line-height: 1;
  }
  .hero-copy .lead { 
    font-size: 0.78rem; 
    margin-bottom: 1.2rem; 
    line-height: 1.4;
    max-width: 90%;
    margin-inline: auto;
  }
  .hero-copy .actions { 
    flex-direction: column; 
    width: 100%; 
    max-width: 260px; 
    margin-inline: auto; 
    gap: 0.8rem; 
  }
  .btn { 
    width: 100%; 
    padding: 0.8rem; 
    min-height: 46px; 
    font-size: 0.85rem; 
    border-radius: 12px;
  }
  
  /* Larger founders as in reference */
  .founder-wrap { 
    width: 320px; 
    bottom: -20px;
    z-index: 2;
  }
  .founder-wrap.founder-left  { left: -70px; }
  .founder-wrap.founder-right { right: -70px; }
  
  /* Section Spacing Reduction */
  .systems-section { padding: 3rem 0 !important; }
  .experience-inner { padding: 1.5rem 0 !important; gap: 1.5rem !important; }
  .exp-header { text-align: center; }
  .exp-header h2 { font-size: 1.8rem !important; margin-bottom: 1rem !important; }
  .exp-header .exp-desc { margin-inline: auto; font-size: 0.9rem !important; }
  
  .desktop-only { display: none !important; }
  
  /* NEW MOBILE EXPERIENCE GRID */
  .exp-grid-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }
  .exp-card-mobile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
  }
  .ec-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .ec-icon.blue { color: var(--accent-blue); box-shadow: 0 0 15px rgba(24, 191, 255, 0.2); }
  .ec-icon.orange { color: var(--accent-orange); box-shadow: 0 0 15px rgba(255, 140, 26, 0.2); }
  
  .ec-num {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
  }
  .ec-num.blue { background: linear-gradient(135deg, #4a8cf7, #b886ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .ec-num.orange { background: linear-gradient(135deg, #ff8c1a, #ffbe5c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  
  .exp-card-mobile p {
    font-size: 0.75rem;
    color: var(--muted-2);
    line-height: 1.2;
    margin: 0;
  }
  
  /* FOOTER DIVIDER */
  .exp-footer { text-align: center; margin-top: 1.5rem; }
  .footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .f-line { height: 1px; flex: 1; background: var(--line); max-width: 80px; }
  .f-star { color: var(--accent-blue); opacity: 0.8; }
  .exp-footer h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }
  .exp-footer p { font-size: 0.85rem; color: var(--muted-2); margin: 0; }

  .color-blue-gradient-text { background: linear-gradient(135deg, #4a8cf7, #b886ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

  .btn-primary { 
    background: var(--accent-blue) !important; 
    box-shadow: 0 0 25px rgba(24, 191, 255, 0.4) !important; 
  }
  
  .br-desk { display: none; }

  /* Corregir posición de las tarjetas de los fundadores en móvil */
  .founder-card {
    width: 280px;
    padding: 1.25rem;
  }
  .founder-wrap.founder-left .founder-card {
    left: 80px; 
    transform: translateX(0) translateY(-10px);
  }
  .founder-wrap.founder-left:hover .founder-card {
    transform: translateX(0) translateY(-70px);
  }
  .founder-wrap.founder-right .founder-card {
    left: auto;
    right: 80px; 
    transform: translateX(0) translateY(-10px);
  }
  .founder-wrap.founder-right:hover .founder-card {
    transform: translateX(0) translateY(-70px);
  }
}

.hero-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  z-index: 4;
}

/* Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal-up    { animation: fadeSlideUp    0.9s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.reveal-left  { animation: fadeSlideLeft  0.9s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.reveal-right { animation: fadeSlideRight 0.9s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
/* ── TOOL MARQUEE SECTION ── */
.tools-marquee-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 5rem 0 3rem;
  overflow: hidden;
  /* Also reset global margins from layout */
  margin-top: 0;
  margin-bottom: 0;
}
.section-label-center {
  text-align: center;
  color: var(--muted-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.section-label-center::before,
.section-label-center::after {
  content: "";
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, rgba(24, 191, 255, 0.5), transparent);
}
.section-label-center::after {
  background: linear-gradient(90deg, transparent, rgba(255, 140, 26, 0.5), transparent);
}

.tool-marquee-wrapper {
  width: 100%;
  display: flex;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.tool-marquee {
  display: flex;
  width: max-content;
  animation: scrollMarquee 45s linear infinite;
  padding: 1rem 0;
}
.tool-marquee:hover {
  animation-play-state: paused;
}
@keyframes scrollMarquee {
  to { transform: translateX(-50%); }
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-md);
  margin-right: 1.5rem;
  box-shadow: 0 10px 20px -10px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}
.tool-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.8);
  z-index: 10;
}
.tool-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}
.tool-icon svg { transition: transform 0.3s ease; }
.tool-card:hover .tool-icon svg { transform: scale(1.15) rotate(-3deg); filter: drop-shadow(0 0 8px currentColor); }
.tool-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Specific glows for each brand */
.claude-glow   { background: radial-gradient(circle at 50% 0, rgba(232, 169, 126, 0.15) 0%, var(--bg) 70%); }
.chatgpt-glow  { background: radial-gradient(circle at 50% 0, rgba(116, 215, 247, 0.15) 0%, var(--bg) 70%); }
.gemini-glow   { background: radial-gradient(circle at 50% 0, rgba(66, 133, 244, 0.15) 0%, var(--bg) 70%); }
.notebook-glow { background: radial-gradient(circle at 50% 0, rgba(244, 185, 65, 0.15) 0%, var(--bg) 70%); }
.power-glow    { background: radial-gradient(circle at 50% 0, rgba(0, 120, 212, 0.15) 0%, var(--bg) 70%); }
.pbi-glow      { background: radial-gradient(circle at 50% 0, rgba(242, 200, 17, 0.15) 0%, var(--bg) 70%); }
.copilot-glow  { background: radial-gradient(circle at 50% 0, rgba(0, 145, 255, 0.15) 0%, var(--bg) 70%); }
.python-glow   { background: radial-gradient(circle at 50% 0, rgba(55, 118, 171, 0.15) 0%, var(--bg) 70%); }
.make-glow     { background: radial-gradient(circle at 50% 0, rgba(104, 44, 158, 0.15) 0%, var(--bg) 70%); }
.n8n-glow      { background: radial-gradient(circle at 50% 0, rgba(255, 109, 90, 0.15) 0%, var(--bg) 70%); }
.tf-glow       { background: radial-gradient(circle at 50% 0, rgba(255, 111, 0, 0.15) 0%, var(--bg) 70%); }
.keras-glow    { background: radial-gradient(circle at 50% 0, rgba(208, 0, 0, 0.15) 0%, var(--bg) 70%); }
.excel-glow    { background: radial-gradient(circle at 50% 0, rgba(33, 115, 70, 0.15) 0%, var(--bg) 70%); }

:root.light .tool-icon { background: rgba(255,255,255,0.8); }

/* ── LAYOUT HELPERS ── */
main { overflow: hidden; }
section {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* ── ADVANCED SYSTEMS SECTION ── */
.systems-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0; /* Adjusted as per previous requests */
  border-top: 1px solid var(--line);
}

.systems-label {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  margin-bottom: 1rem;
}

.systems-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.systems-desc {
  font-size: 1.05rem;
  color: var(--muted-2);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 95%;
}

.sys-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sys-feature-block {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 1.5rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.8rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sys-feature-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.3s;
}

.sys-feature-block:nth-child(1)::before { background: var(--blue); }
.sys-feature-block:nth-child(2)::before { background: var(--orange); }
.sys-feature-block:nth-child(3)::before { background: var(--blue); opacity: 0.7; }

.sys-feature-block:hover {
  background: rgba(255,255,255,0.03);
  transform: translateX(5px);
  border-color: rgba(255,255,255,0.15);
}

.sys-feature-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.sys-feature-num.active-orange { color: var(--orange); }

.sys-feature-content h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.sys-feature-content p { font-size: 0.9rem; color: var(--muted-2); line-height: 1.5; margin: 0; }

.sys-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
}

.systems-col-graphics { position: relative; width: 100%; }
.systems-graphic-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
  background: #02040a;
}
.systems-graphic-img { width: 100%; height: auto; display: block; opacity: 0.9; transition: opacity 0.5s ease; }
.systems-graphic-img:hover { opacity: 1; }

/* ── EXPERIENCE BAND ── */
.experience-band {
  width: 100%;
  padding: 8rem 0 12rem 0; /* Más espacio abajo para la onda */
  background: #02040a url('../assets/fondoFlujo.png') no-repeat bottom center / cover;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Eliminamos el div extra ya que usamos background-image para más control */
.exp-bg-graphics { display: none; }

.experience-inner {
  width: min(var(--max), calc(100% - 4rem));
  margin-inline: auto;
  min-height: 500px; /* Asegura espacio suficiente para el diseño */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Cabecera arriba, métricas abajo */
  position: relative;
  z-index: 1;
}

.exp-header {
  max-width: 900px;
}

.exp-title {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.exp-desc {
  font-size: 1.15rem;
  color: var(--muted-2);
  line-height: 1.7;
  max-width: 650px;
}

/* Timeline Desktop sobre la onda */
.timeline-metrics-wrapper {
  margin-top: 8rem; /* Empuja las métricas hacia la zona de la onda */
  position: relative;
  width: 100%;
}

.timeline-line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  z-index: 0;
}

.timeline-metrics {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 1;
}

.tl-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 25%;
}

.tl-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.tl-icon.blue-glow {
  box-shadow: 0 0 20px rgba(24, 191, 255, 0.2);
  border-color: rgba(24, 191, 255, 0.4);
}

.tl-icon.orange-glow {
  box-shadow: 0 0 20px rgba(255, 140, 26, 0.2);
  border-color: rgba(255, 140, 26, 0.4);
}

.tl-content strong {
  display: block;
  font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.color-blue-gradient {
  background: linear-gradient(135deg, #18bfff, #1255e8);
}

.color-orange-gradient {
  background: linear-gradient(135deg, #ff8c1a, #ffb347);
}

.color-blue-gradient-text {
  background: linear-gradient(135deg, #18bfff, #1255e8, #7e9ff5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tl-content span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid Mobile Toggle */
.exp-grid-mobile { display: none; }

@media (max-width: 1000px) {
  .timeline-metrics { flex-wrap: wrap; gap: 3rem 0; }
  .tl-node { width: 50%; }
  .timeline-line { display: none; }
}

@media (max-width: 768px) {
  .experience-band { padding: 4rem 0; }
  .timeline-metrics-wrapper { display: none; }
  .exp-grid-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
  }
}

/* ── BENTO ── */
.access-bento {
  padding: 7rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  grid-auto-rows: 230px;
  gap: 1rem;
}
.bento-item {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bento-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-md);
  box-shadow: var(--shadow-sm);
}
.bento-item small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 0.6rem;
}
.bento-item h3 { margin-bottom: 0.4rem; font-size: clamp(1rem, 1.5vw, 1.35rem); }
.bento-item p  { font-size: 0.9rem; flex: 1; }
.bento-arrow {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.bento-item:hover .bento-arrow { transform: translateX(5px); color: var(--text); }

.bento-resource {
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(255,140,26,0.18) 0%, var(--panel) 60%);
  border-color: rgba(255,140,26,0.2);
}
.bento-resource:hover { border-color: rgba(255,140,26,0.4); }
.bento-consult {
  background: linear-gradient(160deg, rgba(24,191,255,0.18) 0%, var(--panel) 60%);
  border-color: rgba(24,191,255,0.2);
}
.bento-consult:hover { border-color: rgba(24,191,255,0.4); }

/* Decorative glow orb behind each card */
.bento-item::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -60px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,191,255,0.18), transparent 65%);
  pointer-events: none;
}
.bento-resource::after { background: radial-gradient(circle, rgba(255,140,26,0.18), transparent 65%); }

/* ── CLOSING CTA ── */
.closing-cta {
  padding: 7rem 0 8rem;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}
.closing-cta h2 { margin-bottom: 0.5rem; }
.closing-cta .actions { justify-content: center; margin-top: 2rem; }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 3.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
}
.footer-brand { grid-column: 1; }
.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}
.footer-brand p { font-size: 0.9rem; margin-top: 0.25rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  align-items: center;
  justify-content: flex-end;
}
.footer-nav a {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.footer-nav a:hover { color: var(--text); background: var(--panel-md); }
.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   OTHER PAGE SECTIONS (consulting, recursos, cursos, newsletter, contacto)
   ================================================================ */

/* Shared hero grid for inner pages */
.hero-grid,
.consulting-hero,
.library-hero,
.course-hero,
.editorial-hero,
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.inner-hero {
  min-height: calc(100vh - var(--header-h));
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(3rem, 6vw, 6rem);
  display: grid;
  align-items: center;
}
.hero-copy { max-width: 760px; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: var(--text); }

/* Visual panels */
.consulting-hero .process-visual,
.pdf-mock,
.course-card,
.email-stack,
.message-visual {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem;
}
.before-after div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.before-after span {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--panel-md);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted-2);
}
.before-after div:last-child span {
  background: linear-gradient(90deg, rgba(24,191,255,0.18), rgba(255,140,26,0.15));
}

/* Consulting page */
.problem-section { padding: 5rem 0; max-width: 940px; }
.service-lanes { display: grid; gap: 0; }
.lane {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.lane:first-child { border-top: 0; }
.lane span { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.method-section { padding: 6rem 0; }
.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 80px 0.5fr 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.timeline li::before { content: counter(step, decimal-leading-zero); color: var(--blue); font-weight: 860; }
.timeline span { color: var(--muted); }
.quote {
  margin: 3rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.14;
  color: var(--text);
  border-left: 4px solid var(--orange);
  padding-left: 1.5rem;
}
.use-case-wall { padding: 2rem 0 6rem; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 1rem;
}
.case-grid article {
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--panel), rgba(24,191,255,0.07));
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s;
}
.case-grid article:hover { transform: translateY(-3px); }
.case-wide { grid-column: span 2; }
.case-tall { grid-row: span 2; }
.tools-marquee {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 2.5rem max(1rem, calc((100vw - var(--max)) / 2));
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tools-marquee span {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── NEWSLETTER PAGE STYLES ── */
.newsletter-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(24, 191, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.newsletter-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.newsletter-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.newsletter-hero .accent-blue {
  color: var(--blue);
  display: block;
  margin-top: 5px;
  text-shadow: 0 0 30px rgba(24, 191, 255, 0.4);
}

.newsletter-hero .lead {
  font-size: 1.2rem;
  color: var(--muted-2);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-inline: auto;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form .input-wrap {
  flex: 1;
}

.newsletter-form input {
  height: 56px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  padding: 0 1.5rem;
  font-size: 1rem;
  border-radius: 14px;
  color: var(--text);
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(24, 191, 255, 0.1);
}

.newsletter-form .btn {
  height: 56px;
  padding: 0 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(24, 191, 255, 0.5);
  color: #fff;
  position: relative;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 15px rgba(24, 191, 255, 0.2);
}

.newsletter-form .btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(24, 191, 255, 0.5);
}

.courses-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.course-coming-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.ccc-inner {
  display: flex;
  align-items: center;
  padding: 3rem 4rem 2rem;
  gap: 2rem;
  background: radial-gradient(circle at 75% 50%, rgba(255, 140, 26, 0.08) 0%, transparent 70%);
  position: relative;
}

.ccc-content {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
}

.ccc-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  max-width: 500px;
}

.ccc-subtext {
  color: var(--muted-2);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 420px;
}

.ccc-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 360px;
  margin-bottom: 0;
}

.ccc-form input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  padding: 0 1.25rem;
  height: 50px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.ccc-form input:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 140, 26, 0.1);
}

.ccc-form button {
  width: 100%;
  height: 50px;
  padding: 0 1.5rem;
  white-space: nowrap;
}

/* Features - Full Width Panel */
.ccc-features {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2rem 3rem;
  background: var(--panel);
  border-top: 1px solid var(--card-border);
}

.ccc-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-2);
  font-weight: 600;
  font-size: 1rem;
}

.ccc-feature svg {
  color: var(--orange);
}

/* Mascot Visual - Moved more to the right as per user arrow */
.ccc-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  margin-right: -3rem; /* Allow it to touch the edge more closely */
}

.mascot-container {
  position: relative;
  width: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-img {
  width: 100%;
  height: auto;
  z-index: 2;
  /* Balanced mask for right-side position */
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  filter: drop-shadow(0 0 50px rgba(255, 140, 26, 0.2));
}

.mascot-smoke {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at center, rgba(255, 140, 26, 0.2) 0%, rgba(24, 191, 255, 0.05) 40%, transparent 70%);
  filter: blur(60px);
  z-index: 1;
  opacity: 0.7;
}

.mascot-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 140, 26, 0.3) 1px, transparent 0);
  background-size: 60px 60px;
  z-index: 2;
  opacity: 0.5;
}

/* Background glow */
.mascot-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 75%);
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}

@keyframes glowPulse {
  0% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.85); }
  100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.15); }
}

@media (max-width: 900px) {
  .courses-container { padding: 4rem 1.5rem; }
  .ccc-inner {
    flex-direction: column;
    padding: 3rem 2rem;
    text-align: center;
  }
  .ccc-form {
    flex-direction: column;
    width: 100%;
  }
  .ccc-features {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .mascot-container {
    width: 240px;
  }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--card-bg);
  padding: 6rem 2rem 4rem;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
  gap: 4rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 1.5rem;
  display: block;
}

.footer-brand p {
  color: var(--muted-2);
  font-size: 1rem;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted-2);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--blue);
}

.footer-divider {
  height: 1px;
  background: var(--line);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: flex-start;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 3rem;
  }
}

/* ── UTILITIES ── */

.newsletter-info {
  padding-bottom: 8rem; /* Extra space to breathe before the footer */
}

.ns-info-container {
  max-width: 1000px;
  margin: 0 auto;
}

.ns-quick-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.ns-info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted-2);
  font-weight: 500;
  font-size: 0.95rem;
}

.ns-info-icon.orange {
  width: 38px;
  height: 38px;
  background: rgba(255, 140, 26, 0.1);
  border: 1px solid rgba(255, 140, 26, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.1);
}

/* Integrated Social Proof */
.newsletter-social-integrated {
  display: flex;
  align-items: center; /* Align items in a row */
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  width: fit-content;
  margin: 0 auto;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--card-bg); /* Background colored border for cutout */
  margin-left: -15px;
  background: var(--card-bg);
  box-shadow: 0 0 0 2px var(--orange-glow); /* Glowing circle requested */
  object-fit: cover;
  position: relative;
  transition: transform 0.3s ease;
}

.avatar-img:hover {
  transform: translateY(-4px) scale(1.1);
  z-index: 10 !important;
}

.avatar-img:first-child {
  margin-left: 0;
}

.newsletter-social-integrated p {
  color: var(--muted-2);
  font-size: 1rem; /* Slightly larger text */
  max-width: none; /* No wrap necessary in row */
  text-align: left;
  line-height: 1.3;
}

:root.light .newsletter-hero .accent-blue {
  text-shadow: none;
}

:root.light .course-coming-card {
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(24, 47, 85, 0.08);
}

:root.light .ccc-features {
  background: #f8fafc;
}

:root.light .mascot-container::after {
  opacity: 0.1;
}

:root.light .avatar-img {
  border-color: var(--bg);
}

/* Light Mode adaptations */
:root.light .newsletter-form input {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #000;
}

:root.light .ns-info-icon.orange {
  background: rgba(255, 140, 26, 0.08);
}

:root.light .ns-info-item span {
  color: var(--muted-2);
}

:root.light .avatar-img {
  box-shadow: 0 0 0 2px rgba(255, 140, 26, 0.2);
}

@media (max-width: 800px) {
  .ns-quick-grid {
    gap: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin: 0 auto 3.5rem;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-social-integrated {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .newsletter-social-integrated p {
    text-align: center;
  }
}

/* ── FEATURED RESOURCE TEASER (HOME) ── */
.featured-resource-teaser {
  padding: 8rem 2rem;
  background: radial-gradient(circle at 80% 50%, rgba(24, 191, 255, 0.03) 0%, transparent 60%);
}

.fr-teaser-inner {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 4rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.fr-teaser-content {
  flex: 1;
}

.fr-teaser-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.fr-teaser-content p {
  color: var(--muted-2);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.fr-teaser-visual {
  flex: 0.6;
  display: flex;
  justify-content: center;
}

.book-mockup.mini {
  width: 180px;
  height: 260px;
  transform: rotateY(-20deg) rotateX(10deg);
}

@media (max-width: 768px) {
  .fr-teaser-inner {
    flex-direction: column;
    padding: 3rem 2rem;
    text-align: center;
  }
  .fr-teaser-content p {
    margin: 0 auto 2rem;
  }
}

/* ── RESOURCES PAGE STYLES ── */
.resources-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8rem 2rem;
}

.resource-premium-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 4rem;
  display: flex;
  gap: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

:root.light .resource-premium-card {
  box-shadow: 0 20px 50px rgba(24, 47, 85, 0.08);
}

.resource-premium-card::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 140, 26, 0.05) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

:root.light .resource-premium-card::after {
  opacity: 0.4;
}

.rpc-content {
  flex: 1.2;
  position: relative;
  z-index: 2;
}

.rpc-eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  display: block;
}

.rpc-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 2rem;
  color: var(--text);
}

.rpc-title .accent-orange {
  color: var(--orange);
}

.rpc-desc {
  color: var(--muted-2);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 480px;
}

.rpc-form {
  max-width: 400px;
  margin-bottom: 3rem;
}

.rpc-form input {
  width: 100%;
  height: 56px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 0 1.2rem;
  color: var(--text);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.rpc-form input:focus {
  background: var(--card-bg);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(24, 191, 255, 0.1);
}

.rpc-form .btn-submit {
  width: 100%;
  height: 56px;
  background: transparent;
  border: 1px solid rgba(24, 191, 255, 0.5);
  color: var(--text);
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.4s ease;
  box-shadow: 0 0 15px rgba(24, 191, 255, 0.1);
}

.rpc-form .btn-submit:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 30px rgba(24, 191, 255, 0.4);
  transform: translateY(-2px);
}

.rpc-foot-features {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.rpc-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.rpc-feature svg {
  color: var(--blue);
}

/* Book Visual */
.rpc-visual {
  flex: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.book-mockup {
  width: 280px;
  height: 400px;
  transform: rotateY(-15deg) rotateX(5deg);
  box-shadow: 20px 20px 50px rgba(0,0,0,0.6);
  border-radius: 8px 16px 16px 8px;
  position: relative;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

:root.light .book-mockup {
  box-shadow: 15px 15px 40px rgba(24, 47, 85, 0.2);
}

.book-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.book-mockup:hover {
  transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
  box-shadow: 30px 30px 70px rgba(0,0,0,0.7);
}

.book-mockup::before {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  width: 10px;
  height: 100%;
  background: linear-gradient(to bottom, #d6892a, #8f5d1e);
  border-radius: 0 4px 4px 0;
  z-index: -1;
}

/* Floating Download Button */
.rpc-floating-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(24, 191, 255, 0.3);
  background: rgba(24, 191, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  z-index: 5;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(24, 191, 255, 0.2);
}

.rpc-floating-btn:hover {
  background: var(--blue);
  color: #fff;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 40px rgba(24, 191, 255, 0.5);
}

@media (max-width: 900px) {
  .resource-premium-card {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 3rem;
  }
  .rpc-foot-features {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Resource Filters and Library... */
.form-section { display: grid; grid-template-columns: 0.8fr 1fr; gap: 3rem; padding: 6rem 0; }
.as-form, .inline-form, .stack-form { display: grid; gap: 0.9rem; }
input, textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-md);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,191,255,0.15);
}
textarea { min-height: 140px; resize: vertical; }

/* Recursos page */
.library-hero { min-height: 76vh; }
.pdf-mock {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255,140,26,0.12), rgba(24,191,255,0.1));
}
.pdf-cover {
  width: min(300px, 76%);
  aspect-ratio: 0.72;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  background: linear-gradient(145deg, #101827, #06152a 55%, #ff8a1f);
  box-shadow: 18px 20px 60px rgba(0,0,0,0.4);
}
.pdf-cover strong { font-size: 1.9rem; line-height: 1.06; color: var(--text); }
.lead-magnet {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 2rem;
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
}
.lead-magnet .inline-form { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
.benefit-list { margin: 0; color: var(--muted); columns: 2; line-height: 2; }
.resource-library { padding: 6rem 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 1rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.filters button:hover { background: var(--panel-md); color: var(--text); }
.filters button.active { background: var(--text); color: var(--bg); }
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.resource-card {
  min-height: 240px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.resource-card.is-hidden { opacity: 0.15; transform: scale(0.97); pointer-events: none; }
.resource-card span { color: var(--blue); font-weight: 700; }

/* Cursos page */
.course-hero { min-height: 86vh; }
.course-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(150deg, rgba(24,191,255,0.2), rgba(255,140,26,0.14)), var(--bg-soft);
}
.course-card h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
.hero-copy blockquote {
  margin: 2rem 0 0;
  color: var(--text);
  font-size: 1.3rem;
  border-left: 4px solid var(--blue);
  padding-left: 1rem;
}
.curriculum { padding: 5rem 0; }
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.curriculum-grid span {
  min-height: 120px;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.87rem;
}
.audience-section { max-width: 860px; padding: 0 0 7rem; }

/* Newsletter page */
.editorial-hero { min-height: 82vh; }
.email-stack {
  position: relative;
  padding: 2rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.email-stack article {
  position: absolute;
  width: 82%;
  min-height: 160px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.email-stack article:nth-child(1) { top: 8%; left: 0; z-index: 3; }
.email-stack article:nth-child(2) { top: 34%; right: 0; z-index: 2; }
.email-stack article:nth-child(3) { bottom: 8%; left: 10%; z-index: 1; }
.receive-section { padding: 4rem 0; }
.editorial-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.editorial-list p {
  margin: 0;
  padding: 1.3rem;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}
.manifesto { padding: 6rem 0 7rem; max-width: 820px; }

/* Contact page */
.contact-hero { min-height: 65vh; }
.message-visual {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(24,191,255,0.12), rgba(255,140,26,0.1));
}
.message-visual span { color: var(--blue); font-weight: 700; }
.message-visual strong {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  margin: 1rem 0;
}
.contact-layout { display: grid; grid-template-columns: 0.8fr 1fr; gap: 3rem; padding: 3rem 0 7rem; }
.contact-reasons { border-top: 1px solid var(--line); }
.contact-reasons p {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.98rem;
}
.contact-form {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.contact-form small { color: var(--muted); font-size: 0.8rem; }

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

@media (max-width: 960px) {
  .site-header { top: 0.6rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--line-md);
    border-radius: var(--radius-xl);
    background: rgba(6,8,15,0.95);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow);
    gap: 0.2rem;
  }
  :root.light .main-nav { background: rgba(244,246,251,0.97); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 0.7rem 1rem; border-radius: var(--radius); }
  .nav-toggle { display: flex; }

  .hero-grid, .consulting-hero, .library-hero, .course-hero,
  .editorial-hero, .contact-hero { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 60px 1fr; }
  .feature-strip p { grid-column: 2; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .access-bento { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .form-section, .lead-magnet, .contact-layout { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .site-header { border-radius: var(--radius-xl); }

  /* Hero mobile */
  .home-hero { flex-direction: column; align-items: center; }
  .founder-wrap {
    position: absolute;
    width: clamp(120px, 38vw, 200px);
  }
  .founder-wrap.founder-left  { left: 0;   bottom: 0; }
  .founder-wrap.founder-right { right: 0;  bottom: 0; }
  .hero-copy { padding: 2rem 0.5rem; }
  .hero-copy h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .br-desk { display: none; }
  .hero-copy .lead { font-size: 0.9rem; }
  .actions { flex-direction: column; align-items: center; }
  .btn { width: min(100%, 280px); }

  /* Tool strip */
  .tool-strip-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .tool-item { flex-shrink: 0; }

  /* Sections */
  .split-section { padding: 4rem 0; gap: 1.5rem; }
  .feature-strip { grid-template-columns: 1fr; padding-inline: 0; }
  .feature-strip h3 { margin-top: 0.25rem; }
  .experience-inner { padding: 4rem 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-item { padding: 1.25rem 1rem; }
  .access-bento { grid-template-columns: 1fr; grid-auto-rows: auto; padding: 4rem 0; }
  .bento-item { min-height: 180px; }
  .bento-resource { grid-row: auto; }
  .closing-cta { padding: 5rem 0 6rem; }

  /* Inner pages */
  .resource-grid, .curriculum-grid, .editorial-list { grid-template-columns: 1fr; }
  .curriculum-grid { grid-template-columns: repeat(2, 1fr); }
  .email-stack { min-height: 500px; padding: 0; }
  .email-stack article { width: 92%; }
  .tools-marquee { padding-inline: 1rem; }
  .lead-magnet { padding: 1.25rem; gap: 1.25rem; }
  .lead-magnet .inline-form, .inline-form { grid-template-columns: 1fr; }
  .benefit-list { columns: 1; }
}

/* ================================================================
   CONSULTING PAGE REDESIGN
   ================================================================ */

.consulting-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 50%, rgba(24,191,255,0.05) 0%, transparent 60%),
              linear-gradient(rgba(6,8,15,0.8), rgba(6,8,15,0.8)),
              url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGwtb3BhY2l0eT0iMC4wNSIgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTM2IDM0djJIMzR2LTJoMnptMCA0djJIMzR2LTJoMnptLTQgNHYySDMwdi0yaDJ6bTggMHYySDM2di0yaDJ6bS00IDR2MkgzMHYtMmgyem04IDB2MkgzNnYtMmgyem0tMTYtNHYySDE0di0yaDJ6bTggMHYySDIydi0yaDJ6bS00IDR2MkgxNHYtMmgyem04IDB2MkgyMnYtMmgyem0tMTYtMjR2MkgxNHYtMmgyem04IDB2MkgyMnYtMmgyem0tNC00djJIMTR2LTJoMnptOCAwdjJIMjJ2LTJoMnptLTgtNHYySDE0di0yaDJ6bTggMHYySDIydi0yaDJ6bTgtOHYySDM0di0yaDJ6bTAgNHYySDM0di0yaDJ6bS00IDR2MkgzMHYtMmgyem04IDB2MkgzNnYtMmgyem0tNCA0djMwaDJWMzRIMzB6bTggMHYzMGgyVjM0SDM2eiIvPjwvZz48L2c+PC9zdmc+');
  padding: 10rem 0 5rem;
  position: relative;
}

.hero-columns {
  width: min(1200px, calc(100% - 4rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.hc-text .eyebrow {
  color: var(--blue);
  letter-spacing: 0.25em;
  margin-bottom: 2rem;
}

.hc-text h1 {
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  line-height: 1.06;
  margin-bottom: 1.5rem;
}

.hc-text .lead {
  font-size: 1.15rem;
  max-width: 480px;
  color: var(--muted-2);
  margin-bottom: 3.5rem;
}

/* Process Steps Visual */
.hc-visual {
  width: 100%;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.p-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.02);
  position: relative;
  transition: all 0.4s ease;
}

.p-icon.blue-ring {
  border-color: var(--blue);
  box-shadow: 0 0 25px rgba(24,191,255,0.2), inset 0 0 15px rgba(24,191,255,0.1);
  color: var(--blue);
}

.p-icon.orange-glow-static {
  border-color: var(--orange);
  box-shadow: 0 0 25px rgba(255,140,26,0.2), inset 0 0 15px rgba(255,140,26,0.1);
  color: var(--orange);
}

.p-connector {
  flex: 0 0 30px;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  margin-top: 35px; /* Half of ion height */
}

.p-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.p-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 120px;
}

/* Custom Orange Outline Button */
.btn-orange-outline {
  background: rgba(255, 140, 26, 0.04);
  border: 1px solid var(--orange);
  color: var(--text);
  padding: 1rem 2rem;
  box-shadow: 0 0 20px rgba(255,140,26,0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-orange-outline:hover {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 40px rgba(255,140,26,0.4);
}

@media (max-width: 1100px) {
  .consulting-hero { 
    padding-top: 12rem !important; 
    display: block !important;
    min-height: auto !important;
  }
  .hero-columns { 
    grid-template-columns: 1fr; 
    gap: 3rem; 
    width: min(var(--max), calc(100% - 2rem)); 
    margin: 0 auto;
    text-align: center; 
  }
  .hc-text .lead { margin-inline: auto; margin-bottom: 2.5rem; }
  .hc-text .actions { justify-content: center; }
  .process-steps { 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 2rem; 
    margin-top: 3rem;
  }
  .p-connector { display: none; }
  .p-step { flex: 1 1 150px; }
}

@media (max-width: 600px) {
  .consulting-hero { padding-top: 10rem !important; }
  .hc-text h1 { font-size: 1.8rem; }
  .p-step { flex: 1 1 100%; }
  .p-desc { max-width: none; }
  .methodology-premium { padding: 4rem 0; }
  .method-header h2 { 
    font-size: 1.5rem !important; 
    line-height: 1.3; 
    word-wrap: break-word;
  }
  .m-num { font-size: 3rem; top: -1rem; }
}

/* Problem Section */
.problem-section {
  padding: 3rem 0 4rem;
  text-align: center;
}


.problem-content {
  width: min(900px, calc(100% - 4rem));
  margin: 0 auto;
}

.problem-content h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.problem-content p {
  font-size: 1.25rem;
  color: var(--muted-2);
  line-height: 1.6;
}

/* Service Lanes Modern */
.lanes-grid {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding-bottom: 8rem;
}

.lane-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.lane-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(24, 191, 255, 0.3);
  transform: translateY(-8px);
}

.lane-icon {
  width: 48px;
  height: 48px;
  background: rgba(24, 191, 255, 0.1);
  color: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.lane-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.lane-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Methodology Premium */
.methodology-premium {
  background: rgba(255,255,255,0.015);
  padding: 10rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-inner {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.m-step {
  position: relative;
}

.m-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  opacity: 0.1;
  color: var(--blue);
  position: absolute;
  top: -1.5rem;
  left: 0;
}

.m-content {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
}

.m-content h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.m-content p {
  font-size: 0.9rem;
  color: var(--muted-2);
  line-height: 1.5;
}

/* Contact Section Modern */
.contact-section-modern {
  padding: 10rem 0;
}

.contact-container {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-info .eyebrow {
  color: var(--blue);
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--muted-2);
  margin-bottom: 3rem;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cf-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Premium Form */
.premium-form {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  padding: 3.5rem;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.premium-form input, 
.premium-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.premium-form input:focus, 
.premium-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(24,191,255,0.1);
}

.premium-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 1.25rem;
  font-size: 1.05rem;
}

@media (max-width: 1000px) {
  .contact-container { grid-template-columns: 1fr; gap: 4rem; }
  .premium-form { padding: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ================================================================
   CONSULTING PAGE — SPACING FIXES & SECTION STYLES
   ================================================================ */

/* Tighten all consulting page section padding */
[data-page="consulting"] .problem-section     { padding: 5rem 0; }
[data-page="consulting"] .service-lanes-modern { padding-top: 0; }
[data-page="consulting"] .methodology-premium  { padding: 6rem 0; }
[data-page="consulting"] .contact-section-modern { padding: 6rem 0; }

/* Problem Section */
.problem-section {
  padding: 5rem 0;
  text-align: center;
}
.problem-content {
  width: min(820px, calc(100% - 4rem));
  margin: 0 auto;
}
.problem-content h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}
.problem-content p {
  font-size: 1.15rem;
  color: var(--muted-2);
  line-height: 1.6;
}

/* Service Lanes Modern */
.service-lanes-modern { padding-bottom: 0; }
.lanes-grid {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  padding-bottom: 5rem;
}
.lane-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.25rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
.lane-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(24,191,255,0.3);
  transform: translateY(-6px);
}
.lane-icon {
  width: 44px; height: 44px;
  background: rgba(24,191,255,0.1);
  color: var(--blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.lane-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.lane-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* Methodology Premium */
.methodology-premium {
  background: rgba(255,255,255,0.018);
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.method-inner {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
}
.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}
.m-step { position: relative; }
.m-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  opacity: 0.08;
  color: var(--blue);
  position: absolute;
  top: -1rem; left: 0;
}
.m-content { position: relative; z-index: 1; padding-top: 1.5rem; }
.m-content h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.m-content p  { font-size: 0.88rem; color: var(--muted-2); line-height: 1.5; }

/* Contact Section Modern */
.contact-section-modern { padding: 6rem 0; }
.contact-container {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-info .eyebrow { color: var(--blue); letter-spacing: 0.2em; margin-bottom: 1.5rem; }
.contact-info h2 { font-size: clamp(1.8rem,3vw,2.8rem); line-height: 1.1; margin-bottom: 1.5rem; }
.contact-info p  { font-size: 1rem; color: var(--muted-2); margin-bottom: 2.5rem; }
.contact-features { display: flex; flex-direction: column; gap: 1.25rem; }
.cf-item { display: flex; align-items: center; gap: 1rem; font-weight: 600; font-size: 0.9rem; }

/* Premium Form */
.premium-form {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  padding: 3rem;
  border-radius: 28px;
  display: flex; flex-direction: column; gap: 1.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.6rem; }
.form-group label {
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.premium-form input, .premium-form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  color: var(--text); font-size: 0.95rem;
  transition: all 0.3s ease;
}
.premium-form input:focus, .premium-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(24,191,255,0.1);
}
.premium-form textarea { min-height: 110px; resize: vertical; }
.btn-full { width: 100%; justify-content: center; padding: 1.15rem; font-size: 1rem; }

/* ================================================================
   HEX USE-CASES SECTION
   ================================================================ */
.use-cases-hex-section {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background: #02040a;
}

.uch-inner {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Title */
.uch-header {
  margin-bottom: 4rem;
}
.uch-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  max-width: 560px;
}
.uch-underline {
  width: 48px; height: 3px;
  background: var(--orange);
  margin-top: 1.25rem;
  border-radius: 2px;
}

/* Background wave image — sits behind cards, right side */
.uch-bg-graphics {
  position: absolute;
  top: 0; right: -5%;
  width: 65%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  background-image: url('../assets/fondoFlujo.png');
  background-size: cover;
  background-position: left center;
}
/* Fade the image out toward the left so cards are readable */
.uch-bg-graphics::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #02040a 0%, transparent 35%);
  z-index: 1;
}

/* Hex card grid — 2 rows of 3 */
.hex-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hex-row {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.hex-row-bottom {
  padding-left: 8rem; /* offset second row like real hex grid */
}

/* Individual hex card */
.hex-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 160px;
  text-align: center;
  cursor: default;
}

.hex-card span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-2);
  line-height: 1.4;
}

/* The hexagon shape */
.hex-shape {
  width: 95px;
  height: 95px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* CSS hexagon using clip-path */
.hex-shape::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.03);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  transition: all 0.4s ease;
}

/* Blue accent — blue hex border */
.hex-card.blue-accent .hex-shape::before {
  background: rgba(24,191,255,0.08);
  outline: none;
}

/* Hex border using pseudo element layering */
.hex-shape::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  z-index: -1;
}

.hex-card.blue-accent .hex-shape::after {
  background: linear-gradient(135deg, rgba(24,191,255,0.5), rgba(24,191,255,0.1));
}

.hex-card.orange-accent .hex-shape::after {
  background: linear-gradient(135deg, rgba(255,140,26,0.5), rgba(255,140,26,0.1));
}

.hex-card.orange-accent .hex-shape::before {
  background: rgba(255,140,26,0.08);
}

/* Featured card is bigger */
.hex-card.featured .hex-shape {
  width: 110px;
  height: 110px;
}

/* Hover effects */
.hex-card:hover .hex-shape {
  transform: scale(1.08) translateY(-4px);
}
.hex-card.blue-accent:hover .hex-shape::before {
  background: rgba(24,191,255,0.18);
  box-shadow: 0 0 30px rgba(24,191,255,0.2);
}
.hex-card.orange-accent:hover .hex-shape::before {
  background: rgba(255,140,26,0.18);
}
.hex-card:hover span {
  color: var(--text);
}

/* Glow behind featured card */
.hex-card.featured::before {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,140,26,0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hex-row         { flex-wrap: wrap; justify-content: center; }
  .hex-row-bottom  { padding-left: 0; }
  .hex-card        { width: 140px; }
  .uch-bg-graphics { width: 100%; right: 0; opacity: 0.3; }
  .uch-bg-graphics::before { background: linear-gradient(to right, #02040a 0%, transparent 60%); }
  .uch-header h2   { max-width: 100%; }
  .method-steps    { grid-template-columns: 1fr 1fr; }
  .form-row        { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .method-steps { grid-template-columns: 1fr; }
  .hex-card     { width: 125px; }
}

/* ================================================================
   TOOLS MARQUEE — Premium infinite scroll band
   ================================================================ */
.tools-marquee-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  position: relative;
}

/* Fade edges */
.tools-marquee-section::before,
.tools-marquee-section::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.tools-marquee-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.tools-marquee-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.tools-marquee-inner {
  overflow: hidden;
}

.tools-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.tools-track span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.tools-track span:hover {
  color: var(--blue);
  border-color: rgba(24,191,255,0.3);
  background: rgba(24,191,255,0.05);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   CONTACT SECTION — Premium Redesign
   ================================================================ */
.contact-section-premium {
  padding: 6rem 0;
  position: relative;
  background: #02040a;
  overflow: hidden;
}

.contact-container {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Left Content */
.contact-text h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 800;
}

.contact-text .description {
  font-size: 1rem;
  color: var(--muted-2);
  margin-bottom: 2rem;
  max-width: 440px;
}

.contact-badges {
  display: flex;
  gap: 0.85rem;
}

.badge-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.1rem 0.85rem;
  border-radius: 18px;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.badge-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.badge-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.badge-item.blue .badge-icon {
  color: var(--blue);
  background: rgba(24,191,255,0.1);
  box-shadow: 0 0 20px rgba(24,191,255,0.2);
}

.badge-item.orange .badge-icon {
  color: var(--orange);
  background: rgba(255,140,26,0.1);
  box-shadow: 0 0 20px rgba(255,140,26,0.2);
}

.badge-item:hover .badge-icon {
  transform: scale(1.05);
}

.badge-item span {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  opacity: 0.8;
}

/* Responsive Contact Section */
@media (max-width: 900px) {
  .contact-section-premium {
    padding: 4rem 0;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    width: min(var(--max), calc(100% - 3rem));
  }
  
  .contact-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .contact-text .description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .contact-badges {
    flex-direction: column;
    width: 100%;
  }
  
  .badge-item {
    padding: 1.25rem;
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    gap: 1.25rem;
  }
  
  .premium-form-v2 {
    padding: 1.75rem;
  }
}

/* Right Form Wrapper — Dual Gradient Border */
.form-wrapper {
  position: relative;
  padding: 2px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(24,191,255,0.5) 0%, rgba(255,140,26,0.5) 100%);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Add a pseudo-element for the glow behind the form */
.form-wrapper::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at center, rgba(24,191,255,0.1), rgba(255,140,26,0.05), transparent 70%);
  z-index: -1;
  filter: blur(30px);
  pointer-events: none;
}

.premium-form-v2 {
  background: #080a0f;
  padding: 2.5rem;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.premium-form-v2 input,
.premium-form-v2 select {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.premium-form-v2 input:focus,
.premium-form-v2 select:focus {
  outline: none;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.02);
}

.premium-form-v2 select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 0.9rem;
  cursor: pointer;
}

/* Submit Button — Big Orange Gradient */
.btn-submit-premium {
  margin-top: 0.5rem;
  padding: 1.1rem;
  border-radius: 16px;
  border: none;
  background: linear-gradient(to right, #f39c12, #e67e22, #d35400);
  background-size: 200% auto;
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 12px 24px rgba(230, 126, 34, 0.3);
}

.btn-submit-premium:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 36px rgba(230, 126, 34, 0.5);
  background-position: right center;
}

.btn-submit-premium:active {
  transform: translateY(-1px) scale(0.98);
}

/* ================================================================
   FOOTER — Premium & Professional (Fixed Layout)
   ================================================================ */
.site-footer {
  background: #04060b;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.footer-inner {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  gap: 4rem;
  margin-bottom: 2.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.footer-brand-col p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 240px;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.social-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(24,191,255,0.1);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-3px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

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

.footer-col a {
  font-size: 0.88rem;
  color: var(--muted-2);
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: var(--blue);
  padding-left: 3px;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--text);
}

/* Responsive Footer */
@media (max-width: 1000px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .footer-brand-col {
    align-items: center;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

:root.light .site-footer {
  background: #f8fafc;
  border-top-color: rgba(0,0,0,0.06);
}
:root.light .social-icon {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.1);
}
:root.light .footer-bottom,
:root.light .footer-col a:hover {
  border-top-color: rgba(0,0,0,0.06);
}

/* ================================================================
   LIGHT MODE — Contact & Form Overrides
   ================================================================ */

/* contacto.html — full contact section */
:root.light .contact-section-premium {
  background: #f4f6fb;
}

:root.light .badge-item {
  background: rgba(10,20,50,0.03);
  border-color: rgba(10,20,50,0.1);
}

:root.light .badge-item:hover {
  background: rgba(10,20,50,0.06);
  border-color: rgba(10,20,50,0.18);
}

:root.light .form-wrapper {
  box-shadow: 0 20px 40px rgba(24,47,85,0.1);
}

:root.light .premium-form-v2 {
  background: #ffffff;
}

:root.light .premium-form-v2 input,
:root.light .premium-form-v2 select {
  background: #f8fafc;
  border-color: rgba(10,20,50,0.12);
  color: var(--text);
}

:root.light .premium-form-v2 input:focus,
:root.light .premium-form-v2 select:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(24,191,255,0.08);
}

:root.light .premium-form-v2 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

:root.light .premium-form-v2 textarea {
  background: #f8fafc;
  border-color: rgba(10,20,50,0.12);
  color: var(--text);
}

:root.light .contact-reasons-premium h3 {
  color: var(--text);
}

:root.light .contact-reasons-premium ul li {
  color: var(--muted);
}

/* consultoria.html — premium form section */
:root.light .premium-form {
  background: #ffffff;
  border-color: rgba(10,20,50,0.1);
}

:root.light .premium-form input,
:root.light .premium-form textarea {
  background: #f8fafc;
  border-color: rgba(10,20,50,0.12);
  color: var(--text);
}

:root.light .premium-form input:focus,
:root.light .premium-form textarea:focus {
  background: #ffffff;
  border-color: var(--blue);
}

/* consultoria.html — consulting hero background */
:root.light .consulting-hero {
  background: radial-gradient(circle at 80% 50%, rgba(24,191,255,0.04) 0%, transparent 60%),
              linear-gradient(rgba(244,246,251,0.95), rgba(244,246,251,0.95)),
              url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGwtb3BhY2l0eT0iMC4wNSIgZmlsbD0iIzAwMCI+PHBhdGggZD0iTTM2IDM0djJIMzR2LTJoMnptMCA0djJIMzR2LTJoMnptLTQgNHYySDMwdi0yaDJ6bTggMHYySDM2di0yaDJ6Ii8+PC9nPjwvZz48L3N2Zz4=');
}

/* ── consultoria: fix missing circles on plain p-icon steps (Implementación + Resultados) ── */
:root.light .p-icon {
  border-color: rgba(10,20,50,0.25);
  background: rgba(10,20,50,0.03);
  color: var(--text);
}

:root.light .p-connector {
  background: linear-gradient(to right, rgba(10,20,50,0.05), rgba(10,20,50,0.2), rgba(10,20,50,0.05));
}

/* ── cursos: fix mascot dark smoke blob in light mode ── */
:root.light .mascot-smoke {
  background: radial-gradient(circle at center, rgba(255,140,26,0.08) 0%, rgba(24,191,255,0.03) 40%, transparent 70%);
  opacity: 0.4;
}

:root.light .mascot-particles {
  background-image: radial-gradient(circle at 2px 2px, rgba(255,140,26,0.15) 1px, transparent 0);
  opacity: 0.25;
}

:root.light .mascot-img {
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 72%);
  mask-image: radial-gradient(circle at center, black 30%, transparent 72%);
  filter: drop-shadow(0 0 30px rgba(255,140,26,0.15));
}

:root.light .mascot-container::after {
  opacity: 0.1;
}

:root.light .course-coming-card {
  background: #ffffff;
  border-color: rgba(10,20,50,0.08);
}

:root.light .ccc-inner {
  background: radial-gradient(circle at 75% 50%, rgba(255,140,26,0.04) 0%, transparent 70%);
}

:root.light .ccc-features {
  background: rgba(10,20,50,0.03);
  border-top-color: rgba(10,20,50,0.08);
}

/* ── contacto: fix select dropdown dark background in light mode ── */
:root.light .premium-form-v2 select,
:root.light .premium-form-v2 select option {
  background: #f8fafc;
  color: var(--text);
}

:root.light .premium-form-v2 select:focus {
  background: #ffffff;
}

/* ── contacto: spacing between badges and motivos comunes ── */
.contact-reasons-premium {
  margin-top: 2rem;
}

/* ── consultoría: fix dark 'Casos' section in light mode ── */
:root.light .use-cases-hex-section {
  background: #eef1f7;
}

:root.light .uch-bg-graphics {
  background-image: url('../assets/fondoFlujo_claro.png');
  opacity: 0.6;
}

:root.light .uch-bg-graphics::before {
  background: linear-gradient(to right, #eef1f7 0%, transparent 35%);
}

:root.light .hex-shape::before {
  background: rgba(10,20,50,0.04);
}

:root.light .hex-card.blue-accent .hex-shape::before {
  background: rgba(24,191,255,0.06);
}

:root.light .hex-card.orange-accent .hex-shape::before {
  background: rgba(255,140,26,0.06);
}

:root.light .hex-card span {
  color: var(--muted);
}

:root.light .uch-header h2 {
  color: var(--text);
}

/* ── cursos: more aggressive mascot fix in light mode ── */
:root.light .mascot-smoke,
:root.light .mascot-particles {
  display: none;
}

:root.light .mascot-container::after {
  opacity: 0;
}

:root.light .mascot-img {
  -webkit-mask-image: none;
  mask-image: none;
  filter: none;
  opacity: 0.9;
}
