/* ===================================================
   INDUSTRIES / RUBROS  — Nexxus ERP
   =================================================== */

.industries {
  background: #F8FAFC;
  padding: 80px 0;
  position: relative;
  overflow: clip;
}


.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #346691;
  margin-top: 0;
  margin-bottom: 20px;    
  background: rgba(52, 102, 145, .08);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(52, 102, 145, .18);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  max-width: 680px;
  margin-bottom: 60px;     
  padding-bottom: 40px;
}

.section-heading h2 {
  color: #0F172A;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  font-weight: 700;
  margin: 0;
}

.section-heading p {
  color: #475569;
  font-size: clamp(.95rem, 2vw, 1.15rem);
  line-height: 1.75;
  max-width: 600px;
  margin-top: 20px;
}

.industry-showcase {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  margin-top: 72px;
  align-items: start;
}


.industry-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 32px;
}

.industry-tab {
  background: none;
  border: none;
  text-align: left;
  padding: 14px 18px;
  border-radius: 14px;
  cursor: pointer;
  color: #475569;
  font-size: .9rem;
  font-family: inherit;
  transition: background .18s ease, color .18s ease, transform .15s ease;
  position: relative;
  line-height: 1.3;
}

.industry-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: #346691;
  transition: transform .2s ease;
}

.industry-tab:hover {
  background: rgba(52, 102, 145, .07);
  color: #0F172A;
  transform: translateX(2px);
}

.industry-tab.active {
  background: #0F172A;
  color: #ffffff;
  font-weight: 600;
  box-shadow:
    0 8px 32px rgba(15, 23, 42, .14),
    0 2px 8px rgba(15, 23, 42, .08);
  transform: none;
}

.industry-tab.active::before {
  transform: translateY(-50%) scaleY(0);
}



.industry-content {
  background: #ffffff;
  border-radius: 28px;
  padding: 52px 56px;
  border: 1px solid #E2E8F0;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: opacity .22s ease, transform .22s ease;
}

.industry-content::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 102, 145, .07) 0%, transparent 70%);
  pointer-events: none;
}

.industry-content p {
  text-align: justify;
  text-justify: inter-word; 
  line-height: 1.7;        
  color: #475569;          
  margin-bottom: 32px;   
}



.industry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.industry-number {
  color: #94A3B8;
  font-size: .8rem;
  letter-spacing: .18em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.industry-arrows {
  display: flex;
  gap: 8px;
}

.arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
  padding: 0;
}

.arrow-btn svg {
  width: 18px;
  height: 18px;
  color: #475569;
  transition: color .15s ease;
}

.arrow-btn:hover {
  background: #0F172A;
  border-color: #0F172A;
  transform: scale(1.06);
}

.arrow-btn:hover svg {
  color: #ffffff;
}

.arrow-btn:active {
  transform: scale(.96);
}



.industry-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #EEF4FF, #E0EDFB);
  border: 1px solid rgba(52, 102, 145, .15);
  margin-bottom: 28px;
  flex-shrink: 0;
}

.industry-icon svg {
  width: 32px;
  height: 32px;
  color: #346691;
}


.industry-content h3 {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
  color: #0F172A;
  font-weight: 700;
}

.industry-content p {
  max-width: 580px;
  color: #475569;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 32px;
}



.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.industry-tags span {
  padding: 8px 15px;
  border-radius: 999px;
  background: #F0F6FB;
  border: 1px solid rgba(52, 102, 145, .2);
  color: #2B5F8A;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .15s ease, border-color .15s ease;
}

.industry-tags span:hover {
  background: rgba(52, 102, 145, .1);
  border-color: rgba(52, 102, 145, .35);
}



.industry-content.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

/* =============
   RESPONSIVE
   ============= */

/* Tablet (1024px ↓) */
@media (max-width: 1024px) {
  .industry-showcase {
    grid-template-columns: 260px 1fr;
    gap: 32px;
  }

  .industry-content {
    padding: 40px 40px;
  }

  .industry-nav {
    position: static;
  }
}

/* Mobile-landscape & small tablet (768px ↓) */
@media (max-width: 768px) {
  .industries {
    padding: 80px 0;
  }

  .industry-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
  }

  .industry-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 4px;
    gap: 8px;
    scrollbar-width: none;
  }

  .industry-nav::-webkit-scrollbar {
    display: none;
  }

  .industry-tab {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #E2E8F0;
    font-size: .85rem;
  }

  .industry-tab::before {
    display: none;
  }

  .industry-tab.active {
    background: #0F172A;
    border-color: #0F172A;
    box-shadow: none;
  }

  .industry-tab:hover {
    transform: none;
  }

  .industry-content {
    padding: 28px 24px;
    min-height: auto;
    border-radius: 20px;
  }

  .industry-content h3 {
    font-size: 1.65rem;
  }

  .industry-content p {
    font-size: .95rem;
  }
}

@media (max-width: 480px) {
  .industry-content {
    padding: 24px 20px;
  }

  .industry-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .industry-icon svg {
    width: 26px;
    height: 26px;
  }
}