/* ================================================================
   Talenca — Rediseño 2025
   Mobile-first · CSS Custom Properties · Sin jQuery
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --blue:       #004885;
  --blue-600:   #0072CE;
  --green:      #BBDB00;   /* verde lima del logo */
  --green-soft: #D3EE3A;
  --blue-50:    #EFF6FC;   /* tinte azul para fondos */
  --green-50:   #F8FBEA;   /* tinte verde para fondos */
  --dark:       #1A1A2E;
  --gray-600:   #6B7280;
  --gray-200:   #E5E7EB;
  --gray-100:   #F8FAFC;
  --white:      #FFFFFF;

  --nav-h: 72px;

  --font-head: 'Raleway', sans-serif;
  --font-body: 'Inter', sans-serif;

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-pill: 50px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);

  --t: 0.25s ease;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

::selection { background: var(--blue-600); color: var(--white); }
:focus-visible { outline: 3px solid rgba(0,114,206,.5); outline-offset: 2px; }

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-600), var(--green));
  z-index: 1200;
  pointer-events: none;
}

/* Texto con gradiente (acento hero) */
.text-grad {
  background: linear-gradient(95deg, #E3F66A 0%, var(--green) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Layout helpers ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-pad { padding: 80px 0; }
@media (min-width: 768px) { .section-pad { padding: 96px 0; } }

/* ── Typography ────────────────────────────────────────────────── */
.tag {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: block;
  margin-bottom: 12px;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

.divider {
  width: 48px;
  height: 4px;
  background: var(--blue-600);
  border-radius: 2px;
  margin: 16px 0 28px;
}
.divider--center { margin-left: auto; margin-right: auto; }
.divider--green { background: var(--green); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--primary {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,114,206,.35);
}
.btn--primary:hover { box-shadow: 0 10px 28px rgba(0,114,206,.45); }
.btn--outline   { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--secondary {
  background: linear-gradient(135deg, var(--green-soft) 0%, var(--green) 100%);
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(187,219,0,.4);
}
.btn--secondary:hover { box-shadow: 0 10px 28px rgba(187,219,0,.5); }
.btn--ghost     { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--white); }
.btn--sm { padding: 8px 20px; font-size: .8rem; }

/* ── 1. NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--t), box-shadow var(--t);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: background;
}
#navbar.is-transparent { background: transparent; }
#navbar.is-solid {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
}

#navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.brand { display: flex; align-items: center; }
.brand .logo { height: 38px; width: auto; }
.logo--dark  { display: none; }
.logo--white { display: block; }
#navbar.is-solid .logo--white { display: none; }
#navbar.is-solid .logo--dark  { display: block; }
/* Halo blanco para legibilidad sobre el hero oscuro */
#navbar.is-transparent .logo--white {
  filter: drop-shadow(0 0 16px rgba(255,255,255,.75)) drop-shadow(0 0 6px rgba(255,255,255,.5)) drop-shadow(0 2px 5px rgba(0,0,0,.4));
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 36px;
}
.nav-desktop .nav-links {
  display: flex;
  gap: 32px;
}
.nav-desktop .nav-links a {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: rgba(255,255,255,.9);
  position: relative;
  transition: color var(--t);
}
.nav-desktop .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
  border-radius: 2px;
}
.nav-desktop .nav-links a:hover::after { transform: scaleX(1); }
#navbar.is-solid .nav-desktop .nav-links a { color: var(--dark); }

.btn--vacantes {
  background: var(--blue);
  color: var(--white);
  padding: 9px 22px;
  font-size: .78rem;
  border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,.3);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .04em;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.btn--vacantes:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
#navbar.is-solid .btn--vacantes { border-color: transparent; }

/* CTA solicitar consulta — visible al hacer scroll */
.nav-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .3s ease, transform .3s ease;
}
#navbar.is-solid .nav-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
#navbar.is-solid .hamburger span { background: var(--dark); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu — drawer desde la derecha */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #001a3e 0%, var(--blue) 65%, #002a54 100%);
  display: flex;
  flex-direction: column;
  padding: 0 36px 40px;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1), opacity .38s ease;
  overflow-y: auto;
}
.nav-overlay::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187,219,0,.16), transparent 65%);
  bottom: -110px; right: -90px;
  filter: blur(52px);
  pointer-events: none;
}
.nav-overlay.is-open { opacity: 1; pointer-events: all; transform: translateX(0); }

/* Cabecera del overlay */
.nav-overlay__header {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  flex-shrink: 0;
}
.nav-overlay__header .logo { height: 34px; width: auto; }

/* Lista de links */
.nav-overlay__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}
.nav-overlay__links li {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .26s ease, transform .26s ease;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-overlay.is-open .nav-overlay__links li              { opacity: 1; transform: none; }
.nav-overlay.is-open .nav-overlay__links li:nth-child(1) { transition-delay: .06s; }
.nav-overlay.is-open .nav-overlay__links li:nth-child(2) { transition-delay: .12s; }
.nav-overlay.is-open .nav-overlay__links li:nth-child(3) { transition-delay: .18s; }
.nav-overlay.is-open .nav-overlay__links li:nth-child(4) { transition-delay: .24s; }
.nav-overlay.is-open .nav-overlay__links li:nth-child(5) { transition-delay: .30s; }

.nav-overlay__links a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  letter-spacing: .02em;
  padding: 18px 0;
  transition: color var(--t), padding-left var(--t);
}
.nav-overlay__links a:hover { color: var(--white); padding-left: 8px; }

.nav-overlay__num {
  font-size: .9rem;
  color: var(--green);
  flex-shrink: 0;
  min-width: 20px;
  text-align: center;
}

/* Pie del overlay */
.nav-overlay__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.nav-overlay .btn--vacantes {
  font-size: .88rem;
  padding: 12px 28px;
  border: 2px solid rgba(255,255,255,.35);
  align-self: flex-start;
}
.nav-overlay .social-link {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
}
.nav-overlay .social-link [class^="moon-"]::before,
.nav-overlay .social-link [class*=" moon-"]::before { color: rgba(255,255,255,.8) !important; }
.nav-overlay .social-link:hover { background: var(--green); border-color: var(--green); }
.nav-overlay .social-link:hover [class^="moon-"]::before,
.nav-overlay .social-link:hover [class*=" moon-"]::before { color: var(--blue) !important; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .hamburger   { display: none; }
}

/* ── 2. HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(140deg, rgba(0,30,72,.92) 0%, rgba(0,72,133,.72) 55%, rgba(0,114,206,.52) 100%),
    url('../images/hero-bg.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Auroras flotantes */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(187,219,0,.30), transparent 65%);
  top: -140px; right: -120px;
  filter: blur(60px);
  animation: aurora-a 14s ease-in-out infinite alternate;
}
.hero::after {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(60,170,255,.30), transparent 65%);
  bottom: -220px; left: -180px;
  filter: blur(70px);
  animation: aurora-b 18s ease-in-out infinite alternate;
}
@keyframes aurora-a { from { transform: translate(0,0); } to { transform: translate(-50px,45px); } }
@keyframes aurora-b { from { transform: translate(0,0); } to { transform: translate(55px,-35px); } }

.hero .container { position: relative; z-index: 2; }
.hero__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0 88px;
}

/* Wave de transición hero → clientes */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg { display: block; width: 100%; }

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 14px;
  z-index: 3;
}
.hero__scroll span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(255,255,255,.8);
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}
.hero .tag { color: rgba(255,255,255,.65); letter-spacing: .22em; }
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,.82);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.stat__number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

/* ── 3. FEATURES (Propuesta de valor) ──────────────────────────── */
.features {
  background:
    radial-gradient(rgba(0,72,133,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--white) 0%, var(--blue-50) 16%, var(--blue-50) 100%);
}
.features .section-header { text-align: center; margin-bottom: 48px; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 22px 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 4px;
  align-items: center;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  box-shadow: 0 6px 18px rgba(0,72,133,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  transition: box-shadow var(--t), transform var(--t);
}
.feature-card:hover .feature-card__icon {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0,114,206,.32);
}
.feature-card__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.feature-card h3 {
  grid-column: 2;
  grid-row: 1;
  color: var(--dark);
  font-size: .92rem;
  line-height: 1.3;
  align-self: end;
}
.feature-card p {
  grid-column: 2;
  grid-row: 2;
  font-size: .8rem;
  color: var(--gray-600);
  line-height: 1.55;
  align-self: start;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }

/* ── 4. ABOUT (Nosotros) ───────────────────────────────────────── */
.about {
  background:
    radial-gradient(620px 420px at 96% 4%, rgba(187,219,0,.10), transparent 60%),
    radial-gradient(520px 380px at 2% 96%, rgba(0,114,206,.06), transparent 60%),
    var(--white);
}
.about .split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.about__image-wrap { position: relative; }
.about__image-wrap img {
  border-radius: var(--r-lg);
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .about__image-wrap::before {
    content: '';
    position: absolute;
    top: 22px; left: 22px; right: -16px; bottom: -16px;
    border: 2px solid rgba(0,114,206,.28);
    border-radius: var(--r-lg);
  }
}
.about__badge {
  position: absolute;
  bottom: -20px;
  right: -12px;
  background: var(--blue);
  color: var(--white);
  padding: 16px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-bottom: 4px solid var(--green);
}
.about__badge span { display: block; font-size: .7rem; font-weight: 500; opacity: .8; margin-bottom: 2px; letter-spacing: .08em; text-transform: uppercase; }
.about__text p {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: .95rem;
}
.about__text p + p { margin-top: 16px; }
@media (min-width: 768px) {
  .about .split {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 5. SERVICES (Servicios) ───────────────────────────────────── */
.services { background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%); }
.services .section-header { text-align: center; margin-bottom: 48px; }
.services .section-header .divider { margin-left: auto; margin-right: auto; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid transparent;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--green);
}
/* Los SVG de servicios son blancos — chip azul para que se vean */
.service-card img {
  width: 58px;
  height: 58px;
  padding: 12px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(0,72,133,.2);
  object-fit: contain;
  transition: transform var(--t), box-shadow var(--t);
}
.service-card:hover img {
  transform: scale(1.07) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(0,114,206,.3);
}
.service-card h3 { font-size: .95rem; color: var(--dark); }
.service-card p  { font-size: .85rem; color: var(--gray-600); line-height: 1.6; }

.services-cta {
  margin-top: 48px;
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-600) 100%);
  border-radius: var(--r-lg);
  padding: 44px 32px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.services-cta::before,
.services-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.services-cta::before { width: 300px; height: 300px; top: -160px; right: -70px; }
.services-cta::after  { width: 200px; height: 200px; bottom: -110px; left: -50px; }
.services-cta > * { position: relative; z-index: 1; }
.services-cta p {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

@media (min-width: 580px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Tabs de servicios ───────────────────────────────────────────── */
.services-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.tab-btn {
  padding: 10px 22px;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--gray-600);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.tab-btn:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}
.tab-btn.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,72,133,.25);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ── Testimonios ─────────────────────────────────────────────────── */
.testimonials {
  background:
    radial-gradient(rgba(0,72,133,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}
.testimonials .section-header { text-align: center; margin-bottom: 48px; }
.testimonials .section-header .divider { margin-left: auto; margin-right: auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--blue-600);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testimonial-card::after {
  content: '\201C';
  position: absolute;
  top: 4px;
  right: 18px;
  font-size: 5.5rem;
  line-height: 1;
  font-family: var(--font-head);
  color: rgba(0,114,206,.06);
  font-weight: 800;
  pointer-events: none;
}
.testimonial-card__quote {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.78;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card__author strong {
  display: block;
  font-family: var(--font-head);
  font-size: .88rem;
  color: var(--dark);
}
.testimonial-card__author span {
  font-size: .76rem;
  color: var(--gray-600);
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── 6. COVERAGE (Cobertura) ───────────────────────────────────── */
.coverage {
  background:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(900px 520px at 88% 12%, rgba(0,114,206,.55), transparent 62%),
    radial-gradient(700px 480px at 8% 92%, rgba(187,219,0,.13), transparent 60%),
    var(--blue);
  color: var(--white);
  position: relative;
  padding-bottom: 160px;
}
.coverage::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  right: -5%;
  height: 90px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 90px 90px 0 0;
}
.coverage .split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
.coverage .tag { color: rgba(255,255,255,.55); }
.coverage h2   { color: var(--white); }
.coverage .divider { background: var(--green); }
.coverage__bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.coverage__bullet {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.bullet-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
}
.bullet-icon i { font-size: .85rem; }
.coverage__bullet strong {
  display: block;
  font-family: var(--font-head);
  font-size: .9rem;
  margin-bottom: 2px;
}
.coverage__bullet span {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
.coverage__locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.location-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  padding: 22px 16px;
  text-align: center;
  transition: background var(--t), transform var(--t), border-color var(--t);
}
.location-card::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin: 0 auto 10px;
  box-shadow: 0 0 0 4px rgba(187,219,0,.25);
}
.location-card:hover {
  background: rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-3px);
}
.location-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.location-card span { font-size: .75rem; color: rgba(255,255,255,.6); letter-spacing: .04em; }
@media (min-width: 768px) { .coverage .split { grid-template-columns: 3fr 2fr; } }

/* ── 7. JOBS (Bolsa de trabajo) ────────────────────────────────── */
.jobs {
  background:
    radial-gradient(rgba(0,72,133,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
  position: relative;
  overflow: hidden;
}
.jobs::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187,219,0,.12), transparent 65%);
  top: -160px; right: -130px;
  pointer-events: none;
}
.jobs .container { position: relative; z-index: 1; }
.jobs .section-header { text-align: center; }
.jobs__body {
  text-align: center;
  margin: 36px auto 0;
  max-width: 760px;
  background: var(--green-50);
  border: 1px solid rgba(187,219,0,.35);
  border-radius: 24px;
  padding: 48px 28px 40px;
  position: relative;
  overflow: hidden;
}
.jobs__body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--green));
}
.jobs__logo {
  max-width: 220px;
  margin: 28px auto 8px;
}
.jobs__note {
  font-size: .9rem;
  color: var(--gray-600);
  margin-top: 8px;
  margin-bottom: 28px;
}
.jobs__note a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.jobs__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.jobs__desc { max-width: 560px; margin: 0 auto; color: var(--gray-600); font-size: .95rem; }
.jobs__bullets {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px auto;
  text-align: left;
  color: var(--gray-600);
  font-size: .92rem;
}
.jobs__bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jobs__bullets i {
  color: var(--blue-600);
  font-size: .95rem;
  flex-shrink: 0;
}

/* ── 8. CONTACT (Contacto) ─────────────────────────────────────── */
.contact {
  background:
    radial-gradient(rgba(0,72,133,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--white) 0%, var(--blue-50) 22%, var(--blue-50) 100%);
  color: var(--dark);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,114,206,.07), transparent 65%);
  bottom: -200px; left: -150px;
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }
.contact .split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
.contact .tag   { color: var(--blue-600); }
.contact h2     { color: var(--dark); }
.contact .divider { background: var(--blue-600); }

/* Form */
.c-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.c-form input,
.c-form textarea,
.c-form select {
  width: 100%;
  padding: 13px 17px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.c-form input:focus,
.c-form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(0,114,206,.12);
}
.c-form input::placeholder,
.c-form textarea::placeholder { color: var(--gray-600); opacity: .6; }
.c-form textarea { min-height: 130px; resize: vertical; }

.form-success {
  display: none;
  padding: 18px;
  background: rgba(0,114,206,.08);
  border: 1px solid rgba(0,114,206,.25);
  border-radius: var(--r-sm);
  color: var(--blue);
  font-size: .9rem;
  text-align: center;
  line-height: 1.5;
}

/* Contact info */
.contact-offices {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.office-card {
  padding-left: 18px;
  border-left: 3px solid rgba(0,114,206,.25);
  transition: border-color var(--t);
}
.office-card:hover { border-left-color: var(--blue-600); }
.office-card h4 {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.office-card p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.85;
}
.office-card a {
  color: var(--blue-600);
  transition: color var(--t);
}
.office-card a:hover { color: var(--blue); }

.contact__extras {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.contact__email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.contact__email i { color: var(--blue-600); font-size: 1rem; }
.contact__email a { color: var(--blue-600); }
.contact__email a:hover { text-decoration: underline; }

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,72,133,.08);
  border: 1px solid rgba(0,72,133,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--t), transform var(--t), border-color var(--t);
}
/* vector-icons.css tiene color:white hardcodeado en ::before — lo sobreescribimos */
.social-link [class^="moon-"]::before,
.social-link [class*=" moon-"]::before {
  color: var(--blue) !important;
  transition: color var(--t);
}
.social-link:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  transform: translateY(-2px);
}
.social-link:hover [class^="moon-"]::before,
.social-link:hover [class*=" moon-"]::before {
  color: var(--white) !important;
}

.privacy-link {
  display: inline-block;
  margin-top: 14px;
  font-size: .8rem;
  color: var(--gray-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t);
}
.privacy-link:hover { color: var(--blue); }

@media (min-width: 768px) {
  .contact .split { grid-template-columns: 3fr 2fr; }
  .form-row       { grid-template-columns: 1fr 1fr; }
}

/* ── 9. FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: #0d0d1c;
  padding: 36px 0;
  color: rgba(255,255,255,.4);
  font-size: .82rem;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer .logo { height: 28px; opacity: .7; }
.footer a {
  color: rgba(255,255,255,.4);
  transition: color var(--t);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer a:hover { color: rgba(255,255,255,.85); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) {
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── Clientes ──────────────────────────────────────────────────── */
.clients {
  padding: 28px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}
.clients__label {
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.clients__track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.clients__logos {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.clients__logos:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-logo {
  color: var(--gray-200);
  height: 36px;
  display: flex;
  align-items: center;
  transition: color var(--t);
  cursor: default;
  flex-shrink: 0;
}
.client-logo svg { height: 36px; width: auto; }
.client-logo:hover { color: var(--blue); }

/* Colores de marca sutiles en hover */
.client-logo--arrow:hover    { color: #e31837; }
.client-logo--jabil:hover    { color: #004c97; }
.client-logo--foxconn:hover  { color: #004b87; }
.client-logo--honeywell:hover{ color: #fc4c02; }
.client-logo--ibm:hover      { color: #0f62fe; }
.client-logo--flex:hover     { color: #003087; }

@media (prefers-reduced-motion: reduce) {
  .clients__logos { animation: none; }
  .hero::before,
  .hero::after,
  .hero__scroll span { animation: none; }
}

/* ── Cómo trabajamos ───────────────────────────────────────────── */
.how-we-work {
  background:
    radial-gradient(rgba(187,219,0,.12) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.how-we-work::before {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,114,206,.08), transparent 65%);
  top: -180px; left: -140px;
  pointer-events: none;
}
.how-we-work::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187,219,0,.14), transparent 65%);
  bottom: -160px; right: -120px;
  pointer-events: none;
}
.how-we-work .container { position: relative; z-index: 1; }
.how-we-work .section-header { text-align: center; margin-bottom: 56px; }
.how-we-work .section-header .divider { margin-left: auto; margin-right: auto; }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}
.step {
  text-align: center;
  padding: 0 16px 8px;
  position: relative;
}
.step__num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 4px;
}
.step__num::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--green);
  margin: 8px auto 20px;
  border-radius: 2px;
}
.step__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  box-shadow: 0 6px 20px rgba(0, 72, 133, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.step h3 { color: var(--dark); margin-bottom: 10px; }
.step p  { font-size: .88rem; color: var(--gray-600); line-height: 1.65; }

.step__connector { display: none; }

@media (min-width: 768px) {
  .steps {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
  }
  .step__connector {
    display: block;
    height: 2px;
    background: var(--gray-200);
    width: 32px;
    margin-top: 116px;
    flex-shrink: 0;
    position: relative;
  }
  .step__connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    border: 5px solid transparent;
    border-left-color: var(--gray-200);
  }
}

/* ── WhatsApp flotante ─────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform var(--t), box-shadow var(--t);
}
.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.55);
}
.whatsapp-btn__tooltip {
  position: absolute;
  right: 68px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity var(--t), transform var(--t);
}
.whatsapp-btn__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--dark);
}
.whatsapp-btn:hover .whatsapp-btn__tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Scroll-reveal ─────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }
