/* ==========================================================================
   SISTEC360.TECH - INGENIERÍA EN COMPUTACIÓN & SERVICIOS TI
   Design System & Master Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- Root Variables & Theme Tokens --- */
:root {
  /* Color Palette - Dark (Default) */
  --bg-primary: #0a0e17;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-elevated: #1e293b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 210, 255, 0.3);
  --border-glow: rgba(0, 210, 255, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Brand Accents */
  --primary-rgb: 0, 210, 255;
  --primary: #00d2ff;
  --primary-hover: #38bdf8;
  --secondary: #3b82f6;
  --accent-purple: #818cf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #20bd5a;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --grad-purple: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-dark-card: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  --grad-hero-glow: radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.15) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 80%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 30px rgba(0, 210, 255, 0.25);
  --shadow-emerald: 0 0 25px rgba(16, 185, 129, 0.3);

  /* Layout & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1240px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-elevated: #ffffff;

  --border-subtle: rgba(148, 163, 184, 0.22);
  --border-highlight: rgba(2, 132, 199, 0.4);
  --border-glow: rgba(2, 132, 199, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-accent: #0284c7;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --secondary: #2563eb;

  --grad-primary: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --grad-dark-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --grad-hero-glow: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.12) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 80%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px -8px rgba(15, 23, 42, 0.12);
  --shadow-neon: 0 4px 20px rgba(2, 132, 199, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Ambient Grid & Particles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-primary);
  z-index: 9999;
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.1s ease-out;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
  position: relative;
  z-index: 1;
}

/* Headings & Text */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Section Header Shared */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary);
  border: 1px solid var(--border-highlight);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #050b14;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.55);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
  background: rgba(0, 210, 255, 0.1);
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(0, 210, 255, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 0;
  white-space: nowrap;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.45);
  border: 1.5px solid rgba(0, 210, 255, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  background: #091326;
}

.brand-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.7);
}

.brand-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(0, 210, 255, 0.15);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-left: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-highlight);
  color: var(--primary);
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: var(--grad-hero-glow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  z-index: 2;
}

.hero-badge-container {
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

/* Quick Trust Stats in Hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-value span {
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Hero Media Display */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
  background: var(--bg-card);
}

.hero-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.03);
}

/* Floating Status Chips on Hero */
.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: floatAnim 4s ease-in-out infinite;
}

.floating-chip.top-right {
  top: 24px;
  right: -16px;
  animation-delay: 0s;
}

.floating-chip.bottom-left {
  bottom: 24px;
  left: -20px;
  animation-delay: 2s;
}

.chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chip-icon.blue {
  background: rgba(0, 210, 255, 0.15);
  color: var(--primary);
}

.chip-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.chip-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.chip-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Engineering Domain Pillars (Quick Overview)
   ========================================================================== */
.pillars-section {
  padding: 40px 0 80px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--grad-dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.pillar-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pillar-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary);
  border: 1px solid var(--border-highlight);
}

.pillar-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pillar-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Full Services Catalog (The Core Computer Engineer Catalog)
   ========================================================================== */
.services-section {
  padding: 100px 0;
  position: relative;
}

/* Filter Bar & Search */
.services-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 44px;
}

.services-search-box {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.services-search-box input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.services-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.services-search-box svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.filter-btn.active {
  background: var(--primary);
  color: #050b14;
  font-weight: 700;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.35);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--grad-dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(14px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 210, 255, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary);
  border: 1px solid var(--border-highlight);
  transition: transform var(--transition-fast);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(4deg);
}

.service-category-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Feature Checklist inside Service Card */
.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.service-feature-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Tech Badges */
.service-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.tech-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(0, 210, 255, 0.06);
  color: var(--text-accent);
  border: 1px solid rgba(0, 210, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   Interactive Quote Calculator (Cotizador Rápido)
   ========================================================================== */
.calculator-section {
  padding: 90px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 50%, transparent 100%);
}

.calculator-card {
  background: var(--grad-dark-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg), var(--shadow-neon);
  backdrop-filter: blur(20px);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.calc-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.calc-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.calc-form-group {
  margin-bottom: 20px;
}

.calc-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.calc-select, .calc-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--primary);
}

.calc-radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.calc-radio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.calc-radio-btn input {
  display: none;
}

.calc-radio-btn.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* Calculator Summary Box */
.calc-summary-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.calc-summary-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.calc-estimated-range {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.1;
}

.calc-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   Propuesta de Valor & Comparativa
   ========================================================================== */
.value-section {
  padding: 100px 0;
  position: relative;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.value-media {
  position: relative;
}

.value-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
}

.value-img-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.value-points {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.value-point-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--grad-dark-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.value-point-item:hover {
  border-color: var(--border-highlight);
  transform: translateX(6px);
}

.value-point-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.value-point-item h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.value-point-item p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Engineer vs Informal Technician Comparison Table */
.comparison-container {
  margin-top: 60px;
  background: var(--grad-dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.comparison-header {
  text-align: center;
  margin-bottom: 28px;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table th.col-highlight {
  color: var(--primary);
  background: rgba(0, 210, 255, 0.08);
  border-radius: 8px 8px 0 0;
}

.comparison-table td.col-highlight {
  background: rgba(0, 210, 255, 0.03);
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Workflow / Metodología en 4 Pasos
   ========================================================================== */
.workflow-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.workflow-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.workflow-step-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(0, 210, 255, 0.2);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition-fast);
}

.workflow-step-card:hover .step-number {
  color: var(--primary);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Marcas & Tecnologías Certificadas
   ========================================================================== */
.tech-partners-section {
  padding: 50px 0;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.partners-title {
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.partners-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.75;
}

.partner-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
}

.partner-tag:hover {
  color: var(--primary);
  transform: scale(1.08);
  opacity: 1;
}

/* ==========================================================================
   FAQ Section (Acordeón)
   ========================================================================== */
.faq-section {
  padding: 100px 0;
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--grad-dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-highlight);
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.1);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-icon-chevron {
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

/* ==========================================================================
   Contact & Lead Capture Form
   ========================================================================== */
.contact-section {
  padding: 100px 0 120px;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
}

.contact-info-card {
  background: var(--grad-dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-header h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.contact-info-header p {
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method-text h5 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-method-text a, .contact-method-text span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-method-text a:hover {
  color: var(--primary);
}

/* Tech Domain Highlight Box */
.domain-badge-box {
  background: rgba(0, 210, 255, 0.06);
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.domain-badge-box svg {
  color: var(--primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.domain-badge-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.domain-badge-box code {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Interactive Form */
.contact-form-wrapper {
  background: var(--grad-dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-actions .btn {
  flex: 1;
  min-width: 0;
}

.form-feedback {
  font-size: 0.78rem;
  color: var(--accent-rose);
  display: none;
}

.form-feedback.visible {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Floating Action Buttons & Notification Toast
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.whatsapp-icon-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--whatsapp-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-fast);
  position: relative;
}

.whatsapp-icon-btn:hover {
  transform: scale(1.1);
  background: var(--whatsapp-hover);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: waPulse 2s infinite;
  z-index: -1;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

.whatsapp-tooltip {
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(16px);
  animation: slideInLeft 0.3s ease forwards;
  max-width: 380px;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Service Details Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-lg), var(--shadow-neon);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .nav-container {
    height: 72px;
  }

  .brand-logo {
    gap: 8px;
    font-size: 1.1rem;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-badge,
  .nav-actions .btn-whatsapp {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    flex-direction: column;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .calculator-card,
  .contact-info-card,
  .contact-form-wrapper {
    min-width: 0;
  }

  .service-footer {
    align-items: stretch;
  }

  .service-footer .btn {
    flex: 1;
    min-width: 0;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .calculator-card {
    padding: 24px;
  }

  .contact-form-wrapper {
    padding: 28px 24px;
  }

  .comparison-container {
    padding: 24px;
  }

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

  .floating-chip {
    display: none;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
  }

  .back-to-top {
    left: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 128px 0 72px;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.8rem, 9vw, 2.25rem);
  }

  .section-desc {
    font-size: 1rem;
  }

  .calculator-section,
  .value-section,
  .faq-section {
    padding: 72px 0;
  }

  .calculator-card,
  .comparison-container,
  .contact-form-wrapper,
  .contact-info-card {
    padding: 20px 16px;
  }

  .calc-radio-group {
    grid-template-columns: 1fr;
  }

  .calc-estimated-range {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    overflow-wrap: anywhere;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-card-header {
    gap: 12px;
  }

  .service-category-tag {
    text-align: right;
  }

  .service-footer .btn {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.78rem;
  }

  .faq-question {
    padding: 18px;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: none;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-content {
    padding: 28px 20px;
  }
}
