/**
 * ESTILOS DE LA PÁGINA DE BÁSCULAS DE PESAJE Y CONTROL DE CARGA
 * Concesión Vías del Nus - Vinus S.A.S.
 *
 * @author  Mateo Jaramillo Suarez
 * @email   teojaramillosuarez@gmail.com
 * @phone   3157456196
 */

/* ==========================================================================
   1. SECCIÓN PRINCIPAL
   ========================================================================== */
.basculas-page-section {
  padding: 50px 0 90px;
  background-color: #fafbfc;
  min-height: 70vh;
}

/* Tarjeta Destacada de Cabecera */
.basculas-intro-card {
  background: linear-gradient(135deg, #004785 0%, #0079c2 100%);
  border-radius: 18px;
  padding: 40px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 71, 133, 0.18);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.basculas-intro-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.basculas-badge {
  display: inline-block;
  background: #38bdf8;
  color: #003666;
  font-weight: 800;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.basculas-intro-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.basculas-intro-desc {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.75;
  max-width: 900px;
  margin: 0;
}

/* ==========================================================================
   2. GRID DE ESTACIONES DE BÁSCULA
   ========================================================================== */
.basculas-stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 44px;
}

.station-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.station-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 71, 133, 0.08);
  border-color: #0079c2;
}

.station-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.station-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0079c2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.station-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.station-location {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

.station-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.station-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}

.station-meta-item strong {
  color: #0f172a;
  min-width: 95px;
}

.station-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}

.station-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

/* ==========================================================================
   3. PROCESO DE CONTROL DE PESAJE (PASOS)
   ========================================================================== */
.basculas-process-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 44px;
}

.basculas-section-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 8px;
}

.basculas-section-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.process-step-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  position: relative;
}

.process-step-number {
  font-size: 12px;
  font-weight: 800;
  color: #0079c2;
  background: #e0f2fe;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.process-step-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.process-step-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   4. TABLA DE PESOS MÁXIMOS PERMITIDOS (RESOLUCIÓN 4100 / 2004)
   ========================================================================== */
.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 20px;
  background: #ffffff;
}

.basculas-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.basculas-table thead {
  background: #f1f5f9;
  border-bottom: 2px solid #cbd5e1;
}

.basculas-table th {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.basculas-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
}

.basculas-table tbody tr:hover {
  background: #f8fafc;
}

.table-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.table-tag-code {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
}

.table-tag-weight {
  background: #fef3c7;
  color: #92400e;
  font-weight: 800;
}

/* ==========================================================================
   5. AVISO LEGAL Y RECOMENDACIONES
   ========================================================================== */
.basculas-legal-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 24px;
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.legal-icon-wrap {
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-title {
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  margin: 0 0 6px 0;
}

.legal-desc {
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
  margin: 0;
}

/* Responsivo */
@media (max-width: 768px) {
  .basculas-intro-card {
    padding: 26px 20px;
  }
  .basculas-intro-title {
    font-size: 22px;
  }
  .basculas-process-section {
    padding: 24px 18px;
  }
}
