/* ==========================================================================
   LicitaciónYa — Industry / Rubro Interactive Selector Component
   Elevated B2B Design: Outcome-driven, calibrated search profiles,
   interactive sector tabs, and live SERCOP procurement pliego dossier.
   ========================================================================== */

.industries-section {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 50%, #F8FAFC 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

/* Nav Tabs Segmented Track */
.industries-nav-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.industries-nav {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.industry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.industry-btn .tab-icon {
  stroke: var(--text-muted);
  transition: stroke var(--transition-fast);
  flex-shrink: 0;
}

.industry-btn:hover {
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(203, 213, 225, 0.6);
}

.industry-btn:hover .tab-icon {
  stroke: var(--brand-navy);
}

.industry-btn.active {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.industry-btn.active .tab-icon {
  stroke: #ffffff;
}

/* ==========================================================================
   Industry Display Card (B2B Radar Profile Architecture)
   ========================================================================== */
.industry-card {
  max-width: 1040px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Card Topbar */
.industry-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0B192C;
  padding: 0.75rem 1.75rem;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.radar-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreenIndustry 2s infinite;
}

@keyframes pulseGreenIndustry {
  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 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.live-radar-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #CBD5E1;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.radar-category-meta {
  font-family: var(--font-sans);
  color: #93C5FD;
  font-size: 0.74rem;
  font-weight: 600;
}

/* Card Body Grid */
.industry-card-body {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 2.25rem;
  padding: 2.5rem 2.25rem;
  align-items: stretch;
}

/* Left Column: Search Vectors & Calibration */
.industry-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.industry-cpc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #1E40AF;
  margin-bottom: 1.15rem;
  width: fit-content;
}

.cpc-badge-tag {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  background: #DBEAFE;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: #1D4ED8;
}

.cpc-badge-content {
  font-weight: 600;
}

.industry-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.28;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.industry-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.industry-keywords-container {
  margin-bottom: 1.5rem;
}

.keywords-heading {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 0.65rem;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.industry-tag {
  display: inline-flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.industry-tag:hover {
  border-color: #93C5FD;
  background: #EFF6FF;
  color: #1D4ED8;
}

.industry-calibration-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #166534;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   Right Column: Live SERCOP Reference Tender Card
   ========================================================================== */
.industry-sample-box {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border: 1px solid #CBD5E1;
  border-top: 3px solid #1D4ED8;
  border-radius: 14px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
  position: relative;
}

.sample-dossier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.sample-source-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
}

.sercop-tag {
  background: #1D4ED8;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.pliego-text {
  font-weight: 600;
  color: #64748B;
}

.sample-phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #15803D;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.sample-phase-pill.phase-adjudicada {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

.sample-code-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.sample-code-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.06em;
}

.sample-code-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  background: #E2E8F0;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.sample-tender-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.sample-tender-meta {
  margin-bottom: 1.25rem;
}

.sample-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
}

.sample-meta-row svg {
  stroke: #64748B;
  flex-shrink: 0;
}

.sample-amount-block {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.25rem;
}

.sample-amount-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #166534;
  margin-bottom: 0.25rem;
}

.sample-amount {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.02em;
}

.btn-sample-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  background: #15803D;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.22);
}

.btn-sample-wa svg {
  flex-shrink: 0;
}

.btn-sample-wa:hover {
  background: #166534;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.32);
  color: #ffffff;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .industries-section {
    padding: 3rem 0;
  }
  .industries-nav-wrapper {
    margin-bottom: 1.5rem;
  }
  .industry-card-body {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
    gap: 1.75rem;
  }
  .industry-card-topbar {
    padding: 0.65rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .industry-title {
    font-size: 1.25rem;
  }
}
