/* ==========================================================================
   ClicSoporte.com - Design System & Modern Responsive Styles
   Color Tokens: Indigo (#6366F1), Violet (#818CF8), Amber/Orange Accent (#F59E0B / #FD8325)
   ========================================================================== */

:root {
  --color-bg-dark: #070913;
  --color-bg-card: rgba(17, 24, 39, 0.7);
  --color-bg-secondary: #0c1021;
  --color-brand: #6366f1;
  --color-brand-light: #818cf8;
  --color-brand-dark: #4338ca;
  --color-brand-secondary: #ec4899;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-emerald: #10b981;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: #f8fafc;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--color-bg-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* --------------------------------------------------------------------------
   Background Ambient Grids & Glow Lights
   -------------------------------------------------------------------------- */
.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 75%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 75%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Interactive Cursor Spotlight */
.glow-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(236, 72, 153, 0.2) 30%, rgba(99, 102, 241, 0.08) 55%, transparent 75%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* Parallax Background Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.65;
  z-index: 0;
}
.orb-1 {
  top: 5%;
  left: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
}
.orb-2 {
  top: 30%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
}
.orb-3 {
  top: 65%;
  left: 15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
}

/* --------------------------------------------------------------------------
   Utility & Gradient Typography
   -------------------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 40%, #818cf8 80%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.bg-dark {
  background-color: var(--color-bg-dark);
}
.bg-dark-secondary {
  background-color: var(--color-bg-secondary);
}
.bg-card {
  background-color: var(--color-bg-card);
}
.text-brand {
  color: var(--color-brand);
}
.text-brand-light {
  color: var(--color-brand-light);
}
.text-accent {
  color: var(--color-accent);
}
.bg-brand {
  background-color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 8px 25px -2px rgba(99, 102, 241, 0.6);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3D Tilt Cards & Hover Glow Mechanism
   -------------------------------------------------------------------------- */
.card-3d-wrap {
  position: relative;
}

.card-3d {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.card-3d-wrap:hover .card-3d {
  transform: translateY(-4px);
}

/* Ensure all links and buttons inside cards are rock-solid, crisp and clickable */
.card-3d a,
.card-3d button,
.card-3d input,
.card-3d select,
.card-3d textarea {
  position: relative;
  z-index: 30;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Mouse Hover Dynamic Glow on Card */
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none !important;
  z-index: 1;
}

.card-3d-wrap:hover .card-glow {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Parallax Image Container & Smooth Expansion
   -------------------------------------------------------------------------- */
.parallax-img-container {
  overflow: hidden;
  position: relative;
}

.parallax-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.card-3d-wrap:hover .parallax-zoom-img {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Forms & Inputs
   -------------------------------------------------------------------------- */
.input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  color: #f8fafc;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.25s ease;
}
.input-field:focus {
  border-color: var(--color-brand);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.input-field option {
  background-color: #0f172a;
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .orb {
    filter: blur(50px);
    opacity: 0.25;
  }
  .glow-spotlight {
    display: none; /* Disable cursor follower on mobile/touch screens */
  }
  .card-3d-wrap:hover .card-3d {
    transform: none; /* No hover jump on touch tap */
  }
  .top-nav-bar {
    height: 4.5rem;
  }
}

@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Button Animation (Sonar Glow & Gentle Pulse)
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  z-index: 50;
  cursor: pointer !important;
  pointer-events: auto !important;
  text-decoration: none;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.4);
  animation: whatsappSonar 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: -1;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.7);
  color: #ffffff;
}

.whatsapp-float i {
  animation: whatsappIconWiggle 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes whatsappSonar {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes whatsappIconWiggle {
  0%, 70%, 100% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-10deg) scale(1.08);
  }
  80% {
    transform: rotate(10deg) scale(1.08);
  }
  85% {
    transform: rotate(-8deg);
  }
  90% {
    transform: rotate(6deg);
  }
  95% {
    transform: rotate(-2deg);
  }
}

/* FAQ Accordion */
.faq-answer {
  display: none;
  animation: fadeInFaq 0.3s ease-out;
}

@keyframes fadeInFaq {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Ultra-Tech UI Components: Terminal NOC, Live Status & TI Calculator
   -------------------------------------------------------------------------- */
.terminal-window {
  background: rgba(8, 12, 28, 0.95);
  font-family: 'Courier New', Courier, monospace;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: #10b981;
  vertical-align: middle;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Custom Range Slider for TI Calculator */
input[type="range"].tech-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

input[type="range"].tech-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
  transition: transform 0.15s ease, background 0.15s ease;
}

input[type="range"].tech-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #818cf8;
}

/* Live Status Pulse Badges */
.status-beacon-online {
  box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
}
.status-beacon-offline {
  box-shadow: 0 0 10px #f59e0b, 0 0 20px #f59e0b;
}


