/* 
 * L'Ordinateur · Soluciones Informáticas
 * Hoja de Estilos Premium (Dark Tech Theme) - Alta Compatibilidad Universal
 */

:root {
  --radius: 0.625rem;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;

  /* Paleta de colores HEX de alta compatibilidad (Modo Oscuro Cyberpunk Premium) */
  --background: #090d16;
  --foreground: #f1f5f9;
  --card: #111726;
  --card-foreground: #f1f5f9;
  --primary: #06b6d4;
  --primary-foreground: #090d16;
  --secondary: #1e293b;
  --secondary-foreground: #f1f5f9;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #00f0ff;
  --accent-foreground: #090d16;
  --border: #1e293b;
  --cyan-glow: #00f0ff;
  --whatsapp: #22c55e;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  margin: 0;
  overflow-x: hidden;
}

/* Fondo de cuadrícula tecnológica animada (Tech Grid) */
.tech-bg {
  position: relative;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(0, 240, 255, 0.15), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(0, 240, 255, 0.08), transparent 60%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
}

.tech-bg::before {
  content: "";
  position: absolute; 
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--background) 95%);
  pointer-events: none;
  z-index: 1;
}

/* Efecto de barrido de línea láser (Scanline) */
@keyframes scanline {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.scanline {
  position: absolute; 
  left: 0; 
  right: 0; 
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  filter: blur(1px);
  animation: scanline 7s linear infinite;
  z-index: 2;
  pointer-events: none;
}

/* Animación de pulso de brillo para la burbuja de WhatsApp */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 24px 4px rgba(0, 240, 255, 0.25); }
}

/* Botones de Estilo Tecnológico */
.btn-tech {
  position: relative;
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-weight: 600; 
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 23, 38, 0.8), rgba(9, 13, 22, 0.8));
  color: var(--foreground);
  border-radius: var(--radius);
  transition: all 0.25s ease;
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 10;
}

.btn-tech::after {
  content: ""; 
  position: absolute; 
  inset: 0; 
  border-radius: inherit; 
  pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.25s ease;
}

.btn-tech:hover {
  color: var(--cyan-glow);
  border-color: var(--cyan-glow);
  transform: translateY(-2px);
  box-shadow: 
    0 0 24px -4px rgba(0, 240, 255, 0.4), 
    0 0 60px -10px rgba(0, 240, 255, 0.2);
}

.btn-tech.primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.05));
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--cyan-glow);
}

/* Brillo en Textos */
.glow-text {
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

/* Íconos de Redes Sociales con efecto Glitch */
.social-icon {
  position: relative;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  width: 44px; 
  height: 44px; 
  border-radius: 10px;
  border: 1px solid #1e293b !important;
  color: #94a3b8 !important;
  background: rgba(17, 23, 38, 0.6) !important;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-icon svg {
  stroke: currentColor;
  fill: none;
}

.social-icon[aria-label="WhatsApp"] svg {
  fill: currentColor;
}

.footer-text {
  color: #cbd5e1 !important;
  text-align: center !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.social-icon:hover {
  color: var(--cyan-glow);
  border-color: var(--cyan-glow);
  box-shadow: 0 0 18px -2px rgba(0, 240, 255, 0.4);
  animation: glitch 0.45s steps(2, end);
}

@keyframes glitch {
  0% { transform: translate(0,0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  100% { transform: translate(0,0); }
}

/* Burbuja Flotante de WhatsApp */
.wa-bubble {
  position: fixed; 
  bottom: 1.5rem; 
  right: 1.5rem; 
  z-index: 50;
  width: 60px; 
  height: 60px; 
  border-radius: 999px;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  background: var(--card); 
  color: var(--foreground);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  animation: pulse-glow 2.6s ease-in-out infinite;
  text-decoration: none;
}

.wa-bubble:hover {
  color: #090d16;
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  transform: scale(1.08);
  box-shadow: 
    0 0 30px 4px rgba(34, 197, 94, 0.45), 
    0 0 80px 8px rgba(34, 197, 94, 0.2);
}

/* Tarjetas de Características */
.feature-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 23, 38, 0.95), rgba(9, 13, 22, 0.95));
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 30px -10px rgba(0, 240, 255, 0.3);
  transform: translateY(-3px);
}

.feature-card .icon-wrap {
  display: inline-flex; 
  padding: 0.6rem; 
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan-glow);
  margin-bottom: 0.85rem;
}
