/* ============================================================
   TRANSTERRA — style.css
   Diseño corporativo premium: azules profundos + slate + oro
   ============================================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* --- VARIABLES --- */
:root {
  --azul-noche:   #0a1628;
  --azul-oscuro:  #0f2044;
  --azul-medio:   #1a3a6e;
  --azul-vivo:    #1d5fc4;
  --azul-claro:   #3b82f6;
  --slate-900:    #0f172a;
  --slate-700:    #334155;
  --slate-400:    #94a3b8;
  --slate-200:    #e2e8f0;
  --slate-100:    #f1f5f9;
  --oro:          #c9a84c;
  --oro-claro:    #e8c96a;
  --blanco:       #ffffff;
  --fondo:        #f8fafc;
  --texto:        #1e293b;
  --texto-suave:  #475569;
  --sombra-lg:    0 20px 60px rgba(10,22,40,.18);
  --sombra-md:    0 8px 30px rgba(10,22,40,.12);
  --sombra-sm:    0 2px 10px rgba(10,22,40,.08);
  --radio:        12px;
  --radio-lg:     20px;
  --trans:        all .35s cubic-bezier(.4,0,.2,1);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* --- 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);
  color: var(--texto);
  background: var(--fondo);
  overflow-x: hidden;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--slate-900); }
::-webkit-scrollbar-thumb { background: var(--azul-vivo); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
  padding: 0;
}
#navbar.scrolled {
  background: rgba(10,22,40,.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0,0,0,.35);
}

/* Top bar */
.nav-topbar {
  background: var(--azul-noche);
  border-bottom: 1px solid rgba(201,168,76,.2);
  padding: 6px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--slate-400);
  transition: max-height .4s ease, padding .4s ease, opacity .4s ease;
  max-height: 42px;
  overflow: hidden;
}
#navbar.scrolled .nav-topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.nav-topbar a { color: var(--slate-400); transition: color .25s; }
.nav-topbar a:hover { color: var(--oro-claro); }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-left svg { width: 14px; height: 14px; color: var(--oro); flex-shrink: 0; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-right a {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.25);
  transition: var(--trans);
}
.topbar-right a:hover {
  background: var(--oro);
  border-color: var(--oro);
  color: var(--azul-noche);
}
.topbar-right svg { width: 14px; height: 14px; }

/* Main bar */
.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  transition: padding .4s ease;
}
#navbar.scrolled .nav-main { padding: 12px 40px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--azul-vivo), var(--azul-claro));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(29,95,196,.4);
  flex-shrink: 0;
}
.logo-mark svg { width: 24px; height: 24px; color: var(--blanco); }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--blanco);
  text-transform: uppercase;
}
.logo-sub {
  font-size: .7rem;
  color: var(--oro);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  letter-spacing: .03em;
  transition: var(--trans);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--oro);
  border-radius: 1px;
  transition: left .3s ease, right .3s ease;
}
.nav-links a:hover { color: var(--blanco); background: rgba(255,255,255,.07); }
.nav-links a:hover::after { left: 16px; right: 16px; }

.nav-cta {
  background: linear-gradient(135deg, var(--oro), var(--oro-claro));
  color: var(--azul-noche) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(201,168,76,.35);
  transition: var(--trans) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(201,168,76,.5) !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  transition: background .25s;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
  background: var(--azul-noche);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.slide.active { opacity: 1; }
.slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7s ease;
}
.slide.active .slide-img { transform: scale(1); }

/* Gradient overlay */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,22,40,.78) 0%,
    rgba(10,22,40,.45) 50%,
    rgba(10,22,40,.2) 100%
  );
}

/* Fallback sin imágenes */
.slider-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--azul-noche) 0%, var(--azul-medio) 60%, var(--azul-oscuro) 100%);
  display: flex; align-items: center; justify-content: center;
}
.slider-fallback-grid {
  position: absolute; inset: 0; opacity: .07;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 620px;
  color: var(--blanco);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--oro-claro);
  margin-bottom: 20px;
}
.hero-badge span { width: 6px; height: 6px; background: var(--oro); border-radius: 50%; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title em {
  font-style: normal;
  color: var(--oro-claro);
  display: block;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
  background: linear-gradient(135deg, var(--azul-vivo), var(--azul-claro));
  color: var(--blanco);
  padding: 15px 32px;
  border-radius: var(--radio);
  font-weight: 600;
  font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 25px rgba(29,95,196,.5);
  transition: var(--trans);
  letter-spacing: .02em;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(29,95,196,.65); }
.btn-hero-secondary {
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--blanco);
  padding: 14px 28px;
  border-radius: var(--radio);
  font-weight: 500;
  font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
  transition: var(--trans);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }

/* Indicadores */
.slider-dots {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 8px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: var(--trans);
  cursor: pointer;
}
.slider-dot.active {
  background: var(--oro);
  transform: scale(1.3);
}

/* Flechas */
.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco);
  transition: var(--trans);
  backdrop-filter: blur(8px);
}
.slider-arrow:hover { background: var(--azul-vivo); border-color: var(--azul-vivo); }
.slider-arrow.prev { left: 28px; }
.slider-arrow.next { right: 28px; }
.slider-arrow svg { width: 20px; height: 20px; }

/* Stats bar */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(10,22,40,.88);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(201,168,76,.2);
  padding: 18px 8%;
  display: flex;
  gap: 0;
}
.hero-stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 0 20px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--oro-claro);
  line-height: 1;
}
.hero-stat-label {
  font-size: .72rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}

/* ============================================================
   SECCIÓN BASE
   ============================================================ */
.section { padding: 90px 8% 90px; }
.section-alt { background: var(--blanco); }
.section-dark {
  background: var(--azul-noche);
  color: var(--blanco);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--azul-vivo);
  margin-bottom: 10px;
}
.section-dark .section-eyebrow { color: var(--oro-claro); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--azul-oscuro);
}
.section-dark .section-title { color: var(--blanco); }
.section-title span { color: var(--azul-vivo); }
.section-dark .section-title span { color: var(--oro-claro); }
.section-divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--azul-vivo), var(--azul-claro));
  border-radius: 2px;
  margin: 14px auto 0;
}
.section-dark .section-divider {
  background: linear-gradient(90deg, var(--oro), var(--oro-claro));
}
.section-subtitle {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--texto-suave);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.section-dark .section-subtitle { color: rgba(255,255,255,.6); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 84%;
  margin: 0 auto;
}
.servicio-card {
  border-radius: var(--radio-lg);
  overflow: hidden;
  background: var(--blanco);
  box-shadow: var(--sombra-md);
  transition: var(--trans);
}
.servicio-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-lg); }

.servicio-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--azul-oscuro);
  cursor: pointer;
}
.servicio-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.servicio-cover:hover img { transform: scale(1.04); }

.servicio-cover-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
  display: flex; align-items: center; justify-content: center;
}
.servicio-cover-fallback svg { width: 64px; height: 64px; color: rgba(255,255,255,.2); }

.servicio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.75) 0%, transparent 60%);
  display: flex; align-items: flex-end;
  padding: 22px;
  transition: background .35s;
}
.servicio-cover:hover .servicio-overlay {
  background: linear-gradient(to top, rgba(10,22,40,.85) 0%, rgba(10,22,40,.2) 100%);
}
.servicio-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.9);
  color: var(--azul-noche);
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: var(--trans);
}
.servicio-cover:hover .servicio-overlay-btn { background: var(--oro-claro); transform: translateY(-2px); }
.servicio-overlay-btn svg { width: 16px; height: 16px; }

.servicio-body { padding: 28px 28px 32px; }
.servicio-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--azul-vivo), var(--azul-claro));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(29,95,196,.3);
}
.servicio-icon svg { width: 22px; height: 22px; color: var(--blanco); }
.servicio-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--azul-oscuro);
  margin-bottom: 10px;
}
.servicio-body p {
  font-size: .9rem;
  color: var(--texto-suave);
  line-height: 1.72;
}

/* ============================================================
   SOLUCIONES
   ============================================================ */
#soluciones { background: var(--blanco); }
.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
  max-width: 84%;
  margin-left: auto;
  margin-right: auto;
}
.solucion-card {
  background: var(--fondo);
  border: 1px solid var(--slate-200);
  border-radius: var(--radio-lg);
  padding: 30px 24px;
  text-align: center;
  transition: var(--trans);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.solucion-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--azul-vivo), var(--azul-claro));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.solucion-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-lg);
  border-color: transparent;
  background: var(--blanco);
}
.solucion-card:hover::before { transform: scaleX(1); }
.solucion-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(29,95,196,.1), rgba(59,130,246,.15));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  transition: var(--trans);
}
.solucion-card:hover .solucion-icon {
  background: linear-gradient(135deg, var(--azul-vivo), var(--azul-claro));
  box-shadow: 0 8px 25px rgba(29,95,196,.35);
}
.solucion-icon svg { width: 28px; height: 28px; color: var(--azul-vivo); transition: color .35s; }
.solucion-card:hover .solucion-icon svg { color: var(--blanco); }
.solucion-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--azul-oscuro);
  margin-bottom: 10px;
}
.solucion-card p {
  font-size: .84rem;
  color: var(--texto-suave);
  line-height: 1.7;
}

/* Galería soluciones */
.soluciones-galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 84%;
  margin: 40px auto 0;
}
.sol-thumb {
  aspect-ratio: 16/9;
  border-radius: var(--radio);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--azul-oscuro);
}
.sol-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.sol-thumb:hover img { transform: scale(1.06); }
.sol-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(29,95,196,.0);
  display: flex; align-items: center; justify-content: center;
  transition: background .35s;
}
.sol-thumb:hover .sol-thumb-overlay { background: rgba(29,95,196,.5); }
.sol-thumb-overlay svg { width: 30px; height: 30px; color: var(--blanco); opacity: 0; transform: scale(.6); transition: var(--trans); }
.sol-thumb:hover .sol-thumb-overlay svg { opacity: 1; transform: scale(1); }

/* ============================================================
   SOMOS
   ============================================================ */
#somos { background: var(--fondo); }
.somos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 84%;
  margin: 0 auto;
}
.somos-visual {
  position: relative;
}
.somos-cover {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radio-lg);
  overflow: hidden;
  background: var(--azul-oscuro);
  box-shadow: var(--sombra-lg);
  cursor: pointer;
}
.somos-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.somos-cover:hover img { transform: scale(1.04); }
.somos-cover-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
  display: flex; align-items: center; justify-content: center;
}
.somos-cover-fallback svg { width: 64px; height: 64px; color: rgba(255,255,255,.2); }

.somos-badge-anio {
  position: absolute;
  bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--oro), var(--oro-claro));
  color: var(--azul-noche);
  border-radius: var(--radio-lg);
  padding: 16px 22px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(201,168,76,.4);
}
.somos-badge-anio strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.somos-badge-anio span {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.somos-content { display: flex; flex-direction: column; gap: 20px; }
.somos-content .section-header { text-align: left; margin-bottom: 0; }
.somos-content .section-divider { margin-left: 0; }
.somos-content p { font-size: .95rem; color: var(--texto-suave); line-height: 1.78; }

.somos-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 4px;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(29,95,196,.08);
  border: 1px solid rgba(29,95,196,.2);
  color: var(--azul-vivo);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
}
.pill svg { width: 14px; height: 14px; }

/* ============================================================
   VENTAJAS
   ============================================================ */
#ventajas { background: var(--azul-noche); }
.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 84%;
  margin: 0 auto;
}
.ventaja-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radio-lg);
  padding: 32px 22px;
  text-align: center;
  transition: var(--trans);
}
.ventaja-card:hover {
  background: rgba(29,95,196,.15);
  border-color: rgba(29,95,196,.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(29,95,196,.2);
}
.ventaja-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--azul-vivo), var(--azul-claro));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(29,95,196,.35);
  transition: var(--trans);
}
.ventaja-card:hover .ventaja-icon {
  background: linear-gradient(135deg, var(--oro), var(--oro-claro));
  box-shadow: 0 8px 20px rgba(201,168,76,.4);
}
.ventaja-icon svg { width: 30px; height: 30px; color: var(--blanco); }
.ventaja-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blanco);
  margin-bottom: 10px;
}
.ventaja-card p { font-size: .84rem; color: rgba(255,255,255,.55); line-height: 1.7; }

/* ============================================================
   CLIENTES — CARRUSEL INFINITO
   ============================================================ */
#clientes { background: var(--blanco); padding: 70px 0; }
.clientes-header { padding: 0 8%; margin-bottom: 44px; }

.clientes-track-wrap {
  overflow: hidden;
  position: relative;
  padding: 16px 0;
  max-width: 84%;
  margin: 0 auto;
}
.clientes-track-wrap::before,
.clientes-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.clientes-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--blanco), transparent);
}
.clientes-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--blanco), transparent);
}

.clientes-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scrollClientes 30s linear infinite;
}
.clientes-track-wrap:hover .clientes-track {
  animation-play-state: paused;
}

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

.cliente-logo {
  flex-shrink: 0;
  width: 120px;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(100%) opacity(.55);
  transition: var(--trans);
}
.clientes-track-wrap:hover .cliente-logo { filter: grayscale(0%) opacity(1); }
.cliente-logo img {
  max-width: 110px;
  max-height: 100px;
  width: auto; height: auto;
  object-fit: contain;
}

/* Placeholder sin logos */
.cliente-placeholder {
  width: 110px; height: 60px;
  background: var(--slate-200);
  border-radius: 8px;
}

/* ============================================================
   CONTACTO
   ============================================================ */
#contacto { background: var(--fondo); }
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contacto-info { display: flex; flex-direction: column; gap: 28px; }
.contacto-info .section-header { text-align: left; margin-bottom: 0; }
.contacto-info .section-divider { margin-left: 0; }
.contacto-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra-sm);
  border-left: 3px solid var(--azul-vivo);
  transition: var(--trans);
}
.contacto-card:hover { transform: translateX(4px); box-shadow: var(--sombra-md); }
.contacto-card-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(29,95,196,.1), rgba(59,130,246,.15));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.contacto-card-icon svg { width: 20px; height: 20px; color: var(--azul-vivo); }
.contacto-card h4 { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--azul-oscuro); margin-bottom: 4px; }
.contacto-card a, .contacto-card p { font-size: .9rem; color: var(--texto-suave); }
.contacto-card a:hover { color: var(--azul-vivo); }

/* Formulario */
.form-card {
  background: var(--blanco);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-md);
  padding: 40px;
}
.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--azul-oscuro);
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--texto-suave);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--fondo);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radio);
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--texto);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--azul-vivo);
  box-shadow: 0 0 0 3px rgba(29,95,196,.12);
}
.form-group textarea { min-height: 130px; }

/* Honeypot */
.hp-field { display: none !important; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--azul-vivo), var(--azul-claro));
  color: var(--blanco);
  border-radius: var(--radio);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 25px rgba(29,95,196,.4);
  transition: var(--trans);
  margin-top: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(29,95,196,.55); }
.btn-submit svg { width: 20px; height: 20px; }

/* Mensajes */
.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radio);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.form-msg.success {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  color: #065f46;
}
.form-msg.error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #991b1b;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 60px 8% 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo { margin-bottom: 16px; }
.footer-desc { font-size: .88rem; line-height: 1.75; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-400);
  transition: var(--trans);
}
.footer-social:hover {
  background: var(--azul-vivo);
  border-color: var(--azul-vivo);
  color: var(--blanco);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .88rem;
  color: var(--slate-400);
  transition: color .25s;
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before {
  content: '';
  width: 6px; height: 1px;
  background: var(--azul-vivo);
  flex-shrink: 0;
  transition: width .25s;
}
.footer-links a:hover { color: var(--blanco); }
.footer-links a:hover::before { width: 12px; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
  font-size: .88rem;
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--oro); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
}
.footer-bottom a { color: var(--azul-claro); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 999;
}
.wa-btn {
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  cursor: pointer;
  position: relative;
  animation: waFloat 3s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 10px 30px rgba(37,211,102,.6) !important;
  animation-play-state: paused;
}
.wa-btn svg { width: 30px; height: 30px; color: var(--blanco); }

/* Pulso radar */
.wa-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(37,211,102,.35);
  animation: waPulse 2.5s ease-out infinite;
}
.wa-pulse:nth-child(2) { animation-delay: .8s; }

.wa-tooltip {
  position: absolute;
  right: 70px; top: 50%;
  transform: translateY(-50%);
  background: var(--slate-900);
  color: var(--blanco);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  transform: translateY(-50%) translateX(8px);
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--slate-900);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

@keyframes waPulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes waFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%       { transform: translateY(-5px) rotate(-2deg); }
  75%       { transform: translateY(3px) rotate(1deg); }
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lb-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(5,12,22,.96);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lb-overlay.active { display: flex; }

.lb-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 78vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-img-wrap img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radio);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: lbFade .3s ease;
}
@keyframes lbFade {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco);
  transition: var(--trans);
  z-index: 2;
}
.lb-close:hover { background: rgba(239,68,68,.7); border-color: transparent; }
.lb-close svg { width: 20px; height: 20px; }

.lb-arrow {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco);
  transition: var(--trans);
  z-index: 2;
}
.lb-arrow:hover { background: var(--azul-vivo); border-color: var(--azul-vivo); }
.lb-arrow.prev { left: 20px; }
.lb-arrow.next { right: 20px; }
.lb-arrow svg { width: 22px; height: 22px; }

.lb-counter {
  margin-top: 16px;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  letter-spacing: .06em;
}
.lb-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  max-width: 80vw;
  padding-bottom: 4px;
}
.lb-thumb {
  width: 56px; height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: .45;
  transition: opacity .25s, transform .25s;
  border: 2px solid transparent;
}
.lb-thumb.active { opacity: 1; border-color: var(--azul-claro); }
.lb-thumb:hover { opacity: .8; transform: translateY(-2px); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal].visible { opacity: 1; transform: none; }

/* Delay cascada */
.delay-1 { transition-delay: .1s !important; }
.delay-2 { transition-delay: .2s !important; }
.delay-3 { transition-delay: .3s !important; }
.delay-4 { transition-delay: .4s !important; }

/* ============================================================
   ALERT / MENSAJE FLOTANTE
   ============================================================ */
.flash-msg {
  display: none;
  position: fixed;
  top: 90px; right: 28px;
  z-index: 8000;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra-lg);
  padding: 16px 20px 16px 16px;
  min-width: 280px;
  border-left: 4px solid var(--azul-vivo);
  animation: flashIn .4s ease;
}
.flash-msg.show { display: flex; gap: 12px; align-items: flex-start; }
.flash-msg svg { width: 20px; height: 20px; color: var(--azul-vivo); flex-shrink: 0; }
.flash-msg p { font-size: .9rem; font-weight: 500; color: var(--texto); }
@keyframes flashIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .soluciones-grid, .ventajas-grid { grid-template-columns: repeat(2, 1fr); }
  .soluciones-galeria { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .somos-inner { grid-template-columns: 1fr; gap: 40px; }
  .somos-badge-anio { right: 10px; bottom: -14px; }
  .contacto-inner { grid-template-columns: 1fr; }
  .nav-topbar { padding: 6px 20px; }
  .nav-main { padding: 16px 20px; }
  #navbar.scrolled .nav-main { padding: 10px 20px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 5% 64px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,22,40,.98); padding: 20px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-burger { display: flex; }
  .topbar-left .topbar-mobile-hide { display: none; }
  .soluciones-grid { grid-template-columns: 1fr; }
  .ventajas-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px; }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .wa-float { bottom: 20px; right: 20px; }
  .soluciones-galeria { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .ventajas-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-hero-primary,
  .hero-btns .btn-hero-secondary { justify-content: center; }
  .lb-arrow.prev { left: 8px; }
  .lb-arrow.next { right: 8px; }
  .soluciones-galeria { grid-template-columns: 1fr; }
}