/* ==========================================================================
   PRO AIC AUTOMATIZACIÓN - ESTILOS DEDICADOS PARA PÁGINA DE INDUSTRIAS
   Colores Oficiales Corporativos: Navy (#0A192F) & Naranja Industrial (#C2541A / #D97745)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO STAGE PERSONALIZADO PARA INDUSTRIAS (VIDEO INDUSTRIAL LOOP)
   -------------------------------------------------------------------------- */
.stage-hero--industrias {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #061122;
  color: #ffffff;
  overflow: hidden;
}

.stage-hero--industrias .stage-hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.stage-hero--industrias .stage-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) contrast(1.15);
  transform: scale(1.02);
  animation: stageMediaZoom 24s ease-in-out infinite alternate;
}

.stage-hero--industrias .stage-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 17, 34, 0.90) 0%, rgba(6, 17, 34, 0.65) 50%, rgba(6, 17, 34, 0.40) 100%),
    linear-gradient(180deg, rgba(6, 17, 34, 0.55) 0%, transparent 40%, rgba(6, 17, 34, 0.98) 100%);
  pointer-events: none;
}

.stage-hero--industrias .stage-hero-container {
  position: relative;
  z-index: 2;
  padding-top: 130px;
  padding-bottom: 70px;
}

.stage-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}

.stage-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.stage-breadcrumb a:hover {
  color: var(--brand-orange-light, #D97745);
}

.stage-breadcrumb .bc-sep {
  color: rgba(255, 255, 255, 0.35);
}

.stage-breadcrumb .bc-current {
  color: var(--brand-orange-light, #D97745);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. KPI STRIP RIBBON INTERACTIVO (COLORES OFICIALES)
   -------------------------------------------------------------------------- */
.industries-kpi-ribbon {
  background: #0A192F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 10;
  margin-top: -1px;
  overflow: hidden;
}

/* Ambient Spotlight glow following cursor (Orange Tint) */
.industries-kpi-ribbon::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(194, 84, 26, 0.16) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.industries-kpi-ribbon:hover::before {
  opacity: 1;
}

.kpi-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.kpi-ribbon-item {
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.kpi-ribbon-item:last-child {
  border-right: none;
}

/* Bottom animated energy line (Industrial Orange) */
.kpi-ribbon-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #C2541A, #D97745);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-ribbon-item:hover::after,
.kpi-ribbon-item:focus-visible::after {
  transform: scaleX(1);
}

.kpi-ribbon-item:hover,
.kpi-ribbon-item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 28px rgba(194, 84, 26, 0.14);
}

.kpi-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(194, 84, 26, 0.2), rgba(217, 119, 69, 0.08));
  border: 1px solid rgba(217, 119, 69, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D97745;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-icon-circle svg {
  width: 24px;
  height: 24px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-ribbon-item:hover .kpi-icon-circle {
  transform: scale(1.1) translateY(-2px);
  background: linear-gradient(135deg, rgba(194, 84, 26, 0.4), rgba(217, 119, 69, 0.25));
  border-color: rgba(217, 119, 69, 0.7);
  box-shadow: 0 0 18px rgba(194, 84, 26, 0.35);
  color: #ffffff;
}

.kpi-ribbon-item:hover .kpi-icon-circle svg {
  transform: scale(1.08);
}

.kpi-ribbon-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kpi-ribbon-num {
  font-family: 'Barlow', var(--font-primary), sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-ribbon-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.3;
}

.kpi-action-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: #D97745;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kpi-ribbon-item:hover .kpi-action-hint,
.kpi-ribbon-item:focus-visible .kpi-action-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Pulsing dot for zero downtime */
.kpi-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green, #1B7F49);
  box-shadow: 0 0 10px #1B7F49;
  animation: stagePulse 2s infinite;
}

/* Target Section Highlight Flash on KPI Click */
.section-highlight-pulse {
  animation: sectionFlash 1.6s ease-out forwards;
}

@keyframes sectionFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 84, 26, 0.7);
    border-color: #D97745;
    background-color: rgba(194, 84, 26, 0.06);
  }
  50% {
    box-shadow: 0 0 35px 8px rgba(194, 84, 26, 0.35);
    border-color: #C2541A;
    background-color: rgba(194, 84, 26, 0.03);
  }
  100% {
    box-shadow: none;
    border-color: inherit;
    background-color: inherit;
  }
}

/* --------------------------------------------------------------------------
   3. INTRODUCCIÓN Y ENFOQUE MULTIDISCIPLINARIO
   -------------------------------------------------------------------------- */
.industries-intro-section {
  padding: 64px 0 24px;
  background: var(--bg-surface-soft, #f8fafc);
}

.section-header-centered {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header-centered .badge-kicker {
  display: inline-block;
  margin-bottom: 12px;
}

.section-header-centered .section-title {
  font-family: 'Barlow', var(--font-primary), sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary, #0A192F);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header-centered .section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary, #334155);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   4. DISTRIBUCIÓN BALANCEADA EN CUADRÍCULA (2 COLUMNAS UNIFORMES)
   -------------------------------------------------------------------------- */
.industries-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 10px 0 70px;
}

.industry-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 4px 10px -1px rgba(15, 23, 42, 0.08));
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg, 0 12px 28px -5px rgba(15, 23, 42, 0.12));
  border-color: rgba(194, 84, 26, 0.45);
}

/* Media Header of Card */
.industry-card-media {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #0A192F;
}

.industry-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-card:hover .industry-card-img {
  transform: scale(1.05);
}

.industry-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.1) 0%, rgba(10, 25, 47, 0.65) 100%);
  pointer-events: none;
}

.industry-category-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 25, 47, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 119, 69, 0.4);
  color: #D97745;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.industry-index-code {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand-orange, #C2541A);
  color: #ffffff;
  font-family: 'Barlow', var(--font-primary), sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(194, 84, 26, 0.4);
  z-index: 2;
}

/* Body of Card */
.industry-card-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.industry-card-title {
  font-family: 'Barlow', var(--font-primary), sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary, #0A192F);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.industry-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary, #334155);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Bullet points */
.industry-card-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  background: var(--bg-surface-soft, #f8fafc);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #edf2f7;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-primary, #0A192F);
  line-height: 1.45;
}

.spec-check-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-orange, #C2541A);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer of Card */
.industry-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.normatives-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.norm-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.norm-pill.norm-pill--primary {
  background: rgba(194, 84, 26, 0.08);
  color: var(--brand-orange, #C2541A);
  border-color: rgba(194, 84, 26, 0.3);
  font-weight: 700;
}

/* Botón con Color Oficial Naranja Industrial */
.btn-industry-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--brand-orange, #C2541A);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(194, 84, 26, 0.25);
}

.btn-industry-action:hover {
  background: var(--brand-orange-hover, #9E3C0E);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(194, 84, 26, 0.35);
  color: #ffffff;
}

.btn-industry-action .arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-industry-action:hover .arrow-icon {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. MATRIZ DE CUMPLIMIENTO TÉCNICO NORMATIVO (COLORES OFICIALES)
   -------------------------------------------------------------------------- */
.compliance-matrix-section {
  padding: 72px 0;
  background: #0A192F;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.compliance-matrix-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 69, 0.5), transparent);
}

.compliance-matrix-section .badge-kicker.orange {
  background: rgba(194, 84, 26, 0.22);
  color: #D97745;
  border: 1px solid rgba(217, 119, 69, 0.5);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.matrix-table-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 17, 34, 0.7);
  backdrop-filter: blur(10px);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.matrix-table th {
  background: #112240;
  color: #D97745;
  font-family: 'Barlow', var(--font-primary), sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  white-space: nowrap;
}

.matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  line-height: 1.5;
}

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

.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.matrix-sector-title {
  font-weight: 700;
  color: #ffffff;
}

.matrix-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(194, 84, 26, 0.2);
  color: #D97745;
  border: 1px solid rgba(217, 119, 69, 0.35);
}

/* --------------------------------------------------------------------------
   6. SECCIÓN VALOR AGREGADO / POR QUÉ PRO AIC (COLORES OFICIALES)
   -------------------------------------------------------------------------- */
.industries-value-section {
  padding: 80px 0;
  background: #ffffff;
  transition: all 0.5s ease;
}

.value-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-pillar-card {
  background: var(--bg-surface-soft, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.value-pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-orange, #C2541A);
  box-shadow: 0 12px 24px -6px rgba(194, 84, 26, 0.16);
  background: #ffffff;
}

.pillar-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(194, 84, 26, 0.15), rgba(217, 119, 69, 0.05));
  color: var(--brand-orange, #C2541A);
  border: 1px solid rgba(194, 84, 26, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.pillar-title {
  font-family: 'Barlow', var(--font-primary), sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0A192F;
  margin-bottom: 10px;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. BANNER DE CONTACTO Y ASESORÍA EN SITIO
   -------------------------------------------------------------------------- */
.industries-cta-banner {
  padding: 72px 0;
  background: linear-gradient(135deg, #061122 0%, #0A192F 100%);
  color: #ffffff;
  position: relative;
}

.industries-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-content-col {
  max-width: 620px;
}

.cta-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D97745;
  margin-bottom: 8px;
  display: block;
}

.cta-headline {
  font-family: 'Barlow', var(--font-primary), sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.cta-subtext {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.cta-buttons-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .kpi-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .kpi-ribbon-item:nth-child(2) {
    border-right: none;
  }

  .kpi-ribbon-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .industries-grid-2col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .value-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
  
  .cta-buttons-col {
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .stage-hero--industrias .stage-hero-container {
    padding-top: 110px;
    padding-bottom: 50px;
  }
  
  .kpi-ribbon-grid {
    grid-template-columns: 1fr;
  }
  
  .kpi-ribbon-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .industry-card-body {
    padding: 24px 18px;
  }

  .industry-card-title {
    font-size: 1.3rem;
  }

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

  .cta-buttons-col {
    flex-direction: column;
  }

  .cta-buttons-col .btn {
    width: 100%;
  }
}
