/* ==========================================================================
   GXAR - Estilos Principales (CSS3 Vanilla Moderno)
   Tema Claro Profesional – Azul Corporativo Industrial
   ========================================================================== */

:root {
  /* Paleta de Fondo – Tema Claro */
  --bg-base: #f0f4f9;
  --bg-surface-1: #ffffff;
  --bg-surface-2: #f8fafc;
  --bg-surface-3: #eef2f8;
  --border-subtle: #dde3ee;
  --border-active: #b0c0dc;
  --border-glow: rgba(37, 99, 235, 0.3);

  /* Azul Corporativo Principal */
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --blue-glow: rgba(37, 99, 235, 0.12);

  /* Acentos heredados remapeados a azul/cyan para mantener estructura */
  --cyan-500: #2563eb;
  --cyan-400: #3b82f6;
  --cyan-glow: rgba(37, 99, 235, 0.12);
  --amber-500: #d97706;
  --amber-400: #f59e0b;
  --amber-glow: rgba(217, 119, 6, 0.12);
  --emerald-500: #059669;
  --emerald-glow: rgba(5, 150, 105, 0.12);
  --crimson-500: #dc2626;

  /* Tipografía – Legible sobre Fondo Claro */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Layout y Sombras */
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 20px -4px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 12px 40px -8px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.15);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-lock-scroll {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   Header & Navegación
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(221, 227, 238, 0.8);
  backdrop-filter: blur(10px);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  height: 48px;
  width: 180px;
}

.brand-logo-img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2rem);
  list-style: none;
}

.mobile-menu-cta {
  display: none;
}

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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-500), var(--amber-500));
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--emerald-500);
  background: var(--emerald-glow);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Botones y Elementos de Acción
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.btn-amber:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border-active);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--cyan-500);
  background: var(--blue-50);
  color: var(--cyan-500);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: clamp(650px, 90vh, 920px);
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 50px;
  overflow: hidden;
  background: linear-gradient(160deg, #e8f0fe 0%, #dbeafe 35%, #eff6ff 65%, #f0f4f9 100%);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 2;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-container {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}

.hero-text-col {
  text-align: left;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-500);
  margin-bottom: 0.5rem;
  backdrop-filter: blur(6px);
  grid-column: 1 / -1;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 1.5rem;
  font-weight: 400;
  line-height: 1.65;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.05);
}

.highlight-chip svg {
  color: var(--emerald-500);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Columna Visual Derecha del Hero */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px -15px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(37, 99, 235, 0.08);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -12px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.card-dots {
  display: flex;
  gap: 6px;
}

.card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.card-dots span:nth-child(1) { background-color: #ef4444; }
.card-dots span:nth-child(2) { background-color: #f59e0b; }
.card-dots span:nth-child(3) { background-color: #10b981; }

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-500);
  letter-spacing: 0.03em;
}

.hero-image-wrapper {
  padding: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(203, 213, 225, 0.7);
}

/* ==========================================================================
   Secciones Generales
   ========================================================================== */
.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-500);
  background: var(--blue-50);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Servicios (Catálogo & Grid)
   ========================================================================== */
.services-section {
  background-color: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.services-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-active);
  color: var(--text-main);
  background: var(--bg-surface-3);
}

.filter-btn.active {
  background: var(--blue-100);
  border-color: var(--cyan-500);
  color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan-500), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--bg-surface-1);
  box-shadow: var(--shadow-card-hover);
}

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

.service-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-500);
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: var(--cyan-500);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.35);
}

.service-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-500);
  background: var(--amber-glow);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.service-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

.service-card:hover .service-tag {
  color: var(--text-muted);
  border-color: rgba(37, 99, 235, 0.2);
  background: var(--blue-50);
}

.service-card-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-detail-btn {
  background: transparent;
  border: none;
  color: var(--cyan-500);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0.4rem 0;
}

.service-detail-btn:hover {
  color: var(--blue-700);
  transform: translateX(3px);
}

.service-detail-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-detail-btn:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Calculadora Interactiva de Ahorro y Factor de Potencia
   ========================================================================== */
.calculator-section {
  background: linear-gradient(160deg, #f0f4f9 0%, #e8f0fe 60%, #f0f4f9 100%);
}

.calc-container {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: var(--shadow-card);
}

.calc-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.calc-tab-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.calc-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-active);
}

.calc-tab-btn.active {
  background: var(--cyan-glow);
  border-color: var(--cyan-500);
  color: var(--cyan-400);
}

.calc-panel {
  display: none;
}

.calc-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.calc-label-val {
  font-family: var(--font-mono);
  color: var(--cyan-500);
}

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input {
  width: 100%;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  padding-right: 3.5rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.calc-input:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 2px var(--cyan-glow);
}

.calc-unit {
  position: absolute;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  pointer-events: none;
}

/* Slider de rango */
.calc-range {
  width: 100%;
  height: 6px;
  background: var(--bg-surface-3);
  border-radius: 4px;
  outline: none;
  accent-color: var(--cyan-500);
  cursor: pointer;
  margin-top: 0.5rem;
}

/* Resultados de la Calculadora */
.calc-results-box {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.calc-results-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.calc-results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.res-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.res-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.res-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan-500);
}

.res-value.amber { color: var(--amber-500); }
.res-value.emerald { color: var(--emerald-500); }

.calc-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* ==========================================================================
   Sectores Industriales
   ========================================================================== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sector-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sector-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--bg-surface-1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.sector-icon {
  font-size: 2rem;
}

.sector-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

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

/* ==========================================================================
   Metodología & Flujo de Trabajo
   ========================================================================== */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.workflow-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.workflow-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--border-active);
  line-height: 1;
  margin-bottom: 1.25rem;
  transition: color var(--transition-fast);
}

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

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Marcas y Estándares
   ========================================================================== */
.standards-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-top: 4rem;
}

.standard-badge {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.standard-badge svg {
  color: var(--cyan-500);
}

/* ==========================================================================
   Formulario de Contacto & Cotizaciones (Modern Web Standards)
   ========================================================================== */
.contact-section {
  background: var(--bg-surface-2);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-highlight-card {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.contact-highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--amber-500);
}

.contact-highlight-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-highlight-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.emergency-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.18);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.contact-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-meta-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-500);
  flex-shrink: 0;
}

.contact-meta-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.contact-meta-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Formulario Técnico */
.contact-form-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-label .req {
  color: var(--amber-500);
}

.form-control {
  width: 100%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background: var(--bg-surface-1);
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Modern Web Guidance: :user-invalid and :user-valid rules */
.form-control:user-invalid {
  border-color: var(--crimson-500);
  background-color: rgba(239, 68, 68, 0.05);
}

.form-control:user-invalid + .error-msg {
  display: flex;
}

.form-control:required:user-valid {
  border-color: var(--emerald-500);
}

.error-msg {
  display: none;
  align-items: center;
  gap: 0.35rem;
  color: var(--crimson-500);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

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

.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.form-status-msg {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status-msg.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--emerald-500);
  color: #059669;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 18px;
  height: 18px;
}

.spinner .path {
  stroke: #ffffff;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* ==========================================================================
   Modal Dialog Nativo (<dialog>) para Ficha Técnica de Servicios
   ========================================================================== */
dialog#service-detail-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: 820px;
  width: 92%;
  max-height: 88vh;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), var(--shadow-glow);
  padding: 0;
  color: var(--text-main);
  overflow: hidden;
  z-index: 2000;
}

dialog#service-detail-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
}

.modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--bg-surface-2);
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-500);
  background: var(--blue-100);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  border-color: var(--border-active);
  background: var(--bg-surface-3);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--bg-surface-1);
}

.modal-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.modal-section-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--cyan-500);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-specs-list li {
  font-size: 0.92rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
}

.spec-check-icon {
  width: 18px;
  height: 18px;
  color: var(--emerald-500);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.modal-apps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-apps-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.app-bullet {
  color: var(--amber-500);
  font-size: 0.85rem;
}

.modal-footer-specs {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-spec-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer-spec-label {
  font-weight: 700;
  color: var(--text-muted);
  min-width: 130px;
}

.footer-spec-val {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 600;
}

.modal-actions {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ==========================================================================
   Botón Flotante de Contacto Rápido / WhatsApp
   ========================================================================== */
.floating-contact-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
}

.floating-contact-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid #25d366;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #eef3fa;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.6;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--cyan-500);
}

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

/* ==========================================================================
   Media Queries & Responsividad
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-container {
    height: 72px;
  }
  .brand-logo-link {
    width: 150px;
    height: 40px;
  }
  .nav-actions {
    gap: 0.75rem;
  }
  .nav-actions .btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    cursor: pointer;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--bg-surface-1);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.75rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--border-subtle);
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .mobile-menu-cta {
    display: block;
    margin-top: 1rem;
  }
  .nav-link {
    font-size: 1.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-status-badge {
    display: none;
  }

  /* Hero y Secciones a 1080px */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .hero-text-col {
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-highlights {
    justify-content: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .calc-panel.active {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 68px;
  }
  .brand-logo-link {
    width: 135px;
    height: 36px;
  }
  .nav-links {
    top: 68px;
    height: calc(100vh - 68px);
    padding: 1.5rem 1.25rem;
  }
  .hero-section {
    padding-top: 85px;
    padding-bottom: 35px;
    min-height: auto;
  }
  .hero-container {
    gap: 1.75rem;
  }
  .hero-highlights {
    gap: 0.4rem;
  }
  .highlight-chip {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }
  .hero-card-header {
    padding: 0.5rem 0.85rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .calc-results-grid {
    grid-template-columns: 1fr;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-contact-btn span {
    display: none;
  }
  .floating-contact-btn {
    padding: 0.85rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}
