:root {
  --navy: #0A1628;
  --navy-soft: #101F38;
  --navy-line: rgba(255,255,255,0.08);
  --orange: #FF6B1A;
  --orange-dim: #C9531A;
  --blue: #2E7DD1;
  --cream: #F5F3EE;
  --cream-line: rgba(10,22,40,0.08);
  --ink: #12181F;
  --grey: #64707F;
  --grey-light: #8A94A6;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.2px;
}

p { line-height: 1.6; margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--orange-dim);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--orange); }

.section { padding: 110px 24px; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dim); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(10,22,40,0.25); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,243,238,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.brand-tag { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; color: var(--orange-dim); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.75;
}
.main-nav a:hover { opacity: 1; }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 3px;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--orange); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); }

/* ---------- HERO ---------- */
.hero {
  background: var(--navy);
  padding: 150px 24px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 30%;
  filter: grayscale(10%);
}
.hero-bg img {
  animation: kenburns 22s ease-in-out infinite alternate;
  transform-origin: 70% 35%;
}
.hero-bg video {
  transform: scale(1.04);
  transform-origin: 70% 35%;
}
@keyframes kenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--navy) 0%, var(--navy) 28%, rgba(10,22,40,0.88) 42%, rgba(10,22,40,0.35) 65%, rgba(10,22,40,0.15) 100%),
    linear-gradient(to top, var(--navy) 0%, rgba(10,22,40,0) 22%);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  color: #fff;
}
.hero h1 .accent { color: var(--orange); }
.hero-copy { max-width: 620px; }
.hero-lede {
  margin-top: 26px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; }

.hero-badge-row {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  justify-content: flex-end;
}
.hero-badge {
  background: var(--orange);
  color: var(--navy);
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.badge-kicker { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75;}
.badge-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

.clients-strip {
  background: #ffffff;
  padding: 56px 0;
  border-bottom: 1px solid var(--cream-line);
  overflow: hidden;
}
.clients-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  margin-bottom: 32px;
}
.clients-header h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.clients-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--grey-light);
}
.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: 0 0 auto;
  width: 160px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 14px;
}
.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- SPEAKER ---------- */
.speaker { background: var(--cream); padding-bottom: 0; }
.speaker-marquee {
  margin-top: 60px;
  padding: 34px 0 100px;
  border-top: 1px solid var(--cream-line);
}
.speaker-marquee-track { animation-duration: 38s; }
.speaker .eyebrow { text-align: center; }
.speaker h2 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 32ch;
  margin: 0 auto 18px;
  text-align: center;
}
.speaker .lede {
  color: var(--grey);
  font-size: 1.02rem;
  max-width: 56ch;
  margin: 0 auto 44px;
  text-align: center;
}
.speaker-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(10,22,40,0.35);
}
.speaker-photo img { width: 100%; display: block; }

/* ---------- RESULTS ---------- */
.results { background: var(--navy-soft); color: #fff; }
.results h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); max-width: 20ch; color: #fff; margin-bottom: 54px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.result-card {
  background: linear-gradient(165deg, #f6f7f9, #e7e9ee);
  border: 1px solid rgba(10,22,40,0.06);
  border-radius: 12px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 2px 4px rgba(5,12,25,0.12),
    0 20px 36px -16px rgba(5,12,25,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.result-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 2px 4px rgba(5,12,25,0.1),
    0 28px 46px -16px rgba(5,12,25,0.5);
}
.result-card .result-icon {
  border-color: var(--orange);
  color: var(--orange-dim);
  background: #fff;
  box-shadow: 0 2px 6px rgba(5,12,25,0.08);
}
.result-card .result-text { color: var(--ink); opacity: 0.82; }
.result-card .result-text strong { color: var(--orange-dim); }
.result-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-icon svg { width: 22px; height: 22px; }
.result-text { font-size: 0.98rem; line-height: 1.55; color: rgba(255,255,255,0.82); flex: 1; }
.result-text strong { color: var(--orange); font-weight: 700; }
.result-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 20px;
}
.tag-salud { background: rgba(46,125,209,0.12); color: #1f5fa8; }
.tag-financiero { background: rgba(255,107,26,0.14); color: #b8500f; }
.tag-logistica { background: rgba(10,22,40,0.08); color: var(--grey); }

.results-banner {
  margin-top: 30px;
  display: flex;
  align-items: center;
  background: var(--navy);
  border: 1px solid var(--navy-line);
  padding: 34px 40px;
}
.banner-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.banner-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--orange);
  line-height: 1;
}
.banner-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); max-width: 26ch; margin: 0 auto; }
.banner-divider { width: 1px; align-self: stretch; background: var(--navy-line); margin: 0 20px; }

/* ---------- TRAYECTORIA ---------- */
.trayectoria { background: var(--cream); }
.trayectoria-title { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 26ch; margin-bottom: 50px; color: var(--navy); }

.trayectoria-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.trayectoria-copy .lede { font-size: 1.08rem; color: var(--ink); margin-bottom: 20px; }
.trayectoria-copy p { color: var(--grey); font-size: 0.98rem; max-width: 62ch; margin-bottom: 18px; }
.trayectoria-copy p:last-of-type { margin-bottom: 0; }

.pull-quote {
  margin: 34px 0 0;
  padding: 24px 0 0;
  border-top: 2px solid var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--navy);
  font-style: normal;
}

.trayectoria-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(10,22,40,0.15);
  position: sticky;
  top: 110px;
}
.trayectoria-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- COMO TRABAJAMOS ---------- */
.como-trabajamos { background: var(--navy-soft); color: #fff; padding-top: 90px; padding-bottom: 90px; }
.como-trabajamos .eyebrow { color: var(--orange); }
.como-trabajamos h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.2rem); max-width: 30ch; margin-bottom: 40px; }
.trabajo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.trabajo-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--navy-line);
}
.trabajo-icon { color: var(--orange); font-size: 0.7rem; margin-top: 5px; }
.trabajo-item p { font-size: 0.95rem; color: rgba(255,255,255,0.78); }
.trabajo-photo { border: 1px solid var(--navy-line); }
.trabajo-videos {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trabajo-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--navy);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--navy-line);
}
.trabajo-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trabajo-video-caption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}
.trabajo-photo img { width: 100%; }

/* ---------- PODCAST ---------- */
.podcast {
  background: var(--navy-soft);
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--navy-line);
}
.podcast::before {
  content: "";
  position: absolute;
  top: 50%; left: 8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,107,26,0.14) 0%, rgba(255,107,26,0) 68%);
  transform: translateY(-50%);
  pointer-events: none;
}
.podcast-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
}
.podcast-art {
  flex: 0 0 auto;
  width: 320px;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
.podcast-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.podcast-copy { max-width: 52ch; }
.podcast h2.light-heading { color: #fff; font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 22px; }
.podcast-points {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.podcast-points li {
  position: relative;
  padding-left: 20px;
  color: rgba(255,255,255,0.72);
  font-size: 0.98rem;
  line-height: 1.5;
}
.podcast-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 2px;
  background: var(--orange);
}
.podcast-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1DB954;
  color: #fff;
}
.podcast-btn:hover { background: #1ed760; }

/* ---------- PRODUCTOS ---------- */
.productos { background: var(--navy); color: #fff; }
.productos h2.light-heading {
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  max-width: 26ch;
  margin-bottom: 60px;
}
.productos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.producto-card {
  background: var(--cream);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 32px -18px rgba(0,0,0,0.5);
}
.producto-card-dark {
  background: var(--navy-soft);
  color: #fff;
  border: 1px solid var(--navy-line);
}
.producto-media {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.producto-media img { height: 100%; width: 100%; object-fit: cover; }
.producto-media-course img,
.producto-media-taiken img { object-fit: contain; padding: 24px; height: auto; max-height: 100%; }
.producto-media-taiken { background: var(--navy); }
.producto-body { padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.producto-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--orange-dim);
}
.producto-card-dark .producto-kicker { color: var(--orange); }
.producto-card h3 { font-size: 1.3rem; }
.producto-card p { color: var(--grey); font-size: 0.9rem; flex: 1; }
.producto-card-dark p { color: rgba(255,255,255,0.65); }
.producto-link {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  border-bottom: 1.5px solid var(--orange);
  align-self: flex-start;
  padding-bottom: 2px;
}
.producto-card-dark .producto-link { color: #fff; }
.producto-link-secondary {
  border-bottom-color: transparent;
  color: var(--grey);
  font-weight: 500;
  margin-top: -4px;
}
.producto-link-secondary:hover { color: var(--navy); }

/* ---------- TESTIMONIOS ---------- */
.testimonios { background: var(--cream); }
.libro-media { background: var(--cream); }
.libro-media h2 { color: var(--navy); font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: 40px; }
.testimonios h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); max-width: 34ch; color: var(--navy); margin-bottom: 54px; }
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.testimonio {
  margin: 0;
  padding: 32px 32px 28px;
  background: #fff;
  border-left: 3px solid var(--orange);
}
.testimonio p { font-size: 1.05rem; color: var(--ink); font-style: italic; }
.testimonio footer { margin-top: 22px; display: flex; flex-direction: column; gap: 3px; }
.testimonio-nombre { font-weight: 600; font-size: 0.95rem; }
.testimonio-cargo { font-size: 0.85rem; color: var(--grey-light); }

.video-testimonios {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-frame-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-caption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--grey);
}
.video-caption span { font-weight: 600; color: var(--ink); }

/* ---------- CONTACTO ---------- */
.contacto { background: var(--navy); color: #fff; }
.contacto-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}
.contacto h2.light-heading { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 18px; }
.lede-light { color: rgba(255,255,255,0.68); font-size: 1.02rem; max-width: 48ch; }
.contacto-card {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  padding: 8px;
}
.contacto-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--navy-line);
}
.contacto-item:last-child { border-bottom: none; }
.contacto-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--grey-light); }
.contacto-value { font-weight: 600; font-size: 1.05rem; }
a.contacto-item:hover .contacto-value { color: var(--orange); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy); border-top: 1px solid var(--navy-line); padding: 26px 24px 34px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}
.footer-tag { color: var(--orange); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .productos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .productos-grid { grid-template-columns: 1fr; }
  .trayectoria-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .video-testimonios { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .trabajo-grid { grid-template-columns: 1fr; }
  .trabajo-videos { grid-template-columns: repeat(2, 1fr); }
  .podcast-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .podcast-art { width: 220px; height: 220px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--cream-line);
    display: none;
    gap: 18px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .section { padding: 70px 20px; }
  .results-grid { grid-template-columns: 1fr; }
  .hero-inner { min-height: 480px; }
  .hero-badge-row { justify-content: flex-start; }
  .hero-scrim {
    background:
      linear-gradient(180deg, var(--navy) 0%, rgba(10,22,40,0.85) 38%, rgba(10,22,40,0.55) 60%, rgba(10,22,40,0.3) 100%);
  }
  .hero-bg img, .hero-bg video { object-position: 65% 20%; }
  .results-banner { flex-direction: column; gap: 24px; padding: 30px 24px; }
  .banner-divider { display: none; }
}
