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

:root {
  --azul-oscuro:  #0a0f2e;
  --azul-medio:   #0d1a4a;
  --azul-marca:   #0c2d8e;
  --azul-vivo:    #1a4fd8;
  --cyan:         #00c2d4;
  --blanco:       #ffffff;
  --gris-claro:   #e8edf5;
  --gris-texto:   #8a9bbf;
  --overlay:      rgba(8, 14, 40, 0.72);
  --nav-h:        80px;
  --radius:       12px;
  --trans:        0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--azul-oscuro);
  color: var(--blanco);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: background var(--trans), box-shadow var(--trans);
}
.navbar.scrolled {
  background: rgba(8, 14, 40, 0.97);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  transition: color var(--trans);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width var(--trans);
}
.nav-links a:hover,
.nav-links a.active { color: var(--blanco); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.btn-nav {
  background: var(--cyan);
  color: var(--azul-oscuro) !important;
  font-weight: 700 !important;
  padding: .55rem 1.4rem;
  border-radius: 6px;
  letter-spacing: .04em;
  transition: background var(--trans), transform var(--trans) !important;
}
.btn-nav:hover { background: #00dff5 !important; transform: translateY(-2px); }
.btn-nav::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BOTÓN WHATSAPP FLOTANTE ─────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--trans), box-shadow var(--trans);
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37,211,102,.6);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ─── BOTONES GENERALES ───────────────────────────── */
.btn-primario {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--cyan);
  color: var(--azul-oscuro);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.btn-primario:hover {
  background: #00dff5;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,194,212,.35);
}
.btn-secundario {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--blanco);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem 2rem;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,.4);
  cursor: pointer;
  transition: border-color var(--trans), background var(--trans), transform var(--trans);
}
.btn-secundario:hover {
  border-color: var(--blanco);
  background: rgba(255,255,255,.08);
  transform: translateY(-3px);
}

/* ─── SECTION HEADER ─────────────────────────────── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .6rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--blanco);
}
.section-title span { color: var(--cyan); }
.section-sub {
  font-size: 1rem;
  color: var(--gris-texto);
  max-width: 540px;
  margin-top: .8rem;
  line-height: 1.7;
}
.section-divider {
  width: 48px; height: 3px;
  background: var(--cyan);
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

/* ─── SCROLL REVEAL ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── STRIP CLIENTES (scroll infinito) ───────────── */
.clientes-strip {
  background: var(--azul-medio);
  padding: 1.8rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.clientes-track {
  display: flex;
  gap: 4rem;
  animation: scrollTrack 28s linear infinite;
  width: max-content;
}
.clientes-track:hover { animation-play-state: paused; }
.cliente-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  transition: color var(--trans);
}
.cliente-logo:hover { color: var(--cyan); }
@keyframes scrollTrack {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── CTA SECTION ─────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 100px 5%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('../img/cta-fondo.webp');
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,14,40,.93) 45%, rgba(8,14,40,.55) 100%);
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.cta-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .8rem;
}
.cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.cta-title span { color: var(--cyan); }
.cta-sub {
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  max-width: 440px;
}
.cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background: #060b1f;
  padding: 70px 5% 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 50px;
}
.footer-logo img { height: 48px; width: auto; margin-bottom: 1rem; }
.footer-desc {
  font-size: .9rem;
  color: var(--gris-texto);
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 1.4rem;
}
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--trans), background var(--trans);
}
.footer-social a:hover {
  border-color: var(--cyan);
  background: rgba(0,194,212,.12);
}
.footer-social svg { width: 16px; height: 16px; fill: var(--gris-texto); }
.footer-social a:hover svg { fill: var(--cyan); }

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a {
  font-size: .88rem;
  color: var(--gris-texto);
  transition: color var(--trans), padding-left var(--trans);
}
.footer-col ul a:hover { color: var(--blanco); padding-left: 6px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .85rem;
}
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--cyan); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { font-size: .88rem; color: var(--gris-texto); line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-bottom a { color: var(--cyan); transition: opacity var(--trans); }
.footer-bottom a:hover { opacity: .75; }

/* ─── PAGE HERO INTERIOR ──────────────────────────── */
.page-hero {
  height: 52vh;
  min-height: 340px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 5% 60px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,14,40,1) 0%, rgba(8,14,40,.5) 60%, rgba(8,14,40,.3) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .6rem;
}
.page-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  text-transform: uppercase;
  line-height: 1;
}
.page-hero-title span { color: var(--cyan); }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,14,40,.98);
    flex-direction: column;
    padding: 1.5rem 5%;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .navbar { padding: 0 5%; }
  .btn-nav { display: none; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-btns { flex-direction: column; }
  .wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
}
