:root {
  --navy: #0B1F33;
  --navy2: #102944;
  --accent: #0000FA;
  --accent-light: #4040FF;
  --ink: #10233B;
  --white: #FFFFFF;
  --offwhite: #F5F6FA;
  --gray: #5B6B82;
  --line: rgba(255,255,255,0.14);
  --line-dark: rgba(16,35,59,0.12);
}

@font-face {
  font-family: 'BBH Hegarty';
  src: url('fonts/BBHHegarty-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.eyebrow-hegarty { font-family: 'Montserrat', 'Wix Madefor Display', sans-serif; font-weight: 700; font-size: 1.2rem; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Wix Madefor Text', sans-serif;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Montserrat', 'Wix Madefor Display', sans-serif; font-weight: 800; }
a { color: inherit; }
section { padding: 96px 48px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-size: 0.92rem; font-weight: 600;
}
.nav-links a:hover { color: var(--accent-light); }
.nav-cta {
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 26px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  background: var(--navy);
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  padding: 140px 48px 120px;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none;
}
.hero-blob.b1 { width: 460px; height: 460px; background: var(--accent); top: -120px; left: -100px; }
.hero-blob.b2 { width: 380px; height: 380px; background: #6A4CFF; bottom: -140px; right: -80px; }
.hero-content { position: relative; z-index: 2; max-width: 920px; }
.hero h1 {
  color: var(--white); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.4); color: var(--white);
  text-decoration: none; padding: 14px 26px; border-radius: 100px;
  font-weight: 600; font-size: 0.92rem; transition: all 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 100px;
  font-weight: 700; font-size: 0.92rem; transition: all 0.2s;
}
.btn-solid:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--navy2); border-top: 1px solid var(--line);
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
  padding: 40px 48px;
}
.stat { text-align: center; }
.stat-num { font-family: 'Wix Madefor Display', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--accent-light); }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* ── ALTERNATING WHITE BLOCKS ── */
.alt-block { background: var(--white); }
.alt-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  max-width: 1180px; margin: 0 auto;
}
.alt-block.reverse .alt-inner { direction: rtl; }
.alt-block.reverse .alt-inner > * { direction: ltr; }
.alt-eyebrow {
  color: var(--accent); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.alt-inner h2 {
  font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--ink); line-height: 1.2; margin-bottom: 18px;
}
.alt-inner p { color: var(--gray); font-size: 1rem; line-height: 1.7; }
.alt-visual {
  background: var(--offwhite); border-radius: 24px;
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.alt-visual .glow {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: var(--accent); opacity: 0.18; filter: blur(50px);
}
.alt-visual .mark { font-size: 4.5rem; position: relative; z-index: 1; }

/* ── SERVICIOS (pills) ── */
.services { background: var(--navy); }
.services-header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.services-header .alt-eyebrow { color: var(--accent-light); justify-content: center; }
.services-header h2 { color: var(--white); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pill-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  max-width: 980px; margin: 0 auto;
}
.pill {
  border: 1.5px solid rgba(255,255,255,0.5); color: var(--white);
  padding: 16px 30px; border-radius: 100px;
  font-size: 1rem; font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.pill:hover { border-color: var(--accent-light); background: rgba(64,64,255,0.12); }

/* ── SERVICIOS: hover-slider ── */
.hover-services { background: var(--navy); }
.hover-slider {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  max-width: 1180px; margin: 0 auto;
}
.hover-slider-labels { display: flex; flex-direction: column; }
.stagger-label {
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 16px 0; text-align: left; cursor: pointer;
  font-family: 'Wix Madefor Display', sans-serif; font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--white);
}
.stagger-label:last-child { border-bottom: none; }
.stagger-label:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.stagger-char { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.stagger-char-dim, .stagger-char-bright {
  display: inline-block; transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.stagger-char-dim { color: rgba(255,255,255,0.45); }
.stagger-char-bright { position: absolute; left: 0; top: 0; color: var(--white); transform: translateY(110%); }
.stagger-label.active .stagger-char-dim { transform: translateY(-110%); }
.stagger-label.active .stagger-char-bright { transform: translateY(0%); }
.hover-slider-images {
  position: relative; aspect-ratio: 4 / 5; border-radius: 20px;
  overflow: hidden; background: var(--navy2);
}
.slider-group {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 0.8s cubic-bezier(0.33,1,0.68,1);
}
.slider-group.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.slider-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.45s ease;
}
.slider-photo.show { opacity: 1; }

/* ── CTA SPLIT ── */
.cta-split { background: var(--accent); padding: 96px 48px; }
.cta-split-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.cta-card { border-radius: 20px; padding: 44px; }
.cta-card.light { background: var(--white); color: var(--ink); }
.cta-card.dark { background: var(--navy); color: var(--white); }
.cta-card h3 { font-weight: 800; font-size: 1.7rem; margin-bottom: 14px; line-height: 1.25; }
.cta-card p { font-size: 0.95rem; line-height: 1.6; opacity: 0.85; margin-bottom: 20px; }
.cta-card a { font-weight: 700; text-decoration: underline; }
.cta-card.light a { color: var(--accent); }
.cta-card.dark a { color: var(--accent-light); }

/* ── CLIENTES ── */
.clients-section { background: var(--white); text-align: center; }
.clients-section .alt-eyebrow { justify-content: center; display: flex; }
.clients-section h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ink); margin-bottom: 56px; }
.clients-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px 16px;
  max-width: 1080px; margin: 0 auto;
}
.client-badge {
  font-family: 'Wix Madefor Display', sans-serif; font-weight: 700;
  font-size: 0.95rem; color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  text-align: center; opacity: 0.8; transition: opacity 0.2s, color 0.2s;
}
.client-badge:hover { opacity: 1; color: var(--ink); }

/* ── MARQUEE BAND ── */
.marquee-band { background: var(--accent); overflow: hidden; padding: 28px 0; }
.marquee-track {
  display: flex; gap: 40px; width: max-content;
  animation: marquee 26s linear infinite;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track span {
  font-family: 'Wix Madefor Display', sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--white); white-space: nowrap;
}

/* ── FOOTER ── */
footer { background: var(--navy); padding: 72px 48px 32px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer-inner img { height: 32px; margin-bottom: 16px; }
.footer-inner p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 320px; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a, .footer-col p {
  display: block; color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.92rem; margin-bottom: 10px; line-height: 1.5;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  max-width: 1180px; margin: 24px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,0.5); font-size: 0.82rem;
}

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 14px 24px; }
  .nav-links { display: none; }
  section { padding: 64px 24px; }
  .hero { padding: 120px 24px 64px; }
  .alt-inner { grid-template-columns: 1fr; gap: 32px; }
  .alt-block.reverse .alt-inner { direction: ltr; }
  .alt-visual { order: -1; }
  .cta-split-inner { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-strip { gap: 32px; }
  .hover-slider { grid-template-columns: 1fr; gap: 32px; }
  .hover-slider-images { order: -1; aspect-ratio: 4 / 3; }
}
