:root {
  --blue: #0046ad;
  --red: #d90429;
  --dark: #0f172a;
  --white: #ffffff;
  --bg-light: #f8fafc;
}

/* FIX SCROLL HORIZONTAL */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 10px;
  background-color: #0046ad;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(217, 4, 41, 0.8);
  border-radius: 5px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--dark);
  background: var(--white);
}

/* NAVBAR LOGIC */
.navbar-main {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 30px 0;
  z-index: 2000;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-main.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

#main-logo {
  height: 60px; /* Tamaño inicial */
  transition: all 0.4s ease;
}

/* --- ESTILO ISLAS FLOTANTES --- */
.navbar-islands {
  position: fixed;
  top: 25px;
  left: 0;
  width: 100%;
  z-index: 5000; /* Aumentamos el z-index */
  pointer-events: none;
  display: flex; /* Aseguramos que se comporte como flex */
  opacity: 0; /* Empezamos en 0 para que GSAP lo revele */
  visibility: hidden;
  transition:
    top 0.4s ease,
    padding 0.4s ease; /* Quitamos 'all' para evitar conflictos con GSAP */
}
.navbar-islands .container-fluid {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
}

/* Las islas deben tener fondo para verse sobre el video */
.logo-island,
.menu-island {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.85) !important; /* Fondo más sólido */
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#main-logo {
  height: 100px;
  transition: all 0.4s ease;
}

/* Isla del Menú (Lado Derecho) */
.menu-island {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  padding: 10px 30px;
  border-radius: 50px; /* Forma de píldora */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estilo de los links dentro de la píldora */
.nav-item {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  margin: 0 15px;
  font-size: 0.85rem;
  transition: 0.3s;
}

.btn-red-pill {
  background: var(--red);
  color: white;
  padding: 8px 20px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.75rem;
  margin-left: 10px;
  box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

/* --- EFECTO AL HACER SCROLL --- */
.navbar-islands.scrolled {
  top: 10px;
}

.navbar-islands.scrolled .logo-island {
  padding: 10px;
  border-radius: 15px;
}

.navbar-islands.scrolled #main-logo {
  height: 35px; /* El logo se achica */
}

.navbar-islands.scrolled .menu-island {
  padding: 8px 25px;
}

/* BOTONES */
.btn-red-action {
  background: var(--red);
  color: white;
  padding: 10px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.btn-blue-main {
  background: var(--blue);
  color: white;
  padding: 15px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  border: none;
}

/* --- CONFIGURACIÓN HERO VIDEO --- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--dark); /* Color de respaldo mientras carga el video */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene la proporción cubriendo todo */
  z-index: 0;
}

/* Capa de opacidad para el video */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Ajusta el 0.7 para más o menos opacidad (0.0 a 1.0) */
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.8) 30%,
    rgba(15, 23, 42, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2; /* Asegura que el texto esté por encima del video y el overlay */
  padding-top: 120px;
  @media (max-width: 768px) {
    padding-top: 20px;
  }
}

/* Colores ajustados para fondo oscuro */
.text-blue-light {
  color: #00d2ff; /* Un azul más claro para que resalte sobre el video */
}

.display-title {
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra suave para mejorar legibilidad */
}

/* Badge ajustado para video */
.badge-tech {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  color: rgb(0, 0, 0);
  padding: 6px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.display-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--dark);
}

.text-blue {
  color: var(--blue);
}

.hero-lead {
  font-size: 1.2rem;
  color: #64748b;
  margin: 30px 0;
  max-width: 600px;
}

.badge-tech {
  background: #e2e8f0;
  padding: 6px 15px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
}

/* SERVICES */
.card-service {
  background: var(--bg-light);
  padding: 50px 40px;
  border-radius: 4px;
  border-bottom: 4px solid transparent;
  transition: 0.4s;
  height: 100%;
}

.card-service:hover {
  background: var(--white);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--blue);
}

.card-active {
  border-color: var(--red);
  background: #fff8f8;
}

.link-indagar {
  text-decoration: none;
  color: var(--dark);
  font-weight: 800;
  font-size: 0.8rem;
  margin-top: 20px;
  display: block;
}

/* UTILS */
.py-10 {
  padding: 100px 0;
}
.mb-10 {
  margin-bottom: 80px;
}

/* CURSOR */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
}

.bg-blue {
  background-color: var(--blue) !important;
}

.btn-white-pill {
  background: white;
  color: var(--blue);
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  transition: 0.3s;
  display: inline-block;
}

.btn-white-pill:hover {
  background: var(--red);
  color: white;
  transform: translateY(-3px);
}

.border-red {
  border-color: var(--red) !important;
}

/* Ajuste para que las marcas se vean elegantes */
.badge.border {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- TICKER CLIENTES --- */
.ticker-wrapper {
  display: flex;
  white-space: nowrap;
  padding: 20px 0;
}
.ticker-content {
  display: flex;
  gap: 80px;
  align-items: center;
}
.client-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- CONTACT SECTION GLASS --- */
.contact-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.contact-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5); /* Oscurecemos para legibilidad */
  z-index: 1;
}
.glass-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 1100px;
}
.border-end-glass {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- ESTILO PRELOADER --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff; /* Fondo blanco puro */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Por encima de todo */
}

.preloader-content {
  text-align: center;
  position: relative;
}

#intro-logo {
  width: 150px; /* Tamaño del logo en la intro */
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.05));
}

.loader-line {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 10px;
  margin: 0 auto;
}

/* Evitar scroll mientras carga */
body.loading {
  overflow: hidden;
}

/* --- INPUTS CUSTOM --- */
.form-group-custom {
  margin-bottom: 5px;
}
.label-custom {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}
.input-custom {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 0;
  outline: none;
  transition: 0.3s;
}
.input-custom:focus {
  border-color: var(--blue);
}
select.input-custom option {
  background: var(--dark);
}

.btn-wa-premium {
  background: var(--blue);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 4px;
  font-weight: 800;
  transition: 0.3s;
}
.btn-wa-premium:hover {
  background: var(--red);
  transform: translateY(-3px);
}

/* --- FOOTER --- */
.footer-premium {
  background: var(--dark);
  color: white;
  padding: 100px 0 40px;
}
.footer-logo {
  height: 50px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: 0.3s;
  display: block;
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--blue);
  padding-left: 5px;
}
.social-icons a {
  color: white;
  font-size: 1.2rem;
  margin-right: 20px;
}

.client-img {
  height: 60px; /* Ajusta la altura */
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: 0.3s;
}
.client-img:hover {
  opacity: 1;
  filter: grayscale(0%);
}
.ticker-content {
  gap: 100px; /* Más espacio entre logos */
}

/* Iconos pequeños en la lista */
.icon-circle-small {
  width: 40px;
  height: 40px;
  background: rgba(0, 70, 173, 0.1);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Espaciado de letras */
.ls-2 {
  letter-spacing: 2px;
}

/* Grilla de Marcas */
.brands-grid-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #eee;
}

.brand-item {
  max-height: 50px; /* Controla el alto de las marcas */
  max-width: 120px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.brand-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}
