/* ====================================================================
   IMEDLOG CONECTA — PORTALS CSS
   Estilos específicos: Institucional, Cliente, Motorista, Admin
   ==================================================================== */

/* ── LANDING PAGE INSTITUCIONAL ── */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: backgroundShift 12s ease infinite;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(249,142,43,0.08);
  animation: float 4s ease-in-out infinite;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-24) var(--space-6) var(--space-16);
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(249,142,43,0.15);
  border: 1px solid rgba(249,142,43,0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
  animation: fadeIn 0.6s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  animation: slideUp 0.7s ease both 0.1s;
}

.hero-title .accent-line {
  display: block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  animation: slideUp 0.7s ease both 0.2s;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  animation: slideUp 0.7s ease both 0.3s;
}

.hero-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--surface-divider);
  margin-top: var(--space-12);
  animation: fadeIn 0.8s ease both 0.5s;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-black);
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-1);
}

/* ── ROAD ANIMATION ── */
.road-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  display: flex;
  align-items: flex-end;
}

.road-line {
  flex: 1;
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    rgba(249,142,43,0.6) 0px,
    rgba(249,142,43,0.6) 30px,
    transparent 30px,
    transparent 60px
  );
  background-size: 60px 4px;
  animation: roadAnim 1s linear infinite;
}

/* ── SERVICES SECTION ── */
.section {
  padding: var(--space-20) 0;
}

.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--brand-accent);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: var(--leading-relaxed);
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249,142,43,0.3);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(249,142,43,0.1);
}

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

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: rgba(249,142,43,0.15);
  border: 1px solid rgba(249,142,43,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  position: relative;
  z-index: 1;
}

/* ── AREA DE ATUAÇÃO ── */
.coverage-section {
  background: var(--surface-raised);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.coverage-map {
  aspect-ratio: 1;
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverage-map-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37,99,168,0.2) 0%, transparent 60%);
}

.city-point {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.city-point:hover { transform: scale(1.15); }

.city-dot {
  width: 12px; height: 12px;
  border-radius: var(--radius-full);
  background: var(--brand-accent);
  border: 2px solid rgba(249,142,43,0.4);
  box-shadow: 0 0 12px rgba(249,142,43,0.5);
  animation: pulseDot 2s ease-in-out infinite;
}

.city-dot.main {
  width: 18px; height: 18px;
  background: var(--brand-accent);
  box-shadow: 0 0 20px rgba(249,142,43,0.7);
}

.city-label {
  font-size: 9px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
}

.city-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-accent), transparent);
  opacity: 0.4;
  transform-origin: left center;
}

.coverage-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.coverage-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  font-size: var(--text-sm);
  transition: border-color var(--transition-base);
}

.coverage-item:hover { border-color: rgba(249,142,43,0.3); }

.coverage-item-icon { font-size: 1.1rem; }

.coverage-item-name {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.coverage-item-dist {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── AGREGADOS SECTION ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  counter-reset: steps;
}

.step-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  counter-increment: steps;
  position: relative;
  transition: all var(--transition-base);
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249,142,43,0.3);
}

.step-card::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-black);
  color: rgba(249,142,43,0.1);
  line-height: 1;
}

.step-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── PAINEL DO CLIENTE B2B ── */
.portal-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-2xl);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.portal-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249,142,43,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.portal-banner-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.portal-banner-content p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}

.pedido-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  animation: fadeIn 0.4s ease both;
}

.pedido-card:hover {
  box-shadow: var(--shadow-lg);
}

.pedido-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--surface-divider);
}

.pedido-id {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--brand-accent);
}

.pedido-body {
  padding: var(--space-4) var(--space-5);
}

.pedido-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.pedido-info-item {
  text-align: center;
  padding: var(--space-3);
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
}

.pedido-info-val {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.pedido-info-key {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ── PAINEL DO MOTORISTA ── */
.driver-welcome {
  background: var(--gradient-brand);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.driver-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-2xl);
  background: rgba(249,142,43,0.2);
  border: 2px solid rgba(249,142,43,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.driver-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.driver-info p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.driver-semaforo-main {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.oportunidade-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.4s ease both;
}

.oportunidade-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.oportunidade-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249,142,43,0.3);
}

.oportunidade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.oportunidade-route {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.route-city {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.route-arrow {
  color: var(--brand-accent);
  font-size: 1.1rem;
}

.oportunidade-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.oportunidade-spec {
  text-align: center;
  padding: var(--space-2);
  background: var(--surface-raised);
  border-radius: var(--radius-md);
}

.oportunidade-spec-val {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.oportunidade-spec-label {
  font-size: 10px;
  color: var(--text-muted);
}

.oportunidade-frete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: rgba(249,142,43,0.08);
  border: 1px solid rgba(249,142,43,0.2);
  border-radius: var(--radius-lg);
}

.oportunidade-frete-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.oportunidade-frete-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-black);
  color: var(--brand-accent);
}

.incompativel-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--status-red-bg);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--status-red);
  font-weight: var(--font-medium);
}

/* ── TORRE DE CONTROLE ── */
.torre-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-5);
  height: calc(100vh - var(--header-height) - 160px);
}

.torre-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
}

.torre-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
}

.ops-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.ops-row:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.12);
}

.ops-id {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--brand-accent);
  text-transform: uppercase;
}

.ops-empresa {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.ops-rota {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.ops-progress-track {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.ops-progress-step {
  flex: 1;
  height: 4px;
  background: var(--surface-raised);
  position: relative;
}

.ops-progress-step:first-child { border-radius: var(--radius-full) 0 0 var(--radius-full); }
.ops-progress-step:last-child  { border-radius: 0 var(--radius-full) var(--radius-full) 0; }

.ops-progress-step.done { background: var(--status-green); }
.ops-progress-step.active { background: var(--brand-accent); animation: glow 2s ease-in-out infinite; }

.ops-progress-step .ops-step-dot {
  position: absolute;
  top: 50%; right: 0;
  transform: translate(50%, -50%);
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
  background: var(--surface-base);
  border: 2px solid var(--surface-border);
  z-index: 1;
}

.ops-progress-step.done .ops-step-dot { border-color: var(--status-green); background: var(--status-green); }
.ops-progress-step.active .ops-step-dot { border-color: var(--brand-accent); background: var(--brand-accent); animation: pulseDot 1.5s ease-in-out infinite; }

/* ── SIMULADOR DO TESTE DE ACEITE ── */
.simulator-container {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  animation: scaleIn 0.3s ease both;
}

.simulator-header {
  background: var(--gradient-brand);
  padding: var(--space-6) var(--space-8);
  position: relative;
  overflow: hidden;
}

.simulator-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(249,142,43,0.2) 0%, transparent 60%);
}

.simulator-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.simulator-header p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-1);
  position: relative;
  z-index: 1;
}

.simulator-progress {
  display: flex;
  align-items: center;
  gap: 0;
  padding: var(--space-5) var(--space-8);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--surface-divider);
  overflow-x: auto;
}

.sim-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  cursor: pointer;
}

.sim-step-dot {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: var(--font-bold);
  border: 2px solid var(--surface-border);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.sim-step-indicator.done .sim-step-dot {
  background: var(--status-green);
  border-color: var(--status-green);
  color: white;
}

.sim-step-indicator.active .sim-step-dot {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: white;
  box-shadow: 0 0 16px rgba(249,142,43,0.5);
  animation: pulseDot 2s ease-in-out infinite;
}

.sim-step-indicator.pending .sim-step-dot {
  background: var(--surface-card);
  color: var(--text-muted);
}

.sim-step-label {
  font-size: 10px;
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  line-height: 1.3;
}

.sim-step-indicator.active .sim-step-label { color: var(--brand-accent); }
.sim-step-indicator.done .sim-step-label  { color: var(--status-green); }

.sim-connector {
  flex: 1;
  height: 2px;
  background: var(--surface-border);
  min-width: 20px;
  margin-bottom: 20px;
}

.sim-connector.done { background: var(--status-green); }
.sim-connector.active { background: var(--gradient-accent); }

.simulator-body {
  padding: var(--space-8);
  min-height: 400px;
}

.sim-panel {
  animation: fadeIn 0.4s ease both;
}

.sim-panel-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sim-panel-title .step-num {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--brand-accent-glow);
  border: 2px solid var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-black);
  color: var(--brand-accent);
  flex-shrink: 0;
}

.sim-panel-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.sim-result-box {
  background: var(--surface-raised);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-top: var(--space-5);
}

.sim-result-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.simulator-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid var(--surface-divider);
  background: var(--surface-raised);
}

/* ── FINANCIAL ANALYSIS TABLE (Admin Only) ── */
.financial-analysis {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.financial-analysis-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--surface-divider);
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.margin-guard {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(249,142,43,0.1);
  border: 1px solid rgba(249,142,43,0.2);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  color: var(--brand-accent);
  font-weight: var(--font-semibold);
}

/* ── DOCUMENTO / HOMOLOGAÇÃO ── */
.doc-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.doc-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.doc-item:hover { border-color: rgba(255,255,255,0.12); }

.doc-item.ok { border-color: rgba(34,197,94,0.2); background: var(--status-green-bg); }
.doc-item.warn { border-color: rgba(245,158,11,0.2); background: var(--status-yellow-bg); }
.doc-item.bad { border-color: rgba(239,68,68,0.2); background: var(--status-red-bg); }

.doc-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.doc-name {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.doc-validity {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.doc-status {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.doc-item.ok .doc-status { color: var(--status-green); }
.doc-item.warn .doc-status { color: var(--status-yellow); }
.doc-item.bad .doc-status { color: var(--status-red); }

/* ── FOOTER INSTITUCIONAL ── */
.footer {
  background: var(--neutral-950);
  border-top: 1px solid var(--surface-border);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  max-width: 280px;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-col a, .footer-col p {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer-col a:hover { color: var(--text-accent); }

.footer-bottom {
  border-top: 1px solid var(--surface-divider);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .torre-layout { grid-template-columns: 1fr; height: auto; }
  .coverage-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-stats-bar { gap: var(--space-6); }
  .oportunidade-specs { grid-template-columns: repeat(2, 1fr); }
  .driver-welcome { grid-template-columns: auto 1fr; }
  .driver-semaforo-main { display: none; }
  .simulator-progress { gap: 0; }
  .simulator-body { padding: var(--space-5); }
  .simulator-footer { flex-direction: column; gap: var(--space-3); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .portal-banner { flex-direction: column; text-align: center; }
  .ops-row { grid-template-columns: 1fr; }
}
