/* ==========================================================================
   TechLex - Soporte Técnico & Mantenimiento Especializado
   Enfoque Mobile First • Paleta Universal Slate
   ========================================================================== */

:root {
  /* Fondos basados en Slate Profundo y Elegante */
  --bg-main: #0b1120;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #26354a;
  --bg-card-featured: #172554;
  
  /* Bordes limpios */
  --border-subtle: #334155;
  --border-hover: #475569;
  
  /* Paleta Universal */
  --color-blue-universal: #2196f3;
  --color-blue-sky: #64b5f6;
  --color-blue-deep: #1565c0;
  --color-cyan: #00bcd4;
  --color-green-universal: #4caf50;
  --color-green-mint: #81c784;
  --color-orange-universal: #ff9800;
  --color-orange-soft: #ffb74d;
  --color-red-coral: #e57373;
  
  /* Resplandores y Sombras */
  --glow-blue: rgba(33, 150, 243, 0.2);
  --glow-cyan: rgba(0, 188, 212, 0.2);
  --glow-green: rgba(76, 175, 80, 0.25);
  
  /* Textos Accesibles */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

/* ==========================================================================
   Mobile-First Base Settings
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  color-scheme: dark;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--bg-main);
  /* Soporte para notch / barra inferior en dispositivos móviles */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Touch action optimizado para evitar retraso de clic en móviles */
a, button, input, label, select, textarea {
  touch-action: manipulation;
}

/* Fondo con cuadrícula técnica sutil */
.bg-tech-grid {
  background-color: var(--bg-main);
  background-image: 
    linear-gradient(to right, rgba(51, 65, 85, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 65, 85, 0.25) 1px, transparent 1px);
  background-size: 28px 28px;
}

@media (min-width: 768px) {
  .bg-tech-grid {
    background-size: 36px 36px;
  }
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(33, 150, 243, 0.14) 0%, rgba(0, 188, 212, 0.05) 50%, transparent 75%);
}

/* Scrollbar moderno */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Tarjetas y Contenedores Técnicos */
.tech-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
}

@media (min-width: 768px) {
  .tech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  }
}

.tech-card-featured {
  background: linear-gradient(180deg, #16243b 0%, #1e293b 100%);
  border: 1px solid rgba(33, 150, 243, 0.55);
  box-shadow: 0 0 20px -5px var(--glow-blue);
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card-featured:hover {
  border-color: var(--color-blue-universal);
  box-shadow: 0 0 30px -5px rgba(33, 150, 243, 0.35);
}

.tech-card-combo {
  background: linear-gradient(180deg, #1a273a 0%, #1e293b 100%);
  border: 1px solid rgba(0, 188, 212, 0.35);
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card-combo:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 10px 30px -10px rgba(0, 188, 212, 0.25);
}

/* Botones con áreas táctiles mínimas recomendadas (44px - 48px) */
.btn-primary {
  background-color: var(--color-blue-universal);
  color: #ffffff;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #1976d2;
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.45);
}

.btn-whatsapp {
  background-color: #2e7d32;
  color: #ffffff;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: var(--color-green-universal);
  box-shadow: 0 0 22px var(--glow-green);
}

/* Luces indicadoras de estado */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green-universal);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: var(--color-green-universal);
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* Acordeón FAQ con toque ergonómico */
.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  min-height: 48px;
}

@media (min-width: 640px) {
  .faq-trigger {
    padding: 1.25rem 1.25rem;
  }
}

.faq-trigger:hover {
  color: #ffffff;
}

.faq-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-blue-sky);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .faq-content {
    padding: 0 1.25rem;
  }
}

.faq-item.active .faq-content {
  max-height: 450px;
  opacity: 1;
  padding-bottom: 1.25rem;
}

/* Tooltip WhatsApp Flotante */
.wa-tooltip {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

@media (min-width: 640px) {
  .wa-floating-btn:hover .wa-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Terminal / Code Card */
.code-window {
  background-color: #0d1527;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.8);
}

.code-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #131d33;
}

/* Radio / Checkbox Personalizado para la Calculadora con amplia área táctil */
.tech-check {
  appearance: none;
  background-color: #0b1120;
  border: 1.5px solid var(--border-subtle);
  border-radius: 6px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.tech-check:checked {
  background-color: var(--color-blue-universal);
  border-color: var(--color-blue-universal);
}

.tech-check:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Glassmorphism para navbar */
.nav-blur {
  background-color: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Tabla comparativa de mercado - Swipe fluido en móviles */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background-color: var(--bg-card);
}

.comparison-table {
  min-width: 620px;
}

.comparison-table th, .comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .comparison-table th, .comparison-table td {
    padding: 14px 18px;
  }
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Toast flotante optimizado para móvil */
.copied-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: #1e293b;
  border: 1px solid var(--color-blue-universal);
  color: #f8fafc;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  width: max-content;
  max-width: 90vw;
  text-align: center;
}

.copied-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Animaciones del menú móvil */
#mobile-menu {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Software Hub & Category Badges Styling
   ========================================================================== */
.software-card {
  background: linear-gradient(180deg, #131d33 0%, #0f172a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.software-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.7);
}

.software-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.2;
}

.software-chip svg,
.software-chip [data-lucide],
.software-chip i {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle;
}

/* Variantes temáticas de chips */
.chip-office {
  background-color: rgba(33, 150, 243, 0.12);
  border-color: rgba(33, 150, 243, 0.25);
  color: #90caf9;
}
.chip-office:hover {
  background-color: rgba(33, 150, 243, 0.2);
  border-color: #2196f3;
  color: #ffffff;
}

.chip-adobe {
  background-color: rgba(233, 30, 99, 0.12);
  border-color: rgba(233, 30, 99, 0.25);
  color: #f48fb1;
}
.chip-adobe:hover {
  background-color: rgba(233, 30, 99, 0.2);
  border-color: #e91e63;
  color: #ffffff;
}

.chip-cad {
  background-color: rgba(255, 152, 0, 0.12);
  border-color: rgba(255, 152, 0, 0.25);
  color: #ffcc80;
}
.chip-cad:hover {
  background-color: rgba(255, 152, 0, 0.2);
  border-color: #ff9800;
  color: #ffffff;
}

.chip-dev {
  background-color: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}
.chip-dev:hover {
  background-color: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #ffffff;
}

.chip-security {
  background-color: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.25);
  color: #a5d6a7;
}
.chip-security:hover {
  background-color: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
  color: #ffffff;
}

.chip-special {
  background-color: rgba(0, 188, 212, 0.12);
  border-color: rgba(0, 188, 212, 0.25);
  color: #80deea;
}
.chip-special:hover {
  background-color: rgba(0, 188, 212, 0.2);
  border-color: #00bcd4;
  color: #ffffff;
}

/* Icon Box con glow */
.icon-box-office {
  background: radial-gradient(circle, rgba(33, 150, 243, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(33, 150, 243, 0.35);
  color: #64b5f6;
}
.icon-box-adobe {
  background: radial-gradient(circle, rgba(233, 30, 99, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(233, 30, 99, 0.35);
  color: #f06292;
}
.icon-box-cad {
  background: radial-gradient(circle, rgba(255, 152, 0, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 152, 0, 0.35);
  color: #ffb74d;
}
.icon-box-dev {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
}
.icon-box-security {
  background: radial-gradient(circle, rgba(76, 175, 80, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #81c784;
}
.icon-box-special {
  background: radial-gradient(circle, rgba(0, 188, 212, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(0, 188, 212, 0.35);
  color: #4dd0e1;
}

/* ==========================================================================
   Estilos de Marcos y Contenedores de Imágenes Tecnológicas
   ========================================================================== */
.img-tech-frame {
  position: relative;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid #334155;
  background-color: #090e1a;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.img-tech-frame:hover {
  border-color: rgba(33, 150, 243, 0.5);
  box-shadow: 0 12px 30px -6px rgba(33, 150, 243, 0.2);
}

.img-tech-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-tech-frame:hover img {
  transform: scale(1.04);
}

.img-tech-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.85) 0%, rgba(11, 17, 32, 0.2) 50%, transparent 100%);
  pointer-events: none;
}

/* ==========================================================================
   Estilos de Identidad de Marca, Logo y Video 3D
   ========================================================================== */
.brand-logo-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-card:hover {
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.45);
  border-color: var(--color-blue-universal);
}

.video-tech-container {
  position: relative;
  background: #090e1a;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(33, 150, 243, 0.35);
  box-shadow: 0 0 25px -5px rgba(33, 150, 243, 0.25), 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.video-tech-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-showcase-tab {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.2s ease;
}

.hero-showcase-tab.active {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

.hologram-card {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(33, 150, 243, 0.12) 0%, rgba(15, 23, 42, 0.85) 70%);
  border: 1px solid rgba(0, 188, 212, 0.35);
  border-radius: 1.25rem;
  box-shadow: 0 0 35px -10px rgba(0, 188, 212, 0.25);
  overflow: hidden;
}

