/* ═════════════════════════════════════════════════════
   MANTENIMIENTO SCREEN STYLES
   ═════════════════════════════════════════════════════ */

/* TABS */
.tabs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.tab-btn.active {
  background: rgba(234, 179, 8, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* STATS */
.mant-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-badge {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 0;
}

/* FILTROS */
.filtros-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filtros-section .section-title {
  margin-top: 0;
}

.filtros-section .form-group {
  margin-bottom: 1rem;
}

.filtros-section select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--navy-accent);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.filtros-section select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

/* FORM CARD */
.form-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.form-card .section-title {
  margin-top: 0;
}

.form-card textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--navy-accent);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.form-card input,
.form-card select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--navy-accent);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

.form-card input::placeholder {
  color: var(--text-muted);
}

/* MANTENIMIENTOS LIST */
.mant-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mant-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mant-card:active {
  background: rgba(234, 179, 8, 0.1);
  border-color: var(--border-yellow);
}

.mant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mant-placa {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 0 0 0.25rem;
}

.mant-tipo {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.mant-costo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success);
}

.mant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.mant-item {
  display: flex;
  flex-direction: column;
}

.mant-item label {
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.mant-item p {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

.mant-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .mant-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .tabs-container {
    grid-template-columns: auto auto;
    justify-content: flex-start;
    gap: 0;
    background: transparent;
    border: none;
    padding: 0 0 1.5rem;
    margin-bottom: 2rem;
  }

  .tab-btn {
    background: transparent;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    border-radius: 0;
    color: var(--text-muted);
  }

  .tab-btn.active {
    background: transparent;
    border-bottom: 2px solid var(--yellow);
    color: var(--yellow);
  }

  .mant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .mant-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .mant-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filtros-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}
