/* ==========================================================================
   VARIABLES DE TEMA (Paleta Neón Tech & Cyberpunk)
   ========================================================================== */
:root[data-bs-theme="dark"] {
  --bg-main: #0a0d14;
  --bg-card: #121824;
  --bg-section-alt: #0e121c;
  --text-main: #f0f4f8;
  --text-subtle: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);

  --cyan-glow: #00f2fe;
  --purple-glow: #7928ca;
  --accent-blue: #3b82f6;

  --nav-bg: rgba(10, 13, 20, 0.85);
}

:root[data-bs-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-section-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-subtle: #64748b;
  --border-color: rgba(0, 0, 0, 0.08);

  --cyan-glow: #0284c7;
  --purple-glow: #6b21a8;
  --accent-blue: #2563eb;

  --nav-bg: rgba(255, 255, 255, 0.9);
}

/* Base */
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", sans-serif;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  overflow-x: hidden;
}

.text-subtle {
  color: var(--text-subtle);
}
.text-cyan {
  color: var(--cyan-glow);
}
.fw-black {
  font-weight: 800;
}
.fw-extrabold {
  font-weight: 700;
}

/* ==========================================================================
   NAVBAR & SCROLLSPY (Marcado activo de secciones)
   ========================================================================== */
.custom-navbar {
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--cyan-glow), var(--purple-glow));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.nav-link {
  color: var(--text-subtle) !important;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  border-radius: 20px;
  transition: all 0.25s ease;
}

/* MARCADOR ACTIVO MEJORADO */
.nav-link.active,
.nav-link:hover {
  color: var(--cyan-glow) !important;
  background: rgba(0, 242, 254, 0.08);
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.15);
}

/* Botoncitos para el menú de navegación */
.navbar-nav .nav-link.nav-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem !important;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-subtle) !important;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto al pasar el cursor (Hover) */
.navbar-nav .nav-link.nav-glow:hover {
  color: var(--cyan-glow) !important;
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.15);
}

/* Botón Marcado como ACTIVO (Click o Scroll) */
.navbar-nav .nav-link.nav-glow.active {
  color: #000 !important;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.btn-theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
}

/* ==========================================================================
   BOTONES LLAMATIVOS (NEÓN Y GLOW)
   ========================================================================== */
.btn-glow-neon {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #000 !important;
  border: none;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  transition: all 0.3s ease;
}

.btn-glow-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.7);
}

.btn-glow-purple {
  background: linear-gradient(135deg, #b822ff 0%, #7928ca 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 0 20px rgba(184, 34, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-glow-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(184, 34, 255, 0.7);
}

/* ==========================================================================
   HERO & EFECTOS DE FONDO
   ========================================================================== */
.text-gradient-hero {
  background: linear-gradient(135deg, #00f2fe 0%, #b822ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-hero {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
}

.bg-glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
}
.orb-1 {
  top: -100px;
  left: -100px;
  background: var(--cyan-glow);
}
.orb-2 {
  bottom: 0;
  right: -100px;
  background: var(--purple-glow);
}

.hero-card-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
}

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.badge-top-right {
  top: -15px;
  right: -15px;
}

/* ==========================================================================
   TARJETAS DE SISTEMAS & COMPONENTES
   ========================================================================== */
.bg-section-alt {
  background-color: var(--bg-section-alt);
}

.system-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color) !important;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.system-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(0, 242, 254, 0.3) !important;
}

.icon-box {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-cyan {
  background: rgba(0, 242, 254, 0.1);
  color: #00f2fe;
}
.icon-purple {
  background: rgba(184, 34, 255, 0.1);
  color: #b822ff;
}
.icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.icon-rose {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
}

.link-cyan {
  color: var(--cyan-glow);
}
.system-card:hover .transition-icon {
  transform: translateX(5px);
}

/* Stack Tecnológico & Nosostros */
.border-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.tech-tag {
  background: var(--bg-section-alt);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   FORMULARIO Y CONTACTO
   ========================================================================== */
.contact-info-card {
  background: linear-gradient(
    135deg,
    var(--bg-card) 0%,
    rgba(184, 34, 255, 0.08) 100%
  );
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-input {
  background-color: var(--bg-main) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  border-radius: 10px;
  padding: 12px 16px;
}

.custom-input:focus {
  border-color: var(--cyan-glow) !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  color: var(--cyan-glow);
  border-color: var(--cyan-glow);
}

/* WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}
