:root {
  --black: #000000;
  --dark-gray: #1A1A1A;
  --neon-green: #99FF00;
  --white: #FFFFFF;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  letter-spacing: -0.02em;
}

.fw-black {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}

h1, h2, h3, .navbar-brand {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

.py-100 {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Colores de Marca */

.accent {
  color: var(--white);
}

.accent-text {
  color: var(--neon-green);
}

.dot {
  color: var(--neon-green);
}

.bg-dark-section {
  background-color: #0d0d0d;
}

/* Logo & Navbar */

.logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  text-decoration: none;
  overflow: visible;
}

.main-text {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

.ghost-text {
  position: absolute;
  color: rgba(255, 255, 255, 0.06);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 4px;
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin: 0 10px;
}

.nav-link:hover {
  color: var(--neon-green) !important;
}

/* Botones */

.btn-neon {
  background-color: var(--neon-green);
  color: var(--black);
  border: none;
  font-weight: 900;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-neon:hover {
  background-color: var(--white);
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(153, 255, 0, 0.2);
}

.btn-outline-light {
  border-radius: 0;
  font-weight: 700;
  border-width: 2px;
}

/* Hero Elite Style */

.hero-section {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 50%, rgba(153, 255, 0, 0.05) 0%, rgba(0,0,0,1) 70%);
  position: relative;
}

.hero-title-wrapper {
  position: relative;
}

.hero-ghost {
  position: absolute;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 12rem;
  color: rgba(255,255,255,0.03);
  top: -60px;
  left: -20px;
  line-height: 1;
  pointer-events: none;
  letter-spacing: 20px;
}

.max-w-600 {
  max-width: 600px;
}

/* Tarjetas de Servicio */

.service-card {
  background-color: var(--dark-gray);
  transition: all 0.4s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-green);
}

.line-accent {
  width: 60px;
  height: 4px;
  background-color: var(--neon-green);
}

/* Equipo */

.member-img {
  height: 300px;
  background-color: var(--dark-gray);
  position: relative;
  overflow: hidden;
}

.member-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--neon-green);
  transition: width 0.3s ease;
}

.team-member:hover .member-img::after {
  width: 100%;
}

/* Blog */

.blog-card {
  background-color: var(--dark-gray);
  transition: all 0.4s ease;
  height: 100%;
  border-bottom: 2px solid transparent;
}

.blog-card:hover {
  border-bottom-color: var(--neon-green);
  transform: translateY(-5px);
}

.blog-img-wrapper {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.7);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.1);
}

/* Blog Post Elite Styles */

.blog-hero {
  height: 70vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, var(--black) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.blog-article-content {
  max-width: 850px;
  margin: 0 auto;
}

.blog-article-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}

.blog-article-content h2, .blog-article-content h3 {
  color: var(--white);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

/* Formulario */

.form-control:focus {
  background-color: #222 !important;
  box-shadow: none;
  outline: 1px solid var(--neon-green);
}

.btn-whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 1050;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-whatsapp-float:hover {
  background-color: #128C7E;
  color: white;
  transform: scale(1.1);
}

/* Ticker de Tecnologías Elite */

.tech-ticker-container {
  overflow: hidden;
  padding: 40px 0;
  background: var(--black);
  white-space: nowrap;
  position: relative;
}

.tech-ticker-container::before, .tech-ticker-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-ticker-container::before {
  left: 0;
  background: linear-gradient(to right, var(--black), transparent);
}

.tech-ticker-container::after {
  right: 0;
  background: linear-gradient(to left, var(--black), transparent);
}

.tech-ticker-inner {
  display: inline-flex;
  animation: ticker-scroll 30s linear infinite;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 40px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.tech-item:hover {
  opacity: 1;
}

.tech-item i {
  font-size: 2.5rem;
  color: var(--white);
}

.tech-item span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  /* Forzar a que nada, absolutamente nada, se salga del ancho del dispositivo */
  html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important; /* El !important es para ganar la prioridad */
    position: relative;
  }

  /* El culpable suele ser un contenedor con margen negativo o ancho fijo */
  .container, .container-fluid {
    width: 100% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    overflow: hidden;
  }

  /* Ajustar el botón inferior */
  .btn-whatsapp-float {
    right: 20px !important; /* Asegurarlo dentro del margen */
    bottom: 20px !important;
  }
}