/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --negro-base: #050A1F;
  --azul-profundo: #0A1B5C;
  --azul-corporativo: #0D2C8B;
  --azul-electrico: #2979FF;
  --cian-neon: #00E5FF;
  --turquesa-tech: #2CB9C6;
  --blanco-frio: #F4F8FF;
  --gris-azulado: #8FA9C9;
  --gris-oscuro: #1B1F2E;
  --glass-bg: rgba(10, 27, 92, 0.2);
  --glass-border: rgba(0, 229, 255, 0.15);
  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 229, 255, 0.1) inset;
  --glow-neon: 0 0 20px rgba(0, 229, 255, 0.3);
  --transition-slow: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--negro-base);
  color: var(--blanco-frio);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== FONDO MULTICAPA ===== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(0, 229, 255, 0.02) 0px, rgba(0, 229, 255, 0.02) 2px, transparent 2px, transparent 6px),
    radial-gradient(circle at 20% 30%, rgba(41, 121, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.08) 0%, transparent 45%),
    linear-gradient(135deg, var(--negro-base) 0%, var(--azul-profundo) 70%, #0A1F4A 100%);
  pointer-events: none;
  z-index: 0;
}

/* Grid tecnológico animado */
.tech-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
  animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

/* Partículas canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Cursor personalizado - solo en desktop */
@media (min-width: 901px) {
  body {
    cursor: none;
  }

  .custom-cursor {
    width: 32px;
    height: 32px;
    border: 2px solid var(--cian-neon);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    box-shadow: 0 0 20px var(--cian-neon);
    backdrop-filter: blur(4px);
    background: rgba(0, 229, 255, 0.05);
  }

  .custom-cursor.hover {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 229, 255, 0.15);
    border-color: var(--blanco-frio);
    box-shadow: 0 0 30px var(--azul-electrico);
  }
}

/* Contenedor principal */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 5;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: rgba(5, 10, 31, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.logo-img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--cian-neon));
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: var(--cian-neon);
  cursor: pointer;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--blanco-frio);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  transition: color 0.3s;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--cian-neon);
}

/* ===== TITULO DE PAGINA ===== */
.page-header {
  position: relative;
  width: 100%;
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, rgba(5, 10, 31, 0.9), rgba(10, 27, 92, 0.8));
}

.page-header h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--blanco-frio) 0%, var(--cian-neon) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
  text-align: center;
}

/* ===== BLOQUES DE RAZONES (similar a servicios) ===== */
.razon-detalle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 5rem 0;
  align-items: center;
}

.razon-detalle:nth-child(even) .razon-imagen {
  order: 0;
}

.razon-detalle:nth-child(even) .razon-texto {
  order: 1;
}

.razon-detalle:nth-child(odd) .razon-imagen {
  order: 1;
}

.razon-detalle:nth-child(odd) .razon-texto {
  order: 0;
}

.razon-texto h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--blanco-frio);
}

.razon-texto p {
  color: var(--gris-azulado);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.razon-texto ul {
  list-style: none;
  color: var(--gris-azulado);
}

.razon-texto li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.razon-texto li i {
  color: var(--cian-neon);
}

.razon-imagen {
  display: flex;
  justify-content: center;
}

.razon-imagen img {
  width: 100%;
  max-width: 500px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.5s;
}

.razon-imagen img:hover {
  transform: scale(1.02);
}

/* ===== BOTON DE CONTACTO ===== */
.contacto-final {
  text-align: center;
  margin: 4rem 0;
}

.btn-contacto {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid var(--cian-neon);
  border-radius: 50px;
  color: var(--blanco-frio);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.btn-contacto:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--glow-neon);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 4rem;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  background: rgba(5, 10, 31, 0.5);
  backdrop-filter: blur(10px);
}

.social-buttons {
  display: flex;
  gap: 1rem;
}

.btn-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cian-neon);
  transition: 0.3s;
}

.btn-social:hover {
  background: var(--cian-neon);
  color: var(--negro-base);
  transform: translateY(-3px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--cian-neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cian-neon);
  text-decoration: none;
  transition: 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--cian-neon);
  color: var(--negro-base);
}

/* ===== ANIMACIONES SCROLL ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 31, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 99;
  }

  .menu-toggle:checked~.nav-links {
    transform: translateY(0);
  }

  .menu-toggle {
    display: none;
  }

  .hamburger {
    font-size: 2rem;
    user-select: none;
  }

  .page-header h1 {
    font-size: 2.8rem;
  }

  .razon-detalle {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .razon-detalle:nth-child(even) .razon-imagen,
  .razon-detalle:nth-child(odd) .razon-imagen {
    order: 0;
  }

  .razon-texto {
    text-align: center;
  }

  .razon-texto ul {
    display: inline-block;
    text-align: left;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 550px) {
  .page-header h1 {
    font-size: 2.2rem;
  }

  .razon-texto h2 {
    font-size: 2rem;
  }

  .razon-texto p {
    font-size: 1rem;
  }
}
/* Responsive para que no se amontonen */
@media (max-width: 600px) {
    .tech-grid-container {
        grid-template-columns: 1fr;
    }
}
/* Ocultar el cursor por defecto en toda la web */
html, body {
    cursor: none !important;
}

/* Asegurar que los enlaces y botones tampoco muestren la "manito" nativa */
a, button, label, .btn-social, .ampliable {
    cursor: none !important;
}

/* Estilo base del cursor personalizado (por si no lo tienes así) */
#customCursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: rgba(0, 229, 255, 0.5); /* Cian neón */
    border-radius: 50%;
    pointer-events: none; /* Crucial: para que no bloquee los clics */
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference; /* Efecto tecnológico al pasar sobre colores */
}

/* Estado cuando pasas sobre un link */
#customCursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(0, 229, 255, 0.2);
    border: 2px solid #00e5ff;
}
/* --- TARJETAS DE SERVICIO MEJORADAS --- */
.servicio-detalle {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-card {
    border: 1px solid rgba(0, 255, 204, 0.3);
    background: linear-gradient(145deg, rgba(0, 255, 204, 0.05), rgba(0, 0, 0, 0));
}

.price-tag {
    font-family: 'Space Mono', monospace;
    color: #00ffcc;
    font-size: 2rem;
    font-weight: bold;
    margin: 15px 0;
}

.btn-nav-login {
    border: 1px solid #00ffcc;
    border-radius: 30px;
    padding: 5px 20px !important;
    color: #00ffcc !important;
}

.btn-nav-login:hover {
    background: #00ffcc;
    color: #000 !important;
}
/* --- NAVEGACIÓN PRINCIPAL --- */
/* ESTRUCTURA DEL NAVBAR - Manteniendo tus colores */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Lógica del Dropdown (Solo posicionamiento) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1000;
    /* Usamos fondo traslúcido para que combine con tu Glassmorphism */
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.9rem;
    border: none !important; /* Evita conflictos */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Botón Login - Solo estructura */
.btn-nav-login {
    margin-left: 10px;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    border: 1px solid currentColor !important; /* Usa el color de texto actual */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}