/* Variables y Sistema de Diseño Premium (Dark Mode) */
:root {
  --bg-dark: #07080b; /* Más profundo para mayor contraste */
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08); /* Fondo más claro al interactuar */
  --primary: #00f0ff; /* Neón cyan para sensación de "Radar" */
  --primary-glow: rgba(0, 240, 255, 0.6);
  --secondary: #ff3300; /* Rojo/Naranja más intenso para "Ads" */
  --secondary-glow: rgba(255, 51, 0, 0.6);
  --text-main: #f8f8fb;
  --text-muted: #a3a3b8;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Efecto de fondo Radar */
.radar-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(0, 240, 255, 0.05) 0%,
      transparent 70%
    ),
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0,
      transparent 40px,
      rgba(0, 240, 255, 0.03) 41px,
      transparent 42px
    );
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografía Moderna */
h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 16px;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.text-center {
  text-align: center;
}

/* --- Navegación Glassmorphism --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0;
  background: rgba(7, 8, 11, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(7, 8, 11, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-main);
    z-index: 101; /* Sobre el menú móvil */
}

.logo-img {
    height: 55px; 
    width: auto;
    border-radius: 50%;
    mix-blend-mode: screen; 
    filter: brightness(1.2) contrast(1.1); 
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.4) contrast(1.2) drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}

.logo .accent {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a:not([class]) {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-links a:not([class])::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-links a:not([class]):hover::after {
    width: 100%;
}

.nav-links a:not([class]):hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

/* --- Menú Móvil (Hamburger) --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Mobile Nav Active State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--secondary);
}


/* --- Botones --- */
.btn-primary,
.btn-primary-small,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--secondary) 0%, #b32400 100%);
  color: white;
  box-shadow: 0 8px 25px var(--secondary-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 200%;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px var(--secondary-glow);
}

.btn-primary-small {
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 100px;
}

.btn-primary-small:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 15px 35px;
  background: rgba(255,255,255,0.03);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-block {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 32px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(5px);
}

.trust-indicators {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* Animación Visual de Radar & Mapas */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.map-mockup {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(
    135deg,
    rgba(10, 11, 16, 0.95),
    rgba(20, 22, 30, 0.95)
  );
  border: 1px solid var(--border-light);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.8),
    inset 0 0 40px rgba(0, 240, 255, 0.08);
  transform: rotateY(-15deg) rotateX(10deg);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.map-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.radar-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotate(45deg);
}

.radar-sweep {
  position: absolute;
  width: 150%;
  height: 150%;
  background: conic-gradient(
    from 0deg,
    transparent 70%,
    rgba(0, 240, 255, 0.6) 100%
  );
  animation: sweep 4s linear infinite;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.pin {
  font-size: 4.5rem;
  z-index: 10;
  filter: drop-shadow(0 0 20px var(--secondary));
  animation: dropIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.pulse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: mapPulse 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.ad-float {
  position: absolute;
  background: rgba(20, 20, 25, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-float .trend-up {
    color: #00ff88;
    font-size: 1.2rem;
}

.ad-float .star {
    color: #ffcc00;
}

.ad-1 {
  top: 15%;
  right: -5%;
  animation: float 5s ease-in-out infinite;
}

.ad-2 {
  bottom: 20%;
  left: -5%;
  animation: float 6s ease-in-out infinite reverse;
}

/* Keyframes */
@keyframes sweep { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes mapPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}
@keyframes dropIn {
    0% { transform: translateY(-100px) scale(0); opacity: 0; }
    50% { transform: translateY(10px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* --- Servicios --- */
.services {
  padding: 140px 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 50px 40px;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover {
  transform: translateY(-15px);
  border-color: var(--border-light);
  background: linear-gradient(145deg, var(--bg-card-hover) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.05);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.glass-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 2.5rem;
  margin-bottom: 32px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: transform 0.4s ease;
}

.service-card:hover .glass-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(0, 240, 255, 0.3);
}

.feature-list {
  list-style: none;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.feature-list li {
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
}

.feature-list .check {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- Stats Numéricas --- */
.stats {
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 240, 255, 0.03),
    transparent
  );
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-item h3 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -2px;
  line-height: 1;
}

.stat-item p {
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- NUEVA Sección Testimonios --- */
.testimonials {
    padding: 120px 0;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: rgba(20, 22, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.testimonial-card .stars {
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 24px;
}

.testimonial-card h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.testimonial-card .location {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* --- Call to Action (Mejorado Floating Labels) --- */
.cta-section {
  padding: 100px 0 140px;
}

.cta-container {
  background: linear-gradient(
    135deg,
    rgba(255, 51, 0, 0.08) 0%,
    rgba(0, 240, 255, 0.08) 100%
  );
  border: 1px solid var(--border-light);
  border-radius: 40px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.cta-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* Floating Labels CSS */
.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
  width: 100%;
  padding: 24px 20px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: white;
  font-family: inherit;
  font-size: 1.1rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Focus and Valid states for floating labels */
.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.03);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 12px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.glow-on-hover {
    padding: 20px;
    font-size: 1.1rem;
    border-radius: 16px;
    margin-top: 10px;
}

.form-success {
    display: none;
    text-align: center;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    margin-top: 20px;
    animation: dropIn 0.5s ease forwards;
}

.form-success.show {
    display: block;
}


/* --- Footer --- */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-color);
  background: #040507;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}


/* --- Clases de Animación Generales --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.fade-in.visible {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* --- Responsive Adjustments / Mobile --- */
@media (max-width: 1024px) {
  .hero .container,
  .cta-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-actions,
  .trust-indicators {
    justify-content: center;
  }

  .map-mockup {
    width: 70%;
    margin: 0 auto;
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-content {
      position: relative;
  }
  
  .mobile-menu-btn {
      display: flex; /* Mostrar el botón en móviles */
  }

  .nav-links {
      position: fixed;
      top: 0;
      right: -100%; /* Oculto por defecto */
      width: 80%;
      height: 100vh;
      background: rgba(10, 11, 16, 0.98);
      backdrop-filter: blur(20px);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 40px;
      transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
      z-index: 100;
  }

  .nav-links.active {
      right: 0; /* Menu abierto */
      box-shadow: -20px 0 50px rgba(0,0,0,0.5);
  }
  
  .nav-links a {
      font-size: 1.5rem !important;
  }

  h1 { font-size: 2.8rem; }
  .stat-item h3 { font-size: 3.5rem; }

  .cta-container {
    padding: 50px 30px;
    border-radius: 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .map-mockup {
      width: 90%;
  }

  .ad-float { display: none; } /* Ocultar para limpiar el layout en móvil */
}

@media (max-width: 480px) {
    .testimonials-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
}
